Setup a Headless Transmission Client in Ubuntu 12.04

After searching for a solution to run Transmission BitTorrent client as a service (daemon) instead of opening manually and keep the running icon on the desktop and found ‘transmission-daemon’ package which will let us to run Transmission in a headless server or in our own NAS. Transmission daemon can be accessed by its’ web interface with a web browser from anywhere. I’ll guide you step by step on installing Transmission in Headless mode.

Installing transmission-daemon

Open terminal and type the following command
sudo apt-get update
sudo apt-get install transmission-daemon

Next we need to create two folders where the torrent files be downloaded and a folder for uncompleted torrents as below.

mkdir ~/transmission
mkdir ~/transmission/completed ~/transmission/incomplete

Note: “~/” is your home folder, mine is /home/irfad

As transmission-daemon runs by the user ‘debian-transmission‘ we need to give full access to that user and also allow myself to have full access to the folders.

To change ownership of the directories to the debian-transmission user and it’s group type the following.

sudo chown debian-transmission:debian-transmission ~/transmission/completed 
sudo chown debian-transmission:debian-transmission ~/transmission/incomplete

Now add current user account to debian-transmission group.

sudo usermod -a -G debian-transmission irfad

Change permission of the directory to allow only owner and group to access it.

sudo chmod 770 ~/transmission/*

Edit the following lines in transmission-daemon configuration file.

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

    “download-dir”: “/home/irfad/transmission/completed”, 
    “incomplete-dir”: “/home/irfad/transmission/incomplete”, 
    “rpc-authentication-required”: true, #Authentication is enabled by default
    “rpc-password”: “geeklk”, #Set a password for username
    “rpc-port”: 9091, 
    “rpc-username”: “transmission”, #Default username
    “rpc-whitelist”: “127.0.0.1,*.*.*.*”, #Allow access from anywhere

Save the configuration file and reload the daemon

sudo service transmission-daemon reload

Now simply type the address in the web browser and login with username ‘transmission and password given in the config file.

http://<current IP, hostname>:9091
5040 Views
, ,

About Irfad Razick

I'm a tech enthusiast, who like technology and always like to share what I learn.

View all posts by Irfad Razick
Your Ad Here

8 Responses to “Setup a Headless Transmission Client in Ubuntu 12.04”

  1. Vuurvoske Says:

    Irfad,

    Ik keep getting problems with rights. I.e. i cannot delete torrent files. It keeps saying i need permission from debian-transmision to remove the file.

    Reply

    • Irfad Razick Says:

      What is the permission for completed and incomplete folders. You can check by ‘ls -l’ from parent directory.
      And did set the permission correctly to the folders?
      sudo chown debian-transmission:debian-transmission ~/transmission/completed
      sudo chown debian-transmission:debian-transmission ~/transmission/incomplete

      Reply

  2. Heber Says:

    I was having problems with the permission no matter how I configured the rights. I moved it to /home/transmission and provided the rights and worked great. It could be that my home directory is encrypted…

    Reply

    • GeekLK Says:

      Hi Heber,

      Yes! If your home directory is encrypted then you’ll have permission issues. Nevertheless, we’re glad that you’ve got it fixed.

      Cheerz ;)

      Reply

  3. HighAltitude Says:

    Worked like a charm!! Thank you for this, much easier to follow than the site’s documentation

    Reply

  4. Thomas_grand Says:

    Hi,
    i’ve tryed to fix it my self but i’m stuck. I get 403: Forbidden error everytime i’m trying to go to webGUI. i’m running transmission o a headless machine under 192.168.0.26, trying to access it from another PC under 192.168.0.22. I’ve tryed to disable whitelist- no result. Any suggestions?

    Reply

  5. urza Says:

    Thanks, great tutorial. Just one thing: before changing the settings you need to stop the deamon, otherwise is will rewrite the settings back when it is restarts. (it took me 3 attempts to figure it out)

    sudo service transmission-daemon stop

    ..then configure settings.json

    Reply

Trackbacks/Pingbacks

  1. HTPC Configuration | pierre.awaragi.com - January 29, 2013

    [...] I finally opted for neither and to use the bundled BitTorrent client Transmission which is a stable and full featured. To install headless Transmission, I upgraded to the latest version using apt-get upgrade and followed the instructions at http://www.geeklk.com/2012/08/setup-a-headless-transmission-client-in-ubuntu-12-04/. [...]

Leave a Reply