Page 1 of 1

Replacement / Equivalent of twonkymedia command for v7.x

Posted: Wed Aug 29, 2012 8:40 am
by archie1810
Hello,

What is the equivalent command replacement of twonkymedia command for Twonky 7.x please?
I would like to do some changes in twonkyserver-default.ini parameters entries by using the command line.

This below is for Twonky server before v7.x version:
/mnt/array1/share/twonky/twonkymedia -enableweb 2 -httpremoteport 9100 -dyndns http://yourwanipaddress:9100 &

Thanks for any advice.

Best Regards, Arc.

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Wed Aug 29, 2012 10:13 pm
by ColinTaylor
I don't know whether this will help you:

# ./twonkyserver -?
Twonky Version 7.0.9

usage: ./twonkyserver

all params from the .ini file can be used as an option, preceded by a -
e.g. ./twonkyserver -v 255
-inifile path and filename of ini file
-inipath path to ini file
-ininame filename of ini file

For image conversion and scaling the TwonkyServer utilizes ImageMagick. For details on the license please see ./cgi-bin/convert-readme.txt

^C


So look in twonky/twonkydb/twonkyserver.ini or whatever the equivalent is on your system.

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Wed Aug 29, 2012 10:43 pm
by phibertron
Prior to 6.x

twonkymediaserverwatchdog launched twonkymediaserver

Prior to 7.x

twonkymedia launches twonkymediaserver

in 7.x twonkymediaserverwatchdog or twonkymedia is now twonkystarter
all the rules of how to apply switches still work

twonkystarter launches twonkyserver

just about all of the settings in the twonkyserver.ini can be used as startup switches

For example, this would start it with port 9000
which would overide what was in the twonkyserver.ini

./twonkystarter -httpport 9000

Note:
Remote access in 7.x does not work as far as I have tried
But it is possible to make it work they way it should
I put up a post on how to do that if your interested

Custom Web Interface Relative Links
http://www.twonkyforum.com/viewtopic.ph ... 627#p40577

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Wed Aug 29, 2012 11:39 pm
by archie1810
Thanks Colin and Phibertron... I will have a look at the advices and try to apply.
I've never thought that the twonkyserver-default.ini is not the ini file anymore to modify.
Thanks again.
:)

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Thu Aug 30, 2012 12:21 pm
by archie1810
Problem... I tried as advised. And I got this error:
sh: twonkystarter: command not found

I ran it from inside twonky folder after cd /mnt/HD/HD_a2/ffp/opt/twonky
My NAS is Dlink DNS-320 model.

May i ask what's the problem, please?
Thanks again.

BR, Arc.
:)

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Thu Aug 30, 2012 2:46 pm
by ColinTaylor
It looks like your twonky folder is not in your PATH. This is normal. You need to put the "./" at the beginning.

Try:

cd /mnt/HD/HD_a2/ffp/opt/twonky
./twonkystarter -enableweb 2 -httpremoteport 9100

or

/mnt/HD/HD_a2/ffp/opt/twonky/twonkystarter -enableweb 2 -httpremoteport 9100

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Thu Aug 30, 2012 2:53 pm
by ColinTaylor
archie1810 wrote:I've never thought that the twonkyserver-default.ini is not the ini file anymore to modify.
twonkyserver-default.ini is used to create twonkyserver.ini if it doesn't exist (usually the first time twonky is started). After that it isn't looked at again.

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Thu Aug 30, 2012 4:01 pm
by phibertron
ColinTaylor wrote: twonkyserver-default.ini is used to create twonkyserver.ini if it doesn't exist (usually the first time twonky is started).
After that it isn't looked at again.
I would add, that it is also used if one does a twonky reset, same result as above

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Fri Aug 31, 2012 3:42 pm
by archie1810
Nope - still failed :) :)
Here is what I have...

sh-4.1# ./twonkystarter -remotehttpport 9003
Twonky Version 7.0.9
22:39:31:847 [Startup] - LOG_SYSTEM: upnp_ini_file_init_DATA_Dir : AppData
e accessed or not writable.
22:39:31:847 [Startup] - LOG_SYSTEM: Error: 2 No such file or directory

--- keep repeating the above again and again --- so I stop the telnet session.
I think I will drop the 7.0.9 - and change to 6.0.34 and will test again.
Thanks.
:)

Re: Replacement / Equivalent of twonkymedia command for v7.x

Posted: Fri Aug 31, 2012 5:31 pm
by phibertron
1.
Does /var/twonky exist, it looks like it doesnt?
LOG_SYSTEM: upnp_ini_file_init_DATA_Dir : AppData e accessed or not writable.
2.
the correct swtich to use is httpremoteport
but there is not point, as remote access doesnt work as expected in 6.x or 7.x

If you want to have remote access work as intended, without having to use any ini changes
have a look at this post, Custom Web Interface Relative Links
http://www.twonkyforum.com/viewtopic.ph ... 627#p40577

3.
use the twonkyserver.ini as a reference as to what switches would be valid to use to start the server