Twonky

From WL-HDD Wiki

Jump to: navigation, search
WL-HDD Contents
What is the WL-HDD
Features
Pro's/con's
Reviews
Hacking
Inserting the HDD
Hacking Guides
Basic setup guides
Packages guides
Requests
Troubleshooting
This Wiki
Credits
Editing help
Contact Me

Contents

Prerequisites

To complete this guide, the following is assumed:

You are running Oleg's firmware (1.9.2.7-6b or later)
You have harddisk partitions up and running with an extended filesystem mounted to /opt
You have installed the Ipkg package system.
You have configured your partitions to automount.

You have setup and successfully run Samba on your LAN (using the guest account) and you have some shares already setup in smb.conf.

Twonky server

This guide should help you set up a fully functional twonky music server on your Asus WL-HDD. Once you have ensured you have completed all the prerequisites, please follow the instructions below. If you have any trouble, you may also want to check out BandiTT's guide on the matter here. Thanks to BanditTT for the original guide upon which this is based.

Samba

As mentioned in the prerequisites, to allow installation of Twonky to your WL-HDD you need Samba up and running successfully. That means that you are able to go access your WL-HDD from a windows explorer window on your PC and drag and drop files to and from it. To open a windows explorer window, you need to go to: Start --> Run --> \\192.168.1.* and it should pop up. If you can view the drive but are unable to make changes, you may need to give permissions.

Assuming that you have set up samba as in the Samba guide, you will need to do the following:

chmod o+rw /opt/shared/share1
chmod o+rw /opt/shared/share2

Now try again and everything should go smoothly.

Add your MP3's

Now, drag all the MP3's you want from your Windows PC to the share1 folder on your WL-HDD via the windows explorer window.

Getting things Ready

Now download the WL-HDD version of the Twonky software. A functional evaluation copy can be downloaded here. Unzip the zip file. Now we need to edit one of the files within this unzipped folder. With notepad, editpad, textpad or another text editor (not word or wordpad!), open the file named twonkymedia-default.ini.

Edit

contentbase=/tmp/harddisk

to

contentbase=/opt/share

Now save the file and close it.

Installing Twonky

Now that our WL-HDD is ready, we need to install Twonky via the network. In the unzipped folder, there is a file called NASSetup.exe , lets run that. You need to enter in the IP address of your WL-HDD on your LAN (most likely 192.168.1.*) and the username and password used to log on. Press continue and everything should be installed to the /opt/shared/shared1 folder on your WL-HDD. The Twonky server should come online automatically and all streaming clients should find the server. You can start to listen to your music now, I'll leave the rest to you guys :)

A bit of Automation

Of course, you'll want your Twonky server to start every time you turn your computer on. First lets create the initiation script. Paste in the following:

cat << EOF > /opt/etc/init.d/S99mediaserver
#!/bin/sh
/opt/twonkyvision/twonkymedia &
EOF
chmod +x /opt/etc/init.d/S99mediaserver

Now just reboot the router, to check to see if the server is running, when in a putty telnet or SSH session, type

ps

All running processes will be printed on screen.

Personal tools