1. Subscriptions
  2. Services
  3. Hardware
  4. Support

ClearFoundation

Forums
Welcome, Guest
Transmission How To
(1 viewing) 1 Guest
Go to bottomPage: 12345678...20
TOPIC: Transmission How To
*
#5081
Re:Transmission How To 2 Years ago  
I have transmisson working excelently but I can only seem to access the web interface from my lan.

My problem is now I added the exception port 9091 into the incoming firewall but I can't access it remotely.

I there something in here restricting that?
Parker
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5135
Re:Transmission How To 2 Years ago  
I followed the instructions and hit a small snag. "rpm -ivh curl-devel-7.16.4-8.el5.i386.rpm" failed as follows:
Code:

rpm -ivh curl-devel-7.16.4-8.el5.i386.rpm
Preparing...                ########################################### [100%]
        file /usr/bin/curl-config from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/include/curl/curl.h from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/include/curl/curlver.h from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/include/curl/mprintf.h from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/include/curl/multi.h from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/lib/libcurl.so from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/lib/pkgconfig/libcurl.pc from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_easy_cleanup.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_easy_getinfo.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_easy_setopt.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_formadd.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_multi_info_read.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_multi_perform.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_multi_setopt.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_multi_socket.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_slist_append.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/curl_version_info.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/libcurl-errors.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/libcurl-multi.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386
        file /usr/share/man/man3/libcurl-tutorial.3.gz from install of curl-devel-7.16.4-8.el5.i386 conflicts with file from package curl-devel-7.15.5-2.1.el5_3.5.i386



It looks like it did not want to install the new package over the old. The solution was to remove the old rpm first:
Code:

rpm -e curl-devel

and then proceed as before.

I have majorly hacked the init.d script so you do not need to install the start-stop-daemon. Instead it uses the standard COS (and RHEL/CentOS/FC?) start up routines. As before, create the file /etc/init.d/transmission-daemon and paste the following into it:

Code:

#! /bin/sh
### BEGIN INIT INFO
# Short-Description: Start the transmission BitTorrent daemon client.
#
# chkconfig: 2345 90 91
# description: Start up transmission-daemon
#
# processname: transmission-daemon
### END INIT INFO

# Original Author: Lennart A. JÃ.tte, based on Rob Howell's script
# Modified by Maarten Van Coile & others (on IRC)
# Then heavily hacked by Nick Howitt for ClearOS

# Do NOT "set -e"

# Source function library.
. /etc/rc.d/init.d/functions

#
# ----- CONFIGURATION -----
#
# For the default location Transmission uses, visit:
# http://trac.transmissionbt.com/wiki/ConfigFiles
# For a guide on how set the preferences, visit:
# http://trac.transmissionbt.com/wiki/EditConfigFiles
# For the available environement variables, visit:
# http://trac.transmissionbt.com/wiki/EnvironmentVariables
#
# The name of the user that should run Transmission.
# It's RECOMENDED to run Transmission in it's own user,
# by default, this is set to 'transmission'.
# For the sake of security you shouldn't set a password
# on this user
USERNAME=transmission


# ----- *ADVANCED* CONFIGURATION -----
# Only change these options if you know what you are doing!
#
# The folder where Transmission stores the config & web files.
# ONLY change this you have it at a non-default location
#TRANSMISSION_HOME="/var/config/transmission-daemon"
#TRANSMISSION_WEB_HOME="/usr/share/transmission/web"
#
# The arguments passed on to transmission-daemon.
# ONLY change this you need to, otherwise use the
# settings file as per above.
#TRANSMISSION_ARGS=""


# ----- END OF CONFIGURATION -----
#
# PATH should only include /usr/* if it runs after the mountnfs.sh script.
# pidfile: /var/run/transmission-daemon.pid
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
DESC="bittorrent client"
NAME=transmission-daemon
DAEMON=$(which $NAME)
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting $DESC" "$NAME..."

        if status -p $PIDFILE $NAME > /dev/null; then
                failure
                echo
                echo $"$NAME already running or has terminated incorrectly"
                echo 'Please do a "service' $NAME 'stop" first'
                exit 1
        fi

        # Export the configuration/web directory, if set
        if [ -n "$TRANSMISSION_HOME" ]; then
                export TRANSMISSION_HOME
        fi
        if [ -n "$TRANSMISSION_WEB_HOME" ]; then
                export TRANSMISSION_WEB_HOME
        fi

        daemon --user "$USERNAME" --pidfile $PIDFILE $DAEMON $TRANSMISSION_ARGS

        RETVAL=$?
        echo
        if [ $RETVAL = 0 ]; then
                pidof $DAEMON > ${PIDFILE}
                touch /var/lock/subsys/$NAME
        fi
        ;;
  stop)
        echo -n "Stopping $DESC" "$NAME..."
        killproc $NAME
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$NAME -f ${PIDFILE}
        ;;
  status)
        status -p $PIDFILE $NAME
        RETVAL=$?
        ;;
  restart|reload)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  condrestart)
        if test "x`/sbin/pidof $prog`" != x; then
                $0 stop
                $0 start
                RETVAL=$?
        fi
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL


