Intermediate SEEDBOX tutorial [rTorrent + wget] *free seed accounts*
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1

    Join Date
    Sep 2009
    Location
    Berkshire
    Posts
    18

    Default Intermediate SEEDBOX tutorial [rTorrent + wget] *free seed accounts*

    Hello,

    As this is my first thread on TI (I am proud to to a member though) I would attempt to create a quick step-by-step tutorial on how to setup your own Linux seedbox that's more powerful than its Windows equivalents.

    First of all, you need a PC or MAC whatever you have and a Ubuntu Linux ( I prefer Ubuntu over CentOS as I find it more user-friendly)

    1) download Ubuntu iso from: http://releases.ubuntu.com/jaunty/ub...erver-i386.iso

    2) Burn it to a DVD (https://help.ubuntu.com/community/BurningIsoHowto)

    3) Install it on your computer (if you need help in the section please ask your question, I am happy to help otherwise refer to the standard documentation)

    4a) If your network is DHCP (your IP address is automatically assigned) than you don't need to manually configure the network, your server is ready to go.

    4b) If you have a static IP network you need to setup an IP address for this box during the installation, you will be asked.

    5) You can say yet to almost everything, don't worry if you make mistakes, more you do more you learn :)

    Well done, you have successfully installed your new Ubuntu server, your next step is to install rtorrent

    6) Login with your username into your account.

    7) Install rtorrent: # sudo apt-get install rtorrent screen php5-cli php5-curl
    say yes to any question


    Okay, you are good to go with seeding stuffs 24/7 with your box, but how you download the .torrent files in text based Linux? Simple!

    There's a program called wget what it does it simply leeches a given url for example:

    # wget http://*****.be/download.php/122472/...D-iMBT.torrent


    You problably receive this:

    2009-09-22 07:42:30 (2.93 MB/s) - `login.php?returnto=/download.php/122472%2 F%5BbHUm_%23122472%5DStar_Trek_DVDRip_XviD-iMBT.torrent' saved [2485]

    What happened? Your request was redirected to the login page since the wget did not send any session cookies to the tracker obviously it did let you to download the stuff.

    How can we send the cookies and how I can obtain one?

    If you are familiar with PHP there's a little script you can use to get the session cookies from the tracker:

    Code:
    <?php
    
    $user = "username"; // set your username
    $password = "password"; // set your password
    getcookie();
    
    
    function getcookie () {
        global $user, $password;
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL,"http://****.be/takelogin.php"); // replace the *****.be with your tracker's name
        curl_setopt($ch, CURLOPT_POSTFIELDS,'rembember=on&password='.$password.'&returnto=/&username='.$user);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_HEADER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/my_cookies.txt");
        curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/my_cookies.txt");
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
    echo    curl_exec($ch);
        curl_close ($ch);
    }
    
    
    ?>
    Now you have the right cookies in /tmp/my_cookies.txt

    Ok, let's make WGET aware of this file now.

    Let's try now:

    Specifing a cookie file using a switch:

    # wget --load-cookies=/tmp/my_cookies.txt http://*****.be/download.php/122472/%5BbHUm_%23122472%5DStar_Trek_DVDRip_XviD-iMBT.torrent
    Saving to: `[bHUm_#122472]Star_Trek_DVDRip_XviD-iMBT.torrent'

    [ <=> ] 34,215 --.-K/s in 0.1s

    2009-09-22 07:57:11 (315 KB/s) - `[bHUm_#122472]Star_Trek_DVDRip_XviD-iMBT.torrent' saved [34215]

    Yeah, you now have it downloaded. You can make it even quicker if you create .wgetrc file in your home folder:


    Specifing a cookie file using a config file:
    # cd ~
    # echo "load_cookies = /tmp/my_cookies.txt" > ./.wgetrc

    # wget -

    2009-09-22 08:43:28 (324 KB/s) - `[bHUm_#122472]Star_Trek_DVDRip_XviD-iMBT.torrent.2' saved [34215]


    I assume you have a basic knowledge on using screen, if you don't let me show quickly what it's good for:

    It's not very well known to many people I mention it to but its one of those programs that you just can't stop using once you've started. Yes, I use screen on a regular daily basis and it’s really easy to use.

    I know someone who says the only reason they invented X was so that you could use more virtual terminals. I think the real solution behind great command line multitasking is screen!
    Here are some basic usage tips.
    To start a command line based program within a virtual ’screen’ prefix that command with screen, such as:

    # screen rtorrent

    Once that has loaded you can detach the virtual screen for later use by pressing ctrl-a d. To reattach that screen type screen -r (or, if the screen was somehow not completely detached previously you would use screen -dr).


    To start using rTorrent please see the basic functions of it here: RTorrentUserGuide – The libTorrent and rTorrent Project



    You have reached the end of this tutorial, if you have any suggestions to make this a bit more detailed please share your thought with us.

    Any questions are welcome.

    I can give away two account to anyone who wants to play with rtorrent and ssh, please PM me.

    Cheers.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Oct 2008
    Posts
    2,044

    Default

    nice tutorial and good bonus :P
    +rep.

  4. #3

    Join Date
    Sep 2009
    Location
    Berkshire
    Posts
    18

    Default

    Thanks a lot. I hope many member finds it useful. I have just given away two SSH account to practice how this works in the real life.

    If you have any questions please let me know.

  5. #4

    Join Date
    Jun 2009
    Posts
    119

    Default

    Thank you!

    I do not know what SSH is. But I am very interested in IT and computer and this is new for me, so I am going to search information and learn how to use this. (Now I can connect to your seedbox using a SSH client called Putty.)

    Thanks again!

  6. #5

    Join Date
    Sep 2009
    Location
    Berkshire
    Posts
    18

    Default

    Hi,

    I can see you have logged in, that's fine. Now you have to have some .torrent files for seeding, but before that please try using "screen" as I described it in my first post.

    # screen rtorrent
    press control+ad to detach the virtual console screen

    type
    # screen -r
    to reattach it.

    Please confirm when when you've done it.
    Attached Images Attached Images
    Last edited by bruszli; September 22nd, 2009 at 03:31 PM.

  7. #6

    Join Date
    Jun 2009
    Posts
    119

    Default

    Hi, a litter bit confuse here. When I press Ctrl+a+d, the Putty windows disapear?

  8. #7

    Join Date
    Oct 2008
    Posts
    2,044

    Default

    no it starts the torrent(s) and allows you to make more commands on the root box.

  9. #8

    Join Date
    Jun 2009
    Posts
    119

    Default

    I have done it.

  10. #9

    Join Date
    Sep 2009
    Location
    Berkshire
    Posts
    18

    Default

    Hello,

    I have just installed rutorrent webgui for rtorrent if you wanna try send me a PM.

    If anyone else is interested in trying it I can give more accounts but strictly for testing purposes as this is a labrat server :)
    Attached Images Attached Images
    Last edited by bruszli; September 23rd, 2009 at 04:18 PM. Reason: Image upload

  11. #10

    Join Date
    Sep 2009
    Posts
    62

    Default

    Hey i have try lot of time to install rtorrent webgui but can not get to work :(

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Xirvik promotion: Free test accounts for TI members
    By xirvflux in forum Seedbox Advertising
    Replies: 181
    Last Post: October 4th, 2009, 12:16 AM
  2. Can I give away free Rapidshare accounts?
    By Anonymiq in forum General Discussion
    Replies: 6
    Last Post: November 8th, 2008, 07:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •