Ethtool
[ 1 Resources ] [ 2 Installation ] [ 3 Remote PC ] [ 4 Local PC ]
Resources
Installation
$ sudo apt install ethtool wakeonlan
Remote PC
BIOS: Enable Wake on Lan(WOL) or Wake On PCI(E).
MAC Address: Get your MAC Address from ipconfig
WOL: Run the following code to enable wol on your interface
$ sudo ethtool -s enp3s0 wol g
This only enables it for the next reboot. Either enable it as a startup script or when remotely shutting down (see scripts below).
Local PC
snorriheim-wake
#!/bin/bash
wakeonlan 10:c3:7b:92:5c:67