I’ve set up a media center with Debian 10 (and another with 11) based on Kodi on an Intel Nuc. I wanted to enable Wake-On-Lan so I could start it remotely. First make sure wake on lan is enabled in bios, and it’s usually on by default.
Create a new file
/etc/systemd/system/wake-on-lan.service with the following content:
[Unit] Description=Wake On Lan [Service] Type=oneshot ExecStart=/usr/sbin/ethtool -s enp3s0 wol g [Install] WantedBy=multi-user.target
Install the ethtool utility with:
apt install ethtool
Then enable it on boot with:
systemctl daemon-reload systemctl enable wake-on-lan.service systemctl start wake-on-lan.service