Ubuntu Reference Guide

part of the WillPowered Inc. network
© 2011 William Hall <5/> - This site uses HTML5

Installation\WOL

The first step is to dig around your BIOS and confirm that you can use Wake On Lan.

Use the ifconfig command to find the HWAddr for the network card you are leaving connected all the time. This will come in handy for when you want to boot it.

Now we have to add a script to start with the computer so that the network card stays enabled.

$ cd /etc/init.d $ sudo nano wakeonlanconfig

Enter the following for the script.

#!/bin/bash ethtool -s eth0 wol g exit

Now we make the script executable and start with the computer.

$ sudo chmod a+x wakeonlanconfig $ sudo update-rc.d -f wakeonlanconfig defaults $ sudo ./wakeonlanconfig

If you get the message that ethtool is not found, install it with the following command then run the script again.

$ sudo apt-get install ethtool $ sudo ./wakeonlanconfig

Now you can start your computer using any WOL tool. I recommend using WOL.EXE on windows machines and the package wakeonlan for ubuntu machines. For WOL.EXE, the mac address does not require punctuation or separation but for wakeonlan colons are required between pairs of characters.

Reference here