General NAS-Central Forums

Welcome to the NAS community
It is currently Sat Mar 24, 2018 7:19 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Dec 22, 2011 9:48 pm 

Joined: Wed Dec 07, 2011 2:03 pm
Posts: 12
Hi all,

I've got a question:
I've managed to get the transmission web interface working using the great script for creating a custom capsule.
Now i want the system to download my files directly to the USB disk that's connected to the external port of the 2big.
the downloads i've started from the dashboard have the download dir: /​media/​internal_​1/​shares/​3/​Download

What download dir should i use in the preferences setting 'default download dir' in the transmission web interface to reach my external USB disk.

thanks in advance.

PostPosted: Wed Jan 04, 2012 8:50 pm 

Joined: Wed Dec 16, 2009 9:57 pm
Posts: 134
that download dir '/​media/​internal_​1/​shares/​3/​Download' or /shares/YOUR.SHARE.NAME'

be advised that when you restart the NAS the download dir setting will be the default again

To make it permanent, you should replace the '/etc/initng/transmission.i' file code by this one and restart your lacie
# This is a i file, used by initng parsed by install_service

daemon transmission {
   need = virtual/net transmission/blacklist;
   also_stop = transmission/blacklist;
   pid_file = /var/run/;
   script daemon = {
      if [ ! -e /lacie/torrent_dir/transmission/settings.json.backup ]; then
         cp -dp /lacie/torrent_dir/transmission/settings.json /lacie/torrent_dir/transmission/settings.json.backup
         cp -dp /usr/lib/python2.6/site-packages/unicorn/download/ /usr/lib/python2.6/site-packages/unicorn/download/

      replace_from="\"rpc-whitelist-enabled\": true,"
      replace_to="\"rpc-whitelist-enabled\": false,"
      sed -i s/"${replace_from}"/"${replace_to}"/g /lacie/torrent_dir/transmission/settings.json

      replace_from="\"download-dir\": \"\/home\","
      replace_to="\"download-dir\": \"\/shares\/${share_name}\/Download\","
      sed -i s/"${replace_from}"/"${replace_to}"/g /lacie/torrent_dir/transmission/settings.json

      replace_from="\"incomplete-dir\": \"\/root\/Downloads\","
      replace_to="\"incomplete-dir\": \"\/shares\/${share_name}\/Download\/incomplete\","
      sed -i s/"${replace_from}"/"${replace_to}"/g /lacie/torrent_dir/transmission/settings.json

      replace_from="'rpc_whitelist_enabled', True"
      replace_to="'rpc_whitelist_enabled', False"
      sed -i s/"${replace_from}"/"${replace_to}"/g /usr/lib/python2.6/site-packages/unicorn/download/

      replace_from="'download_dir', u'\/home"
      replace_to="'download_dir', u'\/shares\/${share_name}\/Download"
      sed -i s/"${replace_from}"/"${replace_to}"/g /usr/lib/python2.6/site-packages/unicorn/download/

      replace_from="'incomplete-dir', u'\/root\/Downloads"
      replace_to="'incomplete-dir', u'\/shares\/${share_name}\/Download\/incomplete"
      sed -i s/"${replace_from}"/"${replace_to}"/g /usr/lib/python2.6/site-packages/unicorn/download/

      /usr/bin/transmission-daemon -f \
      --config-dir /lacie/torrent_dir/transmission \
      --pid-file /var/run/;
   stdall = /var/log/transmission.log;

service transmission/blacklist {
   exec start = /usr/sbin/blacklist install;
   exec stop = /usr/sbin/blacklist remove;

just replace YOUR.SHARE.NAME by your share name in the code

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group