Enable Wake On Lan on Linux

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

2 pensieri su “Enable Wake On Lan on Linux

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Solve : *
12 × 30 =


Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.