WOL: Wake on Lan.
Being able to turn on a PC remotely. This is something quite easy to set up in windows but more difficult in Linux, particularly Zorin.
Here's a mixture of instructions pulled from across the web. As a newbie to Linux and to Zorin, I managed to sort it out and now have a Zorin PC that can be booted remotely and can be controlled by Remote Desktop as well.
Install ethtool:
sudo apt-get install ethtool
find the interface name:
ifconfig -a or ip a
You will see something like this:
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::446f:c847:fa72:1946 prefixlen 64 scopeid 0x20<link>
ether 6c:4b:90:03:9b:1b txqueuelen 1000 (Ethernet)
RX packets 90578 bytes 50319722 (50.3 MB)
RX errors 0 dropped 32784 overruns 0 frame 0
TX packets 21519 bytes 1888824 (1.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1310 bytes 133525 (133.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1310 bytes 133525 (133.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 94:e9:79:b1:eb:e5 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
In this case the interface name is "eno1" as it shows my internl ip address of 192.168.1.11
Now you have your interface name you need to build a file that tells the system to keep WOL active each time you boot the system. Otherwise it only works once.
First, create the file /etc/systemd/system/wol@.service (keep the @ symbol). Put this in it:
[Unit]
Description=Wake-on-LAN for %i
Requires=network.target
After=network.target
[Service]
ExecStart=/sbin/ethtool -s %i wol g
Type=oneshot
[Install]
WantedBy=multi-user.target
run the following command to enable this service to start (change eno1 with your interface):
systemctl enable wol@eno1
You should see something like this:
Created symlink from
/etc/systemd/system/multi-user.target.w ... th3.service to /etc/systemd/system/wol@.service.
To check if it's enabled, run the following command (change eno1 with your interface) and it should return enabled:
systemctl is-enabled wol@eno1
To test that you now have WOL set up, reboot and run (change eno1 with your interface):
ethtool eno1
You should see a line with the following:
Wake-on: g
And that's it. Wake On LAN should now be available for the LAN interface.