Notes: I can only assume this will work on Debian and Ubuntu 7.04+, Server and Desktop editions. Its untested on everything apart from Ubuntu Server 8.10 32bit. This guide also assumes a tiny understanding of networking and IP addresses.
Firstly, if you are running 64bit, you need to install the 32bit library's first. Run this inside a terminal:
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://www.twonkyforum.com/unsupported/5.0.65/twonkymedia-i386-glibc-2.2.5-full-5.0.65.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-full-5.0.65.sh
sudo ./twonkymedia-i386-glibc-2.2.5-full-5.0.65.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 ourselves. Its ok though, its pretty simple!
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
rc_status -v
And replace it with:
Code: Select all
echo -n "Starting $TWONKYSRV ... "
$TWONKYSRV -D -ip 192.168.1.2
rc_status -v
Changing the IP according to your server setup (this can be found by typing "
ifconfig" into a terminal). "Ctrl + O" to write the file ("out") back to the drive and "Ctrl - X" to quit 'nano'. A static IP will be required for this to work however. Some people have had luck without doing the above step, but this ensures it will bind with the correct IP.
Then you need to run the following command.
Code: Select all
sudo update-rc.d twonkyserver start 45 2 3 4 5 . stop 55 0 1 6 .
This makes the server start itself upon boot of the machine. You don't even need to login for this to start, it will do it as the machine loads.
Now you can restart the server via:
And once it has restarted you should be able to visit
http://192.168.1.2:9000/ and see your new media server running!
If the server hasn't started automatically on boot, you can manually invoke it by typing this:
Code: Select all
sudo /etc/init.d/twonkyserver start
You should then be able to visit the address above to administer your server.
You should be able to set a user name and password for this page too, to stop any prying eyes. However, I hear 5.0.46 doesn't have this option. To do this manually, see this thread here: http://www.twonkyforum.com/viewtopic.php?f=6&t=6041
Let me know if this works OK for anyone!