Announcement

Collapse
No announcement yet.

Ubuntu 14/16 Debian 8 Seedbox Guide and Script

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • @ Arakasi
    I just checked out the github pages. Superb work on the certificate, and multiple IP settings. Also, the detailed wiki is pretty awesome. Your script is really going to great heights. Thanks dude for the wonderful script.

    Comment


    • Originally posted by smallgoat View Post
      @ Arakasi
      I just checked out the github pages. Superb work on the certificate, and multiple IP settings. Also, the detailed wiki is pretty awesome. Your script is really going to great heights. Thanks dude for the wonderful script.
      Thanks, good to know that the work is appreciated. Expect to see the wiki expand further, I have plenty I want to add, just may take a while.

      "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


      • Getting an error when I try to downgrade my rtorrent....

        Installing 0.13.2/0.9.2
        Updating............
        Completed scripts download
        Fetching source files
        ################################################## ###################### 100.0%
        ################################################## ###################### 100.0%
        Compiling libtorrent
        /usr/local/bin/rtupdate: line 86: [: =: unary operator expected

        :(

        I been looking around trying to fix it myself but no luck...

        Comment


        • Originally posted by Entix View Post
          Getting an error when I try to downgrade my rtorrent....

          Installing 0.13.2/0.9.2
          Updating............
          Completed scripts download
          Fetching source files
          ################################################## ###################### 100.0%
          ################################################## ###################### 100.0%
          Compiling libtorrent
          /usr/local/bin/rtupdate: line 86: [: =: unary operator expected

          :(

          I been looking around trying to fix it myself but no luck...
          try now, should be fixed. update scripts first with command:
          Code:
          sudo 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


          • Originally posted by Arakasi View Post
            try now, should be fixed. update scripts first with command:
            Code:
            sudo rtgetscripts
            Thanks!
            It worked and I was able to downgrade to rtorrent 0.9.2 :)

            Comment


            • Made some changes to the script. Rejigged the options, so there is both short and long form, and added in some new ones to give people more control from the command line.

              For example you could run the script so it requires zero touch once it is launched.

              For more info check out the guide on the wiki - Guide * arakasi72/rtinst Wiki * GitHub

              Also added a SSH section to the wiki - SSH * arakasi72/rtinst Wiki * 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


              • Hi, I am getting error in mediainfo plugin. It is showing a blank windows without any information for some video files. Any help to solve this issue?

                Comment


                • Originally posted by TI_ID View Post
                  Hi, I am getting error in mediainfo plugin. It is showing a blank windows without any information for some video files. Any help to solve this issue?
                  Not sure, have not seen this before, but either an issue with the plugin or mediainfo itself.

                  Log into your server and run the mediainfo command with a video file that has this issue:
                  Code:
                  mediainfo ~/rtorrent/download/<video file>

                  "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


                  • Thank u very much.

                    Comment


                    • Hi Arakasi, thanks for your guide and have been using it for many months, but I have noticed that you removed the Apache2 section, is there any chance you could send me the guide for that part?

                      I have Apache2 installed and works fine, but I need the instructions for the HTTPS downloads part.

                      Thanks

                      Comment


                      • Originally posted by jj2208 View Post
                        Hi Arakasi, thanks for your guide and have been using it for many months, but I have noticed that you removed the Apache2 section, is there any chance you could send me the guide for that part?

                        I have Apache2 installed and works fine, but I need the instructions for the HTTPS downloads part.

                        Thanks

                        Appendix A - Setup Apache Web Server (alternative to nginx in section 7)


                        A.1 Install Apache and webserver modules

                        Code:
                        sudo apt-get -y install apache2 apache2-utils libapache2-mod-php5
                        sudo a2enmod auth_digest
                        sudo a2enmod reqtimeout
                        sudo a2enmod ssl
                        A.2 Edit the Apache configuration file

                        Code:
                        sudo nano /etc/apache2/apache2.conf
                        Edit the following lines in the apache2.conf file. Add them if they are absent.

                        Code:
                        ServerSignature Off
                        Timeout 30
                        ServerTokens Prod

                        A.4 Configure your rutorrent login
                        Choose a user name and password for your rutorrent login.
                        <WEBusername> can be the same as your system <username> but it would be more secure to choose a new user name.
                        Enter a password when prompted.

                        Code:
                        sudo htdigest -c /etc/apache2/htpasswd rutorrent <WEBusername>
                        A.5 Configure Apache access
                        For Ubuntu 12.04 and Debian 7.6

                        Code:
                        sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/default.old
                        sudo nano /etc/apache2/sites-available/default

                        For Ubuntu 13.10/14.04

                        Code:
                        sudo cp /var/www/html/index.html /var/www/index.html
                        sudo cp /etc/apache2/sites-available/000-default.conf  /etc/apache2/sites-available/000-default.old
                        sudo nano /etc/apache2/sites-available/000-default.conf
                        For all systems replace the contents with the following, be sure to replace <Server IP> with your server�s IP
                        NOTE 1: If you do not wish to redirect to SSL you can remove or comment out the 3rd line �Redirect 301 / https://<Server IP>/�

                        Code:
                        <VirtualHost *:80>
                                ServerAdmin [email protected]
                                Redirect 301 / https://<Server IP>/
                                DocumentRoot /var/www
                                <Directory />
                                        Options FollowSymLinks
                                        AllowOverride None
                                </Directory>
                                <Directory /var/www/>
                                        Options Indexes FollowSymLinks MultiViews
                                        AllowOverride None
                                        Order allow,deny
                                        allow from all
                                </Directory>
                        
                                ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
                                <Directory "/usr/lib/cgi-bin">
                                        AllowOverride None
                                        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                                        Order allow,deny
                                        Allow from all
                                </Directory>
                        
                                ErrorLog ${APACHE_LOG_DIR}/error.log
                        
                                # Possible values include: debug, info, notice, warn, error, crit,
                                # alert, emerg.
                                LogLevel warn
                        
                                CustomLog ${APACHE_LOG_DIR}/access.log combined
                        
                        
                                <Location /rutorrent>
                                        AuthType Digest
                                        AuthName "rutorrent"
                                        AuthDigestProvider file
                                        AuthUserFile /etc/apache2/htpasswd
                                        Require valid-user
                                        SetEnv R_ENV "/var/www/rutorrent"
                                        Options -Indexes
                                </Location>
                        
                        </VirtualHost>
                        
                        <VirtualHost *:443>
                                ServerAdmin [email protected]
                                 DocumentRoot /var/www
                                
                                <Directory />
                                        Options FollowSymLinks
                                        AllowOverride None
                                </Directory>
                        
                                <Directory /var/www/>
                                        Options Indexes FollowSymLinks MultiViews
                                        AllowOverride None
                                        Order allow,deny
                                        allow from all
                                </Directory>
                        
                                ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
                                <Directory "/usr/lib/cgi-bin">
                                        AllowOverride None
                                        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                                        Order allow,deny
                                        Allow from all
                                </Directory>
                        
                                ErrorLog ${APACHE_LOG_DIR}/error.log
                        
                                # Possible values include: debug, info, notice, warn, error, crit,
                                # alert, emerg.
                                LogLevel warn
                        
                                CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
                                #   SSL Engine Switch:
                                #   Enable/Disable SSL for this virtual host.
                                SSLEngine on
                                SSLCertificateFile /etc/ssl/ruweb.crt
                                SSLCertificateKeyFile /etc/ssl/private/ruweb.key
                        
                                <FilesMatch "\.(cgi|shtml|phtml|php)$">
                                        SSLOptions +StdEnvVars
                                </FilesMatch>
                                <Directory /usr/lib/cgi-bin>
                                        SSLOptions +StdEnvVars
                                </Directory>
                        
                                BrowserMatch "MSIE [2-6]" \
                                        nokeepalive ssl-unclean-shutdown \
                                        downgrade-1.0 force-response-1.0
                                # MSIE 7 and newer should be able to use keepalive
                                BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
                        
                                <Location /rutorrent>
                                        AuthType Digest
                                        AuthName "rutorrent"
                                        AuthDigestProvider file
                                        AuthUserFile /etc/apache2/htpasswd
                                        Require valid-user
                                        SetEnv R_ENV "/var/www/rutorrent"
                                        Options -Indexes
                                </Location>
                        
                        </VirtualHost>
                        save and exit

                        To insert our servers ip address
                        For Ubuntu 12.04 and Debian 7.6

                        Code:
                        sudo perl -pi -e "s/<Server IP>/$SERVERIP/g" /etc/apache2/sites-available/default

                        For Ubuntu 13.10/14.04

                        Code:
                        sudo perl -pi -e "s/<Server IP>/$SERVERIP/g" /etc/apache2/sites-available/000-default.conf
                        A.6 Restart Apache

                        Code:
                        sudo service apache2 restart
                        Make sure rtorrent is running and log into RuTorrent by going to http://<Server IP>/rutorrent.


                        A.7 HTTPS Download

                        If you wish to set up https downloads follow this sub-section
                        We need to add directory block to our site file. We will add it in the https section only, and we need to add one for each user. We will use the same password file as rutorrent

                        For Ubuntu 12.04 and Debian 7.6

                        Code:
                        sudo nano /etc/apache2/sites-available/default

                        For Ubuntu 13.10/14.04

                        Code:
                        sudo nano /etc/apache2/sites-available/000-default.conf
                        For all systems add the following block below the rutorrent block in the https section of the file, or right at the end of the file just before </VirtualHost> Replace all instances of <user name> with the user name who you want to grant access to their home directory.

                        Code:
                        Alias /download/<user name> /home/<user name>
                        <Directory /home/<user name>>
                                        AuthType Digest
                                        AuthName "rutorrent"
                                        AuthDigestProvider file
                                        AuthUserFile /etc/apache2/htpasswd
                                        Require user <user name>
                                        Options Indexes FollowSymLinks MultiViews
                        </Directory>
                        Save and Exit.

                        Restart Apache2

                        Code:
                        sudo service apache2 restart
                        Set permissions on directories so the web server can access them, the ~ in the command below is the current users home directory, and will also change permissions on all subdirectories.

                        Code:
                        find ~ -type d -print0 | xargs -0 chmod 755
                        You should now be able to access the home directory for downloads via https://<Server IP>/download/<user name>

                        "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


                        • The IRC option in autodl-irssi preferences for the output of the log file on iRC doesn't work. My servers ALL don't connect to IRC with this. Why?

                          Comment


                          • I've used this script in the past without issue, this time the install seemed to go fine however when I tried to access rutorrent webui I got a refused to connect error, using webmin I check and nginx wasn't running, I tried to start it manually but it resulted in an error, any idea how to resolve this, I tried to reinstall but it made no difference

                            Code:
                             nginx.service - A high performance web server and a reverse proxy server
                               Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
                               Active: failed (Result: exit-code) since Mon 2017-06-12 18:45:39 BST; 58s ago
                              Process: 7286 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
                            
                            
                            Jun 12 18:45:38 soverign systemd[1]: Starting A high performance web server and a reverse proxy server...
                            Jun 12 18:45:39 soverign nginx[7286]: nginx: [emerg] BIO_new_file("/etc/ssl/ruweb.crt") failed (SSL: error:02001002:system library:fopen:No such file
                            Jun 12 18:45:39 soverign nginx[7286]: nginx: configuration file /etc/nginx/nginx.conf test failed
                            Jun 12 18:45:39 soverign systemd[1]: nginx.service: Control process exited, code=exited status=1
                            Jun 12 18:45:39 soverign systemd[1]: Failed to start A high performance web server and a reverse proxy server.
                            Jun 12 18:45:39 soverign systemd[1]: nginx.service: Unit entered failed state.
                            Jun 12 18:45:39 soverign systemd[1]: nginx.service: Failed with result 'exit-code'.

                            Comment


                            • Thanks again, Arakasi

                              Comment


                              • Script now works with debian 9, stretch. Tested on Release Candidate 5.

                                "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