Debian/Ubuntu Dedicated Server Setup - Page 7
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
  • Debian/Ubuntu Dedicated Server Setup
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 7 of 40 FirstFirst ... 4 5 6 7 8 9 10 17 ... LastLast
Results 61 to 70 of 398
  1. #61

    Default

    Mate one of the reasons I joined this place is to thank you.

    Thanks a lot for your fast reply and I'm looking for your script.

    Regards


    Edit: When I login via ruTorrent webui it doesn't ask me for username nor password and I'm wide open for everyone. Any ideas please Mike

    Last edited by iSMAEL; July 7th, 2010 at 03:53 PM.
     ...to the topTop

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

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    895

    Default

    Thanks and thats awesome to know. Im glad my tutorial inspires users to join here. Whats weird is your the 3rd person that said this to me this week. I had no clue u could even see it without being a member, but a quick google search shows u can.

    Go over that Lighttpd part once more to see if u missed anything. If u didnt then i will help u more, but im betting its either just a little step u forgot, mis-spelled location of the password file or realm.

    Anyway, heres the init script and a quick tutorial on how to set it up > this script is not my work just to make that clear and i got it from the rutorrent forum, which i believe was originally taken from the rtorrent site. rtorrent


    RTORRENT START-UP SCRIPT

    ---First, download the script from the link i posted above to your home computer and then upload it to your server using FTP/SFTP/SCP, etc... If u use a browser on your server then just download it straight to your server.

    ---Second, once the script is uploaded and on your server, u want to 'su' to root and move the rtorrent script to the '/etc/init.d' dir. The easiest way to do this is to 'cd' to where the script is located and then move it. If any of your users have 'sudo' then u can use that instead of switching to root. Follow the below commands to achieve all of this.

    $ su
    # cd /path/to/rtorrent.init/script
    # mv rtorrent /etc/init.d



    ---Third, now that the script is moved to the correct dir, its time to change ownership/permissions of the script. Its important u make it executable so it can be ran.

    # chown root:root rtorrent
    # chmod 755 /etc/init.d/rtorrent


    ---Fourth, open the script and look for the following line

    user=""


    ---Then add your user-name in between the quotes and save/exit. Your user u add should be the user who runs rtorrent on your server and not root user. For example, MikeD is my normal user that i run rtorrent with, so i would put this

    user="MikeD"


    ---Finally, run the following command to have rtorrent start at boot. If u re-named the script to something different like [rtor] then u need to replace rtorrent in the command below with rtor.

    # update-rc.d rtorrent defaults


    ---Now to {start|stop|restart} rtorrent u can run the following commands in terminal at anytime. Below is just an example on how to restart rtorrent. If u would want to stop rtorrent then replace restart with stop and so on.

    # /etc/init.d/rtorrent restart


    FINAL NOTE : Thats it and your finished with the 'init' script, rtorrent is now running as a daemon and will also start on boot. One important thing is, please make sure that in your '.rtorrent.rc' file u have 'absolute paths' to your rtorrent dir's. The rtorrent config file i posted on pastebin does not use absolute paths, so if u used my example, then u need to change the following lines with ~ to /home/user/path/to/rtorrent/dir's
    Last edited by MikeD; July 9th, 2010 at 12:16 AM.
     ...to the topTop

  4. #63

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    895

    Default

    TUTORIAL # 8 : RUTORRENT WITH APACHE WEB-SERVER

    INFO : This tutorial is gonna walk u through setting up Apache to work with rutorent 3.1. Apache is another web-server just like Lighttpd and is used by many. Its the easiest web-server to get working with rutorrent and all it takes is a few commands and config file edits. This is strictly for the users who have a hard-time configuring Lighttpd or want Apache instead. This tutorial can also be used in conjunction with 'TUTORIAL # 3' by just replacing the Lighttpd section with this tutorial..

    NOTE : This tutorial is based off the fact that u already have a working rtorrent with 'xmlrpc-c' support and rutorrent. If u followed my earlier tutorials for setting up rtorrent + rutorrent, then u will need to either bind Lighttpd on port 81 or stop it with the command below before continuing.

    '# /etc/init.d/lighttpd stop'





    PART 29 : INSTALLING APACHE

    ---To begin, login to your server as root, using a terminal, or 'su' to root if already logged in. Then go ahead and install apache with some dependencies :
    $ su
    password :

    # apt-get update ; apt-get -y upgrade
    # apt-get install apache2 apache2.2-common apache2-utils libapache2-mod-php5 libapache2-mod-scgi




    ---Now that Apache is installed we need to enable some modules with the following commands :
    # a2enmod scgi
    # a2enmod auth_digest
    # a2enmod ssl
    NOTE : Whenever u want to enable a module u would use the above command : a2enmod, which obviously stands for - 'Apache2/enable/mod'. To disable u would use 'a2dismod' : 'Apache2/disable/mod'



    ---Next open up your rtorrent config file :
    # cd /home/User ; nano .rtorrent.rc

    ---Now look to see if your config file contains the following line :
    scgi_port = 127.0.0.1:5000

    NOTE : If your config file shows this line as 'scgi_port = localhost:5000' then change the line to what is posted above instead.





    PART 30 : CONFIGURING APACHE


    ---Next we want to add a line to the Apache config file. Just copy/paste the next command into terminal :

    # echo 'SCGIMount /var/www/rutorrent/RPC2 127.0.0.1:5000' >> /etc/apache2/apache2.conf

    NOTE : Make sure u check your rutorrent config file for the matching 'SCGIMount/Port'. It needs to be the same as what we just directed to the apache2.conf file. I always put the 'RPC' mount inside the rutorrent dir so when we password protect '/rutorrent' then we are also protecting the RPC mount as well.



    ---Now we want to add a few lines to a couple of other files to authenticate rutorrent. First, back up both the files in the 'sites-available' dir and then open the first file 'default' :
    # cd /etc/apache2/sites-available
    # cp default default.backup ; cp default-ssl default-ssl.backup
    # nano default



    ---In the 'default' file, scroll all the way down to the end and look for the second to last line '</Directory>'. Now add this 'code' directly under the '</Directory>' line :
    PHP Code:
    <Location /rutorrent>
      
    AuthType Digest
      AuthName 
    "Authorized"
      
    AuthDigestDomain /var/www/rutorrenthttp://SERVER-IP/rutorrent
     
      
    AuthDigestProvider file
      AuthUserFile 
    /etc/apache2/.passwds
      
    Require valid-user
      SetEnv R_ENV 
    "/var/www/rutorrent"
    </Location

    NOTE : The first line ^above^ '<Location /rutorrent>' should be lined up with the '</Directory>' line : like this below : Also change the above 'SERVER-IP' to your actual server-ip and then save/exit.
    </Directory>
    <Location /rutorrent>




    ---Next open the 'default-ssl' file and do the same as u did for the first file
    # nano default-ssl




    ---Now scroll down till u see the last '</Directory>' line before all the comments section [its about mid-way through the file]. Then copy/paste that same code above to this file as well, and also make sure u do the same exact things u did for the first file > line up the '</Directory>' & '<Location /rutorrent>' lines and put your server-ip in the 'SERVER-IP' rutorrent URL. Then save/exit the file.

    NOTE : That should be good enough and your Apache should use the default cert already created on your server in dir '/etc/ssl/certs'.



    ---Finally, we want to create our password file for the rutorrent authentication, enable the default-ssl vhost and restart Apache:
    # htdigest -c /etc/apache2/.passwds Authorized MikeD
    passwd :
    verify :

    # a2ensite default-ssl
    # /etc/init.d/apache2 restart
    NOTE : Please change 'MikeD' above in the 'htdigest' command with your user-name before running the command.



    ---Now u can reach your rutorrent in your browser at either :

    http or https://server-ip/rutorrent


    FINAL NOTE : U could also create your own self-signed certificate and use this for Apache ssl. Just make sure u specify the location in the sites default-ssl file. There are also a bunch of other 'mods' u should read up on to increase server performance and secure apache. These can be found in the Apache2 sub dir's.
     ...to the topTop

  5. #64

    Default

    wow this is like the best ever tut i see for setting up a vps.
    i ma very new to linux, i went and got me a VPS 35 days ago, first 10 days were a total struggle with different info everywhere and for someone who has 0 knowledge in unix world.
    althought i got it working, but i wish i saw yours earlier, lots of things would been less messy :P

    just one thing, instead of slow ftp, why not use HTTP to download files of your VPS ?
    i use a windows software called HFS with wine
    yes windows sux but this my favorite windows program, all you do just add folders to the program and whatever you download, you can then download with many http sessions and took me 2 mins to setup.
    its really helpful for new noobs like me :P
     ...to the topTop

  6. #65

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    895

    Default

    Quote Originally Posted by itti View Post
    wow this is like the best ever tut i see for setting up a vps.
    i ma very new to linux, i went and got me a VPS 35 days ago, first 10 days were a total struggle with different info everywhere and for someone who has 0 knowledge in unix world.
    althought i got it working, but i wish i saw yours earlier, lots of things would been less messy :P

    just one thing, instead of slow ftp, why not use HTTP to download files of your VPS ?
    i use a windows software called HFS with wine
    yes windows sux but this my favorite windows program, all you do just add folders to the program and whatever you download, you can then download with many http sessions and took me 2 mins to setup.
    its really helpful for new noobs like me :P
    Yeah i agree. I also use HTTP as well and also have another tutorial on T-I that shows a simple way of setting up HTTP downloads.

    In that tutorial i use the existing web-server, thats running rutorrent, and create a soft sym-link in the web dir to the rtorrent downloads dir. That way, when u go to the link in your browser, u are presented with all your downloads and can download them manually or use a download manager.

    The software u mention seems pretty sweet and i will check it out. Thanks for the post and i appreciate the kind words and insight.
     ...to the topTop

  7. #66

    Default

    Hi,

    I thought maybe it's a good idea to post my question here and maybe someone find it useful.
    I share my server with 3 friends using this nice guide but from time to time rTorrent crashes for us. I've searched the Net looking for a script to check if rTorrent is down to restart it and I found this:

    #!/usr/bin/perl
    my $p = `screen -ls | grep rtorrent | wc -l`;
    if( $p < 1 )
    {
    exec 'screen -Sdm rtorrent rtorrent';
    exit;
    }
    exit;
    How do I add this script and make it run from cron hourly to check if rTorrent is running?

    Kind regards
    Last edited by iSMAEL; July 31st, 2010 at 09:36 PM.
     ...to the topTop

  8. #67

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    895

    Default

    Hey ISMAEL,

    Just save the script as torrent.pl or whatever u want to name it and then put it in your rtorrent users $PATH. U can find out the users path by running this command :

    $ echo $PATH

    After that put it in one of those dir's. U could just place it here '/usr/bin' and that should work as its usually one of the dir's. Just make sure its executable for the rtorrent user.

    Then to add it to cron, run this command with the user who runs your rtorrent :

    $ crontab -e

    The users crontab file will then open and u will want to add the cronjob so that it will run once every hour, so add this and then save/exit :

    @hourly /usr/bin/torrent.pl

    NOTE : U will want to edit the above line with the real path to the script and to what its name actually is. Also, i use a bash script for this and got it off of the rutorrent forum and if u want that one instead i will give u the link.
     ...to the topTop

  9. #68

    Default

    hi

    thank you so much for the guide
    i've so far successfully configure until part 17 tunelling vnc
    step 8 won't work...
    the error i got from vnc reads " sorry, loopback connections are not enabled" and vnc closed

    anyone have any idea how to solve this??
    thanks
    Last edited by d4nny; August 3rd, 2010 at 09:17 AM. Reason: problem 2
     ...to the topTop

  10. #69

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    895

    Default

    Quote Originally Posted by d4nny View Post
    hi

    thank you so much for the guide
    i've so far successfully configure until part 17 tunelling vnc
    step 8 won't work...
    the error i got from vnc reads " sorry, loopback connections are not enabled" and vnc closed

    anyone have any idea how to solve this??
    thanks

    Make sure in your VNC viewer config options u have the box check for 'allow loopback connections'. Then make sure VNC is allowed in your home computers firewall or any other security software u are running. Then, after u do all that use a different port # for VNC server, say like 5932 or something. Finally, do all the same stuff for your VNC server installed on your box as well just like u did on your home pc. Make sure VNC server is allowed in your firewall, etc..
     ...to the topTop

  11. #70

    Default

    Hi Mike

    Thanks for the reply. Another quickie, rtorrent has a gui included right? Will it be easier to install compared to utorrent?
     ...to the topTop

Page 7 of 40 FirstFirst ... 4 5 6 7 8 9 10 17 ... LastLast

Similar Threads

  1. Replies: 23
    Last Post: April 12th, 2014, 12:43 PM
  2. Replies: 13
    Last Post: July 8th, 2011, 02:01 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
  •