Wake-on-lan and the Intrepid Ibex

I’ve been using Tomato on my WRT54GL for some time. I recently decided to start keeping my servers off most of the time and instead use the built in wake-on-lan functionality of tomato. I had previously set up Ubuntu 8.04.1 with wake-on-lan, but there are some minor differences for Ubuntu 8.10 (the Intrepid Ibex).

  1. Install ethtool.
sudo apt-get install ethtool
  1. Add a file to /etc/init.d.
sudo vim /etc/init.d/wakeonlanconfig

The contents of the file should be as follows:

Note the “eth0” used above. If you’re using a different interface for wake-on-lan, substitute appropriately.

  1. Configure the file you added in step 2 to run at boot.
sudo update-rc.d -f wakeonlanconfig defaults
  1. Run the file you created in step 2.
sudo /etc/init.d/wakeonlanconfig
  1. Change /etc/init.d/halt so the network interfaces aren’t halted when the computer is shut down. At the top of the file, change this line:
NETDOWN=yes

to the following:

NETDOWN=no

That’s it! From now on, every time you shut down your computer you can use the WOL interface from Tomato to wake it up.

Posted by Seth Chandler Sun, 12 Oct 2008 18:51:52 GMT


Leopard, AFP and the Intrepid Ibex

Seeing as Intrepid will be out in a number of days, I wanted to update my previous post on installing netatalk on Ubuntu with SSL support.  The steps remain pretty much the same for Ubuntu 8.10 (Intrepid Ibex).  As I mentioned, It’s easy enough to allow Leopard to use plaintext passwords with the following command:

$ defaults write com.apple.AppleShareClient afp_cleartext_allow -bool true

You can use the following instructions to download and build netatalk on Hardy (you must have the Universe repository enabled in /etc/apt/sources.list):

$ mkdir -p ~/src/netatalk
$ cd ~/src/netatalk
$ sudo apt-get install devscripts cracklib2-dev dpkg-dev libssl-dev build-essential
$ sudo apt-get build-dep netatalk
$ apt-get source netatalk
$ cd netatalk-2.0.3
$ DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -us -uc
$ sudo debi

Netatalk is now properly installed, but there are two tweaks i suggest.  First, tell dpkg not to upgrade netatalk:

$ echo "netatalk hold" | sudo dpkg --set-selections

Second, I always edit /etc/default/netatalk to set the following:

ATALKD_RUN=no
PAPD_RUN=no

Disabling atalkd and papd mean Netatalk will start much faster.  I don’t know anyone that uses atalkd or papd anymore, so it’s worth looking into.

You should now be able to connect from Leopard to your Intrepid home directory!

Posted by Seth Chandler Sun, 12 Oct 2008 17:14:29 GMT