Skip to content

Instantly share code, notes, and snippets.

@samklr samklr/output forked from MorganGeek/output
Created May 16, 2019

Embed
What would you like to do?
Install transmission on WD My Cloud
FMCloud:~# wget https://gist.githubusercontent.com/MorganGeek/43ecb0ef1ac65322cd9237c16e77a5bb/raw/c8be05b2305c5b03b0e6ea1f2f27628625145371/wdmycloud-install-transmission.sh
--2017-06-17 07:54:43-- https://gist.githubusercontent.com/MorganGeek/43ecb0ef1ac65322cd9237c16e77a5bb/raw/c8be05b2305c5b03b0e6ea1f2f27628625145371/wdmycloud-install-transmission.sh
Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 151.101.36.133
Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1136 (1.1K) [text/plain]
Saving to: `wdmycloud-install-transmission.sh'
100%[===================================================================================================================>] 1,136 --.-K/s in 0.001s
2017-06-17 07:54:48 (1.71 MB/s) - `wdmycloud-install-transmission.sh' saved [1136/1136]
FMCloud:~# ls
setuptransmission.sh wdmycloud-install-transmission.sh
FMCloud:~# mv wdmycloud-install-transmission.sh setuptransmission.sh
mv: overwrite `setuptransmission.sh'? y
FMCloud:~# sh setuptransmission.sh ^C
FMCloud:~# ls -latr
total 24
-rw-r--r-- 1 root root 140 Nov 19 2007 .profile
-rwxr-xr-x 1 root root 465 Mar 31 23:43 .bashrc
drwxr-xr-x 25 root root 4096 Apr 27 16:03 ..
-rw------- 1 root root 344 May 22 22:28 .bash_history
-rw-rw-rw- 1 root root 1136 Jun 17 07:54 setuptransmission.sh
drwx------ 2 root root 4096 Jun 17 07:54 .
FMCloud:~# chmod +x setuptransmission.sh
FMCloud:~# ls -latr
total 24
-rw-r--r-- 1 root root 140 Nov 19 2007 .profile
-rwxr-xr-x 1 root root 465 Mar 31 23:43 .bashrc
drwxr-xr-x 25 root root 4096 Apr 27 16:03 ..
-rw------- 1 root root 344 May 22 22:28 .bash_history
-rwxrwxrwx 1 root root 1136 Jun 17 07:54 setuptransmission.sh
drwx------ 2 root root 4096 Jun 17 07:54 .
FMCloud:~# sh setuptransmission.sh
Backup your sources.list
Add the sid repo to sources.list
Update the sid packages list
Hit http://ftp.us.debian.org jessie Release.gpg
Hit http://ftp.us.debian.org sid Release.gpg
Hit http://ftp.us.debian.org jessie Release
Hit http://ftp.us.debian.org sid Release
Hit http://ftp.us.debian.org jessie/main armhf Packages
Get:1 http://ftp.us.debian.org jessie/main Translation-en [4583 kB]
echo Backup your sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo Add the sid repo to sources.list
echo deb http://ftp.us.debian.org/debian/ sid main >> /etc/apt/sources.list
echo Update the sid packages list
apt-get update
echo Install Transmission - When asked to continue the installation type y and hit enter
apt-get install transmission-cli transmission-common transmission-daemon
echo Stop Transmission so you can edit the settings.json file
/etc/init.d/transmission-daemon stop
echo Set Transmission to run as ROOT (Optional)
sed -i 's/USER=debian-transmission/USER=root /g' /etc/init.d/transmission-daemon
echo Disable the dashboard login
sed -i 's/"rpc-authentication-required": true,/"rpc-authentication-required": false,/g' /etc/transmission-daemon/settings.json
echo Disable the RPC whitelist so you can access the Transmission GUI
sed -i 's/"rpc-whitelist-enabled": true,/"rpc-whitelist-enabled": false,/g' /etc/transmission-daemon/settings.json
echo Restore your original sources.list
mv -f /etc/apt/sources.list.bak /etc/apt/sources.list
echo Start Transmission
/etc/init.d/transmission-daemon start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.