WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline batnas

  • Full Member
  • ***
  • Posts: 122
HOWTO: transmission with web - no GUI
« on: July 03, 2010, 06: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, 02:50:19 AM by batnas »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: HOWTO: transmission with web - no GUI
« Reply #1 on: July 03, 2010, 07: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, 07: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, 03: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: 10957
Re: HOWTO: transmission with web - no GUI
« Reply #4 on: April 23, 2011, 11: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 24, 2011, 12:59:49 AM »
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: 10957
Re: HOWTO: transmission with web - no GUI
« Reply #6 on: April 24, 2011, 08: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, 07: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).

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: HOWTO: transmission with web - no GUI
« Reply #8 on: September 02, 2016, 11:11:31 PM »
Hi ..I managed to install transmission on tcl hard drive with no problem, the USB (tinycore boot from usb flash) is tricky though. So here is my problem.
Transmission overwrite setting.json and stats.json on every boot, so my download is always start over...cant resume
and I cant change transmission setting via web w/o losing the saved setting upon rstart (unless i do backup )

Heres is my box
Linux box 4.2.9-tinycore
Transmission 2.83
settings.json and stats.json is root files and -rwxrwxrwx and its in ntfs-3g mounted drive


Is there any ideas/input for me ?
I'm noob so please be very detail on how to  ;)
thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: HOWTO: transmission with web - no GUI
« Reply #9 on: September 03, 2016, 03:41:08 AM »
Transmission is a Linux app, most likely it doesn't like using a non-Linux filesystem for its files.
The only barriers that can stop you are the ones you create yourself.

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: HOWTO: transmission with web - no GUI
« Reply #10 on: September 04, 2016, 03:35:28 AM »
Hmm..
I will test on fat32 than...

Thanks for the insight Curaga

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: HOWTO: transmission with web - no GUI
« Reply #11 on: September 04, 2016, 04:19:06 AM »
fat32 is still not a linux file system - try with ext2, ext3 or ext4

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: HOWTO: transmission with web - no GUI
« Reply #12 on: September 04, 2016, 04:53:56 AM »
Tried fat32 and its working...settings.json and stats.json is fine on fat32 partition.
I hope this goes on w/o error... ;D

Thanks

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: HOWTO: transmission with web - no GUI
« Reply #13 on: September 04, 2016, 05:56:11 AM »
 ;D report back...
fat32 working on reboot (sudo reboot) but not on powerloss..
I will slice the partition and make one ext4, and ntfs on others.

How do I edit my previous post ?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: HOWTO: transmission with web - no GUI
« Reply #14 on: September 04, 2016, 06:03:25 AM »
Hi aris
Quote
How do I edit my previous post ?
You have 30 minutes to go back and edit a post. After that, you'll have to ask a moderator if you need something corrected.