LinHES Forums
http://forum.linhes.org/

Running Azureus in headless mode (torrent client/server)
http://forum.linhes.org/viewtopic.php?f=11&t=17614
Page 1 of 2

Author:  spalVl [ Sat Jan 12, 2008 1:20 pm ]
Post subject:  Running Azureus in headless mode (torrent client/server)

Here is a WIKI howto on installing and configuring Azureus in headless mode on top of KnoppMyth. Guide created with R5F27. It is a lengthy howto, but is pretty easy to do. If anyone wants the howto with pictures in an easier to read outline format PM me and I'll send.

http://www.knoppmythwiki.org/index.php? ... s+Headless

Be sure to help seed Knoppmyth after setup .
Enjoy :)

Author:  tscholl [ Sat Jan 12, 2008 1:47 pm ]
Post subject: 

The link you posted points back to your edit. Here's the link
http://www.knoppmythwiki.org/index.php?page=Azureus+Headless
Looks like a great write up!
Thanks

Author:  spalVl [ Sat Jan 12, 2008 2:37 pm ]
Post subject: 

tscholl wrote:
The link you posted points back to your edit....

Doh! Fixed, Thanks

Author:  Martian [ Tue Jan 15, 2008 12:07 pm ]
Post subject: 

Probably not as feature packed as Azureus, but I've had good luck with rtorrent ( http://libtorrent.rakshasa.no/ ), which I can run in a screen ( http://www.gnu.org/software/screen/ ) and access at will with putty ( http://www.chiark.greenend.org.uk/~sgtatham/putty/ ).

This way I can download torrents with a box that's always on and can control it from anywhere I have a net connection. I can even access it from my cell phone with midpssh ( http://www.xk72.com/midpssh/ )!

Martian

Author:  cloudtrix [ Sat Feb 02, 2008 8:56 am ]
Post subject: 

I followed the instructions and got to the point where I test the script.
$ ./azureus_script start
Script started, file is typescript

But I can not connect to it. It does work when I manually start it using ./azureus

Author:  spalVl [ Sat Feb 09, 2008 1:44 pm ]
Post subject: 

cloudtrix wrote:
I followed the instructions and got to the point where I test the script.
$ ./azureus_script start
Script started, file is typescript

But I can not connect to it. It does work when I manually start it using ./azureus


It should create a screen session. Try switching to that session to see what is going on.

screen -r azureus_screen

Author:  cloudtrix [ Sat Feb 09, 2008 3:30 pm ]
Post subject: 

just for info screen is not installed with knoppmyth
And the Java I downloaded is 1.5

There is no screen resumed matching azures_screen

if I hit ctrl D then I get the following:

Password:
Starting Azureus screen daemon: azureus_screen
Password:
And then the script works

One more not when I copy pasted the script it broke the command into two lines.

Author:  techman83 [ Tue Feb 12, 2008 7:08 am ]
Post subject: 

I use Torrentflux, in particular the Torrentflux-b4rt fork. More features than you can poke a stick at!!

Not running on my Knoppmyth Box, but if there some interest I could write a how to guide for running it.

It's pretty damn impressive and what it's designed for. I ssh to linux box at home, then do a port forward to my internal web server to use it. I guess it's probably useable via direct port forward, but I'm rather anal about security :P

http://www.torrentflux.com/

EDIT:

Just did a bit of checking, seems pretty straight forward.

Setup torrentflux user in mysql, with permissions to it's own database. Extract the torrentflux package to /var/www/torrentflux (accessable from http://ip_address/torrentflux). Vague recollection of having to import the SQL setup manually, which would be the hardest part! Point Torrentflux to the correct database, with the right username and password, then it's all up and running!

Very portable application too. I setup a new internal webserver, dumped the database, copied the data in /var/www to the new server, re-imported the database and hey presto, torrents continued where they left off :)

Author:  spalVl [ Tue Feb 12, 2008 9:41 pm ]
Post subject: 

cloudtrix wrote:
just for info screen is not installed with knoppmyth

One more not when I copy pasted the script it broke the command into two lines.


Did you install screen via apt-get then?

