PillzburyDoofus
06-01-2007, 04:36
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:
# 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.
When using the -force-overwrite option, I got
# 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.
The page: http://192.168.1.1:3689/ doesnt seem to load, and itunes does not see the server either.
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:
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
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.
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!
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:
# 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.
When using the -force-overwrite option, I got
# 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.
The page: http://192.168.1.1:3689/ doesnt seem to load, and itunes does not see the server either.
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:
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
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.
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!