rtinst
[Tutorial] - Setting up your own Seedbox on a Linux Based VPS. 1.Updating ubuntu. 2.Installing Rutorrent Client. 1.Updating ubuntu. Insert each code in a separate line. If you already have another web server installed, you may need to disable it or uninstall it. If you don't, the web server this script installs (*) might not work. Here are the steps to install Transdroid when you use rTorrent on Ubuntu: Compiling and installing rTorrent. For the ideal rTorrent/Transdroid set-up, we need to compile a fresh new version with support for 64-bit integers. A word of warning: rTorrent is primarily for the advanced Linux user.
30 Second Guide
Ubuntu and Debian Seedbox Installation
Download and run setup (if logged in directly as root, do not need to use sudo)
and then to run the main script, (check the options you can use):
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 using the reboot command.
IMPORTANT: NOTE THE NEW SSH PORT AND MAKE SURE YOU CAN SSH INTO YOUR SERVER BEFORE CLOSING THE EXISTING SESSION
It has been tested with clean installs of:
Services that will be installed and configured are
For older unssuported OS listed above see the Older OS Installation Guide
Ubuntu Server Download 32-bit
To see latest updates to the script go to Change Log
Copyright (c) 2015 arakasi72 (https://github.com/arakasi72)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Ubuntu Server Download
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Debian Server Download
--> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
Seedbox Free Trial
- Tutorial by Mikhail Danial - http://youtu.be/ahIdUr3yW64
- sudo apt-get update
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- sudo adduser --disabled-password --system --home /var/lib/deluge --gecos 'SamRo Deluge server' --group deluge
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- # The init.d script will only run if this variable non-empty.
- # Should we run at startup?
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- ### BEGIN INIT INFO
- # Required-Start: $local_fs $remote_fs
- # Should-Start: $network
- # Default-Start: 2 3 4 5
- # Short-Description: Daemonized version of deluge and webui.
- # Description: Starts the deluge daemon with the user specified in
- ### END INIT INFO
- # Author: Adolfo R. Brandes
- PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
- NAME1='deluged'
- DAEMON1=/usr/bin/deluged
- DAEMON1_ARGS='-d' # Consult `man deluged` for more options
- DAEMON2_ARGS=' # Consult `man deluge-web` for more options
- PIDFILE2=/var/run/$NAME2.pid
- UMASK=022 # Change this to 0 if running deluged as its own user
- SCRIPTNAME=/etc/init.d/$PKGNAME
- # Exit if the package is not installed
- # Read configuration variable file if it is present
- [ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME
- # Load the VERBOSE setting and other rcS variables
- # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
- if [ -z '$RUN_AT_STARTUP' -o '$RUN_AT_STARTUP' != 'YES' ]
- log_warning_msg 'Not starting $PKGNAME, edit /etc/default/$PKGNAME to start it.'
- fi
- if [ -z '$DELUGED_USER' ]
- log_warning_msg 'Not starting $PKGNAME, DELUGED_USER not set in /etc/default/$PKGNAME.'
- fi
- #
- #
- {
- kill -0 $pid > /dev/null 2>&1
- }
- #
- #
- {
- # 0 if daemon has been started
- # 2 if daemon could not be started
- is_alive $PIDFILE1
- rm -f $PIDFILE1
- start-stop-daemon --start --background --quiet --pidfile $PIDFILE1 --make-pidfile
- --exec $DAEMON1 --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK -- $DAEMON1_ARGS
- else
- RETVAL2='$?'
- [ '$RETVAL2' = '0' -a '$RETVAL1' = '0' ] && return 1
- RETVAL2='$?'
- if [ $RETVAL2 != 0 ]; then
- rm -f $PIDFILE2
- start-stop-daemon --start --background --quiet --pidfile $PIDFILE2 --make-pidfile
- --exec $DAEMON2 --chuid $DELUGED_USER --user $DELUGED_USER --umask $UMASK -- $DAEMON2_ARGS
- fi
- [ '$RETVAL1' = '0' -a '$RETVAL2' = '0' ] || return 2
- # Function that stops the daemon/service
- do_stop()
- # Return
- # 1 if daemon was already stopped
- # other if a failure occurred
- start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --user $DELUGED_USER --pidfile $PIDFILE2
- start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --user $DELUGED_USER --pidfile $PIDFILE1
- [ '$RETVAL1' = '2' -o '$RETVAL2' = '2' ] && return 2
- rm -f $PIDFILE1 $PIDFILE2
- [ '$RETVAL1' = '0' -a '$RETVAL2' = '0' ] && return 0 || return 1
- start)
- [ '$VERBOSE' != no ] && log_daemon_msg 'Starting $DESC' '$NAME1'
- case '$?' in
- 2) [ '$VERBOSE' != no ] && log_end_msg 1 ;;
- ;;
- [ '$VERBOSE' != no ] && log_daemon_msg 'Stopping $DESC' '$NAME1'
- case '$?' in
- 2) [ '$VERBOSE' != no ] && log_end_msg 1 ;;
- ;;
- log_daemon_msg 'Restarting $DESC' '$NAME1'
- case '$?' in
- do_start
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- esac
- *)
- log_end_msg 1
- esac
- *)
- echo 'Usage: $SCRIPTNAME {start|stop|restart|force-reload}' >&2
- ;;
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------