I don't recall doing that but may have.

The script is longer than 2 lines. Looks like this

Code:
#! /bin/sh
 
 #The user that will run Azureus
AZ_USER=mythtv
 
 #Name of the screen-session
 NAME=azureus_screen
 
 #executable files in the following paths that are perhaps needed by the script
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/mythtv/bin
 
 #your path to the azureus directory, where Azureus2.jar is located
DIR=/home/mythtv/azureus
 
 #Description
 DESC="Azureus screen daemon"
 
 case "$1" in
 start)
    if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]]
       then
       echo "Azureus is already running!"
    else
       echo "Starting $DESC: $NAME"
       su $AZ_USER -c "cd $DIR; screen -dmS $NAME java -jar ./Azureus2.jar --ui=console"
    fi
    ;;
 stop)
    if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]]
       then
       echo -n "Stopping $DESC: $NAME"
       su $AZ_USER -c "screen -X quit"
       echo " ... done."
    else
       echo "Coulnd't find a running $DESC"
    fi
    ;;
 restart)
    if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]]
        then
       echo -n "Stopping $DESC: $NAME"
       su $AZ_USER -c "screen -X quit"
       echo " ... done."
    else
       echo "Coulnd't find a running $DESC"
    fi
    echo "Starting $DESC: $NAME"
       su $AZ_USER -c "cd $DIR; screen -dmS $NAME java -jar ./Azureus2.jar --ui=console"
    echo " ... done."
    ;;
 status)
    if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]]
       then
       echo "Azureus is RUNNING"
    else
       echo "Azureus is DOWN"
    fi
    ;;
 *)
    echo "Usage: $0 {start|stop|status|restart}"
    exit 1
    ;;
 esac
 
 exit 0


@ Techman. I used TorrentFlux too, it was much easier to install over Azureues, but I always found it's lack of DHT support frustrating. For speed Azureus performed much better because it can connect to DHT peers and seeders. I never used the b4rt fork though. A Torrentflux guide would be great, there is a thread around here but that was for original Torrentflux project.

Author:  techman83 [ Tue Feb 12, 2008 9:47 pm ]
Post subject: 

Not sure about DHT in the b4rt fork, but it can also use azurues along with a number of other Bittorrent clients.

I personally don't use DHT as some of the trackers I tend to shy against it (preferring members only get access to the torrents). Don't have any speed issues, been known to pull upwards of a meg a second :D

Author:  RacerX [ Sun Feb 17, 2008 10:28 pm ]
Post subject: 

Thanks for the excellent Azureus Headless write up on wiki

It made the install process much more clear. This helps a lot when installing the dependencies... (Python and Java). Also the Azsmrc Plugin rocks. Your security tip was appreciated...

Thanks

:wink:

Author:  mediathreat [ Fri Feb 22, 2008 11:46 am ]
Post subject: 

it works excellent!

the wiki should be modified to include the set of apt-get install screen so that you can successfully run it headless.

Author:  spalVl [ Fri Feb 22, 2008 9:11 pm ]
Post subject: 

mediathreat wrote:
it works excellent!

the wiki should be modified to include the set of apt-get install screen so that you can successfully run it headless.


Updated for screen install

Author:  techman83 [ Sat Feb 23, 2008 9:00 pm ]
Post subject: 

spalVl wrote:

@ Techman. I used TorrentFlux too, it was much easier to install over Azureues, but I always found it's lack of DHT support frustrating. For speed Azureus performed much better because it can connect to DHT peers and seeders. I never used the b4rt fork though. A Torrentflux guide would be great, there is a thread around here but that was for original Torrentflux project.


Done. Formatting needs a little tweaking, but the guide is complete.

http://www.knoppmythwiki.org/index.php? ... ntfluxb4rt

Author:  granduke [ Fri May 09, 2008 11:51 am ]
Post subject: 

cloudtrix wrote:
I followed the instructions and got to the point where I test the script.
$ ./azureus_script start
Script started, file is typescript


I get the same thing he got and when I do a control-D I also get a password prompt. But I can't get any password to work.

Hopefully, someone has some ideas.

thanks

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/