CastlesBlog.com

a blog about a blog

Subscribe

Ubuntu Wake on Lan (WOL)

This post is written so that I won't forget how I got WOL working with my Asus motherboard and Mythbuntu (Karmic Koala).

Ensure WOL is enabled in BIOS. For the Asus P5KC motherboard setting "Power On By PCIE Devices" to Enabled worked for me.

Create wakeonlanconfig in /etc/init.d/ with the following contents:

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

Set permissions:

chmod a+x wakeonlanconfig

Make the script start on boot:

update-rc.d -f wakeonlanconfig defaults

Make sure there are no errors:

/etc/init.d/wakeonlanconfig

Port forward port 9 over UDP on my router to 192.168.1.255 (this broadcasts on my D-Link DSL-2740B)

and test with:

wakeonlan -i <HOME IP ADDRESS> <MYTHTV MAC ADDRESS>

*Note* most of this is lifted from Chris Tucker's post on the ubuntu forums

Post Comment