Magic packet sender command line

broken image
broken image

However, there is no way to do this without first logging in to the gateway server. Your machine should now support wakeonlan. Now, run sudo nano /etc/network/interfacesĪnd add this line to the end of the file: post-down /usr/bin/wakewol Save the file and run sudo chmod 755 wakewol to make it executable. Now, set up the machine to allow it: sudo nano /usr/bin/wakewolĪdd these lines to the file you just created: #!/bin/bash If the output of ethtool contains a line like Supports Wake-on: g, you should be fine. From the target machine, run sudo aptitude install ethtool You will need to be able to ssh to the gateway, from there, assuming your network cards support it, you will be able to turn your machines on.įirst, make sure your network cards support wakeonlan.

broken image