Resources
Installation
$ sudo apt install ethtool
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
snorriheim-sleep
#!/bin/bash ssh -t snorriheim "sudo ethtool -s enp3s0 wol g && sudo shutdown -h now"