2nd April 2006 at 12:26 am #216
Hi, first post here, please go easy on me!
I’ve spent the last week or so reading up on this before my NSLU2 arrived this morning. I put the latest uNSLUng 5.5 beta firmware on without any trouble, and eventually figured out how to install the latest mt-daapd nightly (svn_909-1). So all looks good so far. I have started mt-daapd and I can bring up the admin web page on port 3689, and both iTunes on my PC and my Roku Soundbridge can see “NSLU2” which is what I named the slug. The problem is that neither iTunes or the SoundBridge can see any music in the library (I have only put one album in there for now).
I have the music stored in disk1/public/mp3, and I have run chmod o+r -R /shared/hdd/data/public/mp3 (which returns “No such file or directory”).
Looking at the config page on the admin web page (port 3689) all the boxes are filled with things like @[email protected] & @[email protected] etc… I have no idea whether I should change this or what to change it to!
Also, my Unix knowledge is non-existant, so when I am told to “edit the mt-daapd.conf” file, I have no idea how to do that (I’m Windows born and bred :rolleyes: )
A pointer in the right direction would be really appreciated. When it’s working, I will of course be making a donation.
Thanks in advance
Dave.B2nd April 2006 at 10:57 am #4148
Ah. The config page is currently broken (and top of the “to fix” list).
The directory “/shared/hdd/data/public” corresponds to the share called “disk 1”.
If you make a directory directly under “disk 1” called “mp3”, *that’s* the directory it wants to share out of. So make that directory, copy some mp3 files in it, and go to the web admin. Hit the link on the status page to scan the directory, and then connect with iTunes or soundbridge, and you should be good.
Yell if this doesn’t get you anywhere.
— Ron2nd April 2006 at 4:28 pm #4149
Thank you for your reply. It seems to be working properly now! I knew it couldn’t be a big problem.
Dave2nd April 2006 at 10:54 pm #4150
Right, me again.
I copied 40GB of music from my PC to my external HDD this morning. Out of 5043 mixed MP3/WMA files, mt-daapd only sees the 1399 MP3 files.
I’ve already found info on this site about enabling WMA playback (my Soundbridge will play it, so mt-daapd just has to serve it up). The info I found here says to just add the WMA extension to the extensions part of the config file. How do I do that if the config page is currently broken? Is there a way to edit the config file directly? Or should I wait for the next nightly with a fixed config page?
Converting 3644 WMA files to MP3 isn’t the end of the world, but there must be a less tedious way!
Dave3rd April 2006 at 4:58 am #4151
Oof. Okay… editing the config file. Probably the hardest part is getting an editor that you can use. crazy unix people use vi or emacs (emacs, really, because vi sucks. lol). An easier editor to use (one with a visible on-screen help system, for example) might be nano.
So first install nano with:
ipkg install nano
Once you have that, then do “nano /opt/etc/mt-daapd/mt-daapd.conf”. You’ll be editing the configuration file. Use the cursor keys to find the line about “Extensions”, and add “.wma” to the end of it.
Save it (using whatever the key commands are… ctrl-o, it looks like), then exit and restart mt-daapd. Probably best to stop it gracefully though the web interface, then do “/opt/etc/init.d/S60mt-daapd” to restart it.
That should do it.
Post edited by: rpedde, at: 2006/04/02 21:593rd April 2006 at 11:54 pm #4152
I appreciate your help, and I’m trying not to sound helpless, but something didn’t work.
I installed nano correctly, but for some reason I can’t find the conf file, this is exactly what my Telnet session says now:
NSLU2 login: root
No directory, logging in with HOME=/
BusyBox v0.60.4 (2004.07.01-03:05+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
# nano /opt/etc/mt-daapd/mt-daapd.conf
nano: No such file or directory
I’ve tried a few different combinations of things, but I can’t figure out how to do a DOS style directory listing, so I can’t find the correct path to the mt-daapd.conf file.
Hopefully this is just one small, final hurdle before it’s up and running. I’m certainly impressed with the way it handles the mp3s so far.
Dave4th April 2006 at 9:12 am #4153
Check to see if there *is* an /opt/etc/mt-daapd directory… might look something like this:
[email protected]:~$ cd /opt/etc
[email protected]:/opt/etc$ ls
init.d mt-daapd openssh rsyncd.conf sudoers wgetrc
libao.conf ntp profile rsyncd.secrets termcap
[email protected]:/opt/etc$ cd mt-daapd
[email protected]:/opt/etc/mt-daapd$ ls
[email protected]:/opt/etc/mt-daapd$ nano mt-daapd.conf
so “cd” is change directory, just like dos. “ls” is dir, with “ls -l” even more like dir — shows file length, etc.
There really ought to be an /opt/etc/mt-daapd, and it ought to have a mt-daapd.conf in it.
You could always fall back to something like:
find / -name "mt-daapd.conf"
which will search the whole file system for the conf file.5th April 2006 at 12:49 am #4154
Hmmm… strange things going on here. I can find the mt-daapd.conf file:
# cd /opt/etc/mt-daapd
# ls -l
-rw-r--r-- 1 guest root 8075 Apr 1 00:21 mt-daapd.conf
but when I try to edit it:
# nano mt-daapd.conf
nano: No such file or directory
*Code snippets are cut & paste direct from Telnet session.
Thanks for your explanation of directory commands Ron – I don’t feel so “blind” anymore! But why can’t I edit the .conf file?
Post edited by: Dave.B, at: 2006/04/04 17:495th April 2006 at 7:27 am #4155
It’s not the *config* file that’s missing, it’s nano!
Did you have an error when you installed nano? Did you install it as root? As a worst-case, you can copy the config file to /data/share/hdd/public (DISK 1), and edit it on the windows side, then copy it back to /opt/etc/mt-daapd/mt-daapd.conf.
I’d still go the nano route, though, as you’ll eventually want to be able to edit files. A linux box you can’t edit files on is not the true linux box.
p.s. if I’m at my computer, you can find me on AIM as “rpedde68” — prolly faster that way.
— Ron6th April 2006 at 12:04 am #4156
Thanks for all the help Ron, it’s working!
I went for the quick and dirty, edit the file in Windows approach, just to get it up and running. I’ll figure out why nano doesn’t work later. I did install it as root, and didn’t get any errors. If I do “ipkg install nano” again, it says “Nothing to be done”. Strange.
Oh well, I’m happy again, and I can get on with ripping CDs… 350 down, 800 to go 😛
Dave6th April 2006 at 10:17 am #4157
— Ron18th April 2006 at 12:56 am #4158
I read this thread with interest, as I have exactly the same problem trying to edit the mt-daapd.playlist file. Being very new to Linux I am learning fast!
I too have installed nano in the root, with no errors coming up and “Nothing to be done” appearing if I try to reinstall.
I too can list the directory containing the .plylist and .conf files and cat them to read them.
Unfortunately, I too get the “nano: No such file or directory” when trying to edit with nano.
Dave.B, did you get to the bottom of this and find out what the problem was??
Post edited by: john.v, at: 2006/04/17 18:0218th April 2006 at 6:17 am #4159
Might be a library path thing. I set up LD_LIBRARY_PATH in my .bashrc
and see it that works.
— Ron18th April 2006 at 6:57 am #4160
Many thanks forthe reply! When I tried this from the root, I got:
# ld_libray_path=/opt/lib nano
nano: No such file or directory
… which is the problem I got before with nano not being able to be used.
On another track (perhaps related?) when I try to edit the file from within Windows, I can open the file, but not save it back again. I get a refused permission type message. Do I have to go through changing permissions for files like .playlist and .conf that I may want to edit?18th April 2006 at 9:11 am #4161
The windows thing is permissions related.. when you copy stuff around as root, it does so with restricted permissions, so you don’t accidentally move something around and make it writable by everyday users. That’s a FEATURE, not a BUG. 🙂
wrt to the nano thing, try it with LD_LIBRARY_PATH capitalized.
I think the deal is that it can’t find a library it wants. Thats all I can think.
[email protected]:~$ export LD_LIBRARY_PATH=/opt/lib
[email protected]:~$ nano
You must be logged in to reply to this topic.