Skip to content

Instantly share code, notes, and snippets.

@ibnuh
Last active July 20, 2019 04:07
Show Gist options
  • Save ibnuh/5567af6f3cc8c04b07baefd3f15da566 to your computer and use it in GitHub Desktop.
Save ibnuh/5567af6f3cc8c04b07baefd3f15da566 to your computer and use it in GitHub Desktop.
Install transmission Ubuntu 18.04
#!/bin/bash
sudo add-apt-repository ppa:transmissionbt/ppa -y
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install transmission-cli transmission-common transmission-daemon -y
useradd -m -p $6$TN65Ge3pg7VA$ZGw1YmRZsR1HA7Bfwr5QoUBYhHlc.cB4R2bThEpchbbIWdPml7aPBUrVLdibm1PoCAudZVxs3ZeVR8ktCh7uS1 -s /bin/bash ibnuh
usermod -aG sudo ibnuh
su - ibnuh
mkdir ~/Downloads
mkdir ~/Downloads/Completed
mkdir ~/Downloads/Incomplete
mkdir ~/Downloads/Torrents
sudo usermod -a -G debian-transmission ibnuh
sudo chgrp -R debian-transmission /home/ibnuh/Downloads
sudo chmod -R 775 /home/ibnuh/Downloads
sudo /etc/init.d/transmission-daemon stop
sudo rm /etc/transmission-daemon/settings.json
sudo nano /etc/transmission-daemon/settings.json
# install fnm to get easily install nodejs
sudo apt-get install curl unzip zip -y
curl -fsSL https://github.com/Schniz/fnm/raw/master/.ci/install.sh | bash
source /root/.bashrc
fnm install v11.15.0
fnm use v11.15.0
# install cloudcmd, a node based cloud file manager
npm i cloudcmd -g
tmux new -s cloudcmd
cloudcmd --root /home/ibnuh/Downloads/
{
"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": "/home/ibnuh/Downloads/Completed",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/home/ibnuh/Downloads/Incomplete",
"incomplete-dir-enabled": true,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 1,
"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": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-host-whitelist": "",
"rpc-host-whitelist-enabled": false,
"rpc-password": "{b81a641a988d8607910cba4a52782bb1fb420928FuJ3f5lz",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "cluster",
"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": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment