Home » Home Server » Install Transmission with web interface on Ubuntu

Install Transmission with web interface on Ubuntu

Step 4: Starting and Stopping Transmission Daemon

After install Transmission, the daemon will be started automatically (but not accessible yet). Starting and stopping Transmission daemon is pretty straightforward. You can start and stop Transmission daemon using the following commands:

sudo service transmission-daemon start
sudo service transmission-daemon stop

For convenience, you could create bash aliases as described in this post. For example, transstart could execute sudo service transmission-daemon start.

Restarting (or reloading) Transmission daemon can be tricky. Restarting the the daemon (while it is already running) would rewrite the Transmission settings files to its original state. In other words, restarting the Transmission daemon would reset all the custom settings you saved. If Transmission is running, always reload the service:

sudo service transmission-daemon reload

Or, add the following bash aliases to /home/user/.bash_aliases:

alias transstop='sudo service transmission-daemon stop'
alias transstart='sudo service transmission-daemon start'
alias transreload='sudo service transmission-daemon reload'

Step 5: Move Default Settings File

To make the Transmission daemon accessible through the web interface, the configuration files have to be edited and Transmission daemon reloaded. The configuration file is this: /etc/transmission-daemon/settings.json. Edit the file as needed. In order to protect your settings from being accidentally re-written (example: if you accidentally restart Transmission instead of reload), I like to save the actual settings file in a safe location and creating a symbolic link to it inside /etc/transmission-daemon/. This way, even if Transmission accidentally overwrites settings.json all you have to do is re-create the symbolic link.

First, backup the default settings file /etc/transmission-daemon/settings.json:

cd /etc/transmission-daemon
sudo cp -a settings.json settings.json.default

Then create a transmission settings directory in your home folder (example: /home/user/.config/transmission-daemon), copy settings.json into it, and change its permissions to make it accessible to transmission-daemon:

mkdir /home/user/.config/transmission-daemon
sudo cp -a /etc/transmission-daemon/settings.json transmission-daemon/
sudo chgrp -R debian-transmission /home/user/.config/transmission-daemon
sudo chmod -R 770 /home/user/.config/transmission-daemon

Then, remove /etc/transmission-daemon/settings.json, create a symbolic link in the /etc/transmission-daemon folder, and edit it permissions to make it accessible to Transmission and the user account:

cd /etc/transmission-daemon
sudo rm settings.json 
sudo ln -s /home/user/.config/transmission-daemon/settings.json settings.json
sudo chgrp -R debian-transmission /etc/transmission-daemon/settings.json
sudo chmod -R 770 /etc/transmission-daemon/settings.json

You can now start editing /home/user/.config/transmission-daemon/settings.json without worries of losing your settings.

Step 6: Edit Transmission Configuration Files

My recommendations are to set at least the following as a starting point:

"download-dir": "/path/to/downloads/folder",
...
"incomplete-dir": "/path/to/incomplete/folder",
"incomplete-dir-enabled": true,
...
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "password",
"rpc-port": 9091,
"rpc-username": "username",
"rpc-whitelist": "127.0.0.1,*.*.*.*",
"rpc-whitelist-enabled": true,
...
"umask": 2,
...
"watch-dir": "/media/datadrive/downloads",
"watch-dir-enabled": true

The default rpc-username and password is “transmission”.

Change it to whatever you want (any password will work). After next restart the password will be rewritten in SHA1 encrypted format for security reasons. Below is a modified example of my settings.json file.

