Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Aug 02, 2014 1:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 

Is the How To good and could it helps you?
yes 33%  33%  [ 1 ]
no 33%  33%  [ 1 ]
Ja 33%  33%  [ 1 ]
Nein 0%  0%  [ 0 ]
Total votes : 3
Author Message
PostPosted: Sat Nov 10, 2007 9:33 pm 
Offline
Newbie

Joined: Fri Sep 07, 2007 6:12 pm
Posts: 30
Location: Cologne, Germany
EDIT: This guide is for FreeLink (Debian). -- mindbender
EDIT by Moon: German Translation - rtorrent mit xmlrpc-c, lighttpd und ntorrent

  1. Install Basics
    Code:
    sudo aptitude install build-essential libsigc++-2.0-dev pkg-config comerr-dev libcurl3-openssl-dev libidn11-dev libkadm55 libkrb5-dev libssl-dev zlib1g-dev libncurses5 libncurses5-dev libtool automake svn-arch-mirror screen libxmlrpc-c3-dev


  2. rtorrent from subversion
    Code:
    cd /usr/src

    svn co svn://rakshasa.no/libtorrent/trunk
    cd trunk
    svn up

    cd libtorrent
    ./autogen.sh
    ./configure --prefix=/usr CXXFLAGS="-O2 -mtune=arm9tdmi -march=armv5"
    make && make install

    cd ../rtorrent
    ./autogen.sh
    ./configure --prefix=/usr CXXFLAGS="-O2 -mtune=arm9tdmi -march=armv5"  \
    --enable-aligned --with-xmlrpc-c

    make && make install


  3. Create User torrent
    Code:
    useradd torrent -g samba_user_group # Use your samba user group
    passwd torrent


  4. Add the torrent folders
    TIP: where_you_want path must be use by samba
    Code:
    mkdir /where_you_want/torrent
    mkdir /where_you_want/torrent/files
    mkdir /where_you_want/torrent/session
    mkdir /where_you_want/torrent/watch


  5. Create .rtorrent.rc
    -> Please look at "where_you_want" (3 Times)
    Code:
    login torrent
    nano .rtorrent.rc

    ADD:
    scgi_port = 127.0.0.1:5000
    #scgi_local = /home/torrent/rpc.socket

    upload_rate = 0
    download_rate = 0

    max_uploads = 3
    min_peers = 40
    max_peers = 100

    ip = 127.0.0.1

    # Encryption
    #encryption = allow_incoming,enable_retry,prefer_plaintext
    #peer_exchange = yes

    # Default directory to save the downloaded torrents.
    directory = /where_you_want/torrent/files

    # Default session directory.
    session = /where_you_want/torrent/session

    # Watch a directory for new torrents, and stop those that have been deleted.
    schedule = watch_directory,5,5,load_start=/where_you_want/torrent/watch/*.torrent
    schedule = untied_directory,5,5,stop_untied=

    # Close torrents when diskspace is low.
    schedule = low_diskspace,5,60,close_low_diskspace=100M

    # Port range to use for listening.
    port_range = 52000-53999

    # Set whetever the client should try to connect to UDP trackers.
    use_udp_trackers = yes

    check_hash = yes



  6. Lighttpd
    -> Add in /etc/lighttpd/lighttpd.conf: "mod_scgi",

    Code:
    nano /etc/lighttpd/conf-enabled/10-scgi.conf

    ADD:
    server.modules   += ( "mod_scgi" )

    ## Start an sCGI server for nTorrent and rtorrent
    scgi.debug = 0
    scgi.server = ( "/RPC2" =>
                             ( "127.0.0.1" =>
                                (   #"socket" => "/home/torrent/rpc.socket",
                                    "host" => "127.0.0.1",
                                    "port" => 5000,
                                    "check-local" => "disable",
                                    "disable-time" => 0,  # don't disable scgi if connection fails
                                 )
                              )
                   )


  7. Autostart
    Code:
    nano /etc/rc.local

    ADD:
    su -c 'screen -q -dmS rtorrent rtorrent' torrent



    -> Reboot and look if rtorrent is running

  8. nTorrent for the client - Ubuntu/Debian
    -> Open a Terminal

    Code:
    mkdir ~/ntorrent
    cd ~/ntorrent
    wget http://ntorrent.googlecode.com/files/nTorrent-bin-20071015.tar.bz2
    tar xfvj nTorrent-bin-20071015.tar.bz2
    rm nTorrent-bin-20071015.tar.bz2
    sudo chmod 755 nTorrent.sh



    Create a Desktop Entry under Ubuntu/Gnome
    -> Look at YOURNAME (2 Times)
    Code:
    sudo nano /usr/share/applications/ntorrent.desktop

    ADD:
    [Desktop Entry]
    Name=nTorrent
    Comment=rtorrent remote
    Exec=/home/YOURNAME/ntorrent/nTorrent.sh
    Icon=/home/YOURNAME/ntorrent/icons/ntorrent48.png
    Terminal=false
    MultipleArgs=false
    Type=Application
    Categories=Application;GTK;GNOME;Network;FileTransfer;
    StartupNotify=true


  9. nTorrent for the client - Windows
    -> Download from: http://ntorrent.googlecode.com/files/nT ... 15.tar.bz2
    -> Make a dir where you want and decompress there the file.
    -> Download java 1.6
    -> start ntorrent.jar

  10. Start nTorrent
    Protocol: http
    Host: Your Server IP like 192.168.1.2
    Connection Port: 80
    Mountpoint: /RPC2

    Save profile and Connect

Greetz Moon

Impression
ImageImageImage

Sources:
ntorrent Project Page
RTorrent XMLRPC Guide

_________________
LSPro, Freelink, 2.6.22
Meine Tutorials auf deutsch


Last edited by MoonMaker on Sun Mar 30, 2008 1:42 am, edited 4 times in total.

Top
 Profile  
 
PostPosted: Sun Nov 11, 2007 3:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
cool guide :)

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Sun Nov 11, 2007 5:47 pm 
Offline
Regular Member

Joined: Mon Oct 01, 2007 11:29 pm
Posts: 79
For those with optware, it's even easier. See
http://www.nslu2-linux.org/wiki/HowTo/RtorrentWithRemoteGUI


Top
 Profile  
 
PostPosted: Sat Dec 01, 2007 6:58 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
I tried doing this and got stuck on the rtorrent configure. The libtorrent configure and install was fine. The screenshot shows the error I get, any ideas? I've done some searching and suggestions are compiling xmlrpc from source or adding a line to debian/rules but there isn't a debian/rules for rtorrent.

I'm stuck.

Image
.


Top
 Profile  
 
PostPosted: Sun Dec 02, 2007 1:46 am 
Offline
Regular Member

Joined: Mon Oct 01, 2007 11:29 pm
Posts: 79
slink wrote:
I tried doing this and got stuck on the rtorrent configure. The libtorrent configure and install was fine. The screenshot shows the error I get, any ideas? I've done some searching and suggestions are compiling xmlrpc from source or adding a line to debian/rules but there isn't a debian/rules for rtorrent.

I'm stuck.

Image
.


You can also try:
http://www.nslu2-linux.org/wiki/Optware/DebianArmEtch


Top
 Profile  
 
PostPosted: Sun Dec 02, 2007 1:50 am 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
sorry i don't really understand what I'm suppose to do with that, or what optware is either. I'm using a Linkstation Pro with the Freelink firmware on it.


Top
 Profile  
 
PostPosted: Mon Dec 03, 2007 11:16 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
is the --with-xmlrpc-c essential? can anybody help me out please?

thanks


Top
 Profile  
 
PostPosted: Wed Dec 05, 2007 1:43 am 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
*bump*

would really like to get rtorrent sorted, any suggestions/explanations appreciated.


Top
 Profile  
 
PostPosted: Wed Dec 05, 2007 1:53 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
OK, have tried to compile xmlrpc-c from source (1.06.21) but I do ./configure and it gets 3 lines down, as far as:

"Checking whether make sets $(MAKE)..."

and then just hangs and my LS-PRO switches itself off and gives the continuous beeps, which seems to be a frequent problem with these Freelinked LS-PROs.

Any advice on this? Has somebody got a later xmlrpc-c binary for the LS-PRO I can use?


Top
 Profile  
 
PostPosted: Wed Dec 05, 2007 3:24 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5330
Sounds like a hardware error to me


Top
 Profile  
 
PostPosted: Wed Dec 05, 2007 4:42 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
possibly, other stuff compiles though

how about the original xmlrpc-c error? how comes that happens to me do you think/


Top
 Profile  
 
PostPosted: Wed Dec 05, 2007 10:28 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
well I've progressed. I managed to compile a version of xmlrpc-c using the --nocplusplus switch so now I get further with the rtorrent compile but the error I'm getting now is this:

configure: creating ./config.status
./configure: line 22489: test: =: unary operator expected
./configure: line 22489: test: =: unary operator expected
./configure: line 22489: test: =: unary operator expected
./configure: line 22489: test: =: unary operator expected
./configure: line 22489: test: =: unary operator expected
./configure: line 22489: test: =: unary operator expected
configure: error: could not make ./config.status

I thought this might be a syntax error in the ./config line but have tried enclosing things in quotes but it doesn't make a difference. Any ideas? Why is this install so hard for me?!


Top
 Profile  
 
PostPosted: Sun Dec 09, 2007 9:47 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 11:09 am
Posts: 29
so my problem is this: viewtopic.php?f=39&t=2001&view=previous

Is there a way I can get hold of a prebuilt rtorrent/libtorrent as I can't easily change from xfs to ext3 to compile it myself.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group