avberk
29-06-2006, 16:58
For gents that want to use the wl500g as a an audio server:
Used hardware:
-WL-500G (NOT de luxe)
-Philips SLA-5520 audio streaming device
-USB stick mounted as /opt with mp3 files located in
/opt/share/mp3
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added april 2, 2007)
Official version now available as well. thus you can install the normal way:
ipkg update
ipkg install ushare
Installing and using ‘uShare’ media server:
(open a telnet or ssh session to the wl-500g)
1) ipkg update
2) ipkg install ushare
3) edit /opt/etc/ushare.conf
# /etc/ushare.conf
# Configuration file for uShare
#
# uShare UPnP Friendly Name
USHARE_NAME=WL-500G
#
# Interface to listen to
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=br0
#
# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=
#
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/opt/share/mp3
4) run /opt/etc/init.d/S99ushare start
The most important settings here is 'USHARE_IFACE=br0'
Any other setting like eth0,eth1 or eth2 did not work for me..
I have no experience (yet) about the performance of 'uShare' . I will share this as soon as i have bought a usb harddisk that will hold my mp3 collection.
More info about uShare can be found here:
http://ushare.geexbox.org/
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added august 24, 2006)
Note 1:
I have connected 80GB laptop harddisk now with all partitions formatted as ext3. Ushare still works fast with 3600 mp3
files organized in A -> Z directories. There is no indexing done. Thus you cannot select on Album, Artist etc.. you can only
select the directories where you have put the mp3's. I have no problem with that...
Note 2:
For some reason Ushare did not want to start anymore after i reinstalled it on the external USB disk.
I had to edit the /opt/etc/init.d/S99ushare file.
After i replaced $DAEMON -D in $DAEMON Ushare finally started ok. (don't ask me why ;-))
see extract of the S99ushare file below:
start() {
if [ -f $PIDFILE ]; then
echo "Warning : $PIDFILE still present. Unclean shutdown ?"
kill -s 9 `cat $PIDFILE` 2>/dev/null
rm -f $PIDFILE 2>/dev/null
fi
echo -n "Starting $DESC... "
$DAEMON
echo "done"
Note 3:
For some other unknown reason it is not possible to stop Ushare with the command ./S99ushare stop.
Not really a problem for me, because i have the music server running all the time anyway...
-----------------------------------------------------------------------------------------------------------------------------------------
Note: (added feb 26, 2007)
Managed to run Ushare as a daemon!!! (stopping the daemon is still a problem. Do a 'killall -9 ushare' instead)
Have a look at following url:
http://www.nslu2-linux.org/wiki/FAQ/Optware-uClibcBuild
Follow below instructions for an already fully installed wl500g:
----------------------------------------------------------------------
Upgrading from old wl500g package feed:
When changing package feed from "wl500g" to "oleg" change /opt/etc/ipkg.conf to the following content:
src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest /opt/ /
then issue
ipkg update
ipkg install -force-overwrite ipkg-opt
This will install uclibc-opt and ipkg-opt.
The following awk one line awk script will reinstall all installed packages:
/usr/bin/awk '/^Package:/{system("/opt/bin/ipkg install -force-reinstall -force-defaults " $2)}' /opt/lib/ipkg/status
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added april 1, 2007)
I cross compiled ushare 0.9.10 for the wl500g since this version uses 75% less memory!!!
(noticable when you have a large mp3 collection)
Install instructions (use at your own risk!!):
1) Download libupnp and ushare from here:
http://www.mediamax.com/avberk/Hosted/ushare
2) copy libupnp and ushare to a directory on your wl500g. e.g. /opt/temp
3) ipkg install /opt/temp/libupnp_1.4.3-1_mipsel.ipk
4) ipkg install /opt/temp/ushare_0.9.10-2_mipsel.ipk
Note: Don't install ushare before libupnp!!!
(ushare will otherwise start downloading an older libupnp version, which likely doesn't work)
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added april 2, 2007)
Now also available the official way. Thus:
ipkg update
ipkg install ushare
Used hardware:
-WL-500G (NOT de luxe)
-Philips SLA-5520 audio streaming device
-USB stick mounted as /opt with mp3 files located in
/opt/share/mp3
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added april 2, 2007)
Official version now available as well. thus you can install the normal way:
ipkg update
ipkg install ushare
Installing and using ‘uShare’ media server:
(open a telnet or ssh session to the wl-500g)
1) ipkg update
2) ipkg install ushare
3) edit /opt/etc/ushare.conf
# /etc/ushare.conf
# Configuration file for uShare
#
# uShare UPnP Friendly Name
USHARE_NAME=WL-500G
#
# Interface to listen to
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=br0
#
# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=
#
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/opt/share/mp3
4) run /opt/etc/init.d/S99ushare start
The most important settings here is 'USHARE_IFACE=br0'
Any other setting like eth0,eth1 or eth2 did not work for me..
I have no experience (yet) about the performance of 'uShare' . I will share this as soon as i have bought a usb harddisk that will hold my mp3 collection.
More info about uShare can be found here:
http://ushare.geexbox.org/
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added august 24, 2006)
Note 1:
I have connected 80GB laptop harddisk now with all partitions formatted as ext3. Ushare still works fast with 3600 mp3
files organized in A -> Z directories. There is no indexing done. Thus you cannot select on Album, Artist etc.. you can only
select the directories where you have put the mp3's. I have no problem with that...
Note 2:
For some reason Ushare did not want to start anymore after i reinstalled it on the external USB disk.
I had to edit the /opt/etc/init.d/S99ushare file.
After i replaced $DAEMON -D in $DAEMON Ushare finally started ok. (don't ask me why ;-))
see extract of the S99ushare file below:
start() {
if [ -f $PIDFILE ]; then
echo "Warning : $PIDFILE still present. Unclean shutdown ?"
kill -s 9 `cat $PIDFILE` 2>/dev/null
rm -f $PIDFILE 2>/dev/null
fi
echo -n "Starting $DESC... "
$DAEMON
echo "done"
Note 3:
For some other unknown reason it is not possible to stop Ushare with the command ./S99ushare stop.
Not really a problem for me, because i have the music server running all the time anyway...
-----------------------------------------------------------------------------------------------------------------------------------------
Note: (added feb 26, 2007)
Managed to run Ushare as a daemon!!! (stopping the daemon is still a problem. Do a 'killall -9 ushare' instead)
Have a look at following url:
http://www.nslu2-linux.org/wiki/FAQ/Optware-uClibcBuild
Follow below instructions for an already fully installed wl500g:
----------------------------------------------------------------------
Upgrading from old wl500g package feed:
When changing package feed from "wl500g" to "oleg" change /opt/etc/ipkg.conf to the following content:
src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest /opt/ /
then issue
ipkg update
ipkg install -force-overwrite ipkg-opt
This will install uclibc-opt and ipkg-opt.
The following awk one line awk script will reinstall all installed packages:
/usr/bin/awk '/^Package:/{system("/opt/bin/ipkg install -force-reinstall -force-defaults " $2)}' /opt/lib/ipkg/status
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added april 1, 2007)
I cross compiled ushare 0.9.10 for the wl500g since this version uses 75% less memory!!!
(noticable when you have a large mp3 collection)
Install instructions (use at your own risk!!):
1) Download libupnp and ushare from here:
http://www.mediamax.com/avberk/Hosted/ushare
2) copy libupnp and ushare to a directory on your wl500g. e.g. /opt/temp
3) ipkg install /opt/temp/libupnp_1.4.3-1_mipsel.ipk
4) ipkg install /opt/temp/ushare_0.9.10-2_mipsel.ipk
Note: Don't install ushare before libupnp!!!
(ushare will otherwise start downloading an older libupnp version, which likely doesn't work)
-----------------------------------------------------------------------------------------------------------------------------------------
Notes: (added april 2, 2007)
Now also available the official way. Thus:
ipkg update
ipkg install ushare