Transmission 1.42+ for DNS-323
Getting the D-Link DNS-323 2-Bay Network Attached Storage Enclosure
Updates
5th Feb 2012 – Updated guide to install transmission 2.42
20th May 2011 – Updated guide to install transmission 2.31
10th September 2010 – Updated guide to install transmission 2.04
16th March 2010 – Updated guide to install transmission 1.92
23rd February 2010 – Updated guide to install transmission 1.91
20th February 2010 – Updated guide to install transmission 1.90
30th January 2010 – Updated guide with solution to fix problem when upgrading from 1.76 to 1.82/1.83
30th January 2010 – Updated guide to install transmission 1.83
27th January 2010 – Updated guide to install transmission 1.82
24th January 2010 – Updated guide to install transmission 1.80
25th November 2009 – Updated guide to install transmission 1.76
26th August 2009 – Updated guide to install transmission 1.74
20th July 2009 – Updated guide to install transmission 1.73
23rd June 2009 – Updated guide to install transmission 1.72
9th June 2009 – Updated guide to install transmission 1.71
7th June 2009 – Updated guide to install transmission 1.70
14th May 2009 – Updated guide to install transmission 1.61
2nd May 2009 – Updated guide to install transmission 1.52
28th Feb 2009 – Updated guide to install transmission 1.51
24th Feb 2009 – Updated the guide to install transmission 1.50
Decided to write this post as there are still users refering to the set up instructions for transmissionbt prior to 1.42. There has been some changes and therefore the previous guide’s instructions aren’t exactly correct now. By following the old guide, you would probably end up seeing the following:
401: Unauthorized
Unauthorized IP Address.Either disable the IP address whitelist or add your address to it.
If you’re editing settings.json, see the ‘rpc-whitelist’ and ‘rpc-whitelist-enabled’ entries.
If you’re still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.
Hence this guide aims to set up transmission from scratch. In this guide, I refer to the IP address of your NAS as A.B.C.D. Hence, in all occurrance of A.B.C.D, replace it with your NAS’s IP.
If you have followed the old set up guide “Transmission for DNS-313, DNS-323” just follow guide from the section on “Updating the whitelist” to complete the setup.
If you need to edit settings.json for the rpc-whitelist, you can check out the steps in the section “Updating the whitelist” in this guide.
Prerequisites
Ensure that you have fonz’s fun_plug 0.5 installed on your NAS. If you are using DNS-323 or DNS-343, follow the guide “Running fonz’s fun_plug (0.5) on DNS-323“. If you are running DNS-313, follow the guide “Running fonz’s fun_plug (0.5) on DNS-313” instead.
Once you have fonz’s fun_plug up and running. Carry on to the next section.
Installing uclibc
- Click on Start -> Run
- Type “cmd” without the quotes and hit <Enter>
A command prompt should appear - Type the command “telnet A.B.C.D” into the command prompt and hit <Enter>
You should be greeted by the command prompt “#”.
- Type the command “cd /mnt/HD_a2” and hit <Enter>
The prompt should change to “/mnt/HD_a2 #” - Type the command “wget http://www.inreto.de/dns323/fun-plug/0.5/packages/uclibc-0.9.29-7.tgz” and hit <Enter>
There should be a downloading process. Do not interrupt it and wait for the prompt to reappear - Type the command “funpkg -i uclibc-0.9.29-7.tgz” and hit <Enter>
- Finally reboot the NAS using the command “reboot”
The command prompt may end and close by itself
Wait for the NAS to be online before going to the next section.
Installing Transmission
- Click on Start -> Run
- Type “cmd” without the quotes and hit <Enter>
A command prompt should appear - Type the command “telnet A.B.C.D” into the command prompt and hit <Enter>
You should be greeted by the command prompt “#”.
- Type the command “cd /mnt/HD_a2” and hit <Enter>
The prompt should change to “/mnt/HD_a2 #” - Type the command “wget http://kylek.is-a-geek.org:31337/files/ffp/0.5/curl-7.18.1.tgz” and hit <Enter>
- Type the command “wget http://kylek.is-a-geek.org:31337/files/ffp/0.5/Transmission-2.42-1.tgz” and hit <Enter>
- Type the command “funpkg -i curl-7.18.1.tgz” and hit <Enter>
- Type the command “funpkg -i Transmission-2.42-1.tgz” and hit <Enter>
- Type the command “chmod a+x /ffp/start/transmission.sh;sh /ffp/start/transmission.sh start”
There would be a message like starting transmission - Type the command “sh /ffp/start/transmission.sh stop” and hit <Enter>
There would be a message like stopping transmission - Do not close the command prompt.
Updating the whitelist
In this section we would be adding your local lan IP range (A.B.C.*) to the whitelist. Assuming your NAS’s IP is 192.168.1.101, A.B.C.* would simply mean 192.168.1.* where the last group of number becomes asterix (*).
- Go back to the command prompt
- Type the command “vi /mnt/HD_a2/.transmission-daemon/settings.json” and hit <Enter>
- Shift the cursor using the arrow keys to the line with “rpc-whitelist”
- Hit the <End> key
The cursor would shift to the end of the line containing “rpc-whitelist” - Hit the left arrow key two times
The cursor would shift onto the ” at the end of 127.0.0.1 - Hit the i key
The “-” at the lower left hand corner of the command prompt would change to “I”. Hitting the <Esc> key would change it back to “-“. - Ensure that “I” is at the lower left hand corner of the command prompt
- Type the following “,A.B.C.*” (remember to replace it according to the instructions at the start of this section)
The entire line would read something like
“rpc-whitelist”: “127.0.0.1,192.168.1.*”,
- Hit the <Esc> key
- Hit the : key
The symbol at the lower left hand corner of the command prompt would change to “:” - Type the following “wq” and hit <Enter>
The file would be saved and you will be returned to the prompt
Starting Transmission
- Type the command “sh /ffp/start/transmission.sh start”
There would be a message like starting transmission
Give it sometime for transmission to startup before proceeding to the next section.
Setting the download directory
- Type the command “su nobody -c “mkdir -p /mnt/HD_a2/transmission-downloads”“
- Type the command “transmission-remote 127.0.0.1 -w /mnt/HD_a2/transmission-downloads”
There would be a message like success
It’s done! Direct your Internet browser to http://A.B.C.D:9091 for the transmission web user interface.
Upgrading from previous version of Transmission?
You can follow the instructions in this section if you are upgrading from a previous version of transmissionbt.
- Telnet to your NAS by following the instructions for steps 1-3 in the section Installing uclibc
- Type the command “sh /ffp/start/transmission stop” and hit <Enter>
There would be a message like stopping transmission if transmission is running - Type the command “wget http://kylek.is-a-geek.org:31337/files/ffp/0.5/Transmission-2.42-1.tgz” and hit <Enter>
wget should be downloading the transmissionbt package - Type the command “funpkg -u Transmission-2.42-1.tgz” and hit <Enter>
There should be a message like removing the previous version and installing the new one - Type the command “sh /ffp/start/transmission start” and hit <Enter>
Congratulations! Your transmission is upgraded.
Facing issues with Transmission?
Having issues with Transmission 1.82/1.83 after upgrading from 1.76?
Some of you may face problems connecting to the Transmission web interface after upgrading to 1.82/1.83 from 1.76. What you can do is remove the settings.json file. By doing so, you will lose the configuration for Transmission but not your downloaded data. Follow the following instructions to remove the file
- Telnet to your NAS by following the instructions for steps 1-3 in the section Installing uclibc
- Type the command “sh /ffp/start/transmission stop”
There would be a message like stopping transmission if transmission is running - Type the command “mv /mnt/HD_a2/.transmission-daemon/settings.json /mnt/HD_a2/.transmission-daemon/settings.json.old”
You have renamed the settings.json file to settings.json.old - Follow the guide starting from section Installing Transmission until section Setting the download directory to install the latest transmissionbt
This would fix the common problems faced when users upgrade from 1.76 to 1.82/1.83.