Then as before, finish off with:
Code:

chmod +x /etc/init.d/transmission-daemon
chkconfig --add transmission-daemon
service transmission-daemon start



If anyone has any comments about the script, please ask. I am still learning and a lot was copied (un-tested) from the original script and I am happy to make changes.

One other thing I did differently to bartsidee was instead of changing rpc-whitelist-enabled in settings.json, I changed rpc-whitelist to allow my LAN subnet.

I've got this far and I've managed to download a torrent which I found on one site. How do you download a torrent found on a site like isohunt? All managed to download was the tracker file!
Nick Howitt
Platinum Boarder
Posts: 2380
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/03 14:16 By NickH.
The administrator has disabled public write access.
 
#5215
Re:Transmission How To 2 Years ago  
To anyone following this thread, I've made a couple of changes to the above script of mine to correct minor errors.
Nick Howitt
Platinum Boarder
Posts: 2380
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5304
Re:Transmission How To 1 Year, 12 Months ago  
I've edited my start-up script again.

Change:
Code:

ps -fe | grep $DAEMON | head -n1 | cut -d" " -f 6 > ${PIDFILE}


to
Code:

ps -fe | grep $DAEMON | head -n1 | awk '{print $2}' > ${PIDFILE}


The original code snippet I found in the internet was failing if the process ID was only 4 digits long.
Nick Howitt
Platinum Boarder
Posts: 2380
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6508
Re:Transmission How To 1 Year, 11 Months ago  
I am install Transmission 1.91 on my router ClearOS 5.1 and I have a few problems arose.
1) I want see log separately from system log? How I can do that?
2) Some time I get error in log Couuldn`t connect soket... What does it mean?
Tim.San
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/02 10:34 By Tim.San.
The administrator has disabled public write access.
 
#6579
Re:Transmission How To 1 Year, 11 Months ago  
Hi all

Grate how to, thought id give it a go!

Got a problem and thats when i go to the Trasmission page, all i get is

403: Forbidden
Unauthorized IP Address.

Either disable the IP address whitelist or add your address to it.

If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.

If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

in my web browser. Unfortunatly im not on the local lan and wont be untill next week some time. I am connected via openVPN though so i dident think this would matter.

Iv looked at my config and tryed a few things but have not got any where. Iv check the internet and looks fairly common but none of the fix's iv found have helped.

{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "\/home\/duncan\/Downloads",
"encryption": 1,
"incomplete-dir": "\/home\/duncan\/.config\/transmission-daemon\/Incomplete",
"incomplete-dir-enabled": false,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password":"{fd501c6838ab9ffea56b45514d1c106f2121d519iOF7FE0Q",
"rpc-port": 9091,
"rpc-username": "duncan",
"rpc-whitelist": "127.0.0.1,192.168.15.*,10.0.0.*",
"rpc-whitelist-enabled": true,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"umask": 18,
"upload-slots-per-torrent": 14
}

Any idears?
Duncan Rix
Gold Boarder
Posts: 253
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6580
Re:Transmission How To 1 Year, 11 Months ago  
Hey Parker, look at teh whitelist in your settings, maybe that is restricting you, you could also try to add a proxy to apache, in that case you could also acces transmission over https
bartsidee
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6581
Re:Transmission How To 1 Year, 11 Months ago  
Hey Duncan,

Try to set your whitelist settings to false:

"rpc-whitelist-enabled": false,

and look if it helps, ofcourse restart transmission after that
bartsidee
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6582
Re:Transmission How To 1 Year, 11 Months ago  
Thanks for your quick reply bartsidee.

I have tryed that all ready and yes i stoped and then started Transmission.

I have how ever found that iv got two transmission files in init.d file, this may be my prob. Ill correct this and let you know

Thanks again
Duncan Rix
Gold Boarder
Posts: 253
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6583
Re:Transmission How To 1 Year, 11 Months ago  
You could also check user rights to the settings file, because transmission will use a default one if it doesn't find or have access the one supplied in your startup script
bartsidee
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12345678...20
  get the latest posts directly to your desktop