[SOLVED] Problem setting up Transmission

Hi,

I know there are several threads about that topic out there, but none of them seemed to help me.

I’ve followed the following steps:

run commands (in putty):
sudo apt-get install transmission-daemon
sudo /etc/init.d/transmission-daemon stop
sudo nano /etc/transmission-daemon/settings.json

once you are the nano editor, look for and change the following:
“rpc-whitelist”: “127.0.0.1?, to “rpc-whitelist”: “...”,
“rpc-password”: “password”, to “rpc-password”: “osmc“,
“rpc-username”: “username”, to “rpc-username”: “osmc”,
“download-dir”: “/var/lib/transmission-daemon/downloads”, to “download-dir”: “/media/Mediastorage 2/Downloads",

safe file by ctrl+x then y

run commands:
sudo chmod g+rw ‘/media/Mediastorage 2/Downloads’
sudo chgrp -R debian-transmission ‘/media/Mediastorage 2/Downloads’

to grant permission for access:
sudo nano /etc/init.d/transmission-daemon

change following:
USER=debian-transmission to USER=root

start transmission:
sudo /etc/init.d/transmission-daemon start

After that I’ve tried adding both my external HDDs (attached via USB hub to Raspberry PI) to the fstab:

enter commands:
df

shows following:
/dev/sdb1
/dev/sdc1

sudo pico /etc/fstab

/dev/sdb1 /media/Mediastorage ntfs-3g defaults 0 0
/dev/sdc1 ‘/media/Mediastorage 2’ ntfs-3g defaults 0 0

I screwed the fstab up that way. Wasn’t able to properly boot anymore. Not sure about the quotes.

So now I’m back to square one and reinstalling OSMC…

Once I’m back at installing transmission again, I want to make sure not to mess it up again.

with my setup the usb drives are automatically mounted at boot so didnt need to play with fstab.

also looking at the changes you made above you probably need to change
“rpc-whitelist”: “…” to “rpc-whitelist”: “...
or leave that one as it is and just disable it completely:
“rpc-whitelist-enabled”: true, to “rpc-whitelist-enabled”: false,

edit: I see the forum doesnt let you put stars in so im guessing your whitelist already has stars between the dots :smile:

Yes, I was using stars (asterisks) :smile:

As far as the fstab goes. With my fresh install, I saw that the drives were mounted automatically too, so you may be right that I won’t have to fiddle with the fstab.

But then, were am I doing something wrong?

yea the name had escaped me to lol
the only other thing I do different from the guides was I run transmission under osmc user and didnt use the script in the init.d folder I could never get that to run, I use a script in /etc/systemd/system/ and then

sudo systemctl enable to enable auto boot
sudo systemctl start manual start
systemctl stop and manual stop

the script im using (cant remember where i got it from)

[code] [Unit]
Description=Transmission Bit Torrent Daemon

[Service]
User=osmc
Type=forking
PIDFile=/var/lib/transmission-daemon/.config/transmission-daemon/trans.PID
ExecStart=/usr/bin/transmission-daemon --pid-file /var/lib/transmission-daemon/.config/transmission-daemon/trans.PID --config-dir /var/lib/transmission-daemon/.config/transmission-daemon/
[Install]
WantedBy=multi-user.target
[/code]

then just had to sort out some permissions:

sudo chown osmc:osmc /etc/transmission-daemon/settings.json
sudo chown -R osmc:osmc /var/lib/transmission-daemon
sudo chmod 775 /etc/transmission-daemon/settings.json

I remember having issues with the pid file if memory serves I did this
sudo touch /var/lib/transmission-daemon/.config/transmission-daemon/trans.PID
sudo chmod 777 /var/lib/transmission-daemon/.config/transmission-daemon/trans.PID

reboot and all was good

(this may not be the best way to set it up but its what worked for me :smile:)

hope that helps

edit: corrected formatting issue on script

Thanks for your answers so far.

But maybe I should have mentioned that I’m a total Linux newb and not familiar with anything concerning Linux.
So I don’t know how to install (I don’t know if that’s the correct term here) a custom script in a specific location. You would have to tell me the exact commands I have to type in the command step by step :\

sorry :smile: so how I did it from memory:
sudo apt-get install transmission-daemon
sudo service transmission-daemon stop
sudo chown osmc:osmc /etc/transmission-daemon/settings.json
sudo chown -R osmc:osmc /var/lib/transmission-daemon
sudo chmod 775 /etc/transmission-daemon/settings.json
sudo nano /etc/transmission-daemon/settings.json

change “rpc-whitelist-enabled”: true, to “rpc-whitelist-enabled”: false,
“rpc-password”: “password”,
“rpc-username”: “username”, (to what ever you want)
change the download directory to your location aswell
ctr x and y to save

sudo nano /etc/systemd/system/trans.service
copy and past the script above and save

sudo systemctl enable trans.service
sudo chown osmc:osmc /etc/transmission-daemon/settings.json
sudo chown -R osmc:osmc /var/lib/transmission-daemon
sudo chmod 775 /etc/transmission-daemon/settings.json
sudo touch /var/lib/transmission-daemon/.config/transmission-daemon/trans.PID
sudo chmod 777 /var/lib/transmission-daemon/.config/transmission-daemon/trans.PID

then try sudo systemctl start trans.service

if you get no error message try going to

“yourip”:9091 in browser and with any luck it should pop up

restart the pi an try again hopefull should load

(the init.d script will still be there failing each boot you can probly delete the file and be ok but someone there is also prob a clearer way to disable that one but im not sure what it is but it hasnt caused me any probs)

see how you get on

pete

1 Like

The line
sudo systemctl enable trans.service
gives the message
Failed to execute operation: Bad message

sorry the script got a little messed up pasting onto forum I didnt notice
ExecStart= line should all be one line the next line should start with [install]

edit: script below should work,

PS after editing script run command

sudo systemctl daemon-reload

[Unit]
Description=Transmission Bit Torrent Daemon
[Service]
User=osmc
Type=forking
PIDFile=/var/lib/transmission-daemon/.config/transmission-daemon/trans.PID
ExecStart=/usr/bin/transmission-daemon --pid-file /var/lib/transmission-daemon/.config/transmission-daemon/trans.PID --config-dir /var/lib/transmission-daemon/.config/transmission-daemon/
[Install]
WantedBy=multi-user.target

Pete, you’re the man! Works like a charm so far!

Thanks for the quick responses and the help you’ve provided!

your welcome glad I could help :smiley:

Hi pete what exactly does this mean? sorry for the noob question lol

hi phate1 nevermind mate, figured it out thanks for this guide I have an issue however basically the port is closed how can this be made open?