Page 1 of 1

TwonkyMedia on Unbuntu and other Debain based Linux flavors

Posted: Sun May 04, 2008 12:40 pm
by mgillespie
The default installer does not currently work for Ubuntu, Debain and other Debain based flavors of Linux. HornedBeast has however written a guide that shows how to install it.

Notes: I can only assume this will work on Debian and Ubuntu 7.04, 7.10, Server and Desktop editions. Its untested on everything apart from Ubuntu Server 8.04 32bit./b]

If you are running 64bit, you need to install the 32bit library's first. Run tis inside a terminal:

Code: Select all

sudo apt-get install ia32-libs
To download the latest stable version of TwonkyMedia, make sure your in the default directory that you started in after logging in (either via SSH or locally) then type the following command.

Code: Select all

wget http://twonkymedia.com/Download/4.4/twonkymedia-i386-glibc-2.2.5.sh
If you would like to try the latest V5 Beta version of twonky, type this command:

Code: Select all

wget http://twonkyvision.com/Download/5.0/twonkymedia-i386-glibc-2.2.5.sh
This invokes the “Web Get” command which downloads the address after the “wget” bit. This should only take a second.

Now to install the server itself. This is the same for both the Stable release and the Beta release as the file names are the same:

Code: Select all

sudo chmod 777 twonkymedia-i386-glibc-2.2.5.sh
sudo ./twonkymedia-i386-glibc-2.2.5.sh
Ignore any errors about not starting properly or permissions denied – we'll fix this ourselves. This will automatically install the software to '/usr/lib/TwonkyMedia' and attempt to make it start at boot time. However, because TwonkyMedia hasn't been correctly setup to install to Ubuntu or Debian properly we shall have to do some fiddling to fix this.

Code: Select all

cd /etc/init.d/
sudo chmod 755 twonkyserver
sudo nano twonkyserver
Look for this line inside the file:

Code: Select all

echo -n "Starting $TWONKYSRV ... "
$TWONKYSRV -D -inifile "${INIFILE}"
rc_status -v
And replace it with:

Code: Select all

echo -n "Starting $TWONKYSRV ... "
$TWONKYSRV -D -ip 192.168.0.2 -inifile "${INIFILE}"
rc_status -v
Changing the IP according to your server setup. "Ctrl + O" to write the file ("out") back to the drive and "Ctrl - X" to quit 'nano'.

Then you need to run the following command.

Code: Select all

sudo update-rc.d twonkyserver defaults
Now you can restart the server via:

Code: Select all

sudo update-rc.d twonkyserver defaults
And once it has restarted you should be able to visit http://192.168.1.2:9000/ and see your new media server running!