Announcement

Collapse
No announcement yet.

Ubuntu 14/16 Debian 8 Seedbox Guide and Script

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • I cannot seem to SSH into the server using the port provided at the end of the script... any ideas why?

    Comment


    • Originally posted by lucabrassi View Post
      I did make note of the port. Did a reboot using root account but cant login using rutorrent username or root account at all. Im. The only thing that works is ssh but cant login.
      Exact same issue but on Ubuntu 14.04..

      IP:new port
      username: the one set during the script
      password: the one set during the script

      does not work :(
      Last edited by afinite; August 19th, 2015, 04:11 PM.

      Comment


      • If you want to run hhvm instead of php-fpm with nginx, you can do this (this is for Debian):

        Install hhvm:
        Code:
        sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
        echo deb http://dl.hhvm.com/debian wheezy main | sudo tee /etc/apt/sources.list.d/hhvm.list
        sudo apt-get update
        sudo apt-get install hhvm
        sudo /usr/share/hhvm/install_fastcgi.sh
        Make nginx use hhvm instead of php-fpm:
        Code:
        sudo nano /etc/nginx/sites-available/default
        Replace the site file config with the following.

        Code:
        server {
                     listen 80;
                     server_name <Server IP>;
                     return 301 https://$server_name$request_uri;
        }
        
        server {
                     listen 443 ssl;
        
                     server_name <Server IP>;
                     root /var/www;
                     index index.html index.php index.htm;
        
                     ssl_certificate /etc/ssl/ruweb.crt;
                     ssl_certificate_key /etc/ssl/ruweb.key;
                     ssl_session_timeout 5m;
                
                location / {
                     try_files $uri $uri/ =404;
                }
        
                location ^~ /rutorrent {
                     auth_basic "Restricted";
                     auth_basic_user_file /etc/nginx/.htpasswd;
                     #include /etc/nginx/conf.d/php;
                     include /etc/nginx/hhvm.conf;
                     include /etc/nginx/conf.d/cache;
                }
        
        #include /etc/nginx/conf.d/rtdload;
        
                location ~ /\.ht {
                     deny all;
                }
        
        }
        Start hhvm, stop php-fpm and restart nginx:
        Code:
        sudo service hhvm restart
        sudo service php-fpm stop
        sudo service nginx restart
        source for hhvm: https://github.com/facebook/hhvm/wiki/Getting-Started

        Comment


        • Hi,
          thanks for your script (though I've had a few problems the first time I used it, it's fine now).


          However, you really should add a line to the config file to prevent rtorrent from crashing when the disk gets full! it automatically pause all downloading torrents :
          schedule = low_diskspace,5,60,close_low_diskspace=100M

          Comment


          • Ty again for script.

            How can i get the filemanager and screenshot plugins to work?
            Thanks

            Comment


            • Originally posted by DazeTheLaze View Post
              If you want to run hhvm instead of php-fpm with nginx, you can do this (this is for Debian):

              Install hhvm:
              Code:
              sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
              echo deb http://dl.hhvm.com/debian wheezy main | sudo tee /etc/apt/sources.list.d/hhvm.list
              sudo apt-get update
              sudo apt-get install hhvm
              sudo /usr/share/hhvm/install_fastcgi.sh
              Make nginx use hhvm instead of php-fpm:
              Code:
              sudo nano /etc/nginx/sites-available/default
              Replace the site file config with the following.

              Code:
              server {
                           listen 80;
                           server_name <Server IP>;
                           return 301 https://$server_name$request_uri;
              }
              
              server {
                           listen 443 ssl;
              
                           server_name <Server IP>;
                           root /var/www;
                           index index.html index.php index.htm;
              
                           ssl_certificate /etc/ssl/ruweb.crt;
                           ssl_certificate_key /etc/ssl/ruweb.key;
                           ssl_session_timeout 5m;
                      
                      location / {
                           try_files $uri $uri/ =404;
                      }
              
                      location ^~ /rutorrent {
                           auth_basic "Restricted";
                           auth_basic_user_file /etc/nginx/.htpasswd;
                           #include /etc/nginx/conf.d/php;
                           include /etc/nginx/hhvm.conf;
                           include /etc/nginx/conf.d/cache;
                      }
              
              #include /etc/nginx/conf.d/rtdload;
              
                      location ~ /\.ht {
                           deny all;
                      }
              
              }
              Start hhvm, stop php-fpm and restart nginx:
              Code:
              sudo service hhvm restart
              sudo service php-fpm stop
              sudo service nginx restart
              source for hhvm: https://github.com/facebook/hhvm/wiki/Getting-Started
              When i tried to use HHVM with rtorrent the HHVM process was getting stuck at 100% randomly. Also when you try to get on the WebUI you will see that HHVM generates high load compared to php-fpm. Does it also happen on your machine?


              EDIT:
              I just enabled HHVM again for the WebUI and getting the following error;
              Failed to get directory contents - /

              Did you fix that?

              Comment


              • torrent from autol irssi which are by default downloaded in watch folder are not auto downloading. (debian 7)

                Comment


                • Found the Speed Problem Answer on 14.04

                  Originally posted by BigEd View Post
                  Running Ubuntu 14.04, rtorrent/0.9.4/0.13.4 and for the life of me I can get/allow any user to download faster than 1.4MB/s. on occasion someone may hit 2MB/s I'm on a dedicated seedbox 250MB/s type and am using a autodl script and can and see download speeds hitting upto 80-100MB/s on new fresh torrents. But sharing them back out I see high speed but any one user can get over the 1.4MB/s speed. I try to grab the torrent and download at home where I'm the only one actively grabbing anything off the box and my Max is anywhere from 1.2 to 1.4. I've tried every setting, combination of settings but can't get around this max speed limit. Now I can log on with sftp and reach my home line max speed of 7-8MB/s or if I load the torrents into qbittorrent for seeding and again I see the 7-8MB/s speeds. So I know it isnt a limit on my home network or the seedbox network. I've installed via the script on 2 identical new fresh setup servers back at the end of December, both show the same problems speed wise. All settings are now back to default as I have found they didnt make any difference. Prior to these two machines I had 2 other machines (direct from OVH) with 0.9.2/0.13.2 installed and had no problems with speed. I tried to run the rtupdate, even the recent one and cant roll back to 0.9.2 to see if that makes a difference. Any clues as to what I can look at to better the speeds?
                  I spent months playing with Rtorrent, adjusting every setting, searching every possible thing related to it. Nothing was changing for me. I was giving up with rtorrent and moving over to QBittorrent which was giving me most of what I needed but still lacking some of the benefits of rtorrent/rutorrent. I then stumbled across this piece of info. It seems that Ubuntu comes pre-set to be very conservative on its outbound/sharing speeds. Great at loading torrents speedwise but being kinda cheap on sharing them to others. Like I said above the best I could get on any client on home PC grabbing off my seedbox was 1.4MB/s max per torrent from rTorrent seedbox. What I found has now put rtorrent back up where it should be as the number 1 Torrent Application. After I did this on 3 different seedboxes the sharing speeds greatly increased !!!

                  Do the following...
                  sudo gedit /etc/sysctl.conf

                  Add following towards bottom

                  ### IMPROVE SYSTEM MEMORY MANAGEMENT ###

                  # Increase size of file handles and inode cache
                  fs.file-max = 2097152

                  # Do less swapping
                  vm.swappiness = 10
                  vm.dirty_ratio = 60
                  vm.dirty_background_ratio = 2

                  ### GENERAL NETWORK SECURITY OPTIONS ###

                  # Number of times SYNACKs for passive TCP connection.
                  net.ipv4.tcp_synack_retries = 2

                  # Allowed local port range
                  net.ipv4.ip_local_port_range = 2000 65535

                  # Protect Against TCP Time-Wait
                  net.ipv4.tcp_rfc1337 = 1

                  # Decrease the time default value for tcp_fin_timeout connection
                  net.ipv4.tcp_fin_timeout = 15

                  # Decrease the time default value for connections to keep alive
                  net.ipv4.tcp_keepalive_time = 300
                  net.ipv4.tcp_keepalive_probes = 5
                  net.ipv4.tcp_keepalive_intvl = 15

                  ### TUNING NETWORK PERFORMANCE ###

                  # Default Socket Receive Buffer
                  net.core.rmem_default = 31457280

                  # Maximum Socket Receive Buffer
                  net.core.rmem_max = 12582912

                  # Default Socket Send Buffer
                  net.core.wmem_default = 31457280

                  # Maximum Socket Send Buffer
                  net.core.wmem_max = 12582912

                  # Increase number of incoming connections
                  net.core.somaxconn = 4096

                  # Increase number of incoming connections backlog
                  net.core.netdev_max_backlog = 65536

                  # Increase the maximum amount of option memory buffers
                  net.core.optmem_max = 25165824

                  # Increase the maximum total buffer-space allocatable
                  # This is measured in units of pages (4096 bytes)
                  net.ipv4.tcp_mem = 65536 131072 262144
                  net.ipv4.udp_mem = 65536 131072 262144

                  # Increase the read-buffer space allocatable
                  net.ipv4.tcp_rmem = 8192 87380 16777216
                  net.ipv4.udp_rmem_min = 16384

                  # Increase the write-buffer-space allocatable
                  net.ipv4.tcp_wmem = 8192 65536 16777216
                  net.ipv4.udp_wmem_min = 16384

                  # Increase the tcp-time-wait buckets pool size to prevent simple DOS attacks
                  net.ipv4.tcp_max_tw_buckets = 1440000
                  net.ipv4.tcp_tw_recycle = 1
                  net.ipv4.tcp_tw_reuse = 1

                  ###############################################

                  Now Load the Changes
                  Run following command to load changes to sysctl.
                  sudo sysctl -p

                  Show all system parameters with their values (default or changed)
                  sysctl -A

                  Show values of parameters modified by you
                  sysctl -p

                  Comment


                  • Originally posted by mark911 View Post
                    Ty again for script.

                    How can i get the filemanager and screenshot plugins to work?
                    Thanks
                    for screenshots you need to install ffmpeg. Instructions on the installation vary depending on the OS you are using.

                    filemanager is a 3rd party plugin for rutorrent, that is not installed by this script.. Project page for filemanager is at nelu/rutorrent-thirdparty-plugins · GitHub

                    "The strength to change what I can, the inability to accept what I can't, and the incapacity to tell the difference."


                    Ubuntu 12/14/16 Debian 7/8 Seedbox Guide and Script

                    Comment


                    • Originally posted by Arakasi View Post
                      for screenshots you need to install ffmpeg. Instructions on the installation vary depending on the OS you are using.

                      filemanager is a 3rd party plugin for rutorrent, that is not installed by this script.. Project page for filemanager is at nelu/rutorrent-thirdparty-plugins · GitHub
                      Alright.
                      Is there any guides to do this? Im not very good in Linux. How do i extract and install these 4 plugins to to my plugins folder/rutorrent interface.
                      Filemanager is not essential, but i need to be able to get screenshots from the files tab.

                      Thanks again for awesome script!

                      Comment


                      • Originally posted by mark911 View Post
                        Alright.
                        Is there any guides to do this? Im not very good in Linux. How do i extract and install these 4 plugins to to my plugins folder/rutorrent interface.
                        Filemanager is not essential, but i need to be able to get screenshots from the files tab.

                        Thanks again for awesome script!
                        Check out their website, installation depends on the OS release.

                        FFmpeg

                        "The strength to change what I can, the inability to accept what I can't, and the incapacity to tell the difference."


                        Ubuntu 12/14/16 Debian 7/8 Seedbox Guide and Script

                        Comment


                        • Hello,

                          today, i have added a new user on my system, following the Section 10. It works fine. rtorrent, ssh access, sftp...

                          -> in fact, my new user has no write with sftp to remove/delete some new files. I had copied the relevant files with rsync between 2 machines. Wrong rights issue ?

                          but in fact, i would want only add an user, with some rights to access by ftp to a part of my download directories or a directory for himself...

                          I think, with adding a user with full rtorrent running application, it is too big just for having a right to share a folder.

                          if you have an idea to do this, very easy step, it will be nice.

                          In fact, what i wanted to do, was:

                          - a share folder with a friend. I put myself some files inside, from my own folders. I must have all rights on this folder. Him, he has rights to read or write just in this folder and sub-folders
                          - an special access for him to this folder, by sftp

                          - i do not need rtorrent session for him, for the moment (actually he could use this if i would give to him relevant informations, of course)

                          And i would like to know how stop rtorrent for this user, without modify rtorrent for other users. How to stop/remove this user, or suspend this user for ssh access/ rtorrent use...

                          thanks a lot, help will be appreciated, as usual. merci
                          Last edited by mygboss; September 14th, 2015, 08:10 AM. Reason: added informations

                          Comment


                          • Originally posted by Arakasi View Post
                            Check out their website, installation depends on the OS release.

                            FFmpeg

                            Hello , i installed your script why is my system rebooting once a day automatically how can i stop it .

                            my user cron says a line

                            "@reboot sleep 10; /usr/local/bin/rtcheck irssi rtorrent"

                            what does this means?

                            reboot system boot 3.2.0-4-amd64 Sun Sep 6 21:23 - 07:41 (1+10:17)
                            reboot system boot 3.2.0-4-amd64 Sat Sep 5 21:57 - 07:41 (2+09:44)
                            reboot system boot 3.2.0-4-amd64 Fri Sep 4 16:02 - 07:41 (3+15:38)
                            reboot system boot 3.2.0-4-amd64 Thu Sep 3 18:18 - 07:41 (4+13:22)
                            reboot system boot 3.2.0-4-amd64 Thu Sep 3 07:21 - 07:41 (5+00:19)
                            reboot system boot 3.2.0-4-amd64 Tue Sep 1 22:27 - 07:18 (1+08:51)

                            Comment


                            • Originally posted by nanemal View Post
                              Hello , i installed your script why is my system rebooting once a day automatically how can i stop it .

                              my user cron says a line

                              "@reboot sleep 10; /usr/local/bin/rtcheck irssi rtorrent"

                              what does this means?

                              reboot system boot 3.2.0-4-amd64 Sun Sep 6 21:23 - 07:41 (1+10:17)
                              reboot system boot 3.2.0-4-amd64 Sat Sep 5 21:57 - 07:41 (2+09:44)
                              reboot system boot 3.2.0-4-amd64 Fri Sep 4 16:02 - 07:41 (3+15:38)
                              reboot system boot 3.2.0-4-amd64 Thu Sep 3 18:18 - 07:41 (4+13:22)
                              reboot system boot 3.2.0-4-amd64 Thu Sep 3 07:21 - 07:41 (5+00:19)
                              reboot system boot 3.2.0-4-amd64 Tue Sep 1 22:27 - 07:18 (1+08:51)
                              This line starts rtorrent and irssi when the system boots. It does not cause a reboot. Nothing in the script would cause a reboot each day.

                              "The strength to change what I can, the inability to accept what I can't, and the incapacity to tell the difference."


                              Ubuntu 12/14/16 Debian 7/8 Seedbox Guide and Script

                              Comment


                              • Script updated to install latest version of libtorrent/rtorrent 0.13.6/0.9.6

                                if you download latest version of rtupdate you can upgrade to latest version using that.

                                To download all the latest version of the scripts use the following

                                Code:
                                wget --no-check-certificate https://raw.githubusercontent.com/arakasi72/rtinst/master/rtgetscripts
                                sudo bash rtgetscripts
                                rm rtgetscripts

                                "The strength to change what I can, the inability to accept what I can't, and the incapacity to tell the difference."


                                Ubuntu 12/14/16 Debian 7/8 Seedbox Guide and Script

                                Comment

                                Working...
                                X