{
    "alt-speed-down": 500, 
    "alt-speed-enabled": false, 
    "alt-speed-time-begin": 540, 
    "alt-speed-time-day": 127, 
    "alt-speed-time-enabled": false, 
    "alt-speed-time-end": 1020, 
    "alt-speed-up": 1, 
    "bind-address-ipv4": "0.0.0.0", 
    "bind-address-ipv6": "::", 
    "blocklist-enabled": false, 
    "blocklist-updates-enabled": true, 
    "blocklist-url": "http://www.example.com/blocklist", 
    "cache-size-mb": 4, 
    "dht-enabled": true, 
    "download-dir": "/home/user/Downloads/", 
    "download-limit": 100, 
    "download-limit-enabled": 0, 
    "encryption": 2, 
    "filter-mode": "show-all", 
    "idle-seeding-limit": 30, 
    "idle-seeding-limit-enabled": false, 
    "incomplete-dir": "/home/user/Downloads/incomplete", 
    "incomplete-dir-enabled": true, 
    "inhibit-desktop-hibernation": false, 
    "lazy-bitfield-enabled": true, 
    "lpd-enabled": false, 
    "main-window-height": 500, 
    "main-window-is-maximized": 0, 
    "main-window-layout-order": "menu,toolbar,filter,list,statusbar", 
    "main-window-width": 467, 
    "main-window-x": 50, 
    "main-window-y": 50, 
    "max-peers-global": 200, 
    "message-level": 2, 
    "minimal-view": false, 
    "open-dialog-dir": "/home/user", 
    "open-file-limit": 32, 
    "peer-congestion-algorithm": "", 
    "peer-limit-global": 240, 
    "peer-limit-per-torrent": 60, 
    "peer-port": 9058, 
    "peer-port-random-high": 9098, 
    "peer-port-random-low": 9026, 
    "peer-port-random-on-start": true, 
    "peer-socket-tos": "default", 
    "pex-enabled": true, 
    "play-download-complete-sound": true, 
    "port-forwarding-enabled": false, 
    "preallocation": 1, 
    "prefetch-enabled": 1, 
    "prompt-before-exit": true, 
    "proxy": "", 
    "proxy-auth-enabled": false, 
    "proxy-auth-password": "", 
    "proxy-auth-username": "", 
    "proxy-enabled": false, 
    "proxy-port": 80, 
    "proxy-type": 0, 
    "ratio-limit": 1.5, 
    "ratio-limit-enabled": true, 
    "rename-partial-files": true, 
    "rpc-authentication-required": true, 
    "rpc-bind-address": "0.0.0.0", 
    "rpc-enabled": true, 
    "rpc-password": "wfsdfasdfwf234sdf28b453906c3wer235sarthtys4usXRA", 
    "rpc-port": 9025, 
    "rpc-url": "/transmission/", 
    "rpc-username": "username", 
    "rpc-whitelist": "127.0.0.1,*.*.*.*", 
    "rpc-whitelist-enabled": true, 
    "script-torrent-done-enabled": false, 
    "script-torrent-done-filename": "", 
    "show-backup-trackers": false, 
    "show-desktop-notification": true, 
    "show-extra-peer-details": false, 
    "show-filterbar": true, 
    "show-notification-area-icon": false, 
    "show-options-window": true, 
    "show-statusbar": true, 
    "show-toolbar": true, 
    "show-tracker-scrapes": false, 
    "sort-mode": "sort-by-name", 
    "sort-reversed": false, 
    "speed-limit-down": 0, 
    "speed-limit-down-enabled": false, 
    "speed-limit-up": 1, 
    "speed-limit-up-enabled": true, 
    "start-added-torrents": true, 
    "statusbar-stats": "total-ratio", 
    "trash-original-torrent-files": false, 
    "umask": 2, 
    "upload-limit": 100, 
    "upload-limit-enabled": 0, 
    "upload-slots-per-torrent": 4, "user-has-given-informed-consent": true, 
    "utp-enabled": true, 
    "watch-dir": "/home/user/Downloads/torrents", 
    "watch-dir-enabled": true
}


Continue to next page
to fully install Transmission

Get 20% OFF with IPVanish VPN:

♦   Hide your browsing and streaming activity: No logs and no tracking
♦   Access geo-restricted content from anywhere
♦   Encrypt and anonymize: Kodi, Plex, Downloads, Personal Info
♦   Windows, Mac, Linux, Android, iOS, Router, and more.
♦   Money back guarantee - Sign Up Now

About the author

Anand

Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs on htpcbeginner.com and smarthomebeginner.com.