f3cc705b |
---
layout: post
title: "Download torrents on your server"
date: 2013-12-25 22:34
comments: true
categories: [server]
cover: /images/cover/avatar.png
keywords: transmission, torrent, server, remote, rsync, firewall
description: Setup transmission client on server
---
### tl;dr |
f3cc705b |
* Firewall setup
* Email notifications setup
# Why am I doing this?
Recently I've needed to download some stuff from torrentz. I have quite
unstable and slow internet connection at home, so I've decided to
download the stuff to my server and later transfer it to my laptop via
rsync (with transfer resume enabled and high compression ratio).
# Choose a torrent client
There are [many](http://alinuxblog.wordpress.com/2010/09/14/top-10-torrent-clients-for-linux/)
torrent clients suitable for headless Linux server (so they don't
need X.Org server and allow remote access). I've picked out [Transmission](http://www.transmissionbt.com/).
It looks easy to configure & use, supports magnet links, is lightweight,
has web interface and is actively developed.
# Install & configure
If your Linux distribution provides split Transmission package, you need just
transmission-cli or transmission-daemon (simply, ignore GTK or Qt packages).
After installation edit Transmission daemon configuration file (may be located
here ```/var/lib/transmission/.config/transmission-daemon/settings.json``` or
here ```/etc/init.d/transmission-daemon/settings.json```).
Interesting options you'll probably need to edit are these:
* encryption: 2 (Require encrypted connections)
* rpc-enabled: true (Required for Transmission web client)
* rpc-password: "" (Put some password, after transmission-daemon restart it will be
hashed)
* rpc-port: 9091
* rpc-whitelist-enabled: false (if you have dynamic public IP address you want disable this option)
* umask: 0 (Give access to downloaded files to everybody -- files have read & write permissions for owner, group and others)
If you're a bitch and want to disable seeding right after torrent download is completed,
set ```ratio-limit``` to ```0``` and ```ratio-limit-enabled``` to ```true```.
|