Page 1 of 2
Install Twonky on Synology Nas Drive
Posted: Mon Mar 14, 2011 9:59 pm
by mark8par
Hi, i am wanting to possibly install Twonky on my Synology DS211J Nas drive to work with my Samsung UE55C7000 TV but dont know where to begin.
I have 2 questions.
Is Twonky any good, ie user interface etc and how do i install it on my Nas drive - Simple easy to follow instructions required for me please
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 8:44 am
by TheOmen
Check out
http://www.twonkyforum.com/downloads/6.0.31-RC6/. This lists all Twonky versions for NAS, including Synology.
Because of the different types of processors used by Synology in their products, you first need to find out which one is used in your DS221j and select the Twonky-build accordingly.
The installation is pretty strait forward, using the nas-installer in the package.
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 2:25 pm
by mark8par
Sorry if this sounds a bit stupid but i have followed the link and downloaded the file for Kirkwood processor as that is the one my Nas has but it wont open. I am running a Pc with win 7 64 and i know its a sh file but i am not sure where to go from here, if you can get me started i would very much appreciate it.
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 2:47 pm
by TheOmen
Extract the downloaded zipfile to your pc, then run nassetup.exe.
Click on Accept, then enter your NAS ip (something like 192.168.1.xxx), user (root) and password, press continue.
The installation should start copying files and finally start the twonkyserver on your Nas.
Update: just noticed the kirkwood zipfile doesn't contain the nassetup.exe..... try the method below:
If for some reason this doesn't work, you can always copy the contents of the zip-file to your NAS and then start the server.
Hope this helps.
Jeroen
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 3:07 pm
by mark8par
There is no nas setup file, could there be a problem with me running windows on the PC and linux is on the nas?
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 3:11 pm
by TheOmen
See my earlier reply, I made an update.
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 3:32 pm
by mark8par
ok nearly there, how do i start the server? i cant find anything that would start the server.
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 4:06 pm
by TheOmen
Short answer:
Read the file Linux-HowTo.txt inside the zipfile.
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 5:24 pm
by mark8par
I have read the Linux page you mentioned but still cant start it up. Where do i goto to startup the Media Server, i have Putty installed and can access the root/directories of the drive but it wont run. Am i going about this the long way and is there an easy way to execute it.
Sorry to be a pain and i know its probably staring me in the face
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 10:43 pm
by mark8par
Been trying for a while now and this is the error i am getting
"Resolving
www.twonkymedia-1386-glibc-2.2.5-6.0.32.zip... failed name or service not known.
"wget: unable to resolve host address '
www.twonkymedia-1386-glibc-2.2.5-6.0.32.zip"
I cant seem to understand this a i thought that as long as i pont the wget command in the right direction it shoud download, i am wondering if this is an issue with DSM 3.1 update that has just been released for the Synology Nas Drive
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 10:54 pm
by phibertron
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 11:08 pm
by mark8par
yeh cheers, just need to get it to started. I am trying to follow the instructions from here but somethings not right
http://forum.synology.com/enu/viewtopic ... ky#p134324
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 11:17 pm
by phibertron
I'd love to help, but would probably make things worse
As I dont have one of those, nor have had the pleasure of doing a hand instal on one
Hopefully someone here who has one can lend some assistance
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 11:18 pm
by mark8par
Sorry - on the right track but thats for a different processor mine is the Kirkwood but i am not sure of the full path, all i have is below
downloads/6.0/twonkymedia-kirkwood-6.0.zip
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 11:28 pm
by phibertron
Re: Install Twonky on Synology Nas Drive
Posted: Tue Mar 15, 2011 11:29 pm
by mark8par
Thankyou very much, as you can tell i am no expert.
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 12:00 am
by mark8par
When i try to download with "wget
http://www.twonkyforum.com/downloads/6. ... 6.0.32.zip it come up with error 404 not found but it does initially connect.
any ideas
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 12:15 am
by phibertron
If you could download it manually on a computer
and then upload it to the nas
you should be able to get it from there
But what commands are needed is beyond me though
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 12:24 am
by phibertron
I just found out why its not working
The link is broken, its not you!
someone made note of it here being broken
http://www.twonkyforum.com/viewtopic.ph ... 427#p34821
Here is the one for 6.0.31-RC6 if interested
http://www.twonkyforum.com/downloads/6. ... 31-RC6.zip
You can usually find the liks from here
http://www.twonkyforum.com/viewtopic.php?f=24&t=7653
and then you can sometimes manipulate the url for ex:
for ones that are listed there for whatever reason, but not all of them
http://www.twonkyforum.com/downloads/6.0.23/
http://www.twonkyforum.com/downloads/6. ... 6.0.23.zip
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 12:33 am
by mark8par
Thanks for that finally got it running now, the only problem is that it keeps going offline or the link keeps breaking and i keep having to open the putty and restart again. Hopefully someone will come to the rescue.
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 12:47 am
by phibertron
Sweet, at least we have some progress
Think of it as practice for when they fix the broken link to 6.0.32
You can do it all over again LOL
But it should hopefully be easier then, that is once we get the kinks worked out
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 1:01 am
by mark8par
Well its gone pearshaped again,
I followed the instrutions and the following seems to have stopped me logging into the Twonky page
http://192.168.1.105:9000/rpc/set_optio ... IP.address
i dont know what i have done
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 1:23 am
by phibertron
If your ip is still 192.168.1.105
Can you get to
http://192.168.1.105:9000
If not then that command litterally told twonky to be "synologyIP.address"
you should have replaced the "synologyIP.address" with the actual ip of the nas
which I hope is static
http://192.168.1.105:9000/rpc/set_optio ... .168.1.105
because if its not and you tell twonky its 192.168.1.105
when the ip of the nas changes youll not be able to once again get to twonky
Im pretty sure that you should not have to change this, but then again...
If you still cant get in
then that directory where you installed it
somewhere in there is a file called twonkymedia-server,ini (not the one that says default in the name)
youll have to edit that file and change this line
# IP address to listen to (default: all networks)
ip=
and remove the "synologyIP.address" if its there
and either leave it blank
or use 192.168.1.105
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 1:54 am
by phibertron
Once you do get things up and running
this may be of interest, as they mention the loopback (127.0.0.1)
on the synology forums
You can achieve the same thing by doing this
# disable SSDP on localhost
disablelocalssdp=1
or
http://192.168.1.105:9000/rpc/set_optio ... ocalssdp=1
This would make it so you wouldnt have to deal with assigning a static ip like we have been talking about
and the loopback issues they talk about
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 2:00 am
by mark8par
Well this is good practice for me as i am going to start again, its a bit late but i want to get it done.
So once i am up a running if i enter this (as long as its my ip)
"
http://192.168.1.105:9000/rpc/set_optio ... ocalssdp=1" then it should work?
Do you know anything about having to restart each time?
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 2:07 am
by phibertron
That should work, keep changes to a minimum at first
Im pretty sure you'll have to restart for most changes to take effect but thats easy too
with this command
http://192.168.1.105:9000/rpc/restart
If you want the full list or known rpc commands, check this out
http://www.twonkyforum.com/viewtopic.php?f=2&t=9364
My take on RPC commands is that they are great for quick and dirty tasks
or for being leveraged from a script
but the gui is great for most things
and sometimes a little safer
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 2:12 am
by mark8par
With these two options
This first one do i enter it when i go into Putty and is it a better option incase my ip changes because it does sometimes?
# disable SSDP on localhost
disablelocalssdp=1
or
http://192.168.1.105:9000/rpc/set_optio ... ocalssdp=1
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 2:23 am
by phibertron
they do the same thing, just two ways of doing the same thing
but if you dont know you ip at the time your in there
then edit the ini
the ip part we dont want to do is the thing from earlier
where ip=
we want it to equal nothing, wich is auto
and the deafult
so there is nothing to do in that regard
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 2:39 am
by mark8par
Thanks - not sure what you mean though, are you saying not to bother with the IP thing at all and just leave it (not even put the command you suggested).
Not sure if you can help me with this small problem that i have now but every time i log out of putty where i have been doing the config Twonky stops and i need to go back in and enter "/usr/local/twonkymedia/twonkymedia start"
its hard work is this.
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 2:58 am
by phibertron
What Im saying is if you follow the instructions here
http://forum.synology.com/enu/viewtopic ... ky#p134324
DONT do the
http://synologyip.address:9000/rpc/set_ ... IP.address
do this instead
http://192.168.1.105:9000/rpc/set_optio ... ocalssdp=1
the last entry in that post are the instructions do make note of how to deal with that
this will allow twonky to start when the device is started
so afer you do the following, "you probably have to reboot the nas", is my gues
Log into a session as root:
Enter the following, this will create a script in the startup directory - this is to start twonky when your Synology boots up:
echo "/usr/local/twonkymedia/twonkymedia start" > /usr/syno/etc/rc.d/S99twonky.sh
Enter the following to give the file execute attributes:
chmod 700 /usr/syno/etc/rc.d/S99twonky.sh
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 3:06 am
by phibertron
The reason it might stop running is that your not logged in as root
Once you log out of the user you are logged in as all your sessions will end
Which is why they have you create the script under root
so that when the root user logs in upon boot time
it will run that script to start twonky
there may be a way to execute that script in such a way the it runs as root
while your logged in as another user
so that when you log out, it stays running
but I dont know that command , sorry
have you tried rebooting yet, to see if it starts?
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 3:10 am
by mark8par
By George i think he's got it. Thankyou Thankyou
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 3:16 am
by phibertron
We have a winner
Bob tell him what he's won
So I take it you up and running
Nice work man, you did it
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 3:23 am
by mark8par
Yeh up and running and wifes gonna kill me for doing it so late. Bed me thinks, oh and what have i won?
Re: Install Twonky on Synology Nas Drive
Posted: Wed Mar 16, 2011 3:27 am
by phibertron
The right to call yourself a true computer geek

