This Tutorial explains how to install TwonkyMedia Server 7, a very efficient uPnP media server, on a DNS-325 NAS.
TwonkyMedia Server is one of the most efficient uPnP network server, able to stream music to some wireless network clients like :
Philips NP2500 or NP2900
It allows to browse easily a huge mp3 database (15k+), thru tags like genre/artist/album and can efficiently replace Firefly media server.
Twonkymedia server main drawback is not to be free and to need an activation key to run. But, on the other end, you will get an unlimited activation key with every Philips network media player you buy. Point to be noted, a Twonkymedia server key will work on any number of servers and on any type of supported OS.
As a pre-requisite, you must have installed Fun_plug 0.7 following DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities.
1. Install TwonkyMediaServer
We will install Twonkymedia Server under /ffp/opt/twonky/ and its data (database, covers, ...) will be stored under /ffp/opt/twonky/data/.
First thing is to check which is the latest available version of Twonkymedia Server from the "NAS and other OS" section of the forum http://www.twonkyforum.com/viewforum.php?f=8.
You need to download version for Kurobox Pro device, which is compatible with the DNS-325.
At the time of this guide, it was version 7.0.8 available from http://www.twonkyforum.com/downloads/7.0.8-Special/
# mkdir -p /ffp/opt/twonky/data/
# cd /ffp/opt/twonky
# wget http://www.twonkyforum.com/downloads/7.0.8-Special/twonky-kurobox-pro-special-7.0.8.zip
# unzip twonky-kurobox-pro-*.zip
# rm Terms* twonky-kurobox-pro-*.zip
# chmod +x twonkyserver twonkystarter plugins/* cgi-bin/*
2. Create Startup Script
We now need to create the starter script /ffp/start/twonky.sh for the server to start at every NAS boot.
# PROVIDE: twonky
# REQUIRE: LOGIN
route add -net 184.108.40.206 netmask 240.0.0.0 dev egiga0
mkdir -p /ffp/opt/twonky/data/
/ffp/opt/twonky/twonkystarter -logfile /dev/null -appdata /ffp/opt/twonky/data/ >/dev/null 2>/dev/null
route del -net 220.127.116.11 netmask 240.0.0.0 dev egiga0
3. TwonkyMedia Configuration
We also need to provide the default configuration file /ffp/opt/twonky/twonkyserver-default.ini for the Twonkymedia server
# for Linux/NAS systems this is the basedirectory used for content sharing (prepended to all shares)
# CSV list of all shares, prepended by the type (A,M,P,V) and a '+' or '-' sign to flag enabled or disabled shares
# directory for cached/transcoded files
# Visible name in the network
friendlyname=Sound of Freedom
# access to web config pages, 0 for denied, 1 for local only, 2 for open
# -1 for evented, 0 for disabled, positive value for rescan time in minutes
# on base URL start media browser and not config pages
# menus which are supressed on web config pages
# directory where metadata database is stored
4. First Server Launch
Once everything is setup, we can try to start the server daemon :
# sh /ffp/start/twonky.sh start
You should now be able to connect to the Twonkymedia server web interface on port 9000 of your NAS : http://your.nas.ip.address:9000/config
From this interface, first things to do is to enter the registration key.
Then from menu "Settings / Sharing", you have to set the path to you music files :
- /HD/HD_a2/xxxxx for your first disk or RAID setup
- /HD/HD_b2/xxxxx for your second disk
If everything is running fine, you should see your music database being scanned under Settings / Status / Detailed status.
As everything is running fine, you just need to allow the server to start at every NAS boot :
# chmod +x /ffp/start/twonky.sh
5. Listen on Roku client
From your Roku Soundbridge, you can now browse your complete music database by selecting :
- Library "The Sound of Freedom"
- Menu "Browse".
- DNS 320 & 325 - Extend your NAS possibilities with Funplug 0.7
- DNS 325 - Funplug 0.7 : Install Transmission p2p client
- DNS 325 - Funplug 0.7 : Install Twonkymedia Server 7
- DNS 323 & 325 - Funplug : Send mail from shell scripts using your Gmail account
- DNS 325 - Funplug 0.7 : Move Fun plug to a USB key
- DNS 320 & 325 - Funplug 0.7 : Install Compilation Environment
- DNS 325 - Funplug 0.7 : Compile x264, lame, shine, fdk-aac, twolame, ffmpeg and sox
- DNS-325 - Funplug 0.7 : Subsonic server with realtime MP3 and AAC transcoding
- DNS 325 - Funplug 0.7 : SSLH ... share port 443 for Https, Ssh, OpenVPN and Tinc
- DNS 325 - Funplug 0.7 : Administrate your NAS with Ajaxterm
- DNS 325 - Funplug 0.7 : Supervise your NAS thru SNMP
- DNS 325 - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with SNMP
- DNS 320, 323 & 325 - Funplug 0.7 : Install a Munin node with Muninlite
- DNS 325 - Funplug 0.7 : Setup your NAS as a Permanent BTSync Peer
- DNS 320L - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with Munin