WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: HOWTO: transmission with web - no GUI  (Read 7193 times)

Offline batnas

  • Full Member
  • ***
  • Posts: 122
HOWTO: transmission with web - no GUI
« on: July 03, 2010, 05:29:41 AM »
This guide will tell you how to run transmission with no GUI and only a web interface.
This is useful if you have a server running only MC

Because wo do not need a GUI, we do not need all the dependencys of transmission.
This script will install transmission with only our deps:

Code: [Select]
mkdir -p /tmp/transmission
cd /tmp/transmission
tce-fetch.sh transmission.tcz
tce-fetch.sh curl.tcz
tce-fetch.sh curl.tcz.dep
tce-fetch.sh openssl-0.9.8.tcz
tce-fetch.sh libevent.tcz
echo curl.tcz > transmission.tcz.dep
echo libevent.tcz >> transmission.tcz.dep
tce-load -i transmission.tcz
cp * `cat /opt/.tce_dir`optional/
cd `cat /opt/.tce_dir`
echo transmission.tcz >> onboot.lst

NB TC/MC-versions 2.x DO NOT need libevent.tcz - you can remove the lines with libevent.tcz

Now we need a config file.
You can look at this
https://trac.transmissionbt.com/wiki/ConfigurationParameters
webpage for help with setup.
Or you can use the one i have attached. You will then have to edit 'rpc-whitelist' or 'rpc-whitelist-enabled'

To start the daemon you use
Code: [Select]
transmission-daemon -g /settings/folder/NOTE: the -g flag wants a folder, not the actual settings.json

If you want to change the folder whee transmission saves the files, you can do so frem the web-interface.


EDIT 1: removed 'tce-fetch.sh transmission.tce.dep' - see post #2


\\Batnas
« Last Edit: July 18, 2010, 01:50:19 AM by batnas »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 7992
Re: HOWTO: transmission with web - no GUI
« Reply #1 on: July 03, 2010, 06:46:54 AM »
Good instructions.

Noticed an unnecessary line:
tc@box:/tmp/transmission$ tce-fetch.sh transmission.tcz.dep

It's written from scratch anyway, no need to download it first.
The only barriers that can stop you are the ones you create yourself.

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: HOWTO: transmission with web - no GUI
« Reply #2 on: July 03, 2010, 06:56:49 AM »
Thanks.
It is corrected ;D

Offline bitsnbytes

  • Newbie
  • *
  • Posts: 7
Re: HOWTO: transmission with web - no GUI
« Reply #3 on: April 23, 2011, 02:09:39 PM »
I plan to run transmission as a headless server on tiny core and have installed the latest version (which I assume is 3.5.1 since the downloaded iso doesn't contain the version). I've followed the instructions from this site and have a few issues, perhaps the instructions are out of date and possibly require updating for a noob like me  ;D

1. Most of the commands in code block 1 are fine, however when I execute the command below
Code: [Select]
cp * `cat /opt/.tce_dir`optional/It complains that the directory is not found
Code: [Select]
cp: can't create '/tmp/tceoptional/curl.tcz': Path does not existDo I need to create the tceoptional folder?

Also, when navigating to the folder below
Code: [Select]
cd `cat /opt/.tce_dir` (which turns out to be /tmp/tce), there is no file called onboot.lst
Code: [Select]
echo transmission.tcz >> onboot.lstDo I need to create the onboot.lst file?

2. There doesn't seem to be any configuration file attached with the post, unless I should be looking somewhere else  ???
Now we need a config file.
You can look at this
https://trac.transmissionbt.com/wiki/ConfigurationParameters
webpage for help with setup.
Or you can use the one i have attached. You will then have to edit 'rpc-whitelist' or 'rpc-whitelist-enabled'
Also, where do I save the configuration file once downloaded?

3. When I attempt to start the transmission-daemon
Code: [Select]
transmission-daemon -g /settings/folder/ I get the error message below
Code: [Select]
transmission-daemon: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
4. And finally  ;D,
If you want to change the folder whee transmission saves the files, you can do so frem the web-interface.
Does this mean that any settings done from the web interface will be stored in the configuration file?

Sorry for so many questions, but am a linux newbie here  :-[

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 7992
Re: HOWTO: transmission with web - no GUI
« Reply #4 on: April 23, 2011, 10:36:02 PM »
1. Please set up persistence first, with /tmp/tce things would be in ram and you would lose them on reboot.
Perhaps the instructions need an additional slash ("/optional" vs "optional") after that.

2. Attachments can only be seen when logged in.
The only barriers that can stop you are the ones you create yourself.

Offline bitsnbytes

  • Newbie
  • *
  • Posts: 7
Re: HOWTO: transmission with web - no GUI
« Reply #5 on: April 23, 2011, 11:59:49 PM »
Thanks curaga , how do I setup persistence? Is this the same as installing to hard drive?

Perhaps the instructions need an additional slash ("/optional" vs "optional") after that.
Does this mean the command should be
Code: [Select]
cp * `cat /opt/.tce_dir`/optional/
2. Attachments can only be seen when logged in.
Thanks, got that now. Should I just overwrite the existing settings.json file?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 7992
Re: HOWTO: transmission with web - no GUI
« Reply #6 on: April 24, 2011, 07:35:35 AM »
To pick a tce drive, just open appbrowser and click the "set" button. Your modified command is ok.


I can't answer the other questions, not a Transmission user myself.
The only barriers that can stop you are the ones you create yourself.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: HOWTO: transmission with web - no GUI
« Reply #7 on: April 24, 2011, 06:30:38 PM »
I'm also not in a position to give advice on transmission-specific questions, but if you are still unsure about the 'echo STRING >> FILE' question let me spell out some generic *NIX knowledge:
  • If using output redirection with '>>' the destination file will be created if it does not exist or otherwise the STRING will be added at the end of the file (so it's essentialy a "create or append" action).
  • Compare this to the use of '>' which would overwrite an already existing file (so it's essentialy a "create or replace" action).