This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[RESOLVED] (WOL) isn't workig in Zorin but does in win 10

Tony_W

Tue Jun 16, 2020 2:29:40 pm

Hi,

Thought I'd try Zorin as a dual boot to win 10 to see how Linux is coming along.
I can use WOL no problem with Win 10 so I know the bios is set correctly.
If I shutdown from Zorin it doesnt work.

Can someone point me in the right direction to set up the nic so it works in zorin as well please?

I've found a few threads using ethtool, but it doesn't seem to be avail.
I've installed Zorin lite....

Aravisian

Tue Jun 16, 2020 2:37:26 pm

Sadly, it does not appear to be a simple solution:
https://superuser.com/questions/71814/i ... n-possible

Swarfendor437

Tue Jun 16, 2020 2:39:04 pm

Don't know if it only works if you install server elements of Ubuntu!

https://blog.filegarden.net/2020/06/08/ ... s-systemd/

It is all I could find.

Aravisian

Tue Jun 16, 2020 2:45:25 pm

Swarfendor437 wrote:Don't know if it only works if you install server elements of Ubuntu!

https://blog.filegarden.net/2020/06/08/ ... s-systemd/

It is all I could find.

Great find, Swarf!

Tony_W

Tue Jun 16, 2020 9:46:47 pm

Thanks for the pointers. I'll try them tomorrow. Very impressed with Xorin so far.
If I can solve the WOL then I'll be removing Win10

Tony_W

Sat Jun 20, 2020 8:11:31 am

Fixed it! WOL does work in Zorin.
I used the link from Swarf for most of it, plus a little from elsewhere.
It now boots remotely.
Very happy! (It's the small things in life).
When I get chance I'll type up what I did in more detail to help other newcomers should they need it.
Very impressed with Zorin so far....Soon I will no longer need Win 10 on my machine.
Thanks for the help.

Swarfendor437

Sat Jun 20, 2020 12:40:27 pm

Yay! That's great news! When you post it, please post in the How-tos and Tutorials section - if you see type (might only be available to Moderators) - select 'sticky' so it gets on the front page of that section. What I might do at some stage is create a 'administeria' pdf of current relevant How-tos etc - please PM when you have posted and I will make it a 'sticky' so it gets to the top of How-Tos and Tutorials. :D

Tony_W

Mon Jul 06, 2020 2:40:51 pm

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.

Swarfendor437

Mon Jul 06, 2020 2:53:21 pm

Hi, As you have mentioned you have had difficulties posting to How-to section I will copy and paste with acknowledgement to you or move this last post you made to a new How-tos so your sig is also maintained. ;) :D