Hi people,
After buying TwonkyMedia Server 5 i installed it on my Thecus N2100 and have come across a pretty annoying issue. The problem is that version 5 stores all data in the /var/twonkymedia folder, which is not allowed on this device. So on every reboot all my twonky settings are removed by the system. I would like to know how to move the /var/twonkymedia folder back to the install folder, or another folder of my choosing. I have tried it myself, but i don't know where i can move the /var/twonkymedia/twonkymedia-server.ini file where the installation is going to find it.
Thanks in advance,
Andrew
How to change location of ini and db
Re: How to change location of ini and db
For anyone else having this issue, I have been able to overcome this on my Thecus N2100 NAS by creating a symlink on every boot right before the twonky media server starts. The symlink points to a settings folder i created in the original Twonky install folder (For me that's /raid/module/TWONKYMEDIA/). However, this is a simple workaround that will not be straight forward for the average user.
Re: How to change location of ini and db
Hi,
I have the same problem with my Thecus N2100 and I'm glad to see there is a possible solution.
But unfortunately I am just starting with linux and so it is a little bit difficult to me.
Could you please describe more precise your way?
i.e. where did you create the symlink?
Thanks in advance,
Thomas
I have the same problem with my Thecus N2100 and I'm glad to see there is a possible solution.
But unfortunately I am just starting with linux and so it is a little bit difficult to me.
Could you please describe more precise your way?
i.e. where did you create the symlink?
Thanks in advance,
Thomas
Re: How to change location of ini and db
Theres a simple solution for that.
For some of the folders the server needs, just modify the twonkymedia-server-default.ini file:
You even can change these location with the web interface of the running server with a simple trick. Once You are on the configuration page put following in the adress filed of Your browser (here the example of changing the dbdir to /raid/data/myfolder):
The location of the ini file itself can be given as parameter to the server on start:
br
Peter
For some of the folders the server needs, just modify the twonkymedia-server-default.ini file:
This is an example of the Thecus N5200/N7700 module for a 5.x twonkymedia server. The default ini file is the ini file the server reads in if no user ini file is existing - so after You have changed the default one delete the user ini file and start the server.cachedir=/raid/data/module/TWONKYMEDIA/twonky/.Twonkymedia/Cache
dbdir=/raid/data/module/TWONKYMEDIA/twonky/.Twonkymedia/db
mediastatisticsdir=/raid/data/module/TWONKYMEDIA/twonky/.Twonkymedia/stat
uploadmusicdir=/raid/data/module/TWONKYMEDIA/twonky/.Twonkymedia/twonkymedia-server-uploaded-music
uploadpicturedir=/raid/data/module/TWONKYMEDIA/twonky/.Twonkymedia/twonkymedia-server-uploaded-pictures
uploadvideodir=/raid/data/module/TWONKYMEDIA/twonky/.Twonkymedia/twonkymedia-server-uploaded-videos
onlinedir=/raid/data/module/TWONKYMEDIA/twonky/.Twonkymedia/twonkymedia-server-online-data
You even can change these location with the web interface of the running server with a simple trick. Once You are on the configuration page put following in the adress filed of Your browser (here the example of changing the dbdir to /raid/data/myfolder):
This is then stored in the user modified ini file.http://<YOUR IP>:9000/rpc/set_option?dbdir=/raid/data/myfolder
The location of the ini file itself can be given as parameter to the server on start:
again this example is from the Thecus N5200/N7700 module./raid/data/module/TWONKYMEDIA/twonky/twonkymedia -inifile /raid/data/module/TWONKYMEDIA/system/etc/twonkyvision-mediaserver.ini
br
Peter
Re: How to change location of ini and db
Add on:
You also might want to change the location of the log file, cause this is written in default to /tmp and fills up Your flash.
So add also as parameter in the startup script of the server
Peter
You also might want to change the location of the log file, cause this is written in default to /tmp and fills up Your flash.
So add also as parameter in the startup script of the server
br-logfile <your dir/log file name>
Peter