Page 1 of 1
How to Install TwonkyServer on DLink 320 (solution-provided)
Posted: Mon Apr 02, 2012 8:36 pm
by Seany
Has anyone gone form 6.0.xx to 7.0.x? If so how to you go about it I cant get twonky to work, im using the guide
http://nas-tweaks.net/247/update-of-two ... d-dns-343/ as a reference, obviously changing the names for the updated version.
Re: Dlink 320
Posted: Mon Apr 02, 2012 11:35 pm
by parnott
Did you change the name of the program to start in the twonky.sh file?
In Twonky 7 the startup program is now called twonkystarter.
Also suggest reading the Linux-HowTo.txt file.
Re: Dlink 320
Posted: Wed Apr 04, 2012 1:47 pm
by Seany
Tried that, also read the .txt which to be honest I useless Im unbelievably confused
So can I get you to answer these for me.
1.) The guide I posted above can I use its twonky.sh which is placed in my ("/mnt/HD/HD_a2/ffp/start") folder or do I use the new one.
2.) What do I do with twonkystarter do I leave it in in twonkys folder or do I move it around. My folder location is("/mnt/HD/HD_a2/ffp/opt/twonky").
3.) I tired changing the directory in the twonky.sh file,
WORKDIR1="/ffp/opt/twonky/"
WORKDIR2="`dirname $0`"
PIDFILE=/ffp/opt/twonky/mediaserver.pid
am I anyway right?
I have also the output form trying to run the .sh
http://pastebin.com/JctTt5H8
Re: Dlink 320
Posted: Wed Apr 04, 2012 10:50 pm
by parnott
You probably need to adapt the original script for Twonky 7.x. A lot of the errors in your output log indicate that your NAS does not support some mainline Linux options (common on NAS) and certain common directories are not where they normally should be (also common for NAS).
The the program that used to start Twonky was called twonkymedia. It is now called twonkystarter.
Of course if you want the new WebDAV and proxy stuff you will have to adapt the original script to start these processes as well.
Re: Dlink 320
Posted: Wed Apr 04, 2012 11:07 pm
by Seany
Right so were going to use the original start script form 6.0.38. So what do I need to do exactly? Running the script does nothing I assume its because its of the new twonkystarter name?
Edit: Just changed twonkystarter to twokymedia, still noting appearing. But the files in the data folder are changing I can see some files have been added and change times keep moving forward so somethings going on
Heres the script in the twonky.sh
#!/ffp/bin/sh
# PROVIDE: twonky
# REQUIRE: LOGIN
. /ffp/etc/ffp.subr
name="twonky"
start_cmd="twonky_start"
stop_cmd="twonky_stop"
twonky_start()
{
route add -net 224.0.0.0 netmask 240.0.0.0 dev egiga0
cd /ffp/opt/twonky
mkdir -p /ffp/opt/twonky/data/ &
# The line below is without logging (logs are written to /dev/null).
# If you want logging, exchange it with the line below the current one.
/ffp/opt/twonky/twonkymedia -logfile /dev/null -appdata /ffp/opt/twonky/data/ >/dev/null 2>/dev/null </dev/null &
# /ffp/opt/twonky/twonkymedia -logfile /ffp/opt/twonky/data/TwonkyMediaServer-log.txt -appdata /ffp/opt/twonky/data/ >/dev/null 2>/dev/null </dev/null &
}
twonky_stop()
{
killall twonkymedia
route del -net 224.0.0.0 netmask 240.0.0.0 dev egiga0
}
run_rc_command "$1"
Re: Dlink 320
Posted: Thu Apr 05, 2012 12:25 am
by parnott
You need to change twonkymedia to twonkystarter. And in all references to twonkymedia like killall.
Re: Dlink 320
Posted: Fri Apr 06, 2012 6:13 pm
by Seany
Tried that, something started but no server. Might just give up I followed the 6.0.38 guide and I had that going in about 2 minutes.
What would happen if I swapped "twonkymediaserver" & the "resources" folder from 6.0.38 and put in "twonkyserver" & "Resources" from 7.0.5. Keeping all the other files the same form 6.0.38 so at lest I get the updated server
Re: Dlink 320
Posted: Fri Apr 06, 2012 11:12 pm
by parnott
Seany wrote:
What would happen if I swapped "twonkymediaserver" & the "resources" folder from 6.0.38 and put in "twonkyserver" & "Resources" from 7.0.5. Keeping all the other files the same form 6.0.38 so at lest I get the updated server
Probably a non-functioning system.
Try logging into your NAS as root. Then execute each of the commands in the start part of the script at the command prompt and see what fails.
Remember to replace twonkymedia with twonkystarter.
Post the output of your terminal session.
Re: Dlink 320
Posted: Wed Apr 11, 2012 11:02 pm
by alan_solis
after updating to 7.0.5 i have the following error:
wget
http://127.0.0.1:9000
–2012-04-04 16:21:36–
http://127.0.0.1:9000/
Connecting to 127.0.0.1:9000… failed: Connection refused.
How can fix this?
Note.- In version 6.0.39 using the wget command I recive the index.html file
and ps -aux reports the twonky server is running
thanks
Re: Dlink 320
Posted: Wed Apr 25, 2012 4:50 pm
by alan_solis
Re: Dlink 320
Posted: Wed May 02, 2012 11:50 pm
by Twonky_Rick
Thank you for posting this link here.
I hope you don't mind, but I edited the title to make it easier for others to locate this info.
- Rick