Sunday, August 18, 2013

Install Transmission on your Ubuntu Server

Here's how you do it:

From the command line type:

sudo apt-get install python-software-properties

Next:

sudo add-apt-repository ppa:transmissionbt/ppa

Update the apt-list:

sudo apt-get update

Install Transmission:

sudo apt-get install transmission-cli transmission-common transmission-daemon

Let's make some directories where we will have Transmission use.  If you already have folders set up you can use those or you can change the path and create folders wherever you like.  The commands below create the folders in your user's home directory:

mkdir ~/Downloads
mkdir ~/Downloads/Completed
mkdir ~/Downloads/Incomplete
mkdir ~/Downloads/Watched

As you guessed, Completed will hold all the files that are complete, Incomplete will store the files that are still downloading, and the Watched folder is where you'll drop the torrent files in and have Transmission continuously look in that folder.  When it detects a new torrent file it will automatically add it to your downloads.

Change some permissions (username = your username).  If you changed the directory paths above you'll have to make the same changes to the commands below:

sudo usermod -a -G debian-transmission username
sudo chgrp -R debian-transmission /home/username/Downloads
sudo chmod -R 775 /home/username/Downloads

Time to edit some config files.  Stop Transmission:

sudo /etc/init.d/transmission-daemon stop

Open the config file:

sudo nano /etc/transmission-daemon/settings.json

Make these changes (again, make sure to change the username and directory path (if necessary):

"download-dir": "/home/username/Downloads/Complete",
"incomplete-dir": "/home/username/Downloads/Incomplete",
"incomplete-dir-enabled": true,
“rpc-authentication-required”: false,
“rpc-whitelist-enabled”: false,


Add these lines at the end of the file before the closing curly bracket:

“watch-dir”: “/home/username/Downloads/Torrents”,
“watch-dir-enabled”: true


Now start Transmission:

sudo /etc/init.d/transmission-daemon start

The default port for Transmission is 9091 so on your browser you can navigate to yournasip:9091.  Enjoy!!

No comments:

Post a Comment