I have a couple of NAS boxes and I wanted to install a Wake on LAN application on one of them so that I could turn my devices connected to the LAN through one of them. The main reason why I wanted to do this is because my home router doesn’t support Wake on WAN (so it’s not able to translate the initial request and broadcast it).
Since the NAS is always connected to the network, I can use it to turn on my home computer for instance: that’ll allow me to turn it on only when I need it.
The NAS
In my specific case I decided to install it on a Iomega IX4-200D. I believe the procedure applies to other NAS devices with just little changes. The reason why I chose this NAS is because I do have a way to get the firmware back to it even when I replace all of the Hard Drives (as it happened once already!). I’ll look at writing a procedure for that whenever I have the chance.
Step by Step instructions to Install Wake on LAN on a NAS
I will try to be as much specific as possible. Be aware that I am not responsible in case you brick your own device.
- Enable SSH if it’s still disabled. You can follow my article that describes how to enable SSH on an Iomega/Lenovo device.
- Connect via SSH to the NAS box. On the link I posted above, it also tells you how to login on an Iomega device.
- Backup /etc/ipkg.conf (if it exists).
- You can backup this file using the following command:
1cp /etc/ipkg.conf /etc/ipkg.conf.bck
- You can backup this file using the following command:
- Delete any existing entry in this file, or just remove the file itself by typing:
1rm /etc/ipkg.conf - Add these lines one by one:
1234src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stablesrc cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstableoption verbosity 2option verbose-wget- If you need to delete a line, press ESC (enter command mode), then select the line you want to delete with the arrow keys and then type dd.
- Save the file by pressing ESC to enter command mode and type
1:x
to exit and save the changes. If you want to exit and discard the changes, type :q! - If you need to return in insert mode press i followed by an Enter.
- NAS boxes generally have an embedded OS which means they have a read only file system. So we have to use ipkg-opt to get rid of this. Run the commands below:
1ipkg install ipkg-opt - Run this:
1PATH=/opt/bin:$PATH - Now backup ld.so.conf and then edit it in vi.
12cp /etc/ld.so.conf /etc/ld.so.conf.bckvi /etc/ld.so.conf - Append the line below.
- /opt/lib/
- Close the SSH connection. This step is very important. (more…)