Getting SlimServer and NSLU2 (Unslung) to play nicely
My latest project involved getting a squeezebox up and running. If you haven't seen one, check it out here - www.squeezebox.com. They allow you to stream music across your network, and do so wirelessly. This was for my girlfriend's place. I really like the Squeezebox, but I think if I were to get something similar in my house, I'd get a Roku Soundbridge. No other reason other than the Soundbridge uses mt-daapd/iTunes to stream music, and the Squeezebox uses it's own SlimServer software. The SlimServer is actually quite nice, but doesn't stream to other computers running iTunes, but I digress...
I got my girlfriend a Squeezebox, a NSLU2 and a USB 2.0 500 GB drive. I thought the NSLU2 seemed like a great idea. It could stream the music, be a network drive, be always on with no need for her computer to be on to stream the music. More environmentally friendly and easier to use, a win-win. However, it doesn't quite work as easily as it should.
First and foremost, getting the NSLU2 to run the software requires replacing the Linksys firmware with an open source, Linux-based firmware. It took a little work, but not so bad. Great work by those contributing to the NSLU2 project - www.nslu2-linux.org.
Next step was getting the NSLU2 to boot off the USB drive. Again, this took some work, but I managed to get that up and running.
However, once I got to this point, the time came to setup a network drive on the XP computer (so it could access the music store). This took a little work as the Slug web interface isn't the most straightforward, but that was good.
Next came installing SlimServer on the slug, which was outlined nicely here - http://www.nslu2-linux.org/wiki/Applications/SlimServer. However, I soon found out a problem - the NSLU2 isn't the most powerful application in terms of memory and processing speed. So running the SlimServer software is a bit taxing on the Slug, especially when scanning for new music.
So, to be safe, I decided to install SlimServer on the XP computer as well. That installed fine, but then I came across an issue that was almost impossible to track down. Under SlimServer->Server Settings (Basic Settings):MUSIC FOLDER, I set it to be Z:\, which was the mapped drive on the XP computer. However, SlimServer kept giving me Oops - "X:\" doesn't seem to be a valid directory. Try again. It took forever for me to track this down and figure out what was going on.
Turns out there are two issues with this
- Samba must be guest account enabled.
- SlimServer service must have rights to access network drives.
I am not 100% sure of this, but I believe that the Slimserver doesn't connected via Window's network drive, but rather sets up its own connection. So you cannot enter Z:\ for the music folder, but rather the path to the network drive. In my case it was \\192.168.0.12\music. But, being that you cannot supply any credentials for the login, you must allow guest access via Samba. This meant altering the samba configuration file (smb.conf) as follows
guest account = ehaus
(I added this near the top of the file. It can anywhere in the file as long as it is in the global section, and not the individual shares).
Starting SlimServer with proper rights
Lastly, SlimServer needs permission to access shared drives. If you start SlimServer as a service on windows (this is the default), you must allow it to login as a Windows XP user. To do this, go to Control Panel->Administrative Tools->Services. Look for SlimServer, and either double click or right click and select Properties. Click on the LogOn tab, and select "this account" and enter a username and password for Windows XP account.
Restart SlimServer on the XP machine and samba on the Slug. You should be able to change the SlimServer web Music Folder to \\192.168.0.12\music. It worked for me, your mileage may vary.