How to Install TwonkyServer on DLink 320 (solution-provided)
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.
- parnott
- Posts:326
- Joined:Mon Sep 20, 2010 9:55 pm
- AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)
Re: Dlink 320
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.
In Twonky 7 the startup program is now called twonkystarter.
Also suggest reading the Linux-HowTo.txt file.
Re: Dlink 320
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
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
- parnott
- Posts:326
- Joined:Mon Sep 20, 2010 9:55 pm
- AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)
Re: Dlink 320
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.
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
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"
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"
- parnott
- Posts:326
- Joined:Mon Sep 20, 2010 9:55 pm
- AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)
Re: Dlink 320
You need to change twonkymedia to twonkystarter. And in all references to twonkymedia like killall.
Re: Dlink 320
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
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
- parnott
- Posts:326
- Joined:Mon Sep 20, 2010 9:55 pm
- AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)
Re: Dlink 320
Probably a non-functioning system.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
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.
-
- Posts:3
- Joined:Wed Apr 11, 2012 10:57 pm
- AV Hardware:Dlink DNS320
Re: Dlink 320
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
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
-
- Posts:3
- Joined:Wed Apr 11, 2012 10:57 pm
- AV Hardware:Dlink DNS320
Re: Dlink 320
Twonky 7 working great.
Follow the tutorial from Uli
http://nas-tweaks.net/384/installation- ... as-devices
Follow the tutorial from Uli
http://nas-tweaks.net/384/installation- ... as-devices
-
- Posts:3816
- Joined:Wed Nov 19, 2008 1:59 am
- AV Hardware:Samsung 650 Series TV (2010), 4.5TB HP MediaSmart server with 100,000 songs, 5) AT&T U-Verse STB, CE form-factor Media Center PC and 6 other networked PCs running TwonkyManager, 2 Sonos ZP80, Sonos S5 speaker, Apple TV (running XBMC), Roku Soundbridge, X-Box 360, Sony PS3, Kodak 10" Wireless Photo Frame, iPhone with PlugPlayer software, Sonos CR-100.
- Location:San Diego
- Contact:
Re: Dlink 320
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
I hope you don't mind, but I edited the title to make it easier for others to locate this info.
- Rick
Follow me on Twitter! mostlytech1
Checkout my blog: http://mostly-tech.com/
Checkout my blog: http://mostly-tech.com/