- 출처 : http://kuber.posterous.com/enable-wol-wake-on-lan-in-ubuntu-1010 -
Wake on LAN is useful to wake up your computer from sleep by sending a magic packet. Assuming your computer supports WOL (check you bios settings), the following steps should help you get WOL enabled in Ubuntu 10.10.
- Install ethtool and wol: sudo apt-get install ethtool wakeonlan
- Choose which network interface you want to enable wol (I believe WOL only works for wired network interfaces) on, by running: ifconfig
- Enable WOL (for example, on interface eth0): ethtool -s eth0 wol g
- To persist (across reboots) these changes you need to put the following lines in file /etc/network/interfaces.
- Open the file for editing: gksu gedit /etc/network/interfaces
- Add the following lines to the file:
post-up /sbin/ethtool -s eth0 wol g
post-down /sbin/ethtool -s eth0 wol g
Make sure you get the path of the ethtool right. In my case it was installed in /sbin. To check your path and use that in the two lines above, run: which ethtool.