Last active
September 9, 2024 07:36
-
-
Save anderZubi/2612fab1abcdb4f2a9f7 to your computer and use it in GitHub Desktop.
Script to install Transmission BitTorrent client in WD MyCloud NAS
This file contains hidden or 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 | |
echo Backing up your sources.list... | |
cp /etc/apt/sources.list /etc/apt/sources.list.bak | |
echo Adding the sid repo to sources.list... | |
echo deb http://ftp.us.debian.org/debian/ sid main >> /etc/apt/sources.list | |
echo Updating the sid packages list... | |
apt-get update | |
echo Installing Transmission... - If asked to continue the installation, type Y and hit enter | |
apt-get -y install transmission-cli transmission-common transmission-daemon | |
echo Stopping Transmission so you can edit the settings.json file... | |
/etc/init.d/transmission-daemon stop | |
echo Setting Transmission to run as ROOT... | |
sed -i 's/USER=debian-transmission/USER=root /g' /etc/init.d/transmission-daemon | |
echo Disabling the dashboard login... | |
sed -i 's/"rpc-authentication-required": true,/"rpc-authentication-required": false,/g' /etc/transmission-daemon/settings.json | |
echo Disabling 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 Moving back your original sources.list... | |
mv -f /etc/apt/sources.list.bak /etc/apt/sources.list | |
# OPTIONAL but recommended for those wishing to have access to the actual .torrent files easily from the DataVolume | |
echo Creating a folder called torrents in your Public folder... | |
rmdir /var/lib/transmission-daemon/info/torrents | |
ln -s /DataVolume/shares/Public/torrents /var/lib/transmission-daemon/info/torrents | |
######## | |
echo Starting Transmission... | |
/etc/init.d/transmission-daemon start | |
echo -e "Transmission is installed and running\n" | |
echo For login to the Transmission GUI use | |
echo your mycloud IP or network name:9091 | |
echo -e "For example: wdmycloud:9091\n" | |
echo Click the wrench icon on the bottom left to set location for downloads | |
echo In the Download To box enter /DataVolume/shares/Public/Transmission or any share on your MyCloud |
Wouhou thanks a lot it works !!!!
On OS 5 you can install Transmission manually.
Transmission 1.15 tested and working. Download from
https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/Apps-OS5/
Can we confirm this script works properly on a 1st Gen MyCloud (firmware v04.05.00-342)?
Have read reports of bricking and Im wary of trying it.
what version of transmission will this install?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a few things to change.
rpc-bind-address
to "0.0.0.0" so that it no longer listen only to 127.0.0.1 and we don't need the reverse proxy of the NASrpc-port
to 9091 (I don't know why WD used 9092, I change back to 9091 which is the default one)rpc-url
back to /transmission/ which is the default valuerpc-whitelist
to "192.168.1.*" to allow all host in that network to access to the web UII didn't make a backup before my modification (my bad!). I don't remember correctly all of them. But I think they are (please add a comment to confirm).