As mentioned earlier, the package system in use with Unslung is ipkg. First we'll get our package database up to date. While logged into the box, execute the ipkg command with an "update" parameter:
NOTE: Make sure that the NSLU2 is connected to a LAN that has Internet access or ipkg won't work.
This should give a few lines of output as it updates the internal database. I've seen several of the ipkg commands get occasional failures when communicating with the base repository. If this occurs, just try again. If you continue to have problems, make sure that your NSLU2 has a default gateway and DNS server set up from the standard Linksys configuration screen.
Now let's see what packages are available for our little box:
You should see a list of packages that includes both nfs and mt-daapd. Let's try to install nfs. First we need the portmapper:
ipkg install portmap
You should see several lines of output as the package is fetched from the main nslu2 package repository and then installed. Next install the nfs server itself:
ipkg install nfs-server
You should see status messages as before, indicating a successful install. If you had nfs installed from my previous article, you can copy the backed-up exports file into the etc directory:
cp /share/hdd/conf/etc.old/exports /etc/
Next time you reboot, nfs should be running. You may have noticed another nfs package when we did the ipkg list. This is a different package that supports version 3 of the nfs protocol. The biggest (no pun intended) feature of this new server I've noticed is the ability to handle files larger than 2 Gigabytes. I don't have a lot of experience with this package other than to verify that it runs. If you want to try it, un-install the first nfs package using the "remove" parameter with ipkg.
If you want to try mt-daapd, it's installed the same way:
ipkg install mt-daapd
Much easier than the install in my previous article! After the install completes, copy your backed up config file into the /etc directory:
cp /share/hdd/conf/etc.old/mt-daapd.conf /etc/
If this is your first mt-daapd install, copy the configuration file from the /opt/etc directory to the /etc directory. As a side note, I've had some reports of privilege problems with mt-daapd regarding access to the MP3 files. If you have this sort of issue, either change the protection on your MP3 tree, or change the "runas" user in the configuration file to a user with privilege to read the music files. Double check the mt-daapd configuration file to make sure that all of your paths are correct, and the next time you reboot, you should once again be iTunes enabled!
Now let's try a new package. Telnet has been handy, but everyone should know by now that it's a security hole waiting to happen. Telnet user names and passwords are sent in clear text across the network. If someone is sniffing your network, you're had. Secure shell (ssh) is a much better solution. For boxes with limited resources like ours, the ssh server of choice is called dropbear. Installing it is as easy as:
ipkg install dropbear
This installation takes a bit longer because it has to generate cryptographic keys, but when it completes, you should be ssh enabled. From my Linux or Macintosh OSX box, I can now log into my NSLU2 like so:
ssh -l root 192.168.1.10
Once you're ssh enabled, you may want to consider removing the telnet setup script from the /unslung directory.