(Meant in the best way, as a compliment)
P.S.
I hate this 30+ second timeout limit between postings
Re: Install Twonky on Synology Nas Drive
Posted: Thu Mar 17, 2011 2:39 pm
by phibertron
Re: Install Twonky on Synology Nas Drive
Posted: Thu Mar 24, 2011 7:41 pm
by Dany250
Hello,
I brought the Twonky 6.0.32 to work on my DS211j.
Thank you for your great tutorial!
Now I have a big problem after all. I own a Philips TV (PFL8654), it detects the server, but it displays me no files. My PC recognizes Twonky and plays me all shared files

.
I don't know how to continue. I've tried everything and the whole day working on it.
Can you help me?
Sorry for my bad english, I am from Germany

.
Regards Dany
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 1:14 am
by Dany250
Hello,
now I have a new problem, I have accidentally enter this setting (
http://127.0.0.1:9000/rpc/set_option?ip=127.0.0.1) and now I do not get the Twonky server? Previously, it always worked with this setting (
http://192.168.2.111:9000).
What did I do that? Now nothing works

.
Can I fix it again? Please help me...
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 10:55 am
by Dany250
Nobody any idea?

Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 11:00 am
by TheOmen
Edit twonkymedia-server.ini via PuTTY
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 11:37 am
by Dany250
Thank you for your reply, I am so glad for help.
The problem is, I do not find this file. And the next is that I do not know how to change them?
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 11:49 am
by TheOmen
I'm guessing that
http://127.0.0.1:9000/rpc/set_option?ip=127.0.0.1 changes a setting in the config files of Twonky.
If I look at
twonkymedia-config.html, I can see two entries for an IP-adress. Try changing these to the correct IP-adress and see if this solves your problem.
Use DSM file browser to go to the directory where you initially installed Twonky (public/twonkyvision?) and edit the file (Download - edit -upload).
No guarantee, but you might give it a try.....
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 12:17 pm
by Dany250
So I now have a "twonkymedia-server-default.ini" found in this but there are no "IP-Adress" to be seen.
I've looked everywhere now and could not find a "twonkymedia-config.html".
Where could this file? In the installation folder, it is not.
Excuse me, but I am very inexperienced with Linux, I've started yesterday to work with it.
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 1:32 pm
by TheOmen
I was mistaken in my earlier post.
See my latest post where I'm referring to twonkymedia-config.html
Still, I'm not 100% sure it'll help, but it's worth a try.
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 2:42 pm
by phibertron
Dany250 wrote:So I now have a "twonkymedia-server-default.ini" found in this but there are no "IP-Adress" to be seen.
I've looked everywhere now and could not find a "twonkymedia-config.html".
Where could this file? In the installation folder, it is not.
Excuse me, but I am very inexperienced with Linux, I've started yesterday to work with it.
the file you need to look for is the
"twonkymedia-server.ini"
the twonkymedia-server-default.ini is used by twonky during install and is the base file
that it also uses to create the twonkymedia-server.ini
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 5:06 pm
by Dany250
Hello phibertron!
Thank you for your answer! I have found both files and now they have both been changed (they were /var/twonkymedia/twonkymedia).
But now I have the problem that Twonky can not boot. There is always the error: Permission denied.
Is there a way to completely delete Twonky, so I can reinstall everything again?
Best regards
Dany
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 5:30 pm
by phibertron
Sorry, but that is where my experience with the nas devices ends
As I dont own one, I havent had much time to play with them
Hopefully someone here in the forums, and or Twonky, can help get this up and running
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 5:34 pm
by phibertron
But If I had to guess
I would guess that you might not be logged into the nas device as ROOT
just a guess though

Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 6:13 pm
by Dany250
I can not believe it!
I copied all files and re-done the entire installation process again. Annnnnnd it goes again.
Now I'm just arrived again at the problem that I can not see any media files. I see the Twonkyserver, but no files, although they are in the web interface and are recognized by Windows.
I do not know what is going wrong there, I just do not understand.
Is there anyone out who has a presumption?
I am grateful for each help.
Re: Install Twonky on Synology Nas Drive
Posted: Fri Mar 25, 2011 7:12 pm
by phibertron
Try this
replace <serverip> with the actual ip address of you nas
DO NOT use the 127 address
[url]http://<serverip>:9000/rpc/set_option?ip=<serverip>[/url]