├── Files
├── rtorrent-init
└── rtorrent.rc
├── Plugins-installer-script-3.1.1
├── README.md
├── Rtorrent-Auto-Install-4.0.0-Debian-Jessie
└── Rtorrent-Auto-Install-4.0.0-Debian-Wheezy
/Files/rtorrent-init:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ### BEGIN INIT INFO
4 | # Provides: rtorrent-script
5 | # Required-Start: $remote_fs $syslog
6 | # Required-Stop: $remote_fs $syslog
7 | # Default-Start: 2 3 4 5
8 | # Default-Stop: 0 1 6
9 | # Short-Description: Start daemon at boot time
10 | # Description: Enable service provided by daemon.
11 | ### END INIT INFO
12 |
13 |
14 |
15 |
16 | #############
17 | ######
18 | #############
19 | # This script depends on screen.
20 | # For the stop function to work, you must set an
21 | # explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in your rtorrent.rc.
22 | # If you typically just start rtorrent with just "rtorrent" on the
23 | # command line, all you need to change is the "user" option.
24 | # Attach to the screen session as your user with
25 | # "screen -dr rtorrent". Change "rtorrent" with srnname option.
26 | # Licensed under the GPLv2 by lo***ihilist: lo***ihilist _at_ gmail _dot_ com
27 | ##############
28 | ######
29 | ##############
30 |
31 | #######################
32 | ##Start Configuration##
33 | #######################
34 | # You can specify your configuration in a different file
35 | # (so that it is saved with upgrades, saved in your home directory,
36 | # or whateve reason you want to)
37 | # by commenting out/deleting the configuration lines and placing them
38 | # in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
39 | # have written them here (you can leave the comments if you desire
40 | # and then uncommenting the following line correcting the path/filename
41 | # for the one you used. note the space after the ".".
42 | # . /etc/rtorrent.init.conf
43 |
44 | #Do not put a space on either side of the equal signs e.g.
45 | # user = user
46 | # will not work
47 | # system user to run as
48 | user="USERNAMEHERE"
49 |
50 | # the system group to run as, not implemented, see d_start for beginning implementation
51 | # group=`id -ng "$user"`
52 |
53 | # the full path to the filename where you store your rtorrent configuration
54 | config="`su -c 'echo $HOME' $user`/.rtorrent.rc"
55 |
56 | # set of options to run with
57 | options=""
58 |
59 | # default directory for screen, needs to be an absolute path
60 | base="`su -c 'echo $HOME' $user`"
61 |
62 | # name of screen session
63 | srnname="rtorrent"
64 |
65 | # file to log to (makes for easier debugging if something goes wrong)
66 | logfile="/var/log/rtorrentInit.log"
67 | #######################
68 | ###END CONFIGURATION###
69 | #######################
70 | PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin
71 | DESC="rtorrent"
72 | NAME=rtorrent
73 | DAEMON=$NAME
74 | SCRIPTNAME=/etc/init.d/$NAME
75 |
76 | checkcnfg() {
77 | exists=0
78 | for i in `echo "$PATH" | tr ':' '\n'` ; do
79 | if [ -f $i/$NAME ] ; then
80 | exists=1
81 | break
82 | fi
83 | done
84 | if [ $exists -eq 0 ] ; then
85 | echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logfile" >&2
86 | exit 3
87 | fi
88 | if ! [ -r "${config}" ] ; then
89 | echo "cannot find readable config ${config}. check that it is there and permissions are appropriate" | tee -a "$logfile" >&2
90 | exit 3
91 | fi
92 | session=`getsession "$config"`
93 | if ! [ -d "${session}" ] ; then
94 | echo "cannot find readable session directory ${session} from config ${config}. check permissions" | tee -a "$logfile" >&2
95 | exit 3
96 | fi
97 | }
98 |
99 | d_start() {
100 | [ -d "${base}" ] && cd "${base}"
101 | stty stop undef && stty start undef
102 | su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "screen -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
103 | # this works for the screen command, but starting rtorrent below adopts screen session gid
104 | # even if it is not the screen session we started (e.g. running under an undesirable gid
105 | #su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg \"$group\" -c \"screen -fn -dm -S ${srnname} 2>&1 1>/dev/null\"" ${user} | tee -a "$logfile" >&2
106 | su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
107 | }
108 |
109 | d_stop() {
110 | session=`getsession "$config"`
111 | if ! [ -s ${session}/rtorrent.lock ] ; then
112 | return
113 | fi
114 | pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9]//g"`
115 | if [ $(ps aux | grep rtorrent | grep ${pid} | wc -l) = "1" ]; then # make sure the pid doesn't belong to another process
116 | kill -s INT ${pid}
117 | fi
118 | }
119 |
120 | getsession() {
121 | session=`cat "$1" | grep "^[[:space:]]*session[[:space:]]*=" | sed "s/^[[:space:]]*session[[:space:]]*=[[:space:]]*//" `
122 | echo $session
123 | }
124 |
125 | checkcnfg
126 |
127 | case "$1" in
128 | start)
129 | echo -n "Starting $DESC: $NAME"
130 | d_start
131 | echo "."
132 | ;;
133 | stop)
134 | echo -n "Stopping $DESC: $NAME"
135 | d_stop
136 | echo "."
137 | ;;
138 | restart|force-reload)
139 | echo -n "Restarting $DESC: $NAME"
140 | d_stop
141 | sleep 5
142 | d_start
143 | echo "."
144 | ;;
145 | *)
146 | echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
147 | exit 1
148 | ;;
149 | esac
150 |
151 | exit 0
152 |
--------------------------------------------------------------------------------
/Files/rtorrent.rc:
--------------------------------------------------------------------------------
1 | # This is an example resource file for rTorrent. Copy to
2 | # ~/.rtorrent.rc and enable/modify the options as needed. Remember to
3 | # uncomment the options you wish to enable.
4 |
5 | # Maximum and minimum number of peers to connect to per torrent.
6 | #min_peers = 40
7 | #max_peers = 100
8 |
9 | # Same as above but for seeding completed torrents (-1 = same as downloading)
10 | #min_peers_seed = 10
11 | #max_peers_seed = 50
12 |
13 | # Maximum number of simultanious uploads per torrent.
14 | #max_uploads = 15
15 |
16 | # Global upload and download rate in KiB. "0" for unlimited.
17 | #download_rate = 0
18 | #upload_rate = 0
19 |
20 | # Default directory to save the downloaded torrents.
21 | directory = ~/Downloads
22 |
23 | # Default session directory. Make sure you don't run multiple instance
24 | # of rtorrent using the same session directory. Perhaps using a
25 | # relative path?
26 | session = HOMEDIRHERE/.rtorrent-session
27 |
28 | # Watch a directory for new torrents, and stop those that have been
29 | # deleted.
30 | #schedule = watch_directory,5,5,load_start=./watch/*.torrent
31 | #schedule = untied_directory,5,5,stop_untied=
32 |
33 | # Close torrents when diskspace is low.
34 | schedule = low_diskspace,5,60,close_low_diskspace=100M
35 |
36 | # The ip address reported to the tracker.
37 | #ip = 127.0.0.1
38 | #ip = rakshasa.no
39 |
40 | # The ip address the listening socket and outgoing connections is
41 | # bound to.
42 | #bind = 127.0.0.1
43 | #bind = rakshasa.no
44 |
45 | # Port range to use for listening.
46 | port_range = 6790-6999
47 |
48 | # Start opening ports at a random position within the port range.
49 | #port_random = no
50 |
51 | # Check hash for finished torrents. Might be usefull until the bug is
52 | # fixed that causes lack of diskspace not to be properly reported.
53 | #check_hash = no
54 |
55 | # Set whetever the client should try to connect to UDP trackers.
56 | #use_udp_trackers = yes
57 |
58 | # Alternative calls to bind and ip that should handle dynamic ip's.
59 | #schedule = ip_tick,0,1800,ip=rakshasa
60 | #schedule = bind_tick,0,1800,bind=rakshasa
61 |
62 | # Encryption options, set to none (default) or any combination of the following:
63 | # allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
64 | #
65 | # The example value allows incoming encrypted connections, starts unencrypted
66 | # outgoing connections but retries with encryption if they fail, preferring
67 | # plaintext to RC4 encryption after the encrypted handshake
68 | #
69 | encryption = allow_incoming,enable_retry,try_outgoing
70 |
71 | # Enable DHT support for trackerless torrents or when all trackers are down.
72 | # May be set to "disable" (completely disable DHT), "off" (do not start DHT),
73 | # "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
74 | # The default is "off". For DHT to work, a session directory must be defined.
75 | #
76 | # dht = auto
77 |
78 | # UDP port to use for DHT.
79 | #
80 | # dht_port = 6881
81 |
82 | # Enable peer exchange (for torrents not marked private)
83 | #
84 | # peer_exchange = yes
85 |
86 | #
87 | # Do not modify the following parameters unless you know what you're doing.
88 | #
89 |
90 | # Hash read-ahead controls how many MB to request the kernel to read
91 | # ahead. If the value is too low the disk may not be fully utilized,
92 | # while if too high the kernel might not be able to keep the read
93 | # pages in memory thus end up trashing.
94 | #hash_read_ahead = 10
95 |
96 | # Interval between attempts to check the hash, in milliseconds.
97 | #hash_interval = 100
98 |
99 | # Number of attempts to check the hash while using the mincore status,
100 | # before forcing. Overworked systems might need lower values to get a
101 | # decent hash checking rate.
102 | #hash_max_tries = 10
103 |
104 | scgi_port = 127.0.0.1:5000
--------------------------------------------------------------------------------
/Plugins-installer-script-3.1.1:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # PLEASE DO NOT SET ANY OF THE VARIABLES, THEY WILL BE POPULATED IN THE MENU
3 | clear
4 |
5 | # Formatting variables
6 | BOLD=$(tput bold)
7 | NORMAL=$(tput sgr0)
8 | RED=$(tput setaf 1)
9 | GREEN=$(tput setaf 2)
10 | PURPLE=$(tput setaf 5)
11 | LBLUE=$(tput setaf 6)
12 |
13 | # Temporary download folder for plugins
14 | TEMP_PLUGIN_DIR="/tmp/rutorrentPlugins"
15 |
16 | # Variable to understand what is needed for make a plugin work
17 | PLUGIN_NEEDS=""
18 |
19 | # Array of downloaded plugins
20 | PLUGIN_ARRAY=()
21 |
22 | #rTorrent users home dir.
23 | PLUGINS_DIR=""
24 |
25 | # Function to check if running user is root
26 | function CHECK_ROOT {
27 | if [[ "$(id -u)" != "0" ]]; then
28 | echo "Error! You must be a root user to run this script,\n please use any root user to continue." 1>&2
29 | exit 1
30 | fi
31 | }
32 |
33 | # Function to check or change your plugins folders
34 | function CHECK_PLUGINS_FOLDER {
35 | echo " Please enter the path to your rutorrent plugins folder."
36 | echo -n " Leave blank for default [/var/www/html/rutorrent/plugins]: "
37 | read DIR
38 |
39 | if [[ -z "$DIR" ]]; then
40 | PLUGINS_DIR="/var/www/html/rutorrent/plugins"
41 | else
42 | count=0
43 | while [ $count -eq 0 ]; do
44 | if [[ ! -d $DIR ]]; then
45 | echo
46 | echo -e "${RED} Error! This folder not exits.${NORMAL}"
47 | echo
48 | echo " It's possible to create it."
49 | read -p " Do you want to create $DIR folder ?" -n 1
50 | if [[ $REPLY =~ [Yy]$ ]]; then
51 | count=1
52 | mkdir -vp $DIR
53 | PLUGINS_DIR="$DIR"
54 | elif [[ $REPLY =~ [Nn]$ ]]; then
55 | count=1
56 | CHECK_PLUGINS_FOLDER
57 | else
58 | count=0
59 | error="${RED} Can't understand your choice !${NORMAL}"
60 | fi
61 | fi
62 | done
63 | fi
64 | }
65 |
66 | # License
67 | function LICENSE {
68 | clear
69 | echo "${BOLD}--------------------------------------------------------------------------------"
70 | echo " THE BEER-WARE LICENSE (Revision 42):"
71 | echo " wrote this script. As long as you retain this notice you"
72 | echo " can do whatever you want with this stuff. If we meet some day, and you think"
73 | echo " this stuff is worth it, you can buy me a beer in return."
74 | echo
75 | echo " - ${LBLUE}Patrick Kerwood @ LinuxBloggen.dk${NORMAL}"
76 | echo "${BOLD}--------------------------------------------------------------------------------${NORMAL}"
77 | echo
78 | read -p " Press any key to continue..." -n 1
79 | }
80 |
81 | # Header for the menu
82 | function HEADER {
83 | clear
84 | echo "${BOLD}--------------------------------------------------------------------------------"
85 | echo " Web Server + rTorrent + ruTorrent Auto Install"
86 | echo " ${LBLUE}Patrick Kerwood @ LinuxBloggen.dk${NORMAL}"
87 | echo "${BOLD}--------------------------------------------------------------------------------${NORMAL}"
88 | }
89 |
90 | # Function to list downloaded plugins in the menu
91 | function LIST_PLUGINS {
92 | if [ ${#PLUGIN_ARRAY[@]} -eq 0 ]; then
93 | echo " No plugins downloaded!"
94 | else
95 | for i in "${PLUGIN_ARRAY[@]}"; do
96 | echo -e " - $i"
97 | done
98 | fi
99 | }
100 |
101 | # Function for the plugins download part
102 | function DOWNLOAD_PLUGIN {
103 | clear
104 | echo "${GREEN}-------------------------------------| Info |-----------------------------------${NORMAL}"
105 | echo
106 | echo " Plugin: ${LBLUE}$name${NORMAL}"
107 | echo
108 | echo -e " $desc"
109 | echo
110 | echo " Info at $homepage"
111 | echo
112 | read -p " Do you want to download it [y/n]: " -n 1
113 |
114 | if [[ $REPLY =~ [Yy]$ || -z $REPLY ]]; then
115 | if [[ $PLUGIN_NEEDS -eq "geoip" ]]; then
116 | curl -O http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
117 | mkdir -v /usr/share/GeoIP
118 | gunzip GeoLiteCity.dat.gz
119 | mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat
120 | rm GeoLiteCity.dat.gz
121 | apt-get -y install php5-geoip
122 | elif [[ $PLUGIN_NEEDS -eq "unrar" ]]; then
123 | apt-get -y install unrar-free
124 | elif [[ $PLUGIN_NEEDS -eq "mediainfo" ]]; then
125 | curl -O http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz
126 | tar -zxvf _task-3.6.tar.gz -C $TEMP_PLUGIN_DIR
127 | rm _task-3.6.tar.gz
128 | apt-get -y install libzen0 libmediainfo0 mediainfo
129 | elif [[ $PLUGIN_NEEDS -eq "ffmpeg" ]]; then
130 | curl -O http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz
131 | tar -zxvf _task-3.6.tar.gz -C $TEMP_PLUGIN_DIR
132 | rm _task-3.6.tar.gz
133 | apt-get -y install ffmpeg
134 | elif [[ $PLUGIN_NEEDS -eq "all" ]]; then
135 | curl -O http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
136 | mkdir -v /usr/share/GeoIP
137 | gunzip GeoLiteCity.dat.gz
138 | mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat
139 | rm GeoLiteCity.dat.gz
140 | mv /tmp/plugins/* $TEMP_PLUGIN_DIR
141 | apt-get -y install php5-geoip ffmpeg curl libzen0 libmediainfo0 mediainfo unrar-free
142 | else
143 | if [[ ! -z $PLUGIN_NEEDS ]]; then
144 | PLUGIN_NEEDS=""
145 | fi
146 | fi
147 |
148 | echo
149 | curl -O "$url"
150 | $unpack
151 |
152 | if [[ $? -eq "0" ]]; then
153 | rm "$file"
154 | echo
155 | PLUGIN_ARRAY+=("${name}")
156 | error=" Plugin downloaded, unpacked and moved to temp folder${NORMAL}"
157 | count=0
158 | return 0
159 | else
160 | echo
161 | error="${RED} Something went wrong...Error!${NORMAL}"
162 | return 1
163 | fi
164 | else
165 | count=0
166 | fi
167 | echo
168 | }
169 |
170 | function INSTALL_PLUGIN {
171 | # Move plugins to rutorrent folder
172 | if [[ -d $TEMP_PLUGIN_DIR ]]; then mv -fv "$TEMP_PLUGIN_DIR"/* "$PLUGINS_DIR"; fi
173 |
174 | # Changing permissions for moved folder and plugins
175 | chown -R www-data:www-data "$PLUGINS_DIR"
176 | chmod -R 775 "$PLUGINS_DIR"
177 | }
178 |
179 | function SELECT_PLUGINS {
180 | if [[ ! -d $TEMP_PLUGIN_DIR ]]; then mkdir $TEMP_PLUGIN_DIR; fi
181 | count=0
182 |
183 | while true; do
184 | while [ $count -eq 0 ]; do
185 | clear
186 | count=1
187 | echo "${GREEN}-----------------------------------| ${BOLD}Page 1${NORMAL}${GREEN} |-----------------------------------${NORMAL}"
188 | echo " [1] - Erase Data ${GREEN}[recommended]${NORMAL}"
189 | echo " [2] - Create v3.6"
190 | echo " [3] - Traffic v3.6"
191 | echo " [4] - RSS v3.6"
192 | echo " [5] - Edit v3.6"
193 | echo " [6] - Retrackers v3.6"
194 | echo " [7] - Throttle v3.6"
195 | echo " [8] - Cookies v3.6"
196 | echo " [9] - Scheduler v3.6"
197 | echo " [10] - Auto Tools v3.6"
198 | echo " [11] - Data Dir v3.6 ${GREEN}[recommended]${NORMAL}"
199 | echo " [12] - Track Lables v3.6 ${GREEN}[recommended]${NORMAL}"
200 | echo " [13] - Geo IP v3.6"
201 | echo " [14] - Ratio v3.6 ${GREEN}[recommended]${NORMAL}"
202 | echo " [15] - Show Peers like wTorrent v3.6"
203 | done
204 | echo
205 | echo " [p1-3] - Change plugin page"
206 | echo " [q] - Exit plugin installation"
207 | echo "${GREEN}--------------------------------------------------------------------------------${NORMAL}"
208 | echo -e $error
209 | unset error
210 | echo
211 | echo -n "Choose plugin to see info: "
212 |
213 | read -e plugin
214 |
215 | case $plugin in
216 | p1)
217 | count=0
218 | ;;
219 | p2)
220 | clear
221 | count=1
222 | echo "${GREEN}-----------------------------------| ${BOLD}Page 2${NORMAL}${GREEN} |-----------------------------------${NORMAL}"
223 | echo " [16] - Seeding Time v3.6 ${GREEN}[recommended]${NORMAL}"
224 | echo " [17] - HTTPRPC v3.6"
225 | echo " [18] - Diskspace v3.6"
226 | echo " [19] - Unpack v3.6"
227 | echo " [20] - Get Dir v3.6"
228 | echo " [21] - Source v3.6"
229 | echo " [22] - Chunks v3.6"
230 | echo " [23] - Data v3.6"
231 | echo " [24] - CPU Load v3.6"
232 | echo " [25] - Extsearch v3.6"
233 | echo " [26] - Theme v3.6"
234 | echo " [27] - Login Mgr v3.6"
235 | echo " [28] - ruTorrent Label Management Suite v1.1 ${GREEN}[recommended]${NORMAL}"
236 | echo " [29] - NFO ${GREEN}[recommended]${NORMAL}"
237 | echo " [30] - Chat v2.0"
238 | echo " [31] - Logoff v1.3"
239 | ;;
240 | p3)
241 | clear
242 | count=1
243 | echo "${GREEN}-----------------------------------| ${BOLD}Page 3${NORMAL}${GREEN} |-----------------------------------${NORMAL}"
244 | echo " [32] - Pause v1.2"
245 | echo " [33] - Instant Search v1.0"
246 | echo " [34] - File Drop v3.6 (FF > 3.6 & Chrome only)"
247 | echo " [35] - Check Port v3.6"
248 | echo " [36] - History v3.6"
249 | echo " [37] - iPad v3.6"
250 | echo " [38] - Extended Ratio v3.6"
251 | echo " [39] - Feeds v3.6"
252 | echo " [40] - Media Information v3.6"
253 | echo " [41] - RSS URL Rewrite v3.6"
254 | echo " [42] - Screenshot v3.6"
255 | echo " [43] - RPC v3.6"
256 | echo " [44] - Rutracker Check v3.6"
257 | echo " [45] - Noty v3.6"
258 | echo " [46] - Task v3.6"
259 | echo " [47] - All Plugins v3.6. More info at http://git.io/vtDfb"
260 | ;;
261 | 1)
262 | name="Erase Data Plugin v3.6"
263 | url="http://dl.bintray.com/novik65/generic/plugins/erasedata-3.6.tar.gz"
264 | file="erasedata-3.6.tar.gz"
265 | desc="This plugin adds a context menu item to the right click menu which allows you\n to delete data."
266 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginErasedata"
267 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
268 | DOWNLOAD_PLUGIN
269 | ;;
270 | 2)
271 | name="Create Plugin v3.6"
272 | url="http://dl.bintray.com/novik65/generic/plugins/create-3.6.tar.gz"
273 | file="create-3.6.tar.gz"
274 | desc="This plugin allows for the creation of new .torrent files from a file or\n directory of files."
275 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginCreate"
276 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
277 | DOWNLOAD_PLUGIN
278 | ;;
279 | 3)
280 | name="Trafic Plugin v3.6"
281 | url="http://dl.bintray.com/novik65/generic/plugins/trafic-3.6.tar.gz"
282 | file="trafic-3.6.tar.gz"
283 | desc="The Trafic plugin is a subsystem for monitoring rtorrent traffic totals.\n It tracks both system wide and per-tracker totals.\n The plugin can display totals in three formats: hourly, daily, and mouthly.\n Statistics can be cleaned out at any time by clicking the 'Clear' button."
284 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginTrafic"
285 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
286 | DOWNLOAD_PLUGIN
287 | ;;
288 | 4)
289 | name="RSS Plugin v3.6"
290 | url="http://dl.bintray.com/novik65/generic/plugins/rss-3.6.tar.gz"
291 | file="rss-3.6.tar.gz"
292 | desc="This plugin is designed to fetch torrents via RSS download links.\n It has 2 main parts, one for entering feeds and one for setting up filters.\n For more information about rss, see http://en.wikipedia.org/wiki/RSS."
293 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginRSS"
294 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
295 | DOWNLOAD_PLUGIN
296 | ;;
297 | 5)
298 | name="Edit Plugin v3.6"
299 | url="http://dl.bintray.com/novik65/generic/plugins/edit-3.6.tar.gz"
300 | file="edit-3.6.tar.gz"
301 | desc="This plugin allows you to edit the list of trackers, and change the comment\n of the current torrent.\n After installation, a new context menu item will become available when you\n right click a torrent from the list: 'Edit Torrent...'"
302 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginEdit"
303 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
304 | DOWNLOAD_PLUGIN
305 | ;;
306 | 6)
307 | name="Retrackers Plugin v3.6"
308 | url="http://dl.bintray.com/novik65/generic/plugins/retrackers-3.6.tar.gz"
309 | file="retrackers-3.6.tar.gz"
310 | desc="This plugin appends specified trackers to the trackers list of all newly\n added torrents.\n By the way, torrents may be added by any way - not just via ruTorrent."
311 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginRetrackers"
312 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
313 | DOWNLOAD_PLUGIN
314 | ;;
315 | 7)
316 | name="Throttle Plugin v3.6"
317 | url="http://dl.bintray.com/novik65/generic/plugins/throttle-3.6.tar.gz"
318 | file="throttle-3.6.tar.gz"
319 | desc="Throttle plugin gives a convenient control over the possibility to set limits\n of speed for groups of torrents.\n After this plugin is installed a new option 'Channels' will appear in\n the Settings dialog.\n Speed limits for some channels can be set here. (by default - 10)\n Assignment of channel number for a particular torrent or for a group of\n torrents can be made in it's contextual menu.\n Note - The '0' value conventionally for rTorrent, means 'no limits'.\n So the lowest possible limit is 1 Kbps."
320 | homepage="https://github.com/Novik/rutorrent/wiki/PluginThrottle"
321 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
322 | DOWNLOAD_PLUGIN
323 | ;;
324 | 8)
325 | name="Cookies Plugin v3.6"
326 | url="http://dl.bintray.com/novik65/generic/plugins/cookies-3.6.tar.gz"
327 | file="cookies-3.6.tar.gz"
328 | desc="Some trackers use cookies for the client authentication.\n It is transparent to user who uses a browser to work with such servers,\n cause browser store these cookies and returns them to the server automatically.\n The user just needs to enter login/password from time to time."
329 | homepage="https://github.com/Novik/rutorrent/wiki/PluginCookies"
330 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
331 | DOWNLOAD_PLUGIN
332 | ;;
333 | 9)
334 | name="Scheduler v3.6"
335 | url="http://dl.bintray.com/novik65/generic/plugins/scheduler-3.6.tar.gz"
336 | file="scheduler-3.6.tar.gz"
337 | desc="You can enable a scheduler to define a max of six rTorrent behavior types\n at each particular hour of 168 week hours."
338 | homepage="https://github.com/Novik/rutorrent/wiki/PluginScheduler"
339 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
340 | DOWNLOAD_PLUGIN
341 | ;;
342 | 10)
343 | name="Auto Tools Plugin v3.6"
344 | url="http://dl.bintray.com/novik65/generic/plugins/autotools-3.6.tar.gz"
345 | file="autotools-3.6.tar.gz"
346 | desc="The plugin provides some possibilities on automation.\n Following functions are realized for now:\n Auto Label, automatic creation of labels at addition of new torrent through\n the web interface.\n Auto Move: automatic transferring of torrent data files to other directory\n on downloading completion.\n Auto Watch: automatic adding torrents via nested set of\n watch directories."
347 | homepage="https://github.com/Novik/rutorrent/wiki/PluginAutotools"
348 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
349 | DOWNLOAD_PLUGIN
350 | ;;
351 | 11)
352 | name="Data Dir Plugin v3.6"
353 | url="http://dl.bintray.com/novik65/generic/plugins/datadir-3.6.tar.gz"
354 | file="datadir-3.6.tar.gz"
355 | desc="The plugin is intended for replacement of the current torrent data directory\n on another.\n Such operation is required, for example if the torrent data directory\n has been moved manually.\n It is also possible to move downloaded torrent's data.\n After plugin installation there will be a new item 'Save to...' in the context\n menu of the downloading area which shows a dialogue 'Torrent data directory'.\n In this dialogue you can specify a new path to the torrent data."
356 | homepage="https://github.com/Novik/rutorrent/wiki/PluginDataDir"
357 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
358 | DOWNLOAD_PLUGIN
359 | ;;
360 | 12)
361 | name="Track Lables Plugin v3.6"
362 | url="http://dl.bintray.com/novik65/generic/plugins/tracklabels-3.6.tar.gz"
363 | file="tracklabels-3.6.tar.gz"
364 | desc="The plug-in adds a set of labels on the category panel.\n These labels are created automatically on the basis of torrent's trackers."
365 | homepage="https://github.com/Novik/rutorrent/wiki/PluginTracklabels"
366 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
367 | DOWNLOAD_PLUGIN
368 | ;;
369 | 13)
370 | name="Geo IP Plugin v3.6"
371 | url="http://dl.bintray.com/novik65/generic/plugins/geoip-3.6.tar.gz"
372 | file="geoip-3.6.tar.gz"
373 | desc="Packages 'GeoLiteCity' and 'php5-geoip' is needed. \n For details about installation and configuration of GeoIP PHP extension,\n please visit: http://us3.php.net/manual/en/book.geoip.php"
374 | homepage="https://github.com/Novik/rutorrent/wiki/PluginGeoIP"
375 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
376 | PLUGIN_NEEDS="geoip"
377 | DOWNLOAD_PLUGIN
378 | ;;
379 | 14)
380 | name="Ratio Plugin v3.6"
381 | url="http://dl.bintray.com/novik65/generic/plugins/ratio-3.6.tar.gz"
382 | file="ratio-3.6.tar.gz"
383 | desc="This plugin allows to manage ratio limits for groups of torrents, conveniently.\n When the plugin is installed a new section 'Ratio groups' appears\n in the Settings dialog.\n Here user can define limits of ratio for some groups. (by default - 8)\n Assignation of group to one or several torrents is performed by selecting\n an appropriate option in the context menu of torrents."
384 | homepage="https://github.com/Novik/rutorrent/wiki/PluginRatio"
385 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
386 | DOWNLOAD_PLUGIN
387 | ;;
388 | 15)
389 | name="Show Peers like wTorrent Plugin v3.6"
390 | url="http://dl.bintray.com/novik65/generic/plugins/show_peers_like_wtorrent-3.6.tar.gz"
391 | file="show_peers_like_wtorrent-3.6.tar.gz"
392 | desc="The plugin changes the format of values in columns 'Seeds' and 'Peers'\n in the torrents list."
393 | homepage="https://github.com/Novik/rutorrent/wiki/PluginShow_peers_like_wtorrent"
394 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
395 | DOWNLOAD_PLUGIN
396 | ;;
397 | 16)
398 | name="Seeding Time Plugin v3.6"
399 | url="http://dl.bintray.com/novik65/generic/plugins/seedingtime-3.6.tar.gz"
400 | file="seedingtime-3.6.tar.gz"
401 | desc="The plugin adds the columns 'Finished' and 'Added' to the torrents list.\n This columns contains the time when download of the torrent was completed and\n accordingly, the time when torrent was added."
402 | homepage="https://github.com/Novik/rutorrent/wiki/PluginSeedingtime"
403 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
404 | DOWNLOAD_PLUGIN
405 | ;;
406 | 17)
407 | name="HTTPRPC Plugin v3.6"
408 | url="http://dl.bintray.com/novik65/generic/plugins/httprpc-3.6.tar.gz"
409 | file="httprpc-3.6.tar.gz"
410 | desc="This plugin is designed as a easy to use replacement for the mod_scgi\n (or similar) webserver module, with emphasis on extremely low bandwidth use.\n If you install this plugin, you do not need to use mod_scgi or the RPC Plugin.\n Note: This plugin requires a faster server, and is not recommended for embedded\n systems, like a router or slow computer."
411 | homepage="https://github.com/Novik/rutorrent/wiki/PluginHTTPRPC"
412 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
413 | DOWNLOAD_PLUGIN
414 | ;;
415 | 18)
416 | name="Diskspace Plugin v3.6"
417 | url="http://dl.bintray.com/novik65/generic/plugins/diskspace-3.6.tar.gz"
418 | file="diskspace-3.6.tar.gz"
419 | desc="This plugin adds an easy to read disk meter to the bottom menu bar."
420 | homepage="https://github.com/Novik/rutorrent/wiki/PluginDiskspace"
421 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
422 | DOWNLOAD_PLUGIN
423 | ;;
424 | 19)
425 | name="Unpack Plugin v3.6"
426 | url="http://dl.bintray.com/novik65/generic/plugins/unpack-3.6.tar.gz"
427 | file="unpack-3.6.tar.gz"
428 | desc="Packages 'unrar-free' is needed.\n This plugin is designed to manually or automatically unrar/unzip torrent data."
429 | homepage="https://github.com/Novik/rutorrent/wiki/PluginUnpack"
430 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
431 | PLUGIN_NEEDS="unrar"
432 | DOWNLOAD_PLUGIN
433 | ;;
434 | 20)
435 | name="Get Dir Plugin v3.6"
436 | url="http://dl.bintray.com/novik65/generic/plugins/_getdir-3.6.tar.gz"
437 | file="_getdir-3.6.tar.gz"
438 | desc="The service plugin _getdir gives to other plugins the possibility of\n comfortable navigation on a host file system.\n Shows only directories to which rtorrent can write and which php can show."
439 | homepage="https://github.com/Novik/rutorrent/wiki/Plugin_getdir"
440 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
441 | DOWNLOAD_PLUGIN
442 | ;;
443 | 21)
444 | name="Source Plugin v3.6"
445 | url="http://dl.bintray.com/novik65/generic/plugins/source-3.6.tar.gz"
446 | file="source-3.6.tar.gz"
447 | desc="This plugin adds a 'Get .torrent' item to the right click context menu.\n Allowing you to download the original .torrent file from the server,\n to your local machine."
448 | homepage="https://github.com/Novik/rutorrent/wiki/PluginSource"
449 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
450 | DOWNLOAD_PLUGIN
451 | ;;
452 | 22)
453 | name="Chunks Plugin v3.6"
454 | url="http://dl.bintray.com/novik65/generic/plugins/chunks-3.6.tar.gz"
455 | file="chunks-3.6.tar.gz"
456 | desc="This plugin adds a new tab to the tab bar called 'chunks'.\n The added tab allows you to monitor the download status of each individual\n torrent 'piece'"
457 | homepage="https://github.com/Novik/rutorrent/wiki/PluginChunks"
458 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
459 | DOWNLOAD_PLUGIN
460 | ;;
461 | 23)
462 | name="Data Plugin v3.6"
463 | url="http://dl.bintray.com/novik65/generic/plugins/data-3.6.tar.gz"
464 | file="data-3.6.tar.gz"
465 | desc="This plugin adds the 'Get Data' item to the right click menu.\n This allows you to download the file in question via http to your\n local machine.\n On 32 bit systems, you can not download files larger than 2 GB, this is due\n to a php limitation"
466 | homepage="https://github.com/Novik/rutorrent/wiki/PluginData"
467 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
468 | DOWNLOAD_PLUGIN
469 | ;;
470 | 24)
471 | name="CPU Load Plugin v3.6"
472 | url="http://dl.bintray.com/novik65/generic/plugins/cpuload-3.6.tar.gz"
473 | file="cpuload-3.6.tar.gz"
474 | desc="This plugin adds a CPU Load usage bar to the bottom toolbar."
475 | homepage="https://github.com/Novik/rutorrent/wiki/PluginCpuload"
476 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
477 | DOWNLOAD_PLUGIN
478 | ;;
479 | 25)
480 | name="Extsearch Plugin v3.6"
481 | url="http://dl.bintray.com/novik65/generic/plugins/extsearch-3.6.tar.gz"
482 | file="extsearch-3.6.tar.gz"
483 | desc="This plugin adds the ability to search many popular torrent sites for content\n without leaving the rutorrent url."
484 | homepage="https://github.com/Novik/rutorrent/wiki/PluginExtsearch"
485 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
486 | DOWNLOAD_PLUGIN
487 | ;;
488 | 26)
489 | name="Theme Plugin v3.6"
490 | url="http://dl.bintray.com/novik65/generic/plugins/theme-3.6.tar.gz"
491 | file="theme-3.6.tar.gz"
492 | desc="This plugin allows you to change the gui theme to one of several provided\n themes, or any your create, provided they are placed in the proper\n directory within the plugin."
493 | homepage="https://github.com/Novik/rutorrent/wiki/PluginTheme"
494 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
495 | DOWNLOAD_PLUGIN
496 | ;;
497 | 27)
498 | name="Login Mgr v3.6"
499 | url="http://dl.bintray.com/novik65/generic/plugins/loginmgr-3.6.tar.gz"
500 | file="loginmgr-3.6.tar.gz"
501 | desc="This plugin is used to login to 3rd party torrent sites.\n It's designed to be used in cased where cookies fail.\n It is a support plugin used for RSS and ExtSearch.\n Note: This plugin saves passwords in plain text."
502 | homepage="https://github.com/Novik/rutorrent/wiki/PluginLoginMgr"
503 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
504 | DOWNLOAD_PLUGIN
505 | ;;
506 | 28)
507 | name="Loot At v3.6"
508 | url="http://dl.bintray.com/novik65/generic/plugins/lookat-3.6.tar.gz"
509 | file="lookat-3.6.tar.gz"
510 | desc="This plugin is intended for looking torrent's name in the external sources."
511 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginLookAt"
512 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
513 | DOWNLOAD_PLUGIN
514 | ;;
515 | 29)
516 | name="NFO Plugin"
517 | url="http://srious.biz/nfo.tar.gz"
518 | file="nfo.tar.gz"
519 | desc="This plugin shows the contents of the .nfo file for a given torrent."
520 | homepage="https://github.com/Novik/rutorrent/wiki/PluginNFO"
521 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
522 | DOWNLOAD_PLUGIN
523 | ;;
524 | 30)
525 | name="Chat Plugin v2.0"
526 | url="http://rutorrent-chat.googlecode.com/files/chat-2.0.tar.gz"
527 | file="chat-2.0.tar.gz"
528 | desc="This plugin adds a chatbox to multi-user rutorrent installs.\n Note: Currently this is a single server chat program only\n (if you have multiple servers, this will NOT allow\n your users to chat across them)."
529 | homepage="https://github.com/Novik/rutorrent/wiki/PluginChat"
530 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
531 | DOWNLOAD_PLUGIN
532 | ;;
533 | 31)
534 | name="Logoff Plugin v1.3"
535 | url="http://rutorrent-logoff.googlecode.com/files/logoff-1.3.tar.gz"
536 | file="logoff-1.3.tar.gz"
537 | desc="This plugin allows you to switch users or logoff on systems which\n use authentication."
538 | homepage="https://github.com/Novik/rutorrent-logoff/"
539 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
540 | DOWNLOAD_PLUGIN
541 | ;;
542 | 32)
543 | name="Pause Plugin v1.2"
544 | url="http://rutorrent-pausewebui.googlecode.com/files/pausewebui.1.2.zip"
545 | file="pausewebui.1.2.zip"
546 | desc="Plugin to pause the refresh timer, and add a button to manually refresh\n the page."
547 | homepage="https://github.com/Novik/rutorrent/wiki/PluginPause"
548 | unpack="unzip $file -d $TEMP_PLUGIN_DIR"
549 | DOWNLOAD_PLUGIN
550 | ;;
551 | 33)
552 | name="Instant Search Plugin v1.0"
553 | url="http://rutorrent-instantsearch.googlecode.com/files/instantsearch.1.0.zip"
554 | file="instantsearch.1.0.zip"
555 | desc="This plugin lets you search for local torrents running in rutorrent,\n updating results as you type them."
556 | homepage="https://github.com/Novik/rutorrent/wiki/PluginInstantSearch"
557 | unpack="unzip $file -d $TEMP_PLUGIN_DIR"
558 | DOWNLOAD_PLUGIN
559 | ;;
560 | 34)
561 | name="File Drop v3.6"
562 | url="http://dl.bintray.com/novik65/generic/plugins/filedrop-3.6.tar.gz"
563 | file="filedrop-3.6.tar.gz"
564 | desc="This plugin allows users to drag multiple torrents from desktop to the\n browser (FF > 3.6 & Chrome only)."
565 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginFileDrop"
566 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
567 | DOWNLOAD_PLUGIN
568 | ;;
569 | 35)
570 | name="Check Port v3.6"
571 | url="http://dl.bintray.com/novik65/generic/plugins/check_port-3.6.tar.gz"
572 | file="check_port-3.6.tar.gz"
573 | desc="This plugin adds an incoming port status indicator to the bottom bar."
574 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginCheckPort"
575 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
576 | DOWNLOAD_PLUGIN
577 | ;;
578 | 36)
579 | name="History v3.6"
580 | url="http://dl.bintray.com/novik65/generic/plugins/history-3.6.tar.gz"
581 | file="history-3.6.tar.gz"
582 | desc="This plugin is designed to log a history of torrents."
583 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginHistory"
584 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
585 | DOWNLOAD_PLUGIN
586 | ;;
587 | 37)
588 | name="iPad Plugin v3.6"
589 | url="http://dl.bintray.com/novik65/generic/plugins/ipad-3.6.tar.gz"
590 | file="ipad-3.6.tar.gz"
591 | desc="This plugin allows ruTorrent to work properly on iPad-like devices."
592 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginIPad"
593 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
594 | DOWNLOAD_PLUGIN
595 | ;;
596 | 38)
597 | name="Extended Ratio v3.6"
598 | url="http://dl.bintray.com/novik65/generic/plugins/extratio-3.6.tar.gz"
599 | file="extratio-3.6.tar.gz"
600 | desc="This plugin extends the functionality of the ratio plugin."
601 | homepage="https://github.com/Novik/ruTorrent/wiki/PluginExtRatio"
602 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
603 | DOWNLOAD_PLUGIN
604 | ;;
605 | 39)
606 | name="Feeds v3.6"
607 | url="http://dl.bintray.com/novik65/generic/plugins/feeds-3.6.tar.gz"
608 | file="feeds-3.6.tar.gz"
609 | desc="This plugin is intended for making RSS feeds with information of torrents."
610 | homepage="https://github.com/Novik/rutorrent/wiki/PluginFeeds"
611 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
612 | DOWNLOAD_PLUGIN
613 | ;;
614 | 40)
615 | name="Media Information v3.6"
616 | url="http://dl.bintray.com/novik65/generic/plugins/mediainfo-3.6.tar.gz"
617 | file="mediainfo-3.6.tar.gz"
618 | desc="This plugin is intended to display media file information."
619 | homepage="https://github.com/Novik/rutorrent/wiki/PluginMediainfo"
620 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
621 | PLUGIN_NEEDS="mediainfo"
622 | DOWNLOAD_PLUGIN
623 | ;;
624 | 41)
625 | name="RSS URL Rewrite v3.6"
626 | url="http://dl.bintray.com/novik65/generic/plugins/rssurlrewrite-3.6.tar.gz"
627 | file="rssurlrewrite-3.6.tar.gz"
628 | desc="This plugin extends the functionality of the RSS plugin."
629 | homepage="https://github.com/Novik/rutorrent/wiki/PluginRSSURLRewrite"
630 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
631 | DOWNLOAD_PLUGIN
632 | ;;
633 | 42)
634 | name="Screenshot v3.6"
635 | url="http://dl.bintray.com/novik65/generic/plugins/screenshots-3.6.tar.gz"
636 | file="screenshots-3.6.tar.gz"
637 | desc="Packages 'ffmpeg' is needed.\n This plugin is intended to show screenshots from video files."
638 | homepage="https://github.com/Novik/rutorrent/wiki/PluginScreenshots"
639 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
640 | PLUGIN_NEEDS="ffmpeg"
641 | DOWNLOAD_PLUGIN
642 | ;;
643 | 43)
644 | name="RPC v3.6"
645 | url="http://dl.bintray.com/novik65/generic/plugins/rpc-3.6.tar.gz"
646 | file="rpc-3.6.tar.gz"
647 | desc="This plugin is a replacement for the mod_scgi webserver module."
648 | homepage="https://github.com/Novik/rutorrent/wiki/PluginRPC"
649 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
650 | DOWNLOAD_PLUGIN
651 | ;;
652 | 44)
653 | name="Rutracker Check v3.6"
654 | url="http://dl.bintray.com/novik65/generic/plugins/rutracker_check-3.6.tar.gz"
655 | file="rutracker_check-3.6.tar.gz"
656 | desc="This plugin checks the rutracker.org tracker for updated/deleted torrents."
657 | homepage="https://github.com/Novik/rutorrent/wiki/PluginRutracker_check"
658 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
659 | DOWNLOAD_PLUGIN
660 | ;;
661 | 45)
662 | name="Noty v3.6"
663 | url="http://dl.bintray.com/novik65/generic/plugins/_noty-3.6.tar.gz"
664 | file="_noty-3.6.tar.gz"
665 | desc="This plugin provides the notification functionality for other plugins."
666 | homepage="https://github.com/Novik/rutorrent/wiki/Plugin_noty"
667 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
668 | DOWNLOAD_PLUGIN
669 | ;;
670 | 46)
671 | name="Task v3.6"
672 | url="http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz"
673 | file="_task-3.6.tar.gz"
674 | desc="This plugin provides the possibility of running various scripts\n on the host system."
675 | homepage="https://github.com/Novik/rutorrent/wiki/Plugin_task"
676 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
677 | DOWNLOAD_PLUGIN
678 | ;;
679 | 47)
680 | name="All Plugins v3.6"
681 | url="http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz"
682 | file="plugins-3.6.tar.gz"
683 | desc="This installs about 40+ plugins except plugins numbers 29 to 33\n (NFO, Chat, Logoff, Pause and Instant Search).\n All dependencies will be installed. \n ${RED}REMEBER TO REMOVE HTTPRPC AND RPC PLUGINS FOR LOGIN TO WORK AT FIRST RUN!${NORMAL}"
684 | homepage="https://github.com/Novik/rutorrent/wiki/Plugins"
685 | unpack="tar -zxvf $file -C /tmp/"
686 | PLUGIN_NEEDS="all"
687 | DOWNLOAD_PLUGIN
688 | ;;
689 | q|Q)
690 | break
691 | ;;
692 | *)
693 | count=0
694 | echo
695 | error="${RED}Not a usable number!${NORMAL}"
696 | echo
697 | ;;
698 | esac
699 | done
700 | }
701 |
702 | function INSTALL_COMPLETE {
703 | if [[ -d $TEMP_PLUGIN_DIR ]]; then rm -rf "$TEMP_PLUGIN_DIR"; fi
704 |
705 | HEADER
706 | echo "${GREEN} Installation is complete${NORMAL}"
707 | echo
708 | echo " ${NORMAL}${BOLD} Plugins installed:${NORMAL}${GREEN}"
709 | LIST_PLUGINS
710 | echo
711 | echo "${PURPLE} Is required to refresh the rutorrent page on your browser \ntoo, to see the installed plugins.${NORMAL}"
712 | echo
713 | }
714 |
715 | CHECK_ROOT
716 | LICENSE
717 | if [[ -d $TEMP_PLUGIN_DIR ]]; then rm -rf "$TEMP_PLUGIN_DIR"; fi
718 | HEADER
719 | CHECK_PLUGINS_FOLDER
720 |
721 | # NOTICE: Change lib, rtorrent, rutorrent versions when update are available
722 | while true; do
723 | HEADER
724 | echo " ${NORMAL}ruTorrent plugins: ${BOLD}${GREEN}" && LIST_PLUGINS
725 | echo
726 | echo " [1] - Download plugins"
727 | echo " [2] - Install plugins"
728 | echo
729 | echo " [q] - Quit"
730 | echo
731 | echo -n "${BOLD}${GREEN}>>${NORMAL} "
732 | read case
733 |
734 | case "$case" in
735 | 1)
736 | SELECT_PLUGINS
737 | ;;
738 | 2)
739 | INSTALL_PLUGIN
740 | INSTALL_COMPLETE
741 | break
742 | ;;
743 | q|Q)
744 | break
745 | ;;
746 | esac
747 | done
748 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Rtorrent + Rutorrent Auto Install Script by Patrick Kerwood
3 |
4 | http://LinuxBloggen.dk/
5 |
6 | **This is script is no longer maintained and there will not be a release for Debian 9, because of the fabulous container technology that is available in this modern time. If you haven't alrady become familiar with this technology, you might as well begin now. Developers world wide are releasing more and more products as containers, as is my Rutorrent script.**
7 |
8 | **Containers just make is easier for everyone.**
9 |
10 | [Install Docker today](https://docs.docker.com/install/linux/docker-ce/debian/#install-docker-ce)
11 |
12 | ## Docker
13 | Check out the Rtorrent + Rutorrent Docker container. Get started with rtorrent in just seconds.
14 | [https://github.com/Kerwood/Rtorrent-LXC](https://github.com/Kerwood/Rtorrent-LXC)
15 |
16 | ## Manual install
17 | These are Bash scripts to ease the installation of rtorrent, rutorrent + plugins.
18 |
19 | **Debian Wheezy**
20 | The Wheezy script is of course developed for Wheezy but should run just fine on Ubuntu 13.04 and 14.04.
21 |
22 | **Debian Jessie**
23 | The Jessie script was adapted for the new default init system. Should run fine on systems that feature systemd (including Ubuntu 15.04+).
24 |
25 | Please use `systemctl start rtorrent` and `systemctl stop rtorrent` instead of the service command.
26 |
27 | **Raspbian Wheezy**
28 | Credit for the Raspbian script goes to [miracle091](https://github.com/miracle091), good work mate.
29 |
30 | **What the scripts do**
31 | In the installation process you have to choose a system user to run rtorrent.
32 | Also you will get the opportunity of installing a total of 46 plugins. See list further down.
33 | The script add a init script that makes rtorrent start, at a possible reboot, in the
34 | given username's screen/tmux session. Use "service rtorrent-init start" and
35 | "service rtorrent-init stop" to start and stop rtorrent respectively.
36 |
37 |
38 | Installation
39 | ------------
40 |
41 | Installation video - https://www.youtube.com/watch?v=3iwsoKcUgn0
42 |
43 | Actual version for the scripts:
44 | - Wheezy **4.0.0**
45 | - Jessie **4.0.0**
46 | - ~~Raspbian 3.0.2~~ - Not maintained, you can find it in the RaspberryPi branch.
47 | - ~~Raspbian Nginx 1.1.0~~ Not maintained, you can find it in the RaspberryPi branch.
48 |
49 | Download the script. Remember to change the X.X.X to the actual version.
50 |
51 | wget https://raw.githubusercontent.com/Kerwood/rtorrent.auto.install/master/Rtorrent-Auto-Install-X.X.X-Debian-Wheezy
52 |
53 | Make it executable.
54 |
55 | chmod +x Rtorrent-Auto-Install-X.X.X-Debian-Wheezy
56 |
57 | Run the script.
58 |
59 | sudo ./Rtorrent-Auto-Install-X.X.X-Debian-Wheezy
60 |
61 |
62 | Installs
63 | --------
64 |
65 | This scripts installs the following packages:
66 |
67 | apache2
68 | apache2-utils
69 | automake libtool
70 | build-essential
71 | curl
72 | git
73 | libapache2-mod-php5
74 | libapache2-mod-scgi
75 | libcppunit-dev
76 | libcurl4-openssl-dev
77 | libncurses5-dev
78 | libsigc++-2.0-dev
79 | libssl-dev
80 | openssl
81 | php5
82 | php5-cli
83 | php5-curl
84 | screen (tmux for Jessie/Ubuntu 15.04+)
85 | unrar-free
86 | unzip
87 |
88 | The script compiles and installs lastest super-stable xmlrpc-c from sourceforge.
89 | Installs rtorrent-0.9.6 and libtorrent-0.13.6 from github.
90 | Install rutorrent-3.6 from novik65 official site.
91 |
92 | **Plugins List**
93 |
94 | - 1 - Erase Data Plugin
95 | - 2 - Create Plugin
96 | - 3 - Trafic Plugin
97 | - 4 - RSS Plugin
98 | - 5 - Edit Plugin
99 | - 6 - Retrackers Plugin
100 | - 7 - Throttle Plugin
101 | - 8 - Cookies Plugin
102 | - 9 - Scheduler Plugin
103 | - 10 - Auto Tools Plugin
104 | - 11 - Data Dir Plugin
105 | - 12 - Track Lables Plugin
106 | - 13 - Geo IP Plugin
107 | - 14 - Ratio Plugin
108 | - 15 - Show Peers like wTorrent Plugin
109 | - 16 - Seeding Time Plugin
110 | - 17 - HTTPRPC Plugin
111 | - 18 - Diskspace Plugin
112 | - 19 - Unpack Plugin
113 | - 20 - Get Dir Plugin
114 | - 21 - Source Plugin
115 | - 22 - Chunks Plugin
116 | - 23 - Data Plugin
117 | - 24 - CPU Load Plugin
118 | - 25 - Extsearch Plugin
119 | - 26 - Theme Plugin
120 | - 27 - Login Mgr Plugin
121 | - 28 - ruTorrent Label Management Suite
122 | - 29 - NFO Plugin
123 | - 30 - Chat Plugin
124 | - 31 - Logoff Plugin
125 | - 32 - Pause Plugin
126 | - 33 - Instant Search Plugin
127 | - 34 - File Drop (FF > 3.6 & Chrome only).
128 | - 35 - Check Port
129 | - 36 - History
130 | - 37 - iPad
131 | - 38 - Extended Ratio
132 | - 39 - Feeds
133 | - 40 - Media Information
134 | - 41 - RSS URL Rewrite
135 | - 42 - Screenshot
136 | - 43 - RPC
137 | - 44 - Rutracker Check
138 | - 45 - Noty
139 | - 46 - Task
140 | - 47 - All Plugins v3.6, More info at https://bintray.com/novik65/generic/ruTorrent
141 |
142 |
143 | Plugin Installation only
144 | ------------------------
145 |
146 | Exist a script that install only plugin, this is for the peoples then want to install some plugins instead to reinstall xmlrpc-c, libtorrent and rtorrent.
147 |
148 | Actual version for the script:
149 | - **3.1**
150 |
151 | Download the script. Remember to change the X.X to the actual version.
152 |
153 | wget https://raw.githubusercontent.com/Kerwood/rtorrent.auto.install/master/Plugins-installer-script-X.X
154 |
155 | Make it executable.
156 |
157 | chmod +x Plugins-installer-script-X.X
158 |
159 | Run the script.
160 |
161 | sudo ./Plugins-installer-script-X.X
162 |
163 |
164 | Login box does not appear after install!!!
165 | -----------------------------------------
166 |
167 | If the login box does not appear, it's probably because you have installed the all-plugins-pack or `httprpc` and/or `rpc` plugins is installed.
168 | If one of these plugins are installed (they are both in the all-plugins-pack) you have two choise.
169 |
170 | You can remove them using below command:
171 |
172 | sudo rm -rfv /var/www/rutorrent/plugins/{httprpc,rpc}
173 |
174 |
--------------------------------------------------------------------------------
/Rtorrent-Auto-Install-4.0.0-Debian-Jessie:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # PLEASE DO NOT SET ANY OF THE VARIABLES, THEY WILL BE POPULATED IN THE MENU
3 | clear
4 |
5 | # Formatting variables
6 | BOLD=$(tput bold)
7 | NORMAL=$(tput sgr0)
8 | GREEN=$(tput setaf 2)
9 | LBLUE=$(tput setaf 6)
10 | RED=$(tput setaf 1)
11 | PURPLE=$(tput setaf 5)
12 |
13 | # The system user rtorrent is going to run as
14 | RTORRENT_USER=""
15 |
16 | # The user that is going to log into rutorrent (htaccess)
17 | WEB_USER=""
18 |
19 | # Array with webusers including their hashed paswords
20 | WEB_USER_ARRAY=()
21 |
22 | # Temporary download folder for plugins
23 | TEMP_PLUGIN_DIR="/tmp/rutorrentPlugins"
24 |
25 | # Array of downloaded plugins
26 | PLUGIN_ARRAY=()
27 |
28 | #rTorrent users home dir.
29 | HOMEDIR=""
30 |
31 | # Function to check if running user is root
32 | function CHECK_ROOT {
33 | if [ "$(id -u)" != "0" ]; then
34 | echo
35 | echo "This script must be run as root." 1>&2
36 | echo
37 | exit 1
38 | fi
39 | }
40 |
41 | # Checks for apache2-utils and unzip if it's installed. It's is needed to make the Web user
42 | function APACHE_UTILS {
43 | AP_UT_CHECK="$(dpkg-query -W -f='${Status}' apache2-utils 2>/dev/null | grep -c "ok installed")"
44 | UNZIP_CHECK="$(dpkg-query -W -f='${Status}' unzip 2>/dev/null | grep -c "ok installed")"
45 | CURL_CHECK="$(dpkg-query -W -f='${Status}' curl 2>/dev/null | grep -c "ok installed")"
46 |
47 | if [ "$AP_UT_CHECK" -ne 1 ] || [ "$UNZIP_CHECK" -ne 1 ] || [ "CURL_CHECK" -ne 1 ]; then
48 | echo " One or more of the packages apache2-utils, unzip or curl is not installed and is needed for the setup."
49 | read -p " Do you want to install it? [y/n] " -n 1
50 | if [[ $REPLY =~ [Yy]$ ]]; then
51 | clear
52 | apt-get update
53 | apt-get -y install apache2-utils unzip curl
54 | else
55 | clear
56 | exit
57 | fi
58 | fi
59 | }
60 |
61 | # License
62 | function LICENSE {
63 | clear
64 | echo "${BOLD}--------------------------------------------------------------------------------"
65 | echo " THE BEER-WARE LICENSE (Revision 42):"
66 | echo " wrote this script. As long as you retain this notice you"
67 | echo " can do whatever you want with this stuff. If we meet some day, and you think"
68 | echo " this stuff is worth it, you can buy me a beer in return."
69 | echo
70 | echo " - ${LBLUE}Patrick Kerwood @ LinuxBloggen.dk${NORMAL}"
71 | echo "${BOLD}--------------------------------------------------------------------------------${NORMAL}"
72 | echo
73 | read -p " Press any key to continue..." -n 1
74 | echo
75 | }
76 |
77 | # Function to set the system user, rtorrent is going to run as
78 | function SET_RTORRENT_USER {
79 | con=0
80 | while [ $con -eq 0 ]; do
81 | echo -n "Please type a valid system user: "
82 | read RTORRENT_USER
83 |
84 | if [[ -z $(cat /etc/passwd | grep "^$RTORRENT_USER:") ]]; then
85 | echo
86 | echo "This user does not exist!"
87 | elif [[ $(cat /etc/passwd | grep "^$RTORRENT_USER:" | cut -d: -f3) -lt 999 ]]; then
88 | echo
89 | echo "That user's UID is too low!"
90 | elif [[ $RTORRENT_USER == nobody ]]; then
91 | echo
92 | echo "You cant use 'nobody' as user!"
93 | else
94 | HOMEDIR=$(cat /etc/passwd | grep "$RTORRENT_USER": | cut -d: -f6)
95 | con=1
96 | fi
97 | done
98 | }
99 |
100 | # Function to create users for the webinterface
101 | function SET_WEB_USER {
102 | while true; do
103 | echo -n "Please type the username for the webinterface, system user not required: "
104 | read WEB_USER
105 | USER=$(htpasswd -n $WEB_USER 2>/dev/null)
106 | if [ $? = 0 ]; then
107 | WEB_USER_ARRAY+=($USER)
108 | break
109 | else
110 | echo
111 | echo "${RED}Something went wrong!"
112 | echo "You have entered an unusable username and/or different passwords.${NORMAL}"
113 | echo
114 | fi
115 | done
116 | }
117 |
118 | # Function to list WebUI users in the menu
119 | function LIST_WEB_USERS {
120 | for i in ${WEB_USER_ARRAY[@]}; do
121 | USER_CUT=$(echo $i | cut -d \: -f 1)
122 | echo -n " $USER_CUT"
123 | done
124 | }
125 |
126 | # Function to list plugins, downloaded, in the menu
127 | function LIST_PLUGINS {
128 | if [ ${#PLUGIN_ARRAY[@]} -eq 0 ]; then
129 | echo " No plugins downloaded!"
130 | else
131 | for i in "${PLUGIN_ARRAY[@]}"; do
132 | echo " - $i"
133 | done
134 | fi
135 | }
136 |
137 | # Header for the menu
138 | function HEADER {
139 | clear
140 | echo "${BOLD}--------------------------------------------------------------------------------"
141 | echo " Rtorrent + Rutorrent Auto Install"
142 | echo " ${LBLUE}Patrick Kerwood @ LinuxBloggen.dk${NORMAL}"
143 | echo "${BOLD}--------------------------------------------------------------------------------${NORMAL}"
144 | echo
145 | }
146 |
147 | # Function for the Plugins download part.
148 | function DOWNLOAD_PLUGIN {
149 | echo
150 | echo -e "$desc"
151 | echo
152 | read -p "Download ${LBLUE}$name${NORMAL} [y/n]: " -n 1
153 |
154 | if [[ $REPLY =~ [Yy]$ ]]; then
155 | echo
156 | curl -L "$url" -o $file
157 | $unpack
158 | if [ $? -eq "0" ]; then
159 | rm "$file"
160 | echo
161 | PLUGIN_ARRAY+=("${name}")
162 | error="${GREEN}${BOLD}$name${NORMAL}${GREEN} downloaded, unpacked and moved to temporary plugins folder${NORMAL}"
163 | return 0
164 | else
165 | echo
166 | error="${RED}Something went wrong.. Error!${NORMAL}"
167 | return 1
168 | fi
169 | else
170 | return 1
171 | fi
172 | echo
173 | }
174 |
175 | function SELECT_PLUGINS {
176 | if [ ! -d $TEMP_PLUGIN_DIR ]; then
177 | mkdir $TEMP_PLUGIN_DIR
178 | fi
179 |
180 | clear
181 |
182 | while true; do
183 | echo
184 | echo "${GREEN}--------------------------------------------------------------------------------${NORMAL}"
185 | echo
186 | echo "1 - Erase Data"
187 | echo "2 - Create v3.6"
188 | echo "3 - Traffic v3.6"
189 | echo "4 - RSS v3.6"
190 | echo "5 - Edit v3.6"
191 | echo "6 - Retrackers v3.6"
192 | echo "7 - Throttle v3.6"
193 | echo "8 - Cookies v3.6"
194 | echo "9 - Scheduler v3.6"
195 | echo "10 - Auto Tools v3.6"
196 | echo "11 - Data Dir v3.6"
197 | echo "12 - Track Lables v3.6"
198 | echo "13 - Geo IP v3.6"
199 | echo "14 - Ratio v3.6"
200 | echo "15 - Show Peers like wTorrent v3.6"
201 | echo "16 - Seeding Time v3.6"
202 | echo "17 - HTTPRPC v3.6"
203 | echo "18 - Diskspace v3.6"
204 | echo "19 - Unpack v3.6"
205 | echo "20 - Get Dir v3.6"
206 | echo "21 - Source v3.6"
207 | echo "22 - Chunks v3.6"
208 | echo "23 - Data v3.6"
209 | echo "24 - CPU Load v3.6"
210 | echo "25 - Extsearch v3.6"
211 | echo "26 - Theme v3.6"
212 | echo "27 - Login Mgr v3.6"
213 | echo "28 - ruTorrent Label Management Suite v1.1"
214 | echo "29 - NFO"
215 | echo "30 - Chat v2.0"
216 | echo "31 - Logoff v1.3"
217 | echo "32 - Pause v1.2"
218 | echo "33 - Instant Search v1.0"
219 | echo "34 - File Drop v3.6 (FF > 3.6 & Chrome only)"
220 | echo "35 - Check Port v3.6"
221 | echo "36 - History v3.6"
222 | echo "37 - iPad v3.6"
223 | echo "38 - Extended Ratio v3.6"
224 | echo "39 - Feeds v3.6"
225 | echo "40 - Media Information v3.6"
226 | echo "41 - RSS URL Rewrite v3.6"
227 | echo "42 - Screenshot v3.6"
228 | echo "43 - RPC v3.6"
229 | echo "44 - Rutracker Check v3.6"
230 | echo "45 - Noty v3.6"
231 | echo "46 - Task v3.6"
232 | echo "47 - All Plugins v3.6. More at https://github.com/Novik/ruTorrent/wiki/Plugins"
233 | echo
234 | echo "0 - Exit plugin installation"
235 | echo
236 | echo "${GREEN}--------------------------------------------------------------------------------${NORMAL}"
237 | echo
238 | echo -e $error1
239 | unset error1
240 | echo
241 | echo -n "Choose plugin to see info: "
242 |
243 | read -e plugin
244 |
245 | case $plugin in
246 |
247 | 1)
248 | name="Erase Data Plugin v3.6"
249 | url="http://dl.bintray.com/novik65/generic/plugins/erasedata-3.6.tar.gz"
250 | file="erasedata-3.6.tar.gz"
251 | desc=" This plugin adds a context menu item to the right click menu which allows you to delete data. \n http://code.google.com/p/rutorrent/wiki/PluginErasedata"
252 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
253 | DOWNLOAD_PLUGIN
254 | ;;
255 |
256 | 2)
257 | name="Create Plugin v3.6"
258 | url="http://dl.bintray.com/novik65/generic/plugins/create-3.6.tar.gz"
259 | file="create-3.6.tar.gz"
260 | desc="This plugin allows for the creation of new .torrent files from a file or directory full of files.\nhttp://code.google.com/p/rutorrent/wiki/PluginCreate"
261 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
262 | DOWNLOAD_PLUGIN
263 | ;;
264 |
265 | 3)
266 | name="Trafic Plugin v3.6"
267 | url="http://dl.bintray.com/novik65/generic/plugins/trafic-3.6.tar.gz"
268 | file="trafic-3.6.tar.gz"
269 | desc="The Trafic plugin is a subsystem for monitoring rtorrent traffic totals.\nIt tracks both system wide and per-tracker totals.\nThe plugin can display totals in three formats, hourly, daily, and mouthly.\nStatistics can be cleaned out at any time by clicking the 'Clear' button on the interface (see screenshot).\nhttp://code.google.com/p/rutorrent/wiki/PluginTrafic"
270 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
271 | DOWNLOAD_PLUGIN
272 | ;;
273 |
274 | 4)
275 | name="RSS Plugin v3.6"
276 | url="http://dl.bintray.com/novik65/generic/plugins/rss-3.6.tar.gz"
277 | file="rss-3.6.tar.gz"
278 | desc="This plugin is designed to fetch torrents via rss download links.\nIt has 2 main parts, one for entering feeds, the other for setting up filters.\nFor more information about rss, see http://en.wikipedia.org/wiki/RSS. \nhttp://code.google.com/p/rutorrent/wiki/PluginRSS"
279 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
280 | DOWNLOAD_PLUGIN
281 | ;;
282 |
283 | 5)
284 | name="Edit Plugin v3.6"
285 | url="http://dl.bintray.com/novik65/generic/plugins/edit-3.6.tar.gz"
286 | file="edit-3.6.tar.gz"
287 | desc="This plugin allows you to edit the list of trackers, and change the comment of the current torrent.\nAfter installation, a new context menu item will become available when you right click a torrent from the list, 'Edit Torrent...'\nSelecting this will open the 'Torrent Properties' menu.\nhttp://code.google.com/p/rutorrent/wiki/PluginEdit"
288 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
289 | DOWNLOAD_PLUGIN
290 | ;;
291 |
292 | 6)
293 | name="Retrackers Plugin v3.6"
294 | url="http://dl.bintray.com/novik65/generic/plugins/retrackers-3.6.tar.gz"
295 | file="retrackers-3.6.tar.gz"
296 | desc="This plug-in appends specified trackers to the trackers list of all newly added torrents.\nBy the way, torrents may be added by any way - not just via ruTorrent.\nhttp://code.google.com/p/rutorrent/wiki/PluginRetrackers"
297 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
298 | DOWNLOAD_PLUGIN
299 | ;;
300 |
301 | 7)
302 | name="Throttle Plugin v3.6"
303 | url="http://dl.bintray.com/novik65/generic/plugins/throttle-3.6.tar.gz"
304 | file="throttle-3.6.tar.gz"
305 | desc="In rTorrent version 0.8.5 and later it is possible to set limits of speed for groups of torrents.\nThrottle plug-in gives a convenient control over this possibility.\nAfter this plug-in is installed a new option "Channels" will appear in the Settings dialog.\nSpeed limits for some (by default - 10) channels can be set here.\nAssignment of channel number for a particular torrent or for a group of torrents can be made in it's contextual menu.\nNote - '0'-value, conventionally for rTorrent, means 'no limits', but not 'stop torrent'.\nSo the lowest possible limit is 1 Kbps.\nhttp://code.google.com/p/rutorrent/wiki/PluginThrottle"
306 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
307 | DOWNLOAD_PLUGIN
308 | ;;
309 |
310 | 8)
311 | name="Cookies Plugin v3.6"
312 | url="http://dl.bintray.com/novik65/generic/plugins/cookies-3.6.tar.gz"
313 | file="cookies-3.6.tar.gz"
314 | desc="Some trackers use cookies for the client authentication.\nIt is transparent to user who uses a browser to work with such servers - browser store these cookies and returns them to the server automatically.\nThe user just needs to enter login/password from time to time.\nBut when rTorrent is used to work with such trackers (e.g. adding a torrent via URL) it might be a problem because rTorrent does not understand cookies.\nSo the the information from cookies should be provided for rTorrent separately.\nhttp://code.google.com/p/rutorrent/wiki/PluginCookies"
315 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
316 | DOWNLOAD_PLUGIN
317 | ;;
318 |
319 | 9)
320 | name="Scheduler v3.6"
321 | url="http://dl.bintray.com/novik65/generic/plugins/scheduler-3.6.tar.gz"
322 | file="scheduler-3.6.tar.gz"
323 | desc="http://code.google.com/p/rutorrent/wiki/PluginScheduler"
324 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
325 | DOWNLOAD_PLUGIN
326 | ;;
327 |
328 | 10)
329 | name="Auto Tools Plugin v3.6"
330 | url="http://dl.bintray.com/novik65/generic/plugins/autotools-3.6.tar.gz"
331 | file="autotools-3.6.tar.gz"
332 | desc="The plug-in provides some possibilities on automation. Following functions are realized for now:\nAuto Label automatic creation of labels at addition of new torrent through the web interface.\nAuto Move automatic transferring of torrent data files to other directory on downloading completion.\nAuto Watch automatic adding torrents to rtorrent via nested set of watch directories.\nhttp://code.google.com/p/rutorrent/wiki/PluginAutotools"
333 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
334 | DOWNLOAD_PLUGIN
335 | ;;
336 |
337 | 11)
338 | name="Data Dir Plugin v3.6"
339 | url="http://dl.bintray.com/novik65/generic/plugins/datadir-3.6.tar.gz"
340 | file="datadir-3.6.tar.gz"
341 | desc="The plug-in is intended for replacement of the current torrent data directory on another.\nSuch operation is required, for example, if the torrent data directory has been moved manually.\nIt is also possible to move downloaded torrent's data.\nAfter plug-in installation there will be a new item 'Save to...' in the context menu of the downloading area which shows a dialogue 'Torrent data directory'.\nIn this dialogue you can specify a new path to the torrent data.\nhttp://code.google.com/p/rutorrent/wiki/PluginDataDir"
342 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
343 | DOWNLOAD_PLUGIN
344 | ;;
345 |
346 | 12)
347 | name="Track Lables Plugin v3.6"
348 | url="http://dl.bintray.com/novik65/generic/plugins/tracklabels-3.6.tar.gz"
349 | file="tracklabels-3.6.tar.gz"
350 | desc="The plug-in adds a set of labels on the category panel.\nThese labels are created automatically on the basis of torrents' trackers.\nhttp://code.google.com/p/rutorrent/wiki/PluginTracklabels"
351 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
352 | DOWNLOAD_PLUGIN
353 | ;;
354 |
355 | 13)
356 | name="Geo IP Plugin v3.6"
357 | url="http://dl.bintray.com/novik65/generic/plugins/geoip-3.6.tar.gz"
358 | file="geoip-3.6.tar.gz"
359 | desc="Packages 'GeoLiteCity' and 'php5-geoip' will be installed. http://code.google.com/p/rutorrent/wiki/PluginGeoIP"
360 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
361 | if DOWNLOAD_PLUGIN ; then
362 | wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
363 | mkdir -v /usr/share/GeoIP
364 | gunzip GeoLiteCity.dat.gz
365 | mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat
366 | rm GeoLiteCity.dat.gz
367 | apt-get -y install php5-geoip
368 | fi
369 | ;;
370 |
371 | 14)
372 | name="Ratio Plugin v3.6"
373 | url="http://dl.bintray.com/novik65/generic/plugins/ratio-3.6.tar.gz"
374 | file="ratio-3.6.tar.gz"
375 | desc="Since version 0.8.5 rTorrent has a capability to set ratio limits for groups of torrents.\nThe plug-in allows to manage it conveniently.\nWhen the plug-in is installed a new section 'Ratio groups' appears in the Settings dialog.\nHere user can define limits of ratio for some (by default - 8) groups.\nAssignation of group to one or several torrents is performed by selecting an appropriate option in the context menu of torrents.\nhttp://code.google.com/p/rutorrent/wiki/PluginRatio"
376 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
377 | DOWNLOAD_PLUGIN
378 | ;;
379 |
380 | 15)
381 | name="Show Peers like wTorrent Plugin v3.6"
382 | url="http://dl.bintray.com/novik65/generic/plugins/show_peers_like_wtorrent-3.6.tar.gz"
383 | file="show_peers_like_wtorrent-3.6.tar.gz"
384 | desc="The plug-in changes the format of values in columns 'Seeds' and 'Peers' in the torrents list.\nhttp://code.google.com/p/rutorrent/wiki/PluginShow_peers_like_wtorrent"
385 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
386 | DOWNLOAD_PLUGIN
387 | ;;
388 |
389 | 16)
390 | name="Seeding Time Plugin v3.6"
391 | url="http://dl.bintray.com/novik65/generic/plugins/seedingtime-3.6.tar.gz"
392 | file="seedingtime-3.6.tar.gz"
393 | desc="The plug-in adds the columns 'Finished' and 'Added' to the torrents list.\nThis columns contains the time when download of the torrent was completed and, accordingly, the time when torrent was added.\nhttp://code.google.com/p/rutorrent/wiki/PluginSeedingtime"
394 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
395 | DOWNLOAD_PLUGIN
396 | ;;
397 |
398 | 17)
399 | name="HTTPRPC Plugin v3.6"
400 | url="http://dl.bintray.com/novik65/generic/plugins/httprpc-3.6.tar.gz"
401 | file="httprpc-3.6.tar.gz"
402 | desc="This plugin is designed as a easy to use replacement for the mod_scgi (or similar) webserver module, with emphasis on extremely low bandwidth use.\nIf you install this plugin, you do not need to use mod_scgi or the RPC Plugin.\nNote: This plugin requires a faster server, and is not recommended for embedded systems, like a router or slow computer.\nhttp://code.google.com/p/rutorrent/wiki/PluginHTTPRPC"
403 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
404 | DOWNLOAD_PLUGIN
405 | ;;
406 |
407 | 18)
408 | name="Diskspace Plugin v3.6"
409 | url="http://dl.bintray.com/novik65/generic/plugins/diskspace-3.6.tar.gz"
410 | file="diskspace-3.6.tar.gz"
411 | desc="This plugin adds an easy to read disk meter to the bottom menu bar.\nhttp://code.google.com/p/rutorrent/wiki/PluginDiskspace"
412 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
413 | DOWNLOAD_PLUGIN
414 | ;;
415 |
416 | 19)
417 | name="Unpack Plugin v3.6"
418 | url="http://dl.bintray.com/novik65/generic/plugins/unpack-3.6.tar.gz"
419 | file="unpack-3.6.tar.gz"
420 | desc="This plugin is designed to manually or automatically unrar/unzip torrent data. Package 'unrar-free' will be installed. \nhttp://code.google.com/p/rutorrent/wiki/PluginUnpack"
421 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
422 | if DOWNLOAD_PLUGIN ; then
423 | apt-get -y install unrar-free
424 | fi
425 | ;;
426 |
427 | 20)
428 | name="Get Dir Plugin v3.6"
429 | url="http://dl.bintray.com/novik65/generic/plugins/_getdir-3.6.tar.gz"
430 | file="_getdir-3.6.tar.gz"
431 | desc="The service plug-in _getdir gives to other plug-ins the possibility of comfortable navigation on a host file system.\nShows only directories to which rtorrent can write and which php can show.\nhttp://code.google.com/p/rutorrent/wiki/Plugin_getdir"
432 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
433 | DOWNLOAD_PLUGIN
434 | ;;
435 |
436 | 21)
437 | name="Source Plugin v3.6"
438 | url="http://dl.bintray.com/novik65/generic/plugins/source-3.6.tar.gz"
439 | file="source-3.6.tar.gz"
440 | desc="This plugin adds a 'Get .torrent' item to the right click context menu.\nAllowing you to download the original .torrent file from the server, to your local machine.\nhttp://code.google.com/p/rutorrent/wiki/PluginSource"
441 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
442 | DOWNLOAD_PLUGIN
443 | ;;
444 |
445 | 22)
446 | name="Chunks Plugin v3.6"
447 | url="http://dl.bintray.com/novik65/generic/plugins/chunks-3.6.tar.gz"
448 | file="chunks-3.6.tar.gz"
449 | desc="This plugin adds a new tab to the tab bar called 'chunks'.\nThe added tab allows you to monitor the download status of each individual torrent 'piece'\nhttp://code.google.com/p/rutorrent/wiki/PluginChunks"
450 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
451 | DOWNLOAD_PLUGIN
452 | ;;
453 |
454 | 23)
455 | name="Data Plugin v3.6"
456 | url="http://dl.bintray.com/novik65/generic/plugins/data-3.6.tar.gz"
457 | file="data-3.6.tar.gz"
458 | desc="This plugin adds the 'Get Data' item to the right click menu.\nThis allows you to download the file in question via http to your local machine.\nOn 32 bit systems, you can not download files larger than 2 GB, this is due to a php limitation\nhttp://code.google.com/p/rutorrent/wiki/PluginData"
459 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
460 | DOWNLOAD_PLUGIN
461 | ;;
462 |
463 | 24)
464 | name="CPU Load Plugin v3.6"
465 | url="http://dl.bintray.com/novik65/generic/plugins/cpuload-3.6.tar.gz"
466 | file="cpuload-3.6.tar.gz"
467 | desc="This plugin adds a CPU Load usage bar to the bottom toolbar.\nhttp://code.google.com/p/rutorrent/wiki/PluginCpuload"
468 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
469 | DOWNLOAD_PLUGIN
470 | ;;
471 |
472 | 25)
473 | name="Extsearch Plugin v3.6"
474 | url="http://dl.bintray.com/novik65/generic/plugins/extsearch-3.6.tar.gz"
475 | file="extsearch-3.6.tar.gz"
476 | desc="This plugin adds the ability to search many popular torrent sites for content without leaving the rutorrent url.\nhttp://code.google.com/p/rutorrent/wiki/PluginExtsearch"
477 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
478 | DOWNLOAD_PLUGIN
479 | ;;
480 |
481 | 26)
482 | name="Theme Plugin v3.6"
483 | url="http://dl.bintray.com/novik65/generic/plugins/theme-3.6.tar.gz"
484 | file="theme-3.6.tar.gz"
485 | desc="This plugin allows you to change the gui theme to one of several provided themes, or any your create,\nprovided they are placed in the proper directory within the plugin.\nhttp://code.google.com/p/rutorrent/wiki/PluginTheme"
486 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
487 | DOWNLOAD_PLUGIN
488 | ;;
489 |
490 | 27)
491 | name="Login Mgr v3.6"
492 | url="http://dl.bintray.com/novik65/generic/plugins/loginmgr-3.6.tar.gz"
493 | file="loginmgr-3.6.tar.gz"
494 | desc="This plugin is used to login to 3rd party torrent sites.\nIt's designed to be used in cased where cookies fail.\nIt is a support plugin used for RSS and ExtSearch.\nNOTE: This plugin saves passwords in plain text.\nhttp://code.google.com/p/rutorrent/wiki/PluginLoginMgr"
495 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
496 | DOWNLOAD_PLUGIN
497 | ;;
498 |
499 | 28)
500 | name="Loot At v3.6"
501 | url="http://dl.bintray.com/novik65/generic/plugins/lookat-3.6.tar.gz"
502 | file="lookat-3.6.tar.gz"
503 | desc="This plugin is intended for looking torrent's name in the external sources."
504 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
505 | DOWNLOAD_PLUGIN
506 | ;;
507 |
508 | 29)
509 | name="NFO Plugin"
510 | url="http://srious.biz/nfo.tar.gz"
511 | file="nfo.tar.gz"
512 | desc="This plugin shows the contents of the .nfo file for a given torrent.\nhttp://code.google.com/p/rutorrent/wiki/PluginNFO"
513 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
514 | DOWNLOAD_PLUGIN
515 | ;;
516 |
517 | 30)
518 | name="Chat Plugin v2.0"
519 | url="http://rutorrent-chat.googlecode.com/files/chat-2.0.tar.gz"
520 | file="chat-2.0.tar.gz"
521 | desc="This plugin adds a chatbox to multi-user rutorrent installs.\nNOTE: Currently this is a single server chat program only (if you have multiple servers, this will NOT allow your users to chat across them).\nhttp://code.google.com/p/rutorrent/wiki/PluginChat"
522 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
523 | DOWNLOAD_PLUGIN
524 | ;;
525 |
526 | 31)
527 | name="Logoff Plugin v1.3"
528 | url="http://rutorrent-logoff.googlecode.com/files/logoff-1.3.tar.gz"
529 | file="logoff-1.3.tar.gz"
530 | desc="This plugin allows you to switch users or logoff on systems which use authentication.\nhttp://code.google.com/p/rutorrent-logoff/"
531 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
532 | DOWNLOAD_PLUGIN
533 | ;;
534 |
535 | 32)
536 | name="Pause Plugin v1.2"
537 | url="http://rutorrent-pausewebui.googlecode.com/files/pausewebui.1.2.zip"
538 | file="pausewebui.1.2.zip"
539 | desc="Plugin to pause the refresh timer, and add a button to manually refresh the page.\nhttp://code.google.com/p/rutorrent/wiki/PluginPause"
540 | unpack="unzip $file -d $TEMP_PLUGIN_DIR"
541 | DOWNLOAD_PLUGIN
542 | ;;
543 |
544 | 33)
545 | name="Instant Search Plugin v1.0"
546 | url="http://rutorrent-instantsearch.googlecode.com/files/instantsearch.1.0.zip"
547 | file="instantsearch.1.0.zip"
548 | desc="This plugin lets you search for local torrents running in rutorrent, updating results as you type them.\nhttp://code.google.com/p/rutorrent/wiki/PluginInstantSearch"
549 | unpack="unzip $file -d $TEMP_PLUGIN_DIR"
550 | DOWNLOAD_PLUGIN
551 | ;;
552 |
553 | 34)
554 | name="File Drop v3.6"
555 | url="http://dl.bintray.com/novik65/generic/plugins/filedrop-3.6.tar.gz"
556 | file="filedrop-3.6.tar.gz"
557 | desc="This plugin allows users to drag multiple torrents from desktop to the browser (FF > 3.6 & Chrome only)."
558 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
559 | DOWNLOAD_PLUGIN
560 | ;;
561 |
562 | 35)
563 | name="Check Port v3.6"
564 | url="http://dl.bintray.com/novik65/generic/plugins/check_port-3.6.tar.gz"
565 | file="check_port-3.6.tar.gz"
566 | desc="This plugin adds an incoming port status indicator to the bottom bar."
567 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
568 | DOWNLOAD_PLUGIN
569 | ;;
570 |
571 | 36)
572 | name="History v3.6"
573 | url="http://dl.bintray.com/novik65/generic/plugins/history-3.6.tar.gz"
574 | file="history-3.6.tar.gz"
575 | desc="This plugin is designed to log a history of torrents."
576 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
577 | DOWNLOAD_PLUGIN
578 | ;;
579 |
580 | 37)
581 | name="iPad Plugin v3.6"
582 | url="http://dl.bintray.com/novik65/generic/plugins/ipad-3.6.tar.gz"
583 | file="ipad-3.6.tar.gz"
584 | desc="This plugin allows ruTorrent to work properly on iPad-like devices."
585 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
586 | DOWNLOAD_PLUGIN
587 | ;;
588 |
589 | 38)
590 | name="Extended Ratio v3.6"
591 | url="http://dl.bintray.com/novik65/generic/plugins/extratio-3.6.tar.gz"
592 | file="extratio-3.6.tar.gz"
593 | desc="This plugin extends the functionality of the ratio plugin."
594 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
595 | DOWNLOAD_PLUGIN
596 | ;;
597 |
598 | 39)
599 | name="Feeds v3.6"
600 | url="http://dl.bintray.com/novik65/generic/plugins/feeds-3.6.tar.gz"
601 | file="feeds-3.6.tar.gz"
602 | desc="This plugin is intended for making RSS feeds with information of torrents. \nhttp://code.google.com/p/rutorrent/wiki/PluginFeeds"
603 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
604 | DOWNLOAD_PLUGIN
605 | ;;
606 |
607 | 40)
608 | name="Media Information v3.6"
609 | url="http://dl.bintray.com/novik65/generic/plugins/mediainfo-3.6.tar.gz"
610 | file="mediainfo-3.6.tar.gz"
611 | desc="This plugin is intended to display media file information."
612 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
613 | if DOWNLOAD_PLUGIN ; then
614 | apt-get -y install libzen0 libmediainfo0 mediainfo
615 | wget http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz
616 | tar -zxvf _task-3.6.tar.gz -C $TEMP_PLUGIN_DIR
617 | rm _task-3.6.tar.gz
618 | fi
619 | ;;
620 |
621 | 41)
622 | name="RSS URL Rewrite v3.6"
623 | url="http://dl.bintray.com/novik65/generic/plugins/rssurlrewrite-3.6.tar.gz"
624 | file="rssurlrewrite-3.6.tar.gz"
625 | desc="This plugin extends the functionality of the RSS plugin. \nhttp://code.google.com/p/rutorrent/wiki/PluginRSSURLRewrite"
626 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
627 | DOWNLOAD_PLUGIN
628 | ;;
629 |
630 | 42)
631 | name="Screenshot v3.6"
632 | url="http://dl.bintray.com/novik65/generic/plugins/screenshots-3.6.tar.gz"
633 | file="screenshots-3.6.tar.gz"
634 | desc="This plugin is intended to show screenshots from video files. Package 'ffmpeg' will be installed."
635 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
636 | if DOWNLOAD_PLUGIN ; then
637 | INSTALL_FFMPEG
638 | wget http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz
639 | tar -zxvf _task-3.6.tar.gz -C $TEMP_PLUGIN_DIR
640 | rm _task-3.6.tar.gz
641 | fi
642 | ;;
643 |
644 | 43)
645 | name="RPC v3.6"
646 | url="http://dl.bintray.com/novik65/generic/plugins/rpc-3.6.tar.gz"
647 | file="rpc-3.6.tar.gz"
648 | desc="This plugin is a replacement for the mod_scgi webserver module."
649 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
650 | DOWNLOAD_PLUGIN
651 | ;;
652 |
653 | 44)
654 | name="Rutracker Check v3.6"
655 | url="http://dl.bintray.com/novik65/generic/plugins/rutracker_check-3.6.tar.gz"
656 | file="rutracker_check-3.6.tar.gz"
657 | desc="This plugin checks the rutracker.org tracker for updated/deleted torrents."
658 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
659 | DOWNLOAD_PLUGIN
660 | ;;
661 |
662 | 45)
663 | name="Noty v3.6"
664 | url="http://dl.bintray.com/novik65/generic/plugins/_noty-3.6.tar.gz"
665 | file="_noty-3.6.tar.gz"
666 | desc="This plugin provides the notification functionality for other plugins."
667 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
668 | DOWNLOAD_PLUGIN
669 | ;;
670 |
671 | 46)
672 | name="Task v3.6"
673 | url="http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz"
674 | file="_task-3.6.tar.gz"
675 | desc="This plugin provides the possibility of running various scripts on the host system."
676 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
677 | DOWNLOAD_PLUGIN
678 | ;;
679 |
680 | 47)
681 | name="Plugins v3.6"
682 | url="http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz"
683 | file="plugins-3.6.tar.gz"
684 | desc="This installs about 40+ plugins except plugins number 29 to 33 (NFO, Chat, Logoff, Pause and Instant Search).\nMore info at https://github.com/Novik/ruTorrent/wiki/Plugins \nAll dependencies will be installed. \n${RED}REMEBER TO REMOVE HTTPRPC AND RPC PLUGINS FOR LOGIN TO WORK AT FIRST RUN!${NORMAL}"
685 | unpack="tar -zxvf $file -C /tmp/"
686 | echo "${GREEN}DOWNLOAD_PLUGIN${NORMAL}"
687 | if DOWNLOAD_PLUGIN ; then
688 | mv /tmp/plugins/* $TEMP_PLUGIN_DIR
689 | INSTALL_FFMPEG
690 | apt-get -y install php5-geoip curl libzen0 libmediainfo0 mediainfo unrar-free
691 | fi
692 | ;;
693 |
694 | 0)
695 | break
696 | ;;
697 |
698 | *)
699 | echo
700 | error1="${RED}Not a usable number!${NORMAL}"
701 | echo
702 | ;;
703 | esac
704 | done
705 | }
706 |
707 | # Function for installing dependencies
708 | function APT_DEPENDENCIES {
709 | apt-get update
710 | apt-get -y install openssl git apache2 apache2-utils build-essential libsigc++-2.0-dev \
711 | libcurl4-openssl-dev automake libtool libcppunit-dev libncurses5-dev libapache2-mod-scgi \
712 | php5 php5-curl php5-cli libapache2-mod-php5 tmux unzip libssl-dev curl
713 | }
714 |
715 | # Function for setting up xmlrpc, libtorrent and rtorrent
716 | function INSTALL_RTORRENT {
717 | # Use the temp folder for compiling
718 | cd /tmp
719 |
720 | # Download and install xmlrpc-c super-stable
721 | curl -L http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable/1.33.18/xmlrpc-c-1.33.18.tgz/download -o xmlrpc-c.tgz
722 | tar zxvf xmlrpc-c.tgz
723 | mv xmlrpc-c-1.* xmlrpc
724 | cd xmlrpc
725 | ./configure --disable-cplusplus
726 | make
727 | make install
728 |
729 | cd ..
730 | rm -rv xmlrpc*
731 |
732 | mkdir rtorrent
733 | cd rtorrent
734 |
735 | # Download and install libtorrent
736 | curl -L http://rtorrent.net/downloads/libtorrent-0.13.6.tar.gz -o libtorrent.tar.gz
737 | tar -zxvf libtorrent.tar.gz
738 | cd libtorrent-0.13.6
739 | ./autogen.sh
740 | ./configure
741 | make
742 | make install
743 |
744 | cd ..
745 |
746 | # Download and install rtorrent
747 | curl -L http://rtorrent.net/downloads/rtorrent-0.9.6.tar.gz -o rtorrent.tar.gz
748 | tar -zxvf rtorrent.tar.gz
749 | cd rtorrent-0.9.6
750 | ./autogen.sh
751 | ./configure --with-xmlrpc-c
752 | make
753 | make install
754 |
755 | cd ../..
756 | rm -rv rtorrent
757 |
758 | ldconfig
759 |
760 | # Creating session directory
761 | if [ ! -d "$HOMEDIR"/.rtorrent-session ]; then
762 | mkdir "$HOMEDIR"/.rtorrent-session
763 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/.rtorrent-session
764 | else
765 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/.rtorrent-session
766 | fi
767 |
768 | # Creating downloads folder
769 | if [ ! -d "$HOMEDIR"/Downloads ]; then
770 | mkdir "$HOMEDIR"/Downloads
771 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/Downloads
772 | else
773 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/Downloads
774 | fi
775 |
776 | # Downloading rtorrent.rc file.
777 | wget -O $HOMEDIR/.rtorrent.rc https://raw.github.com/Kerwood/rtorrent.auto.install/master/Files/rtorrent.rc
778 | chown "$RTORRENT_USER"."$RTORRENT_USER" $HOMEDIR/.rtorrent.rc
779 | sed -i "s@HOMEDIRHERE@$HOMEDIR@g" $HOMEDIR/.rtorrent.rc
780 | }
781 |
782 | # Function for installing rutorrent and plugins
783 | function INSTALL_RUTORRENT {
784 | # Installing rutorrent.
785 | curl -L http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz -o rutorrent-3.6.tar.gz
786 | tar -zxvf rutorrent-3.6.tar.gz
787 |
788 | if [ -d /var/www/html/rutorrent ]; then
789 | rm -r /var/www/html/rutorrent
790 | fi
791 |
792 | # Changeing SCGI mount point in rutorrent config.
793 | sed -i "s/\/RPC2/\/rutorrent\/RPC2/g" ./rutorrent/conf/config.php
794 |
795 | mv -f rutorrent /var/www/html/
796 | rm -v rutorrent-3.6.tar.gz
797 |
798 | if [ -d "$TEMP_PLUGIN_DIR" ]; then
799 | mv -fv "$TEMP_PLUGIN_DIR"/* /var/www/html/rutorrent/plugins
800 | fi
801 |
802 | # Changing permissions for rutorrent and plugins.
803 | chown -R www-data.www-data /var/www/html/rutorrent
804 | chmod -R 775 /var/www/html/rutorrent
805 | }
806 |
807 | # Function for configuring apache
808 | function CONFIGURE_APACHE {
809 | # Creating symlink for scgi.load
810 | if [ ! -h /etc/apache2/mods-enabled/scgi.load ]; then
811 | ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
812 | fi
813 |
814 | # Check if apache2 has port 80 enabled
815 | if ! grep --quiet "^Listen 80$" /etc/apache2/ports.conf; then
816 | echo "Listen 80" >> /etc/apache2/ports.conf;
817 | fi
818 |
819 | # Adding ServerName localhost to apache2.conf
820 | if ! grep --quiet "^ServerName$" /etc/apache2/apache2.conf; then
821 | echo "ServerName localhost" >> /etc/apache2/apache2.conf;
822 | fi
823 |
824 | # Creating Apache virtual host
825 | if [ ! -f /etc/apache2/sites-available/001-default-rutorrent.conf ]; then
826 |
827 | cat > /etc/apache2/sites-available/001-default-rutorrent.conf << EOF
828 |
829 | #ServerName www.example.com
830 | ServerAdmin webmaster@localhost
831 | DocumentRoot /var/www/html
832 | ErrorLog ${APACHE_LOG_DIR}/error.log
833 | CustomLog ${APACHE_LOG_DIR}/access.log combined
834 |
835 | CustomLog /var/log/apache2/rutorrent.log vhost_combined
836 | ErrorLog /var/log/apache2/rutorrent_error.log
837 | SCGIMount /rutorrent/RPC2 127.0.0.1:5000
838 |
839 |
840 | AuthName "Tits or GTFO"
841 | AuthType Basic
842 | Require valid-user
843 | AuthUserFile /var/www/html/rutorrent/.htpasswd
844 |
845 |
846 |
847 |
848 | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
849 | EOF
850 | a2ensite 001-default-rutorrent.conf
851 | a2dissite 000-default.conf
852 | systemctl restart apache2.service
853 | fi
854 |
855 | # Creating .htaccess file
856 | printf "%s\n" "${WEB_USER_ARRAY[@]}" > /var/www/html/rutorrent/.htpasswd
857 | }
858 |
859 | function INSTALL_FFMPEG {
860 | printf "\n# ffpmeg mirror\ndeb http://www.deb-multimedia.org jessie main non-free\n" >> /etc/apt/sources.list
861 | apt-get update
862 | apt-get -y --force-yes install deb-multimedia-keyring
863 | apt-get update
864 | apt-get -y install ffmpeg
865 | }
866 |
867 | # Function for showing the end result when install is complete
868 | function INSTALL_COMPLETE {
869 | rm -rf $TEMP_PLUGIN_DIR
870 |
871 | HEADER
872 |
873 | echo "${GREEN}Installation is complete.${NORMAL}"
874 | echo
875 | echo
876 | echo "${RED}Your default Apache2 vhost file has been disabled and replaced with a new one.${NORMAL}"
877 | echo "${RED}If you were using it, combine the default and rutorrent vhost file and enable it again.${NORMAL}"
878 | echo
879 | echo "${PURPLE}Your downloads folder is in ${LBLUE}$HOMEDIR/Downloads${NORMAL}"
880 | echo "${PURPLE}Sessions data is ${LBLUE}$HOMEDIR/.rtorrent-session${NORMAL}"
881 | echo "${PURPLE}rtorrent's configuration file is ${LBLUE}$HOMEDIR/.rtorrent.rc${NORMAL}"
882 | echo
883 | echo "${PURPLE}If you want to change settings for rtorrent, such as download folder, etc.,"
884 | echo "you need to edit the '.rtorrent.rc' file. E.g. 'nano $HOMEDIR/.rtorrent.rc'${NORMAL}"
885 | echo
886 | echo "Rtorrent can be started without rebooting with 'sudo systemctl start rtorrent.service'."
887 |
888 | # The IPv6 local address, is not very used for now, anyway if needed, just change 'inet' to 'inet6'
889 | lcl=$(ip addr | grep 'inet ' | awk '{print $2}' | cut -d/ -f1 | grep -v "127." | head -n 1)
890 | ext=$(curl -s http://icanhazip.com)
891 |
892 | if [[ ! -z "$lcl" ]] && [[ ! -z "$ext" ]]; then
893 | echo "${LBLUE}LOCAL IP:${NORMAL} http://$lcl/rutorrent"
894 | echo "${LBLUE}EXTERNAL IP:${NORMAL} http://$ext/rutorrent"
895 | echo
896 | echo "Visit rutorrent through the above address."
897 | echo
898 | else
899 | if [[ -z "$lcl" ]]; then
900 | echo "Can't detect the local IP address"
901 | echo "Try visit rutorrent at http://127.0.0.1/rutorrent"
902 | echo
903 | elif [[ -z "$ext" ]]; then
904 | echo "${LBLUE}LOCAL:${NORMAL} http://$lcl/rutorrent"
905 | echo "Visit rutorrent through your local network"
906 | else
907 | echo "Can't detect the IP address"
908 | echo "Try visit rutorrent at http://127.0.0.1/rutorrent"
909 | echo
910 | fi
911 | fi
912 | }
913 |
914 | function INSTALL_SYSTEMD_SERVICE {
915 | cat > "/etc/systemd/system/rtorrent.service" <<-EOF
916 | [Unit]
917 | Description=rtorrent (in tmux)
918 |
919 | [Service]
920 | Type=oneshot
921 | RemainAfterExit=yes
922 | User=$RTORRENT_USER
923 | ExecStart=/usr/bin/tmux -2 new-session -d -s rtorrent rtorrent
924 | ExecStop=/usr/bin/tmux kill-session -t rtorrent
925 |
926 | [Install]
927 | WantedBy=default.target
928 | EOF
929 |
930 | systemctl enable rtorrent.service
931 | }
932 |
933 | function START_RTORRENT {
934 | systemctl start rtorrent.service
935 | }
936 |
937 | CHECK_ROOT
938 | LICENSE
939 | APACHE_UTILS
940 | rm -rf $TEMP_PLUGIN_DIR
941 | HEADER
942 | SET_RTORRENT_USER
943 | SET_WEB_USER
944 |
945 | # NOTICE: Change lib, rtorrent, rutorrent versions on upgrades.
946 | while true; do
947 | HEADER
948 | echo " ${BOLD}rTorrent version:${NORMAL} ${RED}0.9.4${NORMAL}"
949 | echo " ${BOLD}libTorrent version:${NORMAL} ${RED}0.13.4${NORMAL}"
950 | echo " ${BOLD}ruTorrent version:${NORMAL} ${RED}3.6${NORMAL}"
951 | echo
952 | echo " ${BOLD}rTorrent user:${NORMAL}${GREEN} $RTORRENT_USER${NORMAL}"
953 | echo
954 | echo -n " ${BOLD}ruTorrent user(s):${NORMAL}${GREEN}"
955 | LIST_WEB_USERS
956 | echo
957 | echo
958 | echo " ${NORMAL}${BOLD}ruTorrent plugins:${NORMAL}${GREEN}"
959 | LIST_PLUGINS
960 | echo
961 | echo " ${NORMAL}[1] - Change rTorrent user"
962 | echo " [2] - Add another ruTorrent user"
963 | echo " [3] - Download plugins"
964 | echo
965 | echo " [0] - Start installation"
966 | echo " [q] - Quit"
967 | echo
968 | echo -n "${GREEN}>>${NORMAL} "
969 | read case
970 |
971 | case "$case" in
972 | 1)
973 | SET_RTORRENT_USER
974 | ;;
975 | 2)
976 | SET_WEB_USER
977 | ;;
978 | 3)
979 | SELECT_PLUGINS
980 | ;;
981 | 0)
982 | APT_DEPENDENCIES
983 | INSTALL_RTORRENT
984 | INSTALL_RUTORRENT
985 | CONFIGURE_APACHE
986 | INSTALL_SYSTEMD_SERVICE
987 | START_RTORRENT
988 | INSTALL_COMPLETE
989 | break
990 | ;;
991 | q)
992 | break
993 | ;;
994 | esac
995 | done
996 |
--------------------------------------------------------------------------------
/Rtorrent-Auto-Install-4.0.0-Debian-Wheezy:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # PLEASE DO NOT SET ANY OF THE VARIABLES, THEY WILL BE POPULATED IN THE MENU
3 | clear
4 |
5 | # Formatting variables
6 | BOLD=$(tput bold)
7 | NORMAL=$(tput sgr0)
8 | GREEN=$(tput setaf 2)
9 | LBLUE=$(tput setaf 6)
10 | RED=$(tput setaf 1)
11 | PURPLE=$(tput setaf 5)
12 |
13 | # The system user rtorrent is going to run as
14 | RTORRENT_USER=""
15 |
16 | # The user that is going to log into rutorrent (htaccess)
17 | WEB_USER=""
18 |
19 | # Array with webusers including their hashed paswords
20 | WEB_USER_ARRAY=()
21 |
22 | # Temporary download folder for plugins
23 | TEMP_PLUGIN_DIR="/tmp/rutorrentPlugins"
24 |
25 | # Array of downloaded plugins
26 | PLUGIN_ARRAY=()
27 |
28 | #rTorrent users home dir.
29 | HOMEDIR=""
30 |
31 | # Function to check if running user is root
32 | function CHECK_ROOT {
33 | if [ "$(id -u)" != "0" ]; then
34 | echo
35 | echo "This script must be run as root." 1>&2
36 | echo
37 | exit 1
38 | fi
39 | }
40 |
41 | # Checks for apache2-utils and unzip if it's installed. It's is needed to make the Web user
42 | function APACHE_UTILS {
43 | AP_UT_CHECK="$(dpkg-query -W -f='${Status}' apache2-utils 2>/dev/null | grep -c "ok installed")"
44 | UNZIP_CHECK="$(dpkg-query -W -f='${Status}' unzip 2>/dev/null | grep -c "ok installed")"
45 |
46 | if [ "$AP_UT_CHECK" -ne 1 ] || [ "$UNZIP_CHECK" -ne 1 ]; then
47 | echo " One or both of the packages apache2-utils and unzip is not installed and is needed for the setup."
48 | read -p " Do you want to install it? [y/n] " -n 1
49 | if [[ $REPLY =~ [Yy]$ ]]; then
50 | clear
51 | apt-get update
52 | apt-get -y install apache2-utils unzip
53 | else
54 | clear
55 | exit
56 | fi
57 | fi
58 | }
59 |
60 | # License
61 | function LICENSE {
62 | clear
63 | echo "${BOLD}--------------------------------------------------------------------------------"
64 | echo " THE BEER-WARE LICENSE (Revision 42):"
65 | echo " wrote this script. As long as you retain this notice you"
66 | echo " can do whatever you want with this stuff. If we meet some day, and you think"
67 | echo " this stuff is worth it, you can buy me a beer in return."
68 | echo
69 | echo " - ${LBLUE}Patrick Kerwood @ LinuxBloggen.dk${NORMAL}"
70 | echo "${BOLD}--------------------------------------------------------------------------------${NORMAL}"
71 | echo
72 | read -p " Press any key to continue..." -n 1
73 | echo
74 | }
75 |
76 | # Function to set the system user, rtorrent is going to run as
77 | function SET_RTORRENT_USER {
78 | con=0
79 | while [ $con -eq 0 ]; do
80 | echo -n "Please type a valid system user: "
81 | read RTORRENT_USER
82 |
83 | if [[ -z $(cat /etc/passwd | grep "^$RTORRENT_USER:") ]]; then
84 | echo
85 | echo "This user does not exist!"
86 | elif [[ $(cat /etc/passwd | grep "^$RTORRENT_USER:" | cut -d: -f3) -lt 999 ]]; then
87 | echo
88 | echo "That user's UID is too low!"
89 | elif [[ $RTORRENT_USER == nobody ]]; then
90 | echo
91 | echo "You cant use 'nobody' as user!"
92 | else
93 | HOMEDIR=$(cat /etc/passwd | grep "$RTORRENT_USER": | cut -d: -f6)
94 | con=1
95 | fi
96 | done
97 | }
98 |
99 | # Function to create users for the webinterface
100 | function SET_WEB_USER {
101 | while true; do
102 | echo -n "Please type the username for the webinterface, system user not required: "
103 | read WEB_USER
104 | USER=$(htpasswd -n $WEB_USER 2>/dev/null)
105 | if [ $? = 0 ]; then
106 | WEB_USER_ARRAY+=($USER)
107 | break
108 | else
109 | echo
110 | echo "${RED}Something went wrong!"
111 | echo "You have entered an unusable username and/or different passwords.${NORMAL}"
112 | echo
113 | fi
114 | done
115 | }
116 |
117 | # Function to list WebUI users in the menu
118 | function LIST_WEB_USERS {
119 | for i in ${WEB_USER_ARRAY[@]}; do
120 | USER_CUT=$(echo $i | cut -d \: -f 1)
121 | echo -n " $USER_CUT"
122 | done
123 | }
124 |
125 | # Function to list plugins, downloaded, in the menu
126 | function LIST_PLUGINS {
127 | if [ ${#PLUGIN_ARRAY[@]} -eq 0 ]; then
128 | echo " No plugins downloaded!"
129 | else
130 | for i in "${PLUGIN_ARRAY[@]}"; do
131 | echo " - $i"
132 | done
133 | fi
134 | }
135 |
136 | # Header for the menu
137 | function HEADER {
138 | clear
139 | echo "${BOLD}--------------------------------------------------------------------------------"
140 | echo " Rtorrent + Rutorrent Auto Install"
141 | echo " ${LBLUE}Patrick Kerwood @ LinuxBloggen.dk${NORMAL}"
142 | echo "${BOLD}--------------------------------------------------------------------------------${NORMAL}"
143 | echo
144 | }
145 |
146 | # Function for the Plugins download part.
147 | function DOWNLOAD_PLUGIN {
148 | echo
149 | echo -e "$desc"
150 | echo
151 | read -p "Download ${LBLUE}$name${NORMAL} [y/n]: " -n 1
152 |
153 | if [[ $REPLY =~ [Yy]$ ]]; then
154 | echo
155 | curl -L "$url" -o $file
156 | $unpack
157 | if [ $? -eq "0" ]; then
158 | rm "$file"
159 | echo
160 | PLUGIN_ARRAY+=("${name}")
161 | error="${GREEN}${BOLD}$name${NORMAL}${GREEN} downloaded, unpacked and moved to temporary plugins folder${NORMAL}"
162 | return 0
163 | else
164 | echo
165 | error="${RED}Something went wrong.. Error!${NORMAL}"
166 | return 1
167 | fi
168 | else
169 | return 1
170 | fi
171 | echo
172 | }
173 |
174 | function SELECT_PLUGINS {
175 | if [ ! -d $TEMP_PLUGIN_DIR ]; then
176 | mkdir $TEMP_PLUGIN_DIR
177 | fi
178 |
179 | clear
180 |
181 | while true; do
182 | echo
183 | echo "${GREEN}--------------------------------------------------------------------------------${NORMAL}"
184 | echo
185 | echo "1 - Erase Data"
186 | echo "2 - Create v3.6"
187 | echo "3 - Traffic v3.6"
188 | echo "4 - RSS v3.6"
189 | echo "5 - Edit v3.6"
190 | echo "6 - Retrackers v3.6"
191 | echo "7 - Throttle v3.6"
192 | echo "8 - Cookies v3.6"
193 | echo "9 - Scheduler v3.6"
194 | echo "10 - Auto Tools v3.6"
195 | echo "11 - Data Dir v3.6"
196 | echo "12 - Track Lables v3.6"
197 | echo "13 - Geo IP v3.6"
198 | echo "14 - Ratio v3.6"
199 | echo "15 - Show Peers like wTorrent v3.6"
200 | echo "16 - Seeding Time v3.6"
201 | echo "17 - HTTPRPC v3.6"
202 | echo "18 - Diskspace v3.6"
203 | echo "19 - Unpack v3.6"
204 | echo "20 - Get Dir v3.6"
205 | echo "21 - Source v3.6"
206 | echo "22 - Chunks v3.6"
207 | echo "23 - Data v3.6"
208 | echo "24 - CPU Load v3.6"
209 | echo "25 - Extsearch v3.6"
210 | echo "26 - Theme v3.6"
211 | echo "27 - Login Mgr v3.6"
212 | echo "28 - ruTorrent Label Management Suite v1.1"
213 | echo "29 - NFO"
214 | echo "30 - Chat v2.0"
215 | echo "31 - Logoff v1.3"
216 | echo "32 - Pause v1.2"
217 | echo "33 - Instant Search v1.0"
218 | echo "34 - File Drop v3.6 (FF > 3.6 & Chrome only)"
219 | echo "35 - Check Port v3.6"
220 | echo "36 - History v3.6"
221 | echo "37 - iPad v3.6"
222 | echo "38 - Extended Ratio v3.6"
223 | echo "39 - Feeds v3.6"
224 | echo "40 - Media Information v3.6"
225 | echo "41 - RSS URL Rewrite v3.6"
226 | echo "42 - Screenshot v3.6"
227 | echo "43 - RPC v3.6"
228 | echo "44 - Rutracker Check v3.6"
229 | echo "45 - Noty v3.6"
230 | echo "46 - Task v3.6"
231 | echo "47 - All Plugins v3.6. More at https://github.com/Novik/ruTorrent/wiki/Plugins"
232 | echo
233 | echo "0 - Exit plugin installation"
234 | echo
235 | echo "${GREEN}--------------------------------------------------------------------------------${NORMAL}"
236 | echo -e $error
237 | unset error
238 | echo
239 | echo -n "Choose plugin to see info: "
240 |
241 | read -e plugin
242 |
243 | case $plugin in
244 | 1)
245 | name="Erase Data Plugin v3.6"
246 | url="http://dl.bintray.com/novik65/generic/plugins/erasedata-3.6.tar.gz"
247 | file="erasedata-3.6.tar.gz"
248 | desc=" This plugin adds a context menu item to the right click menu which allows you to delete data. \n http://code.google.com/p/rutorrent/wiki/PluginErasedata"
249 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
250 | DOWNLOAD_PLUGIN
251 | ;;
252 |
253 | 2)
254 | name="Create Plugin v3.6"
255 | url="http://dl.bintray.com/novik65/generic/plugins/create-3.6.tar.gz"
256 | file="create-3.6.tar.gz"
257 | desc="This plugin allows for the creation of new .torrent files from a file or directory full of files.\nhttp://code.google.com/p/rutorrent/wiki/PluginCreate"
258 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
259 | DOWNLOAD_PLUGIN
260 | ;;
261 |
262 | 3)
263 | name="Trafic Plugin v3.6"
264 | url="http://dl.bintray.com/novik65/generic/plugins/trafic-3.6.tar.gz"
265 | file="trafic-3.6.tar.gz"
266 | desc="The Trafic plugin is a subsystem for monitoring rtorrent traffic totals.\nIt tracks both system wide and per-tracker totals.\nThe plugin can display totals in three formats, hourly, daily, and mouthly.\nStatistics can be cleaned out at any time by clicking the 'Clear' button on the interface (see screenshot).\nhttp://code.google.com/p/rutorrent/wiki/PluginTrafic"
267 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
268 | DOWNLOAD_PLUGIN
269 | ;;
270 |
271 | 4)
272 | name="RSS Plugin v3.6"
273 | url="http://dl.bintray.com/novik65/generic/plugins/rss-3.6.tar.gz"
274 | file="rss-3.6.tar.gz"
275 | desc="This plugin is designed to fetch torrents via rss download links.\nIt has 2 main parts, one for entering feeds, the other for setting up filters.\nFor more information about rss, see http://en.wikipedia.org/wiki/RSS.\nhttp://code.google.com/p/rutorrent/wiki/PluginRSS"
276 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
277 | if DOWNLOAD_PLUGIN ; then
278 | apt-get -y install curl
279 | fi
280 | ;;
281 |
282 | 5)
283 | name="Edit Plugin v3.6"
284 | url="http://dl.bintray.com/novik65/generic/plugins/edit-3.6.tar.gz"
285 | file="edit-3.6.tar.gz"
286 | desc="This plugin allows you to edit the list of trackers, and change the comment of the current torrent.\nAfter installation, a new context menu item will become available when you right click a torrent from the list, 'Edit Torrent...'\nSelecting this will open the 'Torrent Properties' menu.\nhttp://code.google.com/p/rutorrent/wiki/PluginEdit"
287 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
288 | DOWNLOAD_PLUGIN
289 | ;;
290 |
291 | 6)
292 | name="Retrackers Plugin v3.6"
293 | url="http://dl.bintray.com/novik65/generic/plugins/retrackers-3.6.tar.gz"
294 | file="retrackers-3.6.tar.gz"
295 | desc="This plug-in appends specified trackers to the trackers list of all newly added torrents.\nBy the way, torrents may be added by any way - not just via ruTorrent.\nhttp://code.google.com/p/rutorrent/wiki/PluginRetrackers"
296 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
297 | DOWNLOAD_PLUGIN
298 | ;;
299 |
300 | 7)
301 | name="Throttle Plugin v3.6"
302 | url="http://dl.bintray.com/novik65/generic/plugins/throttle-3.6.tar.gz"
303 | file="throttle-3.6.tar.gz"
304 | desc="In rTorrent version 0.8.5 and later it is possible to set limits of speed for groups of torrents.\nThrottle plug-in gives a convenient control over this possibility.\nAfter this plug-in is installed a new option "Channels" will appear in the Settings dialog.\nSpeed limits for some (by default - 10) channels can be set here.\nAssignment of channel number for a particular torrent or for a group of torrents can be made in it's contextual menu.\nNote - '0'-value, conventionally for rTorrent, means 'no limits', but not 'stop torrent'.\nSo the lowest possible limit is 1 Kbps.\nhttp://code.google.com/p/rutorrent/wiki/PluginThrottle"
305 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
306 | DOWNLOAD_PLUGIN
307 | ;;
308 |
309 | 8)
310 | name="Cookies Plugin v3.6"
311 | url="http://dl.bintray.com/novik65/generic/plugins/cookies-3.6.tar.gz"
312 | file="cookies-3.6.tar.gz"
313 | desc="Some trackers use cookies for the client authentication.\nIt is transparent to user who uses a browser to work with such servers - browser store these cookies and returns them to the server automatically.\nThe user just needs to enter login/password from time to time.\nBut when rTorrent is used to work with such trackers (e.g. adding a torrent via URL) it might be a problem because rTorrent does not understand cookies.\nSo the the information from cookies should be provided for rTorrent separately.\nhttp://code.google.com/p/rutorrent/wiki/PluginCookies"
314 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
315 | DOWNLOAD_PLUGIN
316 | ;;
317 |
318 | 9)
319 | name="Scheduler v3.6"
320 | url="http://dl.bintray.com/novik65/generic/plugins/scheduler-3.6.tar.gz"
321 | file="scheduler-3.6.tar.gz"
322 | desc="http://code.google.com/p/rutorrent/wiki/PluginScheduler"
323 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
324 | DOWNLOAD_PLUGIN
325 | ;;
326 |
327 | 10)
328 | name="Auto Tools Plugin v3.6"
329 | url="http://dl.bintray.com/novik65/generic/plugins/autotools-3.6.tar.gz"
330 | file="autotools-3.6.tar.gz"
331 | desc="The plug-in provides some possibilities on automation. Following functions are realized for now:\nAuto Label automatic creation of labels at addition of new torrent through the web interface.\nAuto Move automatic transferring of torrent data files to other directory on downloading completion.\nAuto Watch automatic adding torrents to rtorrent via nested set of watch directories.\nhttp://code.google.com/p/rutorrent/wiki/PluginAutotools"
332 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
333 | DOWNLOAD_PLUGIN
334 | ;;
335 |
336 | 11)
337 | name="Data Dir Plugin v3.6"
338 | url="http://dl.bintray.com/novik65/generic/plugins/datadir-3.6.tar.gz"
339 | file="datadir-3.6.tar.gz"
340 | desc="The plug-in is intended for replacement of the current torrent data directory on another.\nSuch operation is required, for example, if the torrent data directory has been moved manually.\nIt is also possible to move downloaded torrent's data.\nAfter plug-in installation there will be a new item 'Save to...' in the context menu of the downloading area which shows a dialogue 'Torrent data directory'.\nIn this dialogue you can specify a new path to the torrent data.\nhttp://code.google.com/p/rutorrent/wiki/PluginDataDir"
341 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
342 | DOWNLOAD_PLUGIN
343 | ;;
344 |
345 | 12)
346 | name="Track Lables Plugin v3.6"
347 | url="http://dl.bintray.com/novik65/generic/plugins/tracklabels-3.6.tar.gz"
348 | file="tracklabels-3.6.tar.gz"
349 | desc="The plug-in adds a set of labels on the category panel.\nThese labels are created automatically on the basis of torrents' trackers.\nhttp://code.google.com/p/rutorrent/wiki/PluginTracklabels"
350 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
351 | DOWNLOAD_PLUGIN
352 | ;;
353 |
354 | 13)
355 | name="Geo IP Plugin v3.6"
356 | url="http://dl.bintray.com/novik65/generic/plugins/geoip-3.6.tar.gz"
357 | file="geoip-3.6.tar.gz"
358 | desc="http://code.google.com/p/rutorrent/wiki/PluginGeoIP"
359 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
360 | if DOWNLOAD_PLUGIN ; then
361 | wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
362 | mkdir -v /usr/share/GeoIP
363 | gunzip GeoLiteCity.dat.gz
364 | mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat
365 | rm GeoLiteCity.dat.gz
366 | apt-get -y install php5-geoip
367 | fi
368 | ;;
369 |
370 | 14)
371 | name="Ratio Plugin v3.6"
372 | url="http://dl.bintray.com/novik65/generic/plugins/ratio-3.6.tar.gz"
373 | file="ratio-3.6.tar.gz"
374 | desc="Since version 0.8.5 rTorrent has a capability to set ratio limits for groups of torrents.\nThe plug-in allows to manage it conveniently.\nWhen the plug-in is installed a new section 'Ratio groups' appears in the Settings dialog.\nHere user can define limits of ratio for some (by default - 8) groups.\nAssignation of group to one or several torrents is performed by selecting an appropriate option in the context menu of torrents.\nhttp://code.google.com/p/rutorrent/wiki/PluginRatio"
375 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
376 | DOWNLOAD_PLUGIN
377 | ;;
378 |
379 | 15)
380 | name="Show Peers like wTorrent Plugin v3.6"
381 | url="http://dl.bintray.com/novik65/generic/plugins/show_peers_like_wtorrent-3.6.tar.gz"
382 | file="show_peers_like_wtorrent-3.6.tar.gz"
383 | desc="The plug-in changes the format of values in columns 'Seeds' and 'Peers' in the torrents list.\nhttp://code.google.com/p/rutorrent/wiki/PluginShow_peers_like_wtorrent"
384 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
385 | DOWNLOAD_PLUGIN
386 | ;;
387 |
388 | 16)
389 | name="Seeding Time Plugin v3.6"
390 | url="http://dl.bintray.com/novik65/generic/plugins/seedingtime-3.6.tar.gz"
391 | file="seedingtime-3.6.tar.gz"
392 | desc="The plug-in adds the columns 'Finished' and 'Added' to the torrents list.\nThis columns contains the time when download of the torrent was completed and, accordingly, the time when torrent was added.\nhttp://code.google.com/p/rutorrent/wiki/PluginSeedingtime"
393 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
394 | DOWNLOAD_PLUGIN
395 | ;;
396 |
397 | 17)
398 | name="HTTPRPC Plugin v3.6"
399 | url="http://dl.bintray.com/novik65/generic/plugins/httprpc-3.6.tar.gz"
400 | file="httprpc-3.6.tar.gz"
401 | desc="This plugin is designed as a easy to use replacement for the mod_scgi (or similar) webserver module, with emphasis on extremely low bandwidth use.\nIf you install this plugin, you do not need to use mod_scgi or the RPC Plugin.\nNote: This plugin requires a faster server, and is not recommended for embedded systems, like a router or slow computer.\nhttp://code.google.com/p/rutorrent/wiki/PluginHTTPRPC"
402 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
403 | DOWNLOAD_PLUGIN
404 | ;;
405 |
406 | 18)
407 | name="Diskspace Plugin v3.6"
408 | url="http://dl.bintray.com/novik65/generic/plugins/diskspace-3.6.tar.gz"
409 | file="diskspace-3.6.tar.gz"
410 | desc="This plugin adds an easy to read disk meter to the bottom menu bar.\nhttp://code.google.com/p/rutorrent/wiki/PluginDiskspace"
411 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
412 | DOWNLOAD_PLUGIN
413 | ;;
414 |
415 | 19)
416 | name="Unpack Plugin v3.6"
417 | url="http://dl.bintray.com/novik65/generic/plugins/unpack-3.6.tar.gz"
418 | file="unpack-3.6.tar.gz"
419 | desc="This plugin is designed to manually or automatically unrar/unzip torrent data.\nhttp://code.google.com/p/rutorrent/wiki/PluginUnpack"
420 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
421 | if DOWNLOAD_PLUGIN ; then
422 | apt-get -y install unrar-free
423 | fi
424 | ;;
425 |
426 | 20)
427 | name="Get Dir Plugin v3.6"
428 | url="http://dl.bintray.com/novik65/generic/plugins/_getdir-3.6.tar.gz"
429 | file="_getdir-3.6.tar.gz"
430 | desc="The service plug-in _getdir gives to other plug-ins the possibility of comfortable navigation on a host file system.\nShows only directories to which rtorrent can write and which php can show.\nhttp://code.google.com/p/rutorrent/wiki/Plugin_getdir"
431 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
432 | DOWNLOAD_PLUGIN
433 | ;;
434 |
435 | 21)
436 | name="Source Plugin v3.6"
437 | url="http://dl.bintray.com/novik65/generic/plugins/source-3.6.tar.gz"
438 | file="source-3.6.tar.gz"
439 | desc="This plugin adds a 'Get .torrent' item to the right click context menu.\nAllowing you to download the original .torrent file from the server, to your local machine.\nhttp://code.google.com/p/rutorrent/wiki/PluginSource"
440 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
441 | DOWNLOAD_PLUGIN
442 | ;;
443 |
444 | 22)
445 | name="Chunks Plugin v3.6"
446 | url="http://dl.bintray.com/novik65/generic/plugins/chunks-3.6.tar.gz"
447 | file="chunks-3.6.tar.gz"
448 | desc="This plugin adds a new tab to the tab bar called 'chunks'.\nThe added tab allows you to monitor the download status of each individual torrent 'piece'\nhttp://code.google.com/p/rutorrent/wiki/PluginChunks"
449 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
450 | DOWNLOAD_PLUGIN
451 | ;;
452 |
453 | 23)
454 | name="Data Plugin v3.6"
455 | url="http://dl.bintray.com/novik65/generic/plugins/data-3.6.tar.gz"
456 | file="data-3.6.tar.gz"
457 | desc="This plugin adds the 'Get Data' item to the right click menu.\nThis allows you to download the file in question via http to your local machine.\nOn 32 bit systems, you can not download files larger than 2 GB, this is due to a php limitation\nhttp://code.google.com/p/rutorrent/wiki/PluginData"
458 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
459 | DOWNLOAD_PLUGIN
460 | ;;
461 |
462 | 24)
463 | name="CPU Load Plugin v3.6"
464 | url="http://dl.bintray.com/novik65/generic/plugins/cpuload-3.6.tar.gz"
465 | file="cpuload-3.6.tar.gz"
466 | desc="This plugin adds a CPU Load usage bar to the bottom toolbar.\nhttp://code.google.com/p/rutorrent/wiki/PluginCpuload"
467 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
468 | DOWNLOAD_PLUGIN
469 | ;;
470 |
471 | 25)
472 | name="Extsearch Plugin v3.6"
473 | url="http://dl.bintray.com/novik65/generic/plugins/extsearch-3.6.tar.gz"
474 | file="extsearch-3.6.tar.gz"
475 | desc="This plugin adds the ability to search many popular torrent sites for content without leaving the rutorrent url.\nhttp://code.google.com/p/rutorrent/wiki/PluginExtsearch"
476 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
477 | DOWNLOAD_PLUGIN
478 | ;;
479 |
480 | 26)
481 | name="Theme Plugin v3.6"
482 | url="http://dl.bintray.com/novik65/generic/plugins/theme-3.6.tar.gz"
483 | file="theme-3.6.tar.gz"
484 | desc="This plugin allows you to change the gui theme to one of several provided themes, or any your create,\nprovided they are placed in the proper directory within the plugin.\nhttp://code.google.com/p/rutorrent/wiki/PluginTheme"
485 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
486 | DOWNLOAD_PLUGIN
487 | ;;
488 |
489 | 27)
490 | name="Login Mgr v3.6"
491 | url="http://dl.bintray.com/novik65/generic/plugins/loginmgr-3.6.tar.gz"
492 | file="loginmgr-3.6.tar.gz"
493 | desc="This plugin is used to login to 3rd party torrent sites.\nIt's designed to be used in cased where cookies fail.\nIt is a support plugin used for RSS and ExtSearch.\nNOTE: This plugin saves passwords in plain text.\nhttp://code.google.com/p/rutorrent/wiki/PluginLoginMgr"
494 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
495 | DOWNLOAD_PLUGIN
496 | ;;
497 |
498 | 28)
499 | name="Loot At v3.6"
500 | url="http://dl.bintray.com/novik65/generic/plugins/lookat-3.6.tar.gz"
501 | file="lookat-3.6.tar.gz"
502 | desc="This plugin is intended for looking torrent's name in the external sources."
503 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
504 | DOWNLOAD_PLUGIN
505 | ;;
506 |
507 | 29)
508 | name="NFO Plugin"
509 | url="http://srious.biz/nfo.tar.gz"
510 | file="nfo.tar.gz"
511 | desc="This plugin shows the contents of the .nfo file for a given torrent.\nhttp://code.google.com/p/rutorrent/wiki/PluginNFO"
512 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
513 | DOWNLOAD_PLUGIN
514 | ;;
515 |
516 | 30)
517 | name="Chat Plugin v2.0"
518 | url="http://rutorrent-chat.googlecode.com/files/chat-2.0.tar.gz"
519 | file="chat-2.0.tar.gz"
520 | desc="This plugin adds a chatbox to multi-user rutorrent installs.\nNOTE: Currently this is a single server chat program only (if you have multiple servers, this will NOT allow your users to chat across them).\nhttp://code.google.com/p/rutorrent/wiki/PluginChat"
521 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
522 | DOWNLOAD_PLUGIN
523 | ;;
524 |
525 | 31)
526 | name="Logoff Plugin v1.3"
527 | url="http://rutorrent-logoff.googlecode.com/files/logoff-1.3.tar.gz"
528 | file="logoff-1.3.tar.gz"
529 | desc="This plugin allows you to switch users or logoff on systems which use authentication.\nhttp://code.google.com/p/rutorrent-logoff/"
530 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
531 | DOWNLOAD_PLUGIN
532 | ;;
533 |
534 | 32)
535 | name="Pause Plugin v1.2"
536 | url="http://rutorrent-pausewebui.googlecode.com/files/pausewebui.1.2.zip"
537 | file="pausewebui.1.2.zip"
538 | desc="Plugin to pause the refresh timer, and add a button to manually refresh the page.\nhttp://code.google.com/p/rutorrent/wiki/PluginPause"
539 | unpack="unzip $file -d $TEMP_PLUGIN_DIR"
540 | DOWNLOAD_PLUGIN
541 | ;;
542 |
543 | 33)
544 | name="Instant Search Plugin v1.0"
545 | url="http://rutorrent-instantsearch.googlecode.com/files/instantsearch.1.0.zip"
546 | file="instantsearch.1.0.zip"
547 | desc="This plugin lets you search for local torrents running in rutorrent, updating results as you type them.\nhttp://code.google.com/p/rutorrent/wiki/PluginInstantSearch"
548 | unpack="unzip $file -d $TEMP_PLUGIN_DIR"
549 | DOWNLOAD_PLUGIN
550 | ;;
551 |
552 | 34)
553 | name="File Drop v3.6"
554 | url="http://dl.bintray.com/novik65/generic/plugins/filedrop-3.6.tar.gz"
555 | file="filedrop-3.6.tar.gz"
556 | desc="This plugin allows users to drag multiple torrents from desktop to the browser (FF > 3.6 & Chrome only)."
557 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
558 | DOWNLOAD_PLUGIN
559 | ;;
560 |
561 | 35)
562 | name="Check Port v3.6"
563 | url="http://dl.bintray.com/novik65/generic/plugins/check_port-3.6.tar.gz"
564 | file="check_port-3.6.tar.gz"
565 | desc="This plugin adds an incoming port status indicator to the bottom bar."
566 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
567 | DOWNLOAD_PLUGIN
568 | ;;
569 |
570 | 36)
571 | name="History v3.6"
572 | url="http://dl.bintray.com/novik65/generic/plugins/history-3.6.tar.gz"
573 | file="history-3.6.tar.gz"
574 | desc="This plugin is designed to log a history of torrents."
575 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
576 | DOWNLOAD_PLUGIN
577 | ;;
578 |
579 | 37)
580 | name="iPad Plugin v3.6"
581 | url="http://dl.bintray.com/novik65/generic/plugins/ipad-3.6.tar.gz"
582 | file="ipad-3.6.tar.gz"
583 | desc="This plugin allows ruTorrent to work properly on iPad-like devices."
584 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
585 | DOWNLOAD_PLUGIN
586 | ;;
587 |
588 | 38)
589 | name="Extended Ratio v3.6"
590 | url="http://dl.bintray.com/novik65/generic/plugins/extratio-3.6.tar.gz"
591 | file="extratio-3.6.tar.gz"
592 | desc="This plugin extends the functionality of the ratio plugin."
593 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
594 | DOWNLOAD_PLUGIN
595 | ;;
596 |
597 | 39)
598 | name="Feeds v3.6"
599 | url="http://dl.bintray.com/novik65/generic/plugins/feeds-3.6.tar.gz"
600 | file="feeds-3.6.tar.gz"
601 | desc="This plugin is intended for making RSS feeds with information of torrents. \nhttp://code.google.com/p/rutorrent/wiki/PluginFeeds"
602 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
603 | DOWNLOAD_PLUGIN
604 | ;;
605 |
606 | 40)
607 | name="Media Information v3.6"
608 | url="http://dl.bintray.com/novik65/generic/plugins/mediainfo-3.6.tar.gz"
609 | file="mediainfo-3.6.tar.gz"
610 | desc="This plugin is intended to display media file information."
611 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
612 | if DOWNLOAD_PLUGIN ; then
613 | apt-get -y install libzen0 libmediainfo0 mediainfo
614 | wget http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz
615 | tar -zxvf _task-3.6.tar.gz -C $TEMP_PLUGIN_DIR
616 | rm _task-3.6.tar.gz
617 | fi
618 | ;;
619 |
620 | 41)
621 | name="RSS URL Rewrite v3.6"
622 | url="http://dl.bintray.com/novik65/generic/plugins/rssurlrewrite-3.6.tar.gz"
623 | file="rssurlrewrite-3.6.tar.gz"
624 | desc="This plugin extends the functionality of the RSS plugin. \nhttp://code.google.com/p/rutorrent/wiki/PluginRSSURLRewrite"
625 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
626 | DOWNLOAD_PLUGIN
627 | ;;
628 |
629 | 42)
630 | name="Screenshot v3.6"
631 | url="http://dl.bintray.com/novik65/generic/plugins/screenshots-3.6.tar.gz"
632 | file="screenshots-3.6.tar.gz"
633 | desc="This plugin is intended to show screenshots from video files. Needs the package 'ffmpeg' to work."
634 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
635 | if DOWNLOAD_PLUGIN ; then
636 | apt-get -y install ffmpeg
637 | wget http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz
638 | tar -zxvf _task-3.6.tar.gz -C $TEMP_PLUGIN_DIR
639 | rm _task-3.6.tar.gz
640 | fi
641 | ;;
642 |
643 | 43)
644 | name="RPC v3.6"
645 | url="http://dl.bintray.com/novik65/generic/plugins/rpc-3.6.tar.gz"
646 | file="rpc-3.6.tar.gz"
647 | desc="This plugin is a replacement for the mod_scgi webserver module."
648 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
649 | DOWNLOAD_PLUGIN
650 | ;;
651 |
652 | 44)
653 | name="Rutracker Check v3.6"
654 | url="http://dl.bintray.com/novik65/generic/plugins/rutracker_check-3.6.tar.gz"
655 | file="rutracker_check-3.6.tar.gz"
656 | desc="This plugin checks the rutracker.org tracker for updated/deleted torrents."
657 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
658 | DOWNLOAD_PLUGIN
659 | ;;
660 |
661 | 45)
662 | name="Noty v3.6"
663 | url="http://dl.bintray.com/novik65/generic/plugins/_noty-3.6.tar.gz"
664 | file="_noty-3.6.tar.gz"
665 | desc="This plugin provides the notification functionality for other plugins."
666 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
667 | DOWNLOAD_PLUGIN
668 | ;;
669 |
670 | 46)
671 | name="Task v3.6"
672 | url="http://dl.bintray.com/novik65/generic/plugins/_task-3.6.tar.gz"
673 | file="_task-3.6.tar.gz"
674 | desc="This plugin provides the possibility of running various scripts on the host system."
675 | unpack="tar -zxvf $file -C $TEMP_PLUGIN_DIR"
676 | DOWNLOAD_PLUGIN
677 | ;;
678 |
679 | 47)
680 | name="Plugins v3.6"
681 | url="http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz"
682 | file="plugins-3.6.tar.gz"
683 | desc="This installs about 40+ plugins except plugins number 29 to 33 (NFO, Chat, Logoff, Pause and Instant Search).\nMore info at https://github.com/Novik/ruTorrent/wiki/Plugins \n${RED}REMEBER TO REMOVE HTTPRPC AND RPC PLUGINS FOR LOGIN TO WORK AT FIRST RUN!${NORMAL}"
684 | unpack="tar -zxvf $file -C /tmp/"
685 | if DOWNLOAD_PLUGIN ; then
686 | mv /tmp/plugins/* $TEMP_PLUGIN_DIR
687 | apt-get -y install php5-geoip ffmpeg curl libzen0 libmediainfo0 mediainfo unrar-free
688 | fi
689 | ;;
690 |
691 | 0)
692 | break
693 | ;;
694 |
695 | *)
696 | echo
697 | error="${RED}Not a usable number!${NORMAL}"
698 | echo
699 | ;;
700 | esac
701 | done
702 | }
703 |
704 | # Function for installing dependencies
705 | function APT_DEPENDENCIES {
706 | apt-get update
707 | apt-get -y install openssl git apache2 apache2-utils build-essential libsigc++-2.0-dev \
708 | libcurl4-openssl-dev automake libtool libcppunit-dev libncurses5-dev libapache2-mod-scgi \
709 | php5 php5-curl php5-cli libapache2-mod-php5 screen unzip libssl-dev curl
710 | }
711 |
712 | # Function for setting up xmlrpc, libtorrent and rtorrent
713 | function INSTALL_RTORRENT {
714 | # Use the temp folder for compiling
715 | cd /tmp
716 |
717 | # Download and install xmlrpc-c super-stable
718 | curl -L http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable/1.33.18/xmlrpc-c-1.33.18.tgz/download -o xmlrpc-c.tgz
719 | tar zxvf xmlrpc-c.tgz
720 | mv xmlrpc-c-1.* xmlrpc
721 | cd xmlrpc
722 | ./configure --disable-cplusplus
723 | make
724 | make install
725 |
726 | cd ..
727 | rm -rv xmlrpc*
728 |
729 | mkdir rtorrent
730 | cd rtorrent
731 |
732 | # Download and install libtorrent
733 | curl -L http://rtorrent.net/downloads/libtorrent-0.13.6.tar.gz -o libtorrent.tar.gz
734 | tar -zxvf libtorrent.tar.gz
735 | cd libtorrent-0.13.6
736 | ./autogen.sh
737 | ./configure
738 | make
739 | make install
740 |
741 | cd ..
742 |
743 | # Download and install rtorrent
744 | curl -L http://rtorrent.net/downloads/rtorrent-0.9.6.tar.gz -o rtorrent.tar.gz
745 | tar -zxvf rtorrent.tar.gz
746 | cd rtorrent-0.9.6
747 | ./autogen.sh
748 | ./configure --with-xmlrpc-c
749 | make
750 | make install
751 |
752 | cd ../..
753 | rm -rv rtorrent
754 |
755 | ldconfig
756 |
757 | # Creating session directory
758 | if [ ! -d "$HOMEDIR"/.rtorrent-session ]; then
759 | mkdir "$HOMEDIR"/.rtorrent-session
760 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/.rtorrent-session
761 | else
762 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/.rtorrent-session
763 | fi
764 |
765 | # Creating downloads folder
766 | if [ ! -d "$HOMEDIR"/Downloads ]; then
767 | mkdir "$HOMEDIR"/Downloads
768 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/Downloads
769 | else
770 | chown "$RTORRENT_USER"."$RTORRENT_USER" "$HOMEDIR"/Downloads
771 | fi
772 |
773 | # Downloading rtorrent.rc file.
774 | wget -O $HOMEDIR/.rtorrent.rc https://raw.github.com/Kerwood/rtorrent.auto.install/master/Files/rtorrent.rc
775 | chown "$RTORRENT_USER"."$RTORRENT_USER" $HOMEDIR/.rtorrent.rc
776 | sed -i "s@HOMEDIRHERE@$HOMEDIR@g" $HOMEDIR/.rtorrent.rc
777 | }
778 |
779 | # Function for installing rutorrent and plugins
780 | function INSTALL_RUTORRENT {
781 | # Installing rutorrent.
782 | curl -L http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz -o rutorrent-3.6.tar.gz
783 | tar -zxvf rutorrent-3.6.tar.gz
784 |
785 | if [ -d /var/www/rutorrent ]; then
786 | rm -r /var/www/rutorrent
787 | fi
788 |
789 | # Changeing SCGI mount point in rutorrent config.
790 | sed -i "s/\/RPC2/\/rutorrent\/RPC2/g" ./rutorrent/conf/config.php
791 |
792 | mv -f rutorrent /var/www/
793 | rm -v rutorrent-3.6.tar.gz
794 |
795 | if [ -d "$TEMP_PLUGIN_DIR" ]; then
796 | mv -fv "$TEMP_PLUGIN_DIR"/* /var/www/rutorrent/plugins
797 | fi
798 |
799 | # Changing permissions for rutorrent and plugins.
800 | chown -R www-data.www-data /var/www/rutorrent
801 | chmod -R 775 /var/www/rutorrent
802 | }
803 |
804 | # Function for configuring apache
805 | function CONFIGURE_APACHE {
806 | # Creating symlink for scgi.load
807 | if [ ! -h /etc/apache2/mods-enabled/scgi.load ]; then
808 | ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
809 | fi
810 |
811 | # Check if apache2 has port 80 enabled
812 | if ! grep --quiet "^Listen 80$" /etc/apache2/ports.conf; then
813 | echo "Listen 80" >> /etc/apache2/ports.conf;
814 | fi
815 |
816 | # Adding ServerName localhost to apache2.conf
817 | if ! grep --quiet "^ServerName$" /etc/apache2/apache2.conf; then
818 | echo "ServerName localhost" >> /etc/apache2/apache2.conf;
819 | fi
820 |
821 | # Creating Apache virtual host
822 | if [ ! -f /etc/apache2/sites-available/001-default-rutorrent.conf ]; then
823 |
824 | cat > /etc/apache2/sites-available/001-default-rutorrent.conf << EOF
825 |
826 | #ServerName www.example.com
827 | ServerAdmin webmaster@localhost
828 | DocumentRoot /var/www
829 | ErrorLog ${APACHE_LOG_DIR}/error.log
830 | CustomLog ${APACHE_LOG_DIR}/access.log combined
831 |
832 | CustomLog /var/log/apache2/rutorrent.log vhost_combined
833 | ErrorLog /var/log/apache2/rutorrent_error.log
834 | SCGIMount /rutorrent/RPC2 127.0.0.1:5000
835 |
836 |
837 | AuthName "Tits or GTFO"
838 | AuthType Basic
839 | Require valid-user
840 | AuthUserFile /var/www/rutorrent/.htpasswd
841 |
842 |
843 |
844 |
845 | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
846 | EOF
847 | a2ensite 001-default-rutorrent.conf
848 | a2dissite 000-default
849 | systemctl restart apache2.service
850 | fi
851 |
852 | # Creating .htaccess file
853 | printf "%s\n" "${WEB_USER_ARRAY[@]}" > /var/www/rutorrent/.htpasswd
854 | }
855 |
856 | # Function for setting up the init script.
857 | function SETUP_INIT {
858 | # Downloading and installing rtorrent init script.
859 | wget -O /etc/init.d/rtorrent-init https://raw.github.com/Kerwood/rtorrent.auto.install/master/Files/rtorrent-init
860 | chmod +x /etc/init.d/rtorrent-init
861 | sed -i "s/USERNAMEHERE/$RTORRENT_USER/g" /etc/init.d/rtorrent-init
862 | update-rc.d rtorrent-init defaults
863 | service rtorrent-init start
864 | }
865 |
866 | function INSTALL_COMPLETE {
867 | rm -rf $TEMP_PLUGIN_DIR
868 |
869 | HEADER
870 |
871 | echo "${GREEN}Installation is complete.${NORMAL}"
872 | echo
873 | echo
874 | echo "${RED}Your default Apache2 vhost file has been disabled and replaced with a new one.${NORMAL}"
875 | echo "${RED}If you were using it, combine the default and rutorrent vhost file and enable it again.${NORMAL}"
876 | echo
877 | echo "${PURPLE}Your downloads folder is in ${LBLUE}$HOMEDIR/Downloads${NORMAL}"
878 | echo "${PURPLE}Sessions data is ${LBLUE}$HOMEDIR/.rtorrent-session${NORMAL}"
879 | echo "${PURPLE}rtorrent's configuration file is ${LBLUE}$HOMEDIR/.rtorrent.rc${NORMAL}"
880 | echo
881 | echo "${PURPLE}If you want to change settings for rtorrent, such as download folder, etc.,"
882 | echo "you need to edit the '.rtorrent.rc' file. E.g. 'nano $HOMEDIR/.rtorrent.rc'${NORMAL}"
883 | echo
884 |
885 | # The IPv6 local address, is not very used for now, anyway if needed, just change 'inet' to 'inet6'
886 | lcl=$(ip addr | grep 'inet ' | awk '{print $2}' | cut -d/ -f1 | grep -v "127." | head -n 1)
887 | ext=$(curl -s http://icanhazip.com)
888 |
889 | if [[ ! -z "$lcl" ]] && [[ ! -z "$ext" ]]; then
890 | echo "${LBLUE}LOCAL IP:${NORMAL} http://$lcl/rutorrent"
891 | echo "${LBLUE}EXTERNAL IP:${NORMAL} http://$ext/rutorrent"
892 | echo
893 | echo "Visit rutorrent through the above address."
894 | echo
895 | else
896 | if [[ -z "$lcl" ]]; then
897 | echo "Can't detect the local IP address"
898 | echo "Try visit rutorrent at http://127.0.0.1/rutorrent"
899 | echo
900 | elif [[ -z "$ext" ]]; then
901 | echo "${LBLUE}LOCAL:${NORMAL} http://$lcl/rutorrent"
902 | echo "Visit rutorrent through your local network"
903 | else
904 | echo "Can't detect the IP address"
905 | echo "Try visit rutorrent at http://127.0.0.1/rutorrent"
906 | echo
907 | fi
908 | fi
909 | echo
910 | }
911 |
912 | CHECK_ROOT
913 | LICENSE
914 | APACHE_UTILS
915 | rm -rf $TEMP_PLUGIN_DIR
916 | HEADER
917 | SET_RTORRENT_USER
918 | SET_WEB_USER
919 |
920 | # NOTICE: Change lib, rtorrent, rutorrent versions when update are available
921 | while true; do
922 | HEADER
923 | echo " ${BOLD}rTorrent version:${NORMAL} ${RED}0.9.4${NORMAL}"
924 | echo " ${BOLD}libTorrent version:${NORMAL} ${RED}0.13.4${NORMAL}"
925 | echo " ${BOLD}ruTorrent version:${NORMAL} ${RED}3.6${NORMAL}"
926 | echo
927 | echo " ${BOLD}rTorrent user:${NORMAL}${GREEN} $RTORRENT_USER${NORMAL}"
928 | echo
929 | echo -n " ${BOLD}ruTorrent user(s):${NORMAL}${GREEN}"
930 | LIST_WEB_USERS
931 | echo
932 | echo
933 | echo " ${NORMAL}${BOLD}ruTorrent plugins:${NORMAL}${GREEN}"
934 | LIST_PLUGINS
935 | echo
936 | echo " ${NORMAL}[1] - Change rTorrent user"
937 | echo " [2] - Add another ruTorrent user"
938 | echo " [3] - Download plugins"
939 | echo
940 | echo " [0] - Start installation"
941 | echo " [q] - Quit"
942 | echo
943 | echo -n "${GREEN}>>${NORMAL} "
944 | read case
945 |
946 | case "$case" in
947 | 1)
948 | SET_RTORRENT_USER
949 | ;;
950 | 2)
951 | SET_WEB_USER
952 | ;;
953 | 3)
954 | SELECT_PLUGINS
955 | ;;
956 | 0)
957 | APT_DEPENDENCIES
958 | INSTALL_RTORRENT
959 | INSTALL_RUTORRENT
960 | CONFIGURE_APACHE
961 | SETUP_INIT
962 | INSTALL_COMPLETE
963 | break
964 | ;;
965 | q)
966 | break
967 | ;;
968 | esac
969 | done
970 |
--------------------------------------------------------------------------------