-
Notifications
You must be signed in to change notification settings - Fork 0
/
Transmission.txt
44 lines (37 loc) · 1.91 KB
/
Transmission.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FILE="/etc/transmission-daemon/settings.json"
sudo apt-get -y install transmission-daemon transmission-cli transmission-common
#sudo service transmission-daemon stop
sudo systemctl stop transmission-daemon
sleep 60
sudo cp -p ${FILE} ${FILE}.orig
sudo sed -i '/rpc-whitelist"/s/1"/1,192.168.*,10.*"/' ${FILE}
sudo sed -i '/download-dir/s:/var/lib/transmission-daemon/downloads:/media/video:' ${FILE}
sudo sed -i '/rename-partial-files/s/false/true/' ${FILE}
sudo sed -i '/umask/s/18/2/' ${FILE}
sudo sed -i '/port-forwarding-enabled/s/false/true/' ${FILE}
sudo sed -i '/lpd-enabled/s/false/true/' ${FILE}
sudo sed -i '/peer-port-random-on-start/s/false/true/' ${FILE}
sudo sed -i '/encryption/s/1/2/' ${FILE}
sudo sed -i '/alt-speed-down/s/50/1000/' ${FILE}
sudo sed -i '/alt-speed-up/s/50/100/' ${FILE}
sudo sed -i '/alt-speed-enabled/s/false/true/' ${FILE}
sudo sed -i '/alt-speed-time-begin/s/540/420/' ${FILE}
sudo sed -i '/alt-speed-time-end/s/1020/1439/' ${FILE}
sudo diff -U2 ${FILE}.orig ${FILE}
#sudo chown debian-transmission:debian-transmission ${FILE}
sudo mkdir /media/{music,video}; sudo chown pi:pi /media/{music,video}; sudo chmod 775 /media/{music,video}
sudo usermod -aG pi debian-transmission
sudo usermod -aG debian-transmission pi
sudo systemctl start transmission-daemon
ln -s /var/lib/transmission-daemon/.config/transmission-daemon/torrents ~/transmission-torrents
#add minidlna user to group debian-transmission
#only if user minidlna exists
id -u minidlna > /dev/null 2>&1 && sudo usermod -aG debian-transmission minidlna
#--------------------------------------
# Web URL http://x.x.x.x:9091/transmission/web/
transmission-remote --auth transmission:transmission -pt
Port is open: Yes
transmission-remote --auth transmission:transmission --no-portmap
localhost:9091/transmission/rpc/ responded: "success"
transmission-remote --auth transmission:transmission --portmap
localhost:9091/transmission/rpc/ responded: "success"