![]() |
Twonkymedia server 5.0.65 for SlugOS/BE 4.8Searching for a uPNP media server that is compatible with a wide variety of clients (e.g. Microsoft WMP11? & WMP12?, Philips NP1100?) soon leads to Twonkymedia Server. Although Twonkymedia stopped supporting DIY installations of Twonkymedia Server on NAS devices like NSLU2, they still provide the necessary binary to install and run it. This page will provide for a step-by step installation manual to run Twonkymedia Server in SlugOS/BE 4.8 At the end of the page a section with problems encountered when trying to install Twonkymedia Server on SlugOS/BE 5.3. A workaround to run Twonkymedia server on this version of SlugOS-BE is still needed. PrerequisitesIf not done already, create a user group in SlugOS that has read access to the directory tree containing the media files you would like to serve through Twonkymedia Server (the group name is called 'media' in this example)
Check whether glibc-dbg is installed, and install it if not present
Download the preferred version of Twonkymedia Server from http://www.twonkyforum.com(approve sites) in the 'Beta/Unsupported Builds' forum (In this example it's Twonkymedia server v5.0.65). Make sure you download the binary for the "Linux ARM big endian glibc" architecture.
Set the executable bit on some files in the Twonkymedia server directory
Modify twonkymedia.sh scriptEdit the twonkymedia.sh file to make some necessary adaptations including for BusyBox? commands in SlugOS 4.8 change the following variables at the start of the script
add the following lines in the start section directly after the "$TWONKYSRV" -D line
replace all occurrences of the -s TERM and -s HUP signal parameters for kill and killall with -SIGTERM and -SIGHUP respectively. e.g.
replace the line starting with 'running' in the status section with
and finally, in the same section replace the echo "TwonkyMedia? server IS running." with
Test the installationStart TwonkyMedia? Server
Check whether TwonkyMedia? Server is running properly (the ps command should produce a list which includes 'twonkymedia -D' and 'twonkymediaserver -D', the netstat command should show a line showing the Slug's IP address:9000 and LISTEN)
Configure TwonkyMedia? Server by opening a browser on the same subnet as your Slug and to the address: http://IP_of_slug:9000/config(approve sites) Now that twonkymedia server is properly configured, it's time to add an init.d script to automatically start/stop/restart the Twonkymedia server daemon First, the 'sudo' package is needed to run twonkymedia server as user twonky. Root access is now needed again
Create a file called twonkymediaserver in /etc/init.d containing
Set the executable bits on this init.d file
Test the script's functioning by issueing the following command which should provide the server's PID (check with 'ps' !)
If all is working properly (if not, edit twonkymedia.sh and modify the running= parameters to properly obtain Twonky's PID), add the init.d script to automatic startup/shutdown
TwonkyMedia? Server on SlugOS/BE 5.3 issuesTwonkyMedia? Server will at the time of writing not run on SlugOS/BE 5.3. This is because SlugOS/BE 5.3 comes with EABI compiled libraries, while TwonkyMedia? Server is compiled for OABI. Similar issues exist with a program called CCcam? and in other distibutions with the EABI compilation target like an ARM version of Debian Lenny. Theoretic workarounds include:
Not yet implemented in this HowTo
|