Last active
December 3, 2021 16:50
-
-
Save samklr/0669250e39042f0cff5e to your computer and use it in GitHub Desktop.
Scripts to build a torrent seed box with transmission on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install -y git htop tmux transmission-cli transmission-daemon | |
sudo apt-get -y update | |
sudo /etc/init.d/transmission-daemon stop | |
echo "sudo nano /etc/transmission-daemon/settings.json" | |
echo "Change Download directory" | |
echo "Set rpc-password: mysecretpassword if you want to" | |
echo "Turn off the rpc-whitelist so we can access this client from any IP: “rpc-whitelist-enabled”: false," | |
echo "restart sudo /etc/init.d/transmission-daemon start" | |
echo "Then : mkdir /home/ubuntu/Downloads/" | |
echo "Then : chown ubuntu:debian-transmission /home/ubuntu/Downloads/" | |
echo "Then : sudo chmod g+w /home/ubuntu/Downloads/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Put this file at /etc/transmission-daemon/settings.json | |
{ | |
"alt-speed-down": 50, | |
"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": 50, | |
"bind-address-ipv4": "0.0.0.0", | |
"bind-address-ipv6": "::", | |
"blocklist-enabled": false, | |
"blocklist-url": "http://www.example.com/blocklist", | |
"cache-size-mb": 4, | |
"dht-enabled": true, | |
"download-dir": "~/downloads", | |
"download-limit": 100, | |
"download-limit-enabled": 0, | |
"download-queue-enabled": true, | |
"download-queue-size": 3, | |
"encryption": 1, | |
"idle-seeding-limit": 30, | |
"idle-seeding-limit-enabled": false, | |
"incomplete-dir": "~/downloads/incomplete", | |
"incomplete-dir-enabled": false, | |
"lpd-enabled": false, | |
"max-peers-global": 200, | |
"message-level": 2, | |
"peer-congestion-algorithm": "", | |
"peer-id-ttl-hours": 6, | |
"peer-limit-global": 200, | |
"peer-limit-per-torrent": 50, | |
"peer-port": 51413, | |
"peer-port-random-high": 65535, | |
"peer-port-random-low": 49152, | |
"peer-port-random-on-start": false, | |
"peer-socket-tos": "default", | |
"pex-enabled": true, | |
"port-forwarding-enabled": false, | |
"preallocation": 1, | |
"prefetch-enabled": 1, | |
"queue-stalled-enabled": true, | |
"queue-stalled-minutes": 30, | |
"ratio-limit": 2, | |
"ratio-limit-enabled": false, | |
"rename-partial-files": true, | |
"rpc-authentication-required": false, | |
"rpc-bind-address": "0.0.0.0", | |
"rpc-enabled": true, | |
"rpc-password": "", | |
"rpc-port": 9091, | |
"rpc-url": "/transmission/", | |
"rpc-username": "transmission", | |
"rpc-whitelist": "127.0.0.1", | |
"rpc-whitelist-enabled": false, | |
"scrape-paused-torrents-enabled": true, | |
"script-torrent-done-enabled": false, | |
"script-torrent-done-filename": "", | |
"seed-queue-enabled": false, | |
"seed-queue-size": 10, | |
"speed-limit-down": 100, | |
"speed-limit-down-enabled": false, | |
"speed-limit-up": 10, | |
"speed-limit-up-enabled": true, | |
"start-added-torrents": true, | |
"trash-original-torrent-files": false, | |
"umask": 18, | |
"upload-limit": 2, | |
"upload-limit-enabled": 1, | |
"upload-slots-per-torrent": 4, | |
"utp-enabled": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment