wasimosmanhome
5/8/2020 - 7:52 PM

transmission_install

#!/bin/bash

echo "This is the scirpt for installation of transmission"

sudo systemctl stop transmission-daemon

# This updates apt and installs transmission
sudo apt-get update && sudo apt-get install transmission-daemon

# This stops the service so changes to the configuration file can be made
sudo systemctl stop transmission-daemon

# Freakken own the files and folders or else you'll be screwed
sudo chmod 777 /etc/transmission-daemon/
sudo chown pi:pi /etc/transmission-daemon/
sudo chmod 777 /media/pi
sudo chown pi:pi /media/pi

# The configuration file is uploaded in gist. 'wget -P' downloads the config file from the url to a file in the Documents folder.
sudo wget https://gist.githubusercontent.com/wasimosmanhome/2cfec4c054c16b803d81885bfc1b1420/raw/61cb7bef2da4760792fcb1c10a5b9861cd2a28b9/settings.json -O /etc/transmission-daemon/settings.json

#install this for whatever reason (firewall)
sudo apt-get install ufw -y

#Then run this
sudo ufw allow 9091,51413/tcp

#Restart the service
sudo systemctl start transmission-daemon

# Access the web interface from here http://192.168.2.30:9091/transmission