LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   xbmcbuntu & transmission-daemon (https://www.linuxquestions.org/questions/linux-newbie-8/xbmcbuntu-and-transmission-daemon-941486/)

jlivin25 04-24-2012 09:36 AM

xbmcbuntu & transmission-daemon
 
3 Attachment(s)
Hello All

Well its that point where as a relative Linux noob i have to ask for help as google has not been able to help me (please bare in mind i really have searched hard and experimented before getting to the point of asking for help as i do try to do it myself first)

I have a Acer Revo 3700 on which i am running (very happily) xbmcbuntu Eden (based on ubuntu 11.10).

Essentially it is configured to boot automatically into XBMC without showing any desktop environment, however if you choose to you can access this.(which i believe is based on 'openbox')

What i am trying to acheive is to have a torrent program start automatically on boot. Previously i had transmission to do this and used the desktop to 'add it to start up programs' and i added the 'minimised' switch so it didn't start with an open window.

I can't however replicate this in xbmcbuntu.

After a lot of reading i began to understand that i didn't want to use the GUI i needed to have transmission-daemon installed and have this run and access it via the remote client ability.

The problem is that as a traditionally GUI based user i'm struggling with correctly identifying how to configure transmission from the command prompt (via ssh)

i have successfully installed transmission using sudo apt-get install transmission-daemon.

i found the transmission website and followed the instructions there about what to change. (https://trac.transmissionbt.com/wiki/EditConfigFiles)

so i editited the original settings.json in the correct folder (original attached) with the code i believe i need to run transmission-daemon with an alternative speed limit enabled and access capable from my network (on the 192.168.0.* range)

i then restarted transmission-daemon using the command listed in the web page above but am blocked access.

Deciding to stop there adn see if i could get the daemon to start on boot i followed the instructions here (https://trac.transmissionbt.com/wiki/Scripts/initd) to place a script in the init.d folder. but it doesn't work.

Any ideas what i may have done wrong and how to make it start in boot?

I've attached the settings.json that i have 'concocted from the website, the original, and the inid.d transmission.daemon script i created as text files for reference

Thanks

James

FNC 04-25-2012 08:58 AM

Hi jlivin25,

Make sure that you stop the transmission service before editing the settings.json
From the shell run:
Code:

sudo /etc/init.d/transmission-daemon stop
For you to be able to connect to the web interface you only need to change the "rpc-whitelist" option to match your network.
So if your network range is 10.0.x.x, change the rpc-whitelist like this"
Code:

"rpc-whitelist": "127.0.0.1,10.0.*.*",
Then start the transmission daemon
Code:

sudo /etc/init.d/transmission-daemon start
Once it is started you can access the web interface in a browser by going to "http://xbmcip:9091"
From there you can configure speed and other options as you like.

jlivin25 04-25-2012 03:24 PM

transmission
 
2 Attachment(s)
Quote:

Originally Posted by FNC (Post 4662707)
Hi jlivin25,

Make sure that you stop the transmission service before editing the settings.json
From the shell run:
Code:

sudo /etc/init.d/transmission-daemon stop
For you to be able to connect to the web interface you only need to change the "rpc-whitelist" option to match your network.
So if your network range is 10.0.x.x, change the rpc-whitelist like this"
Code:

"rpc-whitelist": "127.0.0.1,10.0.*.*",
Then start the transmission daemon
Code:

sudo /etc/init.d/transmission-daemon start
Once it is started you can access the web interface in a browser by going to "http://xbmcip:9091"
From there you can configure speed and other options as you like.

Thanks very much mate.

I have followed your instructions, thank you

However it doesn't appear to have worked.

I stopped the daemon.

edited settings.json, added 192.168.*.* as you can see from the attached screenshot (settings.jpeg)

Then restarted the daemon

tried to access through web browser and get a forbidden notice...:(

see 403 forbidden.jpeg, any other ideas?

James

FNC 04-26-2012 12:31 AM

Hi James,

I think you are editing the wrong file.
You should edit
Code:

/etc/transmission-daemon/settings.json
you might also want to change the
Code:

"rpc-username": "transmission",
and
Code:

"rpc-password": "{48d96e8514662f5f91da1b0b2a4caa309056889db31VOUi7",
The default password is "transmission"

You do not need edit or add any startup script, transmission-daemon should start automatically when you boot.

jlivin25 04-26-2012 03:17 AM

transmission-daemon
 
Quote:

Originally Posted by FNC (Post 4663200)
Hi James,

I think you are editing the wrong file.
You should edit
Code:

/etc/transmission-daemon/settings.json
you might also want to change the
Code:

"rpc-username": "transmission",
and
Code:

"rpc-password": "{48d96e8514662f5f91da1b0b2a4caa309056889db31VOUi7",
The default password is "transmission"

You do not need edit or add any startup script, transmission-daemon should start automatically when you boot.

Hi FNC

Thanks for the advice I will give it a go as soon as I get near my computer. I genuinely thought I had the right file location, so will check :) I will also change username to transmission, I'll leave the password as transmission until I can confirm its fixed :)

Will update in about 9 hrs when home

James

jlivin25 04-26-2012 01:00 PM

Solved
 
Quote:

Originally Posted by jlivin25 (Post 4663337)
Hi FNC

Thanks for the advice I will give it a go as soon as I get near my computer. I genuinely thought I had the right file location, so will check :) I will also change username to transmission, I'll leave the password as transmission until I can confirm its fixed :)

Will update in about 9 hrs when home

James

Hello

Thats absolutely worked, thankyou!!!

i will now set to work configuring the other bits :)

Many thanks FNC!!


All times are GMT -5. The time now is 10:11 PM.