Installing Unslung
Installing Unslung
The next feature of Unslung that we'll explore is the customization feature. Much like we did in my last article, Unslung adds hooks to the standard startup scripts, but it goes much further. Unslung's scripts - called diversion scripts - add a hook to every startup script. The advantage is that you can insert code at any point in the startup sequence.
Additionally, the diversion scripts have a feature that allows you to completely skip or replace the standard Linksys functionality. For example, since I don't use SMB any more, my diversion script simply does a "return 0" which tells the hook in the Linksys script to skip the remaining portion of the Samba startup. This would also allow me to startup Samba with different options or even use my own version of Samba before returning 0. Unslung adds this capability to every Linksys startup script.
The last major feature that Unslung brings to the table is a standardized package system called ipkg, which was originally developed for hand-held Linux systems. Since then, its use has been expanded to other devices with limited resources. Using a standard package system makes it easy to add new features to the box.
For example, it takes a one-line command to add a secure shell server to our little box. The package is then downloaded from the Internet, configured and installed automatically. As of this writing, there were 19 packages available for installation, but work is underway to converge with a more established build system which will bring more than 1500 packages to the NSLU2!
Enough overview, let's try it out. As before, I'm assuming that you've enabled Telnet on your box as specified in my first article. If you haven't, there's now a slightly easier method detailed here.
If you've been following along with my earlier articles, the first thing we need to do is backup all of our previous changes. The Unslung firmware uses some of the same directories that we created in the /share/hdd/conf directory, bin, etc, and rc.d. We'll just move our directories out of the way and let the Unslung installation do its thing. When it's done, we can put our specific changes back in place.
First, Telnet in to the NSLU2 and rename the directories to avoid any conflicts:
cd /share/hdd/conf mv bin bin.old mv etc etc.old mv rc.d rc.d.oldThis time we won't be building our own firmware, relying instead on a pre-built firmware, UNSLUNG-1.11-beta.zip, that's available
- Previous page Boot-time Alternatives
- Next page Exploring Unslung
- How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
- How To:Hacking the Linksys NSLU2 - Part 3 - Adding an iTunes server
- How To: Hacking the Linksys NSLU2 - Part 2 - Adding NFS
- How To: Hacking the Linksys NSLU2 - Part 1
- Linksys Network Storage Link for USB 2.0 Disk Drives reviewed
- XIMETA NetDisk Office reviewed
- Mirra Personal Server Reviewed
- Head to Head: Tritton's ASAP vs. ioGEAR's BOSS
- How We Test: Networked Storage Devices
- Ximeta NetDisk reviewed