- login as: root
- root@188.213.134.177's password:
- Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 2.6.32-48-pve x86_64)
- * Documentation: https://help.ubuntu.com/
- The programs included with the Ubuntu system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
- applicable law.
- root@server03:~# apt-get update
- Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
- Ign http://archive.canonical.com trusty InRelease
- Ign http://archive.ubuntu.com trusty InRelease
- Get:2 http://archive.canonical.com trusty Release.gpg [916 B]
- Get:3 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
- Get:4 http://archive.canonical.com trusty Release [9359 B]
- Get:5 http://security.ubuntu.com trusty-security/main amd64 Packages [687 kB]
- Get:6 http://archive.canonical.com trusty/partner amd64 Packages [5351 B]
- Get:7 http://archive.ubuntu.com trusty Release.gpg [933 B]
- Get:8 http://archive.canonical.com trusty/partner i386 Packages [5763 B]
- Get:9 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1035 kB]
- Get:10 http://archive.canonical.com trusty/partner Translation-en [4207 B]
- Get:11 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.1 kB]
- Get:12 http://security.ubuntu.com trusty-security/universe amd64 Packages [191 kB]
- Get:13 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4793 B]
- Get:14 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.2 kB]
- Get:15 http://security.ubuntu.com trusty-security/main i386 Packages [631 kB]
- Get:16 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [430 kB]
- Get:17 http://security.ubuntu.com trusty-security/restricted i386 Packages [13.9 kB]
- Get:18 http://archive.ubuntu.com trusty-updates/main i386 Packages [977 kB]
- Get:19 http://security.ubuntu.com trusty-security/universe i386 Packages [192 kB]
- Get:20 http://security.ubuntu.com trusty-security/multiverse i386 Packages [4953 B]
- Get:21 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [17.0 kB]
- Get:22 http://security.ubuntu.com trusty-security/main Translation-en [369 kB]
- Get:23 http://archive.ubuntu.com trusty-updates/universe i386 Packages [431 kB]
- Get:24 http://security.ubuntu.com trusty-security/multiverse Translation-en [2564 B]
- Get:25 http://archive.ubuntu.com trusty-updates/main Translation-en [511 kB]
- Get:26 http://security.ubuntu.com trusty-security/restricted Translation-en [3542 B]
- Get:27 http://security.ubuntu.com trusty-security/universe Translation-en [110 kB]
- Get:28 http://archive.ubuntu.com trusty-updates/restricted Translation-en [4031 B]
- Get:29 http://archive.ubuntu.com trusty-updates/universe Translation-en [233 kB]
- Get:30 http://archive.ubuntu.com trusty Release [58.5 kB]
- Get:31 http://archive.ubuntu.com trusty/main amd64 Packages [1350 kB]
- Get:32 http://archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
- Get:33 http://archive.ubuntu.com trusty/universe amd64 Packages [5859 kB]
- Get:34 http://archive.ubuntu.com trusty/main i386 Packages [1348 kB]
- Get:35 http://archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
- Get:36 http://archive.ubuntu.com trusty/universe i386 Packages [5866 kB]
- Get:37 http://archive.ubuntu.com trusty/main Translation-en [762 kB]
- Get:38 http://archive.ubuntu.com trusty/restricted Translation-en [3457 B]
- Get:39 http://archive.ubuntu.com trusty/universe Translation-en [4089 kB]
- Fetched 25.4 MB in 15s (1645 kB/s)
- Reading package lists... Done
- root@server03:~# wget https://www.shadowzentral.de/rtorrent.sh
- --2017-10-31 03:22:17-- https://www.shadowzentral.de/rtorrent.sh
- Resolving www.shadowzentral.de (www.shadowzentral.de)... 46.30.213.223
- Connecting to www.shadowzentral.de (www.shadowzentral.de)|46.30.213.223|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 9442 (9.2K) [text/x-sh]
- Saving to: 'rtorrent.sh'
- 100%[======================================>] 9,442 --.-K/s in 0s
- 2017-10-31 03:22:18 (107 MB/s) - 'rtorrent.sh' saved [9442/9442]
- root@server03:~# chmod 777 rtorrent.sh
- root@server03:~# ./rtorrent.sh
- ./rtorrent.sh: line 220: [: : integer expression expected
- Reading package lists... Done
- Building dependency tree... Done
- Package ffmpeg is not available, but is referred to by another package.
- This may mean that the package is missing, has been obsoleted, or
- is only available from another source
- E: Package 'ffmpeg' has no installation candidate
- ./rtorrent.sh: line 229: svn: command not found
- ./rtorrent.sh: line 230: cd: xmlrpc-c/: No such file or directory
- ./rtorrent.sh: line 231: ./configure: No such file or directory
- make: *** No targets specified and no makefile found. Stop.
- make: *** No rule to make target `install'. Stop.
- ./rtorrent.sh: line 236: git: command not found
- ./rtorrent.sh: line 237: cd: libtorrent: No such file or directory
- ./rtorrent.sh: line 238: git: command not found
- ./rtorrent.sh: line 238: git: command not found
- ./rtorrent.sh: line 239: ./autogen.sh: No such file or directory
- ./rtorrent.sh: line 240: ./configure: No such file or directory
- make: *** No targets specified and no makefile found. Stop.
- make: *** No rule to make target `install'. Stop.
- ./rtorrent.sh: line 245: git: command not found
- ./rtorrent.sh: line 246: cd: rtorrent: No such file or directory
- ./rtorrent.sh: line 247: git: command not found
- ./rtorrent.sh: line 247: git: command not found
- ./rtorrent.sh: line 248: ./autogen.sh: No such file or directory
- ./rtorrent.sh: line 249: ./configure: No such file or directory
- make: *** No targets specified and no makefile found. Stop.
- make: *** No rule to make target `install'. Stop.
- --2017-10-31 03:22:37-- http://nginx.org/keys/nginx_signing.key
- Resolving nginx.org (nginx.org)... 206.251.255.63, 95.211.80.227, 2606:7100:1:69::3f, ...
- Connecting to nginx.org (nginx.org)|206.251.255.63|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 1561 (1.5K) [text/plain]
- Saving to: 'nginx_signing.key'
- 100%[======================================>] 1,561 --.-K/s in 0s
- 2017-10-31 03:22:38 (199 MB/s) - 'nginx_signing.key' saved [1561/1561]
- OK
- Ign http://archive.canonical.com trusty InRelease
- Ign http://archive.ubuntu.com trusty InRelease
- Hit http://archive.canonical.com trusty Release.gpg
- Hit http://archive.ubuntu.com trusty-updates InRelease
- Hit http://security.ubuntu.com trusty-security InRelease
- Hit http://archive.canonical.com trusty Release
- Hit http://archive.ubuntu.com trusty Release.gpg
- Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
- Hit http://archive.canonical.com trusty/partner amd64 Packages
- Get:1 http://nginx.org xenial InRelease [4351 B]
- Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
- Hit http://security.ubuntu.com trusty-security/main amd64 Packages
- Hit http://archive.canonical.com trusty/partner i386 Packages
- Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
- Hit http://archive.canonical.com trusty/partner Translation-en
- Hit http://archive.ubuntu.com trusty-updates/main i386 Packages
- Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
- Hit http://archive.ubuntu.com trusty-updates/restricted i386 Packages
- Get:2 http://nginx.org xenial/nginx Sources [27.4 kB]
- Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages
- Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty-updates/main Translation-en
- Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
- Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
- Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
- Hit http://archive.ubuntu.com trusty Release
- Hit http://security.ubuntu.com trusty-security/main i386 Packages
- Hit http://archive.ubuntu.com trusty/main amd64 Packages
- Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
- Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
- Hit http://archive.ubuntu.com trusty/universe amd64 Packages
- Get:3 http://nginx.org xenial/nginx amd64 Packages [38.3 kB]
- Hit http://archive.ubuntu.com trusty/main i386 Packages
- Hit http://security.ubuntu.com trusty-security/universe i386 Packages
- Hit http://archive.ubuntu.com trusty/restricted i386 Packages
- Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
- Get:4 http://nginx.org xenial/nginx i386 Packages [38.3 kB]
- Hit http://archive.ubuntu.com trusty/universe i386 Packages
- Hit http://archive.ubuntu.com trusty/main Translation-en
- Hit http://security.ubuntu.com trusty-security/main Translation-en
- Hit http://archive.ubuntu.com trusty/restricted Translation-en
- Hit http://archive.ubuntu.com trusty/universe Translation-en
- Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
- Hit http://security.ubuntu.com trusty-security/restricted Translation-en
- Hit http://security.ubuntu.com trusty-security/universe Translation-en
- Ign http://nginx.org xenial/nginx Translation-en
- Fetched 108 kB in 4s (25.0 kB/s)
- Reading package lists... Done
- Reading package lists... Done
- Building dependency tree... Done
- Some packages could not be installed. This may mean that you have
- requested an impossible situation or if you are using the unstable
- distribution that some required packages have not yet been created
- or been moved out of Incoming.
- The following information may help to resolve the situation:
- The following packages have unmet dependencies:
- nginx : Depends: init-system-helpers (>= 1.18~) but 1.14 is to be installed
- Depends: libssl1.0.0 (>= 1.0.2~beta3) but 1.0.1f-1ubuntu2.7 is to be installed
- E: Unable to correct problems, you have held broken packages.
- Adding user `rtorrent' ...
- Adding new group `rtorrent' (1000) ...
- Adding new user `rtorrent' (1000) with group `rtorrent' ...
- Creating home directory `/home/rtorrent' ...
- Copying files from `/etc/skel' ...
- Changing the user information for rtorrent
- Enter the new value, or press ENTER for the default
- Full Name []: rTorrent
- Room Number []:
- Work Phone []:
- Home Phone []:
- Other []:
- Is the information correct? [Y/n] Y
- ./rtorrent.sh: line 347: curl: command not found
- Reading package lists... Done
- Building dependency tree... Done
- The following extra packages will be installed:
- libc-ares2 libv8-3.14.5
- The following NEW packages will be installed:
- libc-ares2 libv8-3.14.5 nodejs
- 0 upgraded, 3 newly installed, 0 to remove and 172 not upgraded.
- Need to get 1907 kB of archives.
- After this operation, 7538 kB of additional disk space will be used.
- Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libc-ares2 amd64 1.10.0-2ubuntu0.2 [34.1 kB]
- Get:2 http://archive.ubuntu.com/ubuntu/ trusty/universe libv8-3.14.5 amd64 3.14.5.8-5ubuntu2 [1189 kB]
- Get:3 http://archive.ubuntu.com/ubuntu/ trusty/universe nodejs amd64 0.10.25~dfsg2-2ubuntu1 [684 kB]
- Fetched 1907 kB in 0s (2248 kB/s)
- Selecting previously unselected package libc-ares2:amd64.
- (Reading database ... 25722 files and directories currently installed.)
- Preparing to unpack .../libc-ares2_1.10.0-2ubuntu0.2_amd64.deb ...
- Unpacking libc-ares2:amd64 (1.10.0-2ubuntu0.2) ...
- Selecting previously unselected package libv8-3.14.5.
- Preparing to unpack .../libv8-3.14.5_3.14.5.8-5ubuntu2_amd64.deb ...
- Unpacking libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
- Selecting previously unselected package nodejs.
- Preparing to unpack .../nodejs_0.10.25~dfsg2-2ubuntu1_amd64.deb ...
- Unpacking nodejs (0.10.25~dfsg2-2ubuntu1) ...
- Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
- Setting up libc-ares2:amd64 (1.10.0-2ubuntu0.2) ...
- Setting up libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
- Setting up nodejs (0.10.25~dfsg2-2ubuntu1) ...
- update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
- Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
- ./rtorrent.sh: line 351: git: command not found
- ./rtorrent.sh: line 352: cd: flood: No such file or directory
- cp: cannot stat 'config.template.js': No such file or directory
- ./rtorrent.sh: line 354: npm: command not found
- Adding user `flood' ...
- Adding new group `flood' (1001) ...
- Adding new user `flood' (1001) with group `flood' ...
- Creating home directory `/home/flood' ...
- Copying files from `/etc/skel' ...
- Changing the user information for flood
- Enter the new value, or press ENTER for the default
- Full Name []: Flood
- Room Number []:
- Work Phone []:
- Home Phone []:
- Other []:
- Is the information correct? [Y/n] Y
- chown: cannot access '/home/rtorrent/flood/': No such file or directory
- ./rtorrent.sh: line 46: bad substitution: no closing "`" in ` | '_ \ / _ \ \/ /
- # ___) | __/ __/ (_| | |_) | (_) > <
- # |____/ \___|\___|\__,_|_.__/ \___/_/\_#
- # @see http://methvin.net/scripts/rtorrent
- # @see http://tldp.org/LDP/abs/html/
- # ------------------------------------------------------------------------------
- ## Username to run rtorrent under, make sure you have a .rtorrent.rc in the
- ## home directory of this user!
- USER="rtorrent"
- ## Absolute path to the rtorrent binary.
- RTORRENT="/usr/bin/rtorrent"
- ## Absolute path to the screen binary.
- SCREEN="/usr/bin/screen"
- ## Name of the screen session, you can then "screen -r rtorrent" to get it back
- ## to the forground and work with it on your shell.
- SCREEN_NAME="rtorrent"
- ## Absolute path to rtorrent's PID file.
- PIDFILE="/var/run/rtorrent.pid"
- ## Absolute path to rtorrent's XMLRPC socket.
- SOCKET="/var/run/rtorrent/rpc.socket"
- ## Check if the socket exists and if it exists delete it.
- delete_socket() {
- if [[ -e $SOCKET ]]; then
- rm -f $SOCKET
- fi
- }
- case "$1" in
- ## Start rtorrent in the background.
- start)
- echo "Starting rtorrent."
- delete_socket
- start-stop-daemon --start --background --oknodo --pidfile "$PIDFILE" --make-pidfile --chuid $USER --exec $SCREEN -- -DmUS $SCREEN_NAME $RTORRENT $RTORRENTBIN
- if [[ $? -ne 0 ]]; then
- echo "Error: rtorrent failed to start."
- exit 1
- fi
- echo "rtorrent started successfully."
- ;;
- ## Stop rtorrent.
- stop)
- echo "Stopping rtorrent."
- start-stop-daemon --stop --oknodo --pidfile "$PIDFILE"
- if [[ $? -ne 0 ]]; then
- echo "Error: failed to stop rtorrent process."
- exit 1
- fi
- delete_socket
- echo "rtorrent stopped successfully."
- ;;
- ## Restart rtorrent.
- restart)
- "$0" stop
- sleep 1
- "$0" start || exit 1
- ;;
- ## Print usage information if the user gives an invalid option.
- *)
- echo "Usage: $0 [start|stop|restart]"
- exit 1
- ;;
- esac
- update-rc.d: /etc/init.d/rtorrent: file does not exist
- update-rc.d: /etc/init.d/flood: file does not exist
- rtorrent: unrecognized service
- flood: unrecognized service
- root@server03:~# chown: cannot access '/home/rtorrent/flood/': No such file or directory
- -bash: chown:: command not found
- root@server03:~# ./rtorrent.sh: line 46: bad substitution: no closing "`" in ` | '_ \ / _ \ \/ /
- > # ___) | __/ __/ (_| | |_) | (_) > <
- > # |____/ \___|\___|\__,_|_.__/ \___/_/\_#
- > # @see http://methvin.net/scripts/rtorrent
- > # @see http://tldp.org/LDP/abs/html/
- > # ------------------------------------------------------------------------------
- >
- > ## Username to run rtorrent under, make sure you have a .rtorrent.rc in the
- > ## home directory of this user!
- > USER="rtorrent"
- >
- > ## Absolute path to the rtorrent binary.
- > RTORRENT="/usr/bin/rtorrent"
- >
- > ## Absolute path to the screen binary.
- > SCREEN="/usr/bin/screen"
- >
- > ## Name of the screen session, you can then "screen -r rtorrent" to get it back
- > ## to the forground and work with it on your shell.
- > SCREEN_NAME="rtorrent"
- >
- > ## Absolute path to rtorrent's PID file.
- > PIDFILE="/var/run/rtorrent.pid"
- >
- > ## Absolute path to rtorrent's XMLRPC socket.
- > SOCKET="/var/run/rtorrent/rpc.socket"
- >
- > ## Check if the socket exists and if it exists delete it.
- > delete_socket() {
- > if [[ -e $SOCKET ]]; then
- > rm -f $SOCKET
- > fi
- > }
- >
- > case "$1" in
- > ## Start rtorrent in the background.
- > start)
- > echo "Starting rtorrent."
- > delete_socket
- > start-stop-daemon --start --background --oknodo --pidfile "$PIDFILE" --make-pidfile --chuid $USER --exec $SCREEN -- -DmUS $SCREEN_NAME $RTORRENT $RTORRENTBIN
- > if [[ $? -ne 0 ]]; then
- > echo "Error: rtorrent failed to start."
- > exit 1
- > fi
- > echo "rtorrent started successfully."
- > ;;
- >
- > ## Stop rtorrent.
- > stop)
- > echo "Stopping rtorrent."
- > start-stop-daemon --stop --oknodo --pidfile "$PIDFILE"
- > if [[ $? -ne 0 ]]; then
- > echo "Error: failed to stop rtorrent process."
- > exit 1
- > fi
- > delete_socket
- > echo "rtorrent stopped successfully."
- > ;;
- >
- > ## Restart rtorrent.
- > restart)
- > "$0" stop
- > sleep 1
- > "$0" start || exit 1
- > ;;
- >
- > ## Print usage information if the user gives an invalid option.
- > *)
- > echo "Usage: $0 [start|stop|restart]"
- > exit 1
- > ;;
- >
- > esac
- >
- > update-rc.d: /etc/init.d/rtorrent: file does not exist
- > update-rc.d: /etc/init.d/flood: file does not exist
- > rtorrent: unrecognized service
- > flood: unrecognized service
- > root@server03:~#
- >