ipkg couldn't install it for whatever reason. But the router has a built-in daapd server. You shouldn't need to install another one.
Okay, first off, I want to thank everyone for the awesome tutorials on how to set up the new firmware. I've never used linux, telnet, or ssh, nor have I ever had experience with any of the commands used here. I was able to get the new firmware installed, configured, and running smoothly with ease. I have a few questions though:
1. It seems like everytime I telnet to the router, I have to do the step containing:
* export PATH=/opt/bin:${PATH}
* export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
Is there anyway around this currently? Is this necessary to install packages or edit settings?
2. I followed the instructions for setting up mt-daapd from: http://www.wl500g.info/showthread.php?t=7742,
During the install I got some errors that I did not write down. I continued with all the steps and it should be working correctly (i believe) however it does not. I tried reinstalling the scrip again and got the following:
When using the -force-overwrite option, I gotCode:# ipkg install mt-daapd Package mt-daapd (0.2.4-1) installed in root is up to date. Configuring mt-daapd syntax error postinst script returned status 255 ERROR: mt-daapd.postinst returned 255 Nothing to be done Successfully terminated.
The page: http://192.168.1.1:3689/ doesnt seem to load, and itunes does not see the server either.Code:# ipkg install mt-daapd -force-overwrite Package mt-daapd (0.2.4-1) installed in root is up to date. Configuring mt-daapd syntax error postinst script returned status 255 ERROR: mt-daapd.postinst returned 255 Nothing to be done Successfully terminated.
I tried manually running the init.d script and nothing seems to work. the command ps also does not show anything to do with mt-daapd.
Here is my rc.local file:
Also, if you have the time, could you quickly go over my rc.local file and make sure it's all implemented correctly? As I said, I'm very new to all of this.Code:pool=`nvram get apps_pool` share=`nvram get apps_share` internal_hdd=/dev/ide/host2/bus0/target0/lun0/disc if [ \! -f /tmp/rc.local.done ]; then # Indicate we've already done this touch /tmp/rc.local.done # # Mount /opt and connect in various system files # if [ -e /shares/${pool}/opt ]; then mount -o bind /shares/${pool}/opt /opt cat /proc/mounts > /opt/etc/fstab ln -s /opt/etc/shells /tmp/shells ln -s /opt/etc/fstab /tmp/fstab export PATH=/opt/bin:/opt/sbin:${PATH} export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH} # Start dropbear ssh server if [ -x /opt/etc/init.d/S51dropbear ]; then /opt/etc/init.d/S51dropbear fi fi # Start utelnetd on local interface only! /bin/utelnetd -i br0 & #Sleep for a little bit to not interfere with normal system startup #before we kill a bunch of Asus processes. sleep 5 #The Killing of watchdog is necessary #to allow the disk to spin down (watchdog is a horribly written hack #anyway!) killall -q -9 watchdog # Start mt-daapd server if [ -x /opt/etc/init.d/S60mt-daapd ];then /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf fi # Restart the web server killall thttpd thttpd -dd /shares/${pool}/${share}/htdocs -p 8081 -i /var/run/thttpd.pid #Do the necessary steps so the internal HDD will spin down mount -o remount,noatime,nodiratime /shares/${pool} hdparm -S 180 ${internal_hdd} smartctl -dT ${internal_hdd} fi
3. Whenever I power off my router (using the power button) and then power it back on, I cannot telnet or ssh into it for a good 3-5 mins. If I try to go to the applications section of the asus web config, it says applications are disabled while it's performing some sort of back up or mirroring or something. Is this normal?
4. Finally, is there a good php package I can install? I really want a php interpreter so I can get a decent web page running.
Thanks for the help!
ipkg couldn't install it for whatever reason. But the router has a built-in daapd server. You shouldn't need to install another one.
ipkg has installed the package, but your postinst script failed. Porbably due to it referencing the wrong shell in the script.
cd to /opt/lib/ipkg/info and look for mt-daapd.postinst
edit this file and if the top line has #!/bin/sh change it to #!/opt/bin/bash
then run the script again "sudo ./mt-daapt.postinst"
After this, follow the tutorial in the howto section of this forum to setup your mt-daapd conf file. Then running the startup script in /opt/etc/init.d should work (you may have to change the shell reference in that script too)
In your rc.local, you may have to put start on the end of the call to /opt/etc/init.d/S51dropbear - most init scripts take start or stop parameters.
You may also need the -9 flag on your thttpd kill command to make sure thttpd is killed.
I am experimenting with php-thttpd to try and get php webserving going. There is an apache and php-apache package but thats quite heavy on the router's resources, so I think php-thttpd is the way to go
Last edited by d3viant; 06-01-2007 at 11:06.
EDIT: I got mt-daapd working by uninstalling it, and then reinstalling it from scratch. The new problem I'm having is getting XBMC to browse through SMB. It worked until I reflashed the router, now it doesn't seem to work... I can browse the SMB shares through windows, but XBMC will not see it. Just keeps saying workgroup not found.
I changed the #!/bin/sh to #!/opt/bin/bash in both the mt-daapd.postinst and the startup script (/opt/etc/init.d/S60mt-daapd) I reran the postinst script and it said:cd to /opt/lib/ipkg/info and look for mt-daapd.postinst
edit this file and if the top line has #!/bin/sh change it to #!/opt/bin/bash
then run the script again "sudo ./mt-daapt.postinst"I then ran the startup script (sudo /opt/etc/init.d/S60mt-daapd) and it took about 10 seconds to start. However, the service is not running (via ps) and itunes still will not recognize anything, and the webpage still won't open anything. Don't know what to do.Code:To complete this installation, make any necessary changes to the config file in /opt/etc/mt-daapd/mt-daapd.conf, and start the daemon by running /opt/etc/init.d/S60mt-daapd
Last edited by PillzburyDoofus; 07-01-2007 at 08:34.
hmm, looking at my rc.local, I don't use the startup script for mt-daapd, I run
/opt/sbin/mt-daapd -yc /opt/etc/mt-daapd/mt-daapd.conf &
as a command directly.
There is probably a reason for that (ie the startup script didn't do what it was supposed to!)
Try running that command directly and see if mt-daapd starts up.
If it does work, you can add that line to rc.local so that mt-daapd starts with the system
Just installed the itunes server and ran into the problems described above.
Note as a relative newbie, the mt-daapd.postinst script called a syntax error.
This was fixed by using the /opt/ at the top of the script.
you'll find this file in /opt/lib/ipkg/info/mt-daapd.postinst
edit with nano / vi, personally I use joe as it automatically creates a backup file before you mess it up.
when you make the changes and run the command you should get
To complete this installation, make any necessary changes
to the config file in /opt/etc/mt-daapd/mt-daapd.conf, and
start the daemon by running /opt/etc/init.d/S60mt-daapd
as your output. the server has now installed correctly.
after making these changes I was still running into a problem where the server wouldn't start. I found that the line below
/opt/sbin/mt-daapd -yc /opt/etc/mt-daapd/mt-daapd.conf &
placed in S60mt-daapd did the trick to make it run.
Note your config file should have a username that you have on file, if you don't have user put your login name into the section of user in the config file and best of luck hope this helps