{"id":4733,"date":"2019-08-02T17:59:31","date_gmt":"2019-08-02T20:59:31","guid":{"rendered":"https:\/\/blog.clusterweb.com.br\/?p=4733"},"modified":"2019-08-02T17:59:31","modified_gmt":"2019-08-02T20:59:31","slug":"seedbox-installation","status":"publish","type":"post","link":"https:\/\/blog.clusterweb.com.br\/?p=4733","title":{"rendered":"Seedbox installation"},"content":{"rendered":"<h2>rtinst<\/h2>\n<h3><a id=\"user-content-1-introduction\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#1-introduction\" aria-hidden=\"true\"><\/a>1. Introduction<\/h3>\n<p>Seedbox installation<\/p>\n<p>rtorrent, rutorrent, nginx, vsftpd, and autodl-irssi will be installed and configured.<\/p>\n<p>It takes about 10 minutes to run, depending on your server setup.<\/p>\n<p>After you have run the script and everything is working, I suggest a reboot, the script does not automate this reboot, you need to do it manually using the reboot command.<\/p>\n<p>As well as installing the various applications previously mentioned, a suite of scripts, will be available to automate a number of tasks for the user and also for the admin. See sections 3 and 4 of this guide for further details.<\/p>\n<p><!--more--><\/p>\n<h3><a id=\"user-content-2-main-script\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#2-main-script\" aria-hidden=\"true\"><\/a>2. Main Script<\/h3>\n<p>If you haven&#8217;t already\u00a0install rtinst, it will take a few seconds.<\/p>\n<p>Run the script from root, or if you have a sudo user already set up you can run it from there. If for some reason it is interrupted you can run it again to completion. Running the script multiple times will not cause any problems.<\/p>\n<p>To run main script:<\/p>\n<pre><code>rtinst\r\n<\/code><\/pre>\n<p>or if you run it from a non-root sudo user:<\/p>\n<pre><code>sudo rtinst\r\n<\/code><\/pre>\n<p>The script will assign a random ssh port for security purposes. It will display this on the screen when it has finished running and write it to ~\/rtinst.info<\/p>\n<p><strong>IMPORTANT: NOTE THE NEW SSH PORT AND MAKE SURE YOU CAN SSH INTO YOUR SERVER BEFORE CLOSING THE EXISTING SESSION<\/strong><\/p>\n<p>For security the script assigns ftp to a random port number. You will need to use this port number in your ftp client. It will display the port number at the end of the script, and will also write it to ~\/rtinst.info<\/p>\n<p>To access that information just use the following command<\/p>\n<pre><code>cat ~\/rtinst.info\r\n<\/code><\/pre>\n<p>There are a number of options that can be used when running the script.<\/p>\n<h4><a id=\"user-content-21-main-script-options\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#21-main-script-options\" aria-hidden=\"true\"><\/a>2.1 Main Script Options<\/h4>\n<h5><a id=\"user-content--d---dload\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-d---dload\" aria-hidden=\"true\"><\/a>-d, &#8211;dload<\/h5>\n<p>Enables http download of content<\/p>\n<h5><a id=\"user-content--l---log\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-l---log\" aria-hidden=\"true\"><\/a>-l, &#8211;log<\/h5>\n<p>Enables logging to ~\/rtinst.log<\/p>\n<h5><a id=\"user-content--t---ssh-default\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-t---ssh-default\" aria-hidden=\"true\"><\/a>-t, &#8211;ssh-default<\/h5>\n<p>Sets the ssh port to its default 22<\/p>\n<h5><a id=\"user-content--r---rutorrent-stable\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-r---rutorrent-stable\" aria-hidden=\"true\"><\/a>-r, &#8211;rutorrent-stable<\/h5>\n<p>Installs &#8216;stable&#8217; rutorrent as opposed to the latest master build, this is default setting, from rtinst v1.4<\/p>\n<h5><a id=\"user-content--m---rutorrent-master\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-m---rutorrent-master\" aria-hidden=\"true\"><\/a>-m, &#8211;rutorrent-master<\/h5>\n<p>Installs the latest master build of rutorrent as opposed to latest &#8216;stable&#8217; release, this is the default setting prior to rtinst v1.4, and this option is only available from v1.4<\/p>\n<h5><a id=\"user-content--y---force-yes\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-y---force-yes\" aria-hidden=\"true\"><\/a>-y, &#8211;force-yes<\/h5>\n<p>Will automatically accept the IP address as detected, will automatically skip rtorrent\/libtorrent install if an existing installation is detected, and will generate a random password for rutorrent, unless -w, &#8211;webpass is also used to specify a web password.<\/p>\n<h5><a id=\"user-content--u---user\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-u---user\" aria-hidden=\"true\"><\/a>-u, &#8211;user<\/h5>\n<p>names the user to be primary rtorrent user, can be an existing user or script will create a new user, for example if the user name is sally then the option would be &#8216;-u sally&#8217;<\/p>\n<h5><a id=\"user-content--p---password\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-p---password\" aria-hidden=\"true\"><\/a>-p, &#8211;password<\/h5>\n<p>Sets the unix password, this only applies if a new user is created. It will not change the password of an existing user.<\/p>\n<h5><a id=\"user-content--w---webpass\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-w---webpass\" aria-hidden=\"true\"><\/a>-w, &#8211;webpass<\/h5>\n<p>Sets the web password for the user. This is the password used by rutorrent, and is not the same as the unix account password<\/p>\n<h4><a id=\"user-content-22-example-commands\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#22-example-commands\" aria-hidden=\"true\"><\/a>2.2 Example Commands<\/h4>\n<p>If we want to create a new user called horatio (unix password will be admiral, and the web password will be trafalgar), with out any further interaction, and we will create a log.<\/p>\n<pre><code>rtinst -yl -u horatio -p admiral --webpass trafalgar\r\n<\/code><\/pre>\n<p>In this example we are running using sudo from an existing user but we wish to keep the ssh port at 22 and use the latest master build version of rutorrent<\/p>\n<pre><code>sudo rtinst --ssh-default --rutorrent-master\r\n<\/code><\/pre>\n<p>or<\/p>\n<pre><code>sudo rtinst -tm\r\n<\/code><\/pre>\n<h3><a id=\"user-content-3-admin-scripts\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#3-admin-scripts\" aria-hidden=\"true\"><\/a>3. Admin Scripts<\/h3>\n<p>A number of additional scripts will be installed that carry out a variety of useful functions. These will be installed by the main script. So you don&#8217;t need to remember all the script names you can run rtadmin which will, present a menu to launch the other scripts listed in this section.<\/p>\n<pre><code>sudo rtadmin\r\n<\/code><\/pre>\n<p>All the scripts are downloaded to \/usr\/local\/bin<\/p>\n<h4><a id=\"user-content-31-rtsetup\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#31-rtsetup\" aria-hidden=\"true\"><\/a>3.1 rtsetup<\/h4>\n<p>This will install or update all the rtinst scripts making sure you have the latest versions:<\/p>\n<pre><code>sudo rtsetup\r\n<\/code><\/pre>\n<p>NOTE: Prior to rtinst v1.4 this was done by rtgetscripts<\/p>\n<h4><a id=\"user-content-32-rtadduser\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#32-rtadduser\" aria-hidden=\"true\"><\/a>3.2 rtadduser<\/h4>\n<p>This will add new users. Ensuring there are no conflicts with the existing user ports. You can use it to create brand new users, or reset the config on existing users. If you use it on an existing user, you will NOT lose any torrents, files, of autodl-filters. It will just reset the ports used. To run this:<\/p>\n<pre><code>sudo rtadduser\r\n<\/code><\/pre>\n<p>and enter the information asked for.<\/p>\n<h5><a id=\"user-content-321-rtadduser-options\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#321-rtadduser-options\" aria-hidden=\"true\"><\/a>3.2.1 rtadduser options<\/h5>\n<p>rtadduser can be run with options to minimise further user interaction. Useful if, for example, you wish to run the command from another script.<\/p>\n<h6><a id=\"user-content--u---user-1\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-u---user-1\" aria-hidden=\"true\"><\/a>-u, &#8211;user<\/h6>\n<p>names the user to be added, can be an existing user or script will create a new user, for example if the user name is robert then the option would be &#8216;-u robert&#8217;<\/p>\n<h6><a id=\"user-content--p---password-1\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-p---password-1\" aria-hidden=\"true\"><\/a>-p, &#8211;password<\/h6>\n<p>Sets the unix password, this only applies if a new user is created. It will not change the password of an existing user.<\/p>\n<h6><a id=\"user-content--w---webpass-1\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-w---webpass-1\" aria-hidden=\"true\"><\/a>-w, &#8211;webpass<\/h6>\n<p>Sets the web password for the user. This is the password used by rutorrent, and is not the same as the unix account password<\/p>\n<h6><a id=\"user-content--s---ssh-access\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-s---ssh-access\" aria-hidden=\"true\"><\/a>-s, &#8211;ssh-access<\/h6>\n<p>Adds the user to sshuser group giving them ssh access<\/p>\n<h6><a id=\"user-content--n---no-ssh\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-n---no-ssh\" aria-hidden=\"true\"><\/a>-n, &#8211;no-ssh<\/h6>\n<p>Does not add them to the sshuser group, meaning they will not be able to connect via ssh. Note: If they are an existing user belonging to the sshuser group, this option will not remove them from that group<\/p>\n<h4><a id=\"user-content-33-rtremove\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#33-rtremove\" aria-hidden=\"true\"><\/a>3.3 rtremove<\/h4>\n<p>WARNING: This will completely remove a user wiping all their config and data, and removing them from the system. To run this:<\/p>\n<pre><code>sudo rtremove\r\n<\/code><\/pre>\n<p>and enter the user name when asked<\/p>\n<h4><a id=\"user-content-34-rtdload\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#34-rtdload\" aria-hidden=\"true\"><\/a>3.4 rtdload<\/h4>\n<p>This script will enable or disable https download<\/p>\n<p>To run:<\/p>\n<pre><code>sudo rtdload\r\n<\/code><\/pre>\n<p>It will tell you the current status, and ask if you want to change it.<\/p>\n<p>If enabled you can access at https:\/\/SERVER_IP\/download\/user_name<\/p>\n<h4><a id=\"user-content-35-rtupdate\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#35-rtupdate\" aria-hidden=\"true\"><\/a>3.5 rtupdate<\/h4>\n<p>This script can upgrade, (or downgrade), the libtorrent\/rtorrent version installed. To run this:<\/p>\n<pre><code>sudo rtupdate\r\n<\/code><\/pre>\n<h4><a id=\"user-content-36-rutupgrade\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#36-rutupgrade\" aria-hidden=\"true\"><\/a>3.6 rutupgrade<\/h4>\n<p>This script upgrades Rutorrent. It retains all your config and settings, as well as providing a rollback capability.<\/p>\n<p>From rtinst v1.5 options are available to skip user interaction:<\/p>\n<h5><a id=\"user-content--y---force-yes-1\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-y---force-yes-1\" aria-hidden=\"true\"><\/a>-y, &#8211;force-yes<\/h5>\n<p>skips user interaction if used with no other options will install latest rutorrent stable release<\/p>\n<h5><a id=\"user-content--m---rutorrent-master-1\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-m---rutorrent-master-1\" aria-hidden=\"true\"><\/a>-m, &#8211;rutorrent-master<\/h5>\n<p>will install the master build of rutorrent<\/p>\n<h5><a id=\"user-content--o---restore-old\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#-o---restore-old\" aria-hidden=\"true\"><\/a>-o, &#8211;restore-old<\/h5>\n<p>if available will restore the backup of rutorrent<\/p>\n<p>To run this:<\/p>\n<pre><code>sudo rutupgrade\r\n<\/code><\/pre>\n<h4><a id=\"user-content-37-rtwebmin\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#37-rtwebmin\" aria-hidden=\"true\"><\/a>3.7 rtwebmin<\/h4>\n<p>This will install webmin, (if not already installed), and configure nginx as a reverse proxy allowing you to access webmin using\u00a0<a href=\"https:\/\/server-ip\/webmin\" rel=\"nofollow\">https:\/\/SERVER-IP\/webmin<\/a>\u00a0To run this:<\/p>\n<pre><code>sudo rtwebmin\r\n<\/code><\/pre>\n<h4><a id=\"user-content-38-rtsslcert\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#38-rtsslcert\" aria-hidden=\"true\"><\/a>3.8 rtsslcert<\/h4>\n<p>This will generate self signed ssl certificates, used by vsftpd and nginx. Can be run with -d option to cut out user interaction, or with -y which will force the generation of new certificates, even if the script determines they are not necessary. Can include an IP address as an argument or the script will determine the IP address, as well as the DN itself<\/p>\n<pre><code>sudo rtsslcert\r\n<\/code><\/pre>\n<h3><a id=\"user-content-4-user-scripts\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#4-user-scripts\" aria-hidden=\"true\"><\/a>4. User Scripts<\/h3>\n<p>The scripts in this section can be run by any user other than root. They cannot be run by root as they are not applicable to root.<\/p>\n<h4><a id=\"user-content-41-rtpass\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#41-rtpass\" aria-hidden=\"true\"><\/a>4.1 rtpass<\/h4>\n<p>This will allow user to change their rutorrent password. to run this:<\/p>\n<pre><code>rtpass\r\n<\/code><\/pre>\n<h4><a id=\"user-content-42-rt\" class=\"anchor\" href=\"https:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#42-rt\" aria-hidden=\"true\"><\/a>4.2 rt<\/h4>\n<p>This script can stop, start, or restart rtorrent or irssi. Use the arguments stop start or restart, with no arguments it will tell tell you if rtorrent is running or not<\/p>\n<p>examples:<\/p>\n<pre><code>rt\r\nrt stop\r\nrt start\r\nrt restart\r\n<\/code><\/pre>\n<p>If you use the option -i it will switch to irssi<\/p>\n<pre><code>rt -i\r\nrt -i stop\r\nrt -i start\r\nrt -i restart\r\n\r\nhttps:\/\/github.com\/arakasi72\/rtinst\/wiki\/Guide#21-main-script-options<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>rtinst 1. Introduction Seedbox installation rtorrent, rutorrent, nginx, vsftpd, and autodl-irssi will be installed and configured. It takes about 10 minutes to run, depending on your server setup. After you have run the script and everything is working, I suggest a reboot, the script does not automate this reboot, you need to do it manually [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1082,1,730,830,42,51,68,548],"tags":[1382,922],"class_list":["post-4733","post","type-post","status-publish","format-standard","hentry","category-centos-7-rhel-7","category-viazap","category-clusterweb","category-debian","category-leitura-recomendada","category-linux-linuxrs","category-redes-2","category-ubuntu-2","tag-installation","tag-seedbox"],"_links":{"self":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4733"}],"version-history":[{"count":1,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4733\/revisions"}],"predecessor-version":[{"id":4734,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4733\/revisions\/4734"}],"wp:attachment":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}