Hello Nigel and all,
I have a chumby one and like to mount my nfs-directory. First of all I thought i need to add it to /etc/fstab
(need to make root writeable: mount -no remount,rw /). I added this line, but the directory is not mounted automatically.
192.168.0.xx:/home/chumby/music /mnt/storage/nfsmnt nfs ro,nolock,soft,bg,async,exec 0 0
But this does not mount the file-system automatically, when rebooting. Do you have any suggestion how to do it?
Than I found your program - looks promising.
I stared it, but it does not execute the perl-script on my chumby one.
The USB-Music player parses the perl. It is the same program with other names and it executes the USB. So, I started to have a look in the script.
I have some comments to the perl-scripts:
usbmusic.pl (line 27/28):
This does not do anything - on my chumby one usb is automatically mounted to /mnt/usb, which is a symbolic link to the usb-directory (you also refer to it in line 35):
system("umount /tmp/usb > /psp/cgi-bin/photos.tmp");
system("mount /tmp/usb > /psp/cgi-bin/photos.tmp");
lanmusic.pl (line 37) does return an error - the path is not existing and the kernel module is already loaded:
system("insmod /drivers/$fields[1].ko >> /psp/cgi-bin/lanmusicsh.tmp");
lanmusic.pl (line 38):
system("mount -t $fields[1] //$fields[2]/$fields[3] /psp/cgi-bin/mus/ -o ro,username='$fields[4]',password='$fields[5]' >> /psp/cgi-bin/lanmusicsh.tmp");
This is the wrong syntax for mounting nfs, but works for cifs. It is supposed to look like this (for some reason chumby requires the nolock - otherwise it hangs in the mount forever).
system("mount -t $fields[1] $fields[2]:/$fields[3] /psp/cgi-bin/mus/ -o ro,nolock >> /psp/cgi-bin/lanmusicsh.tmp")
Since the lan script did not work for me - I used the usb:
mkdir /psp/cgi-bin/usb
ln -s /mnt/usb /psp/cgi-bin/usb/usb
ln -s /mnt/storage/nfsmnt /psp/cgi-bin/usb/nfsmnt
and replaced line 23-35 by (I would of course need the full nfs-mount if I would not have it in nfs)
system("mount /mnt/storage/nfsmnt > /psp/cgi-bin/photos.tmp");
Now the music-player works for both (usb and nfsmnt). Thanks Nigel, for the nice program.
I have a question regarding all players on chumby, I have seen so far. Is it difficult to implement fast forward and backward inside an mp3-file? I have not seen any application doing it so far. And this is something I am really missing.
I have to admit that I did not really succeed in making my own action script. Actually I have played a little bit around with the free tools provided for Linux. But they were either not documented or the interfaces have changed that the examples do not compile. But maybe I just have to dig a little bit deeper into it.
remmi