DNS 325 - Funplug 0.7 : Install Twonkymedia Server 7



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 :

  Roku Soundbridge  
  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/

 From the NAS console, throw these commands to install the package :

# 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

. /ffp/etc/ffp.subr

  route add -net netmask dev egiga0
  cd /ffp/opt/twonky
  mkdir -p /ffp/opt/twonky/data/
  /ffp/opt/twonky/twonkystarter -logfile /dev/null -appdata /ffp/opt/twonky/data/ >/dev/null 2>/dev/null

  killall twonkystarter
  route del -net netmask dev egiga0

run_rc_command "$1"

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 :

  1. /HD/HD_a2/xxxxx for your first disk or RAID setup
  2. /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 :

  1. Library "The Sound of Freedom"
  2. Menu "Browse".

Enjoy !

Signature Technoblog

This article is published "as is", without any warranty that it will work for your specific need.
If you think this article needs some complement, or simply if you think it saved you lots of time & trouble,
just let me know at This email address is being protected from spambots. You need JavaScript enabled to view it.. Cheers !

icon linux icon debian icon apache icon mysql icon php icon piwik icon googleplus