- Debian-based Linux system or Raspberry Pi
- Git
- Node.js (LTS)
# Update package index
sudo apt update
# Install Git and curl
sudo apt install git curl -y
# Install Node.js (LTS version)
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejsVerify installation:
node -v
npm -v
git --versiongit clone https://git.luisk.de/luis/wol-server.git
cd wol-serverOpen index.html and modify the marked lines:
nano index.htmlLook for comments like:
<!-- CHANGE THIS -->Adjust the MAC addresses, hostnames, etc.
Also change in package.json the port in scripts: server
npm installnpm run serverYou can now access the interface via your browser on your specified port (e.g., http://<your-server-ip>:3000).
To automatically run the server at boot, create a systemd service.
sudo nano /etc/systemd/system/wol-server.servicePaste the following:
[Unit]
Description=Wake on LAN Web Interface
After=network.target
[Service]
WorkingDirectory=/home/pi/wol-server
ExecStart=/usr/bin/npm run server
Restart=always
User=pi
[Install]
WantedBy=multi-user.target🔧 Replace:
/home/pi/wol-serverwith the actual path to your projectUser=piwith your actual system username
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl enable wol-server
sudo systemctl start wol-serversudo systemctl status wol-serverYou should see:
Active: active (running)
✅ Done! Your Wake on LAN Web Interface is now installed and set to run automatically on system startup.