Skip to content

Instantly share code, notes, and snippets.

@groundcat
Created July 5, 2020 03:30
Show Gist options
  • Save groundcat/a127dc8e19e057e5aa12c11682c64177 to your computer and use it in GitHub Desktop.
Save groundcat/a127dc8e19e057e5aa12c11682c64177 to your computer and use it in GitHub Desktop.
Install Transmission on CentOS 7

Install dependency

yum groupinstall 'development tools'
yum install m4 libtool gettext libcurl-devel psmisc libevent-devel intltool gtk3-devel openssl-devel

Download Transmission official release

wget https://github.com/transmission/transmission-releases/raw/master/transmission-3.00.tar.xz
tar xf transmission-3.00.tar.xz
cd transmission-3.00
./configure --enable-daemon --with-gtk=no
make
make install

Set as a service

cd /etc/systemd/system/
nano transmission.service

Edit transmission.service file with

[Unit]
Description=Transmission BitTorrent Daemon
After=network.target

[Service]
User=root
LimitNOFILE=100000
ExecStart=/usr/local/bin/transmission-daemon -f --log-error -g /root/.config/transmission

[Install]
WantedBy=multi-user.target

Grant permission

chmod 777 transmission.service
systemctl daemon-reload

Start upon boot

systemctl enable transmission

Start for the first time to create config files

systemctl start transmission

Then stop it

systemctl stop transmission

Edit config file

nano ~/.config/transmission/settings.json

Change ""rpc-whitelist": "127.0.0.1"," to "rpc-whitelist": "...",

Start

systemctl start transmission

If need to change the config, must stop first

systemctl stop transmission

Open ports

firewall-cmd --permanent --add-port=9091/tcp
firewall-cmd --permanent --add-port=51413/tcp
firewall-cmd --reload

install transmission-web-control

wget wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control.sh
bash install-tr-control.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment