How to Install TwonkyServer on DLink 320 (solution-provided)

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
Seany
Posts:8
Joined:Mon Apr 02, 2012 7:27 pm
AV Hardware:Twonky 3.0.38, dlink 320
How to Install TwonkyServer on DLink 320 (solution-provided)

Post by Seany » Mon Apr 02, 2012 8:36 pm

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.

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: Dlink 320

Post by parnott » Mon Apr 02, 2012 11:35 pm

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.

Seany
Posts:8
Joined:Mon Apr 02, 2012 7:27 pm
AV Hardware:Twonky 3.0.38, dlink 320

Re: Dlink 320

Post by Seany » Wed Apr 04, 2012 1:47 pm

Tried that, also read the .txt which to be honest I useless Im unbelievably confused :lol: 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

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: Dlink 320

Post by parnott » Wed Apr 04, 2012 10:50 pm

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.

Seany
Posts:8
Joined:Mon Apr 02, 2012 7:27 pm
AV Hardware:Twonky 3.0.38, dlink 320

Re: Dlink 320

Post by Seany » Wed Apr 04, 2012 11:07 pm

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"

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: Dlink 320

Post by parnott » Thu Apr 05, 2012 12:25 am

You need to change twonkymedia to twonkystarter. And in all references to twonkymedia like killall.

Seany
Posts:8
Joined:Mon Apr 02, 2012 7:27 pm
AV Hardware:Twonky 3.0.38, dlink 320

Re: Dlink 320

Post by Seany » Fri Apr 06, 2012 6:13 pm

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

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: Dlink 320

Post by parnott » Fri Apr 06, 2012 11:12 pm

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.

alan_solis
Posts:3
Joined:Wed Apr 11, 2012 10:57 pm
AV Hardware:Dlink DNS320

Re: Dlink 320

Post by alan_solis » Wed Apr 11, 2012 11:02 pm

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

alan_solis
Posts:3
Joined:Wed Apr 11, 2012 10:57 pm
AV Hardware:Dlink DNS320

Re: Dlink 320

Post by alan_solis » Wed Apr 25, 2012 4:50 pm

Twonky 7 working great.
Follow the tutorial from Uli
http://nas-tweaks.net/384/installation- ... as-devices

Twonky_Rick
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

Post by Twonky_Rick » Wed May 02, 2012 11:50 pm

Thank you for posting this link here. :D

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/

Locked