From cf9004715046641edf55b8895ad222208856fe17 Mon Sep 17 00:00:00 2001 From: Nourdine Gernelle Date: Sun, 11 Sep 2022 23:36:26 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'scripts/install'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install | 65 +++++++++++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 27 deletions(-) diff --git a/scripts/install b/scripts/install index 7de765d..ac133ef 100755 --- a/scripts/install +++ b/scripts/install @@ -16,31 +16,28 @@ if [[ ! $? -eq 0 ]]; then fi # Install sources -if [ "$debian_version" = "jessie" ]; then - cd /tmp - wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2015.6.1_all.deb - sudo dpkg -i deb-multimedia-keyring_2015.6.1_all.deb - +if [ "$debian_version" = "bullseye" ]; then if [ -f /etc/apt/sources.list.d/rutorrent.list ]; then sudo rm /etc/apt/sources.list.d/rutorrent.list fi - echo 'deb http://ftp2.fr.debian.org/debian/ jessie main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list - echo 'deb-src http://ftp2.fr.debian.org/debian/ jessie main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list - echo 'deb ftp://ftp.deb-multimedia.org jessie main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list + echo 'deb http://ftp2.fr.debian.org/debian/ bullseye main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list + echo 'deb-src http://ftp2.fr.debian.org/debian/ bullseye main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list + echo 'deb http://www.deb-multimedia.org bullseye main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list else - echo 'deb http://ftp2.fr.debian.org/debian/ wheezy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list - echo 'deb-src http://ftp2.fr.debian.org/debian/ wheezy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list + echo 'deb http://ftp2.fr.debian.org/debian/ jessy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list + echo 'deb-src http://ftp2.fr.debian.org/debian/ jessy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list fi # Install de dependencies sudo apt-get update -sudo apt-get install -y htop automake libcppunit-dev libtool build-essential pkg-config libssl-dev libcurl4-openssl-dev libsigc++-2.0-dev libncurses5-dev screen subversion apache2-utils php5-cli php5-geoip unzip unrar rar zip ffmpeg buildtorrent mediainfo +apt install -y --allow-unauthenticated deb-multimedia-keyring +sudo apt-get install -y apt-transport-https gnupg2 apache2-utils automake htop build-essential curl ffmpeg gawk git libcppunit-dev libcurl4-openssl-dev libncurses5-dev libsigc++-2.0-dev libsox-fmt-all libsox-fmt-mp3 libssl-dev libtinyxml2-8 libltdl-dev libtool mediainfo mktorrent net-tools nginx php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-json php7.4-mbstring php7.4-opcache php7.4-readline php7.4-xml php7.4-bcmath php-geoip pkg-config psmisc python3-venv python3-pip python-is-python2 rar screen subversion unrar unzip sox vim zip zlib1g-dev # Build xmlrpc cd /tmp -sudo svn checkout http://svn.code.sf.net/p/xmlrpc-c/code/stable xmlrpc-c -cd xmlrpc-c/ +git clone https://github.com/mirror/xmlrpc-c.git +cd xmlrpc-c/stable/ sudo ./configure sudo make sudo make install @@ -49,9 +46,9 @@ sudo make install cd /tmp sudo git clone https://github.com/rakshasa/libtorrent.git cd libtorrent -sudo git checkout 0.13.6 +sudo git checkout 0.13.8 sudo ./autogen.sh -sudo ./configure +sudo ./configure --disable-debug sudo make sudo make install @@ -59,9 +56,9 @@ sudo make install cd /tmp sudo git clone https://github.com/rakshasa/rtorrent.git cd rtorrent -sudo git checkout 0.9.6 +sudo git checkout 0.9.8 sudo ./autogen.sh -sudo ./configure --with-xmlrpc-c +sudo ./configure --with-xmlrpc-c --with-ncurses --disable-debug sudo make sudo make install @@ -71,23 +68,37 @@ sudo ldconfig sudo git clone https://github.com/Novik/ruTorrent.git /var/www/rutorrent # Install rutorrent plugins + +sudo pip3 install cloudscraper + cd /var/www/rutorrent/plugins/ +sudo git clone https://github.com/Micdu70/rutorrent-ratiocolor.git ratiocolor -sudo git clone https://github.com/xombiemp/rutorrentMobile.git mobile -sudo svn checkout http://svn.rutorrent.org/svn/filemanager/trunk/filemanager +cd /var/www/rutorrent/plugins/ +wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rutorrent-logoff/logoff-1.3.tar.gz +tar xzfv logoff-1.3.tar.gz +rm logoff-1.3.tar.gz + +cd /var/www/rutorrent/plugins/ +git clone https://github.com/Micdu70/geoip2-rutorrent.git geoip2 + +cd /var/www/rutorrent/plugins/ +wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rutorrent-pausewebui/pausewebui.1.2.zip +unzip pausewebui.1.2.zip +rm -R __MACOSX pausewebui.1.2.zip + +cd /tmp +git clone https://github.com/Micdu70/rutorrent-thirdparty-plugins.git +cd rutorrent-thirdparty-plugins +mv filemanager /var/www/rutorrent/plugins/filemanager + +chown -R www-data:www-data /var/www/rutorrent + # Configure plugins cd $current_dir -sudo rm /var/www/rutorrent/plugins/create/conf.php -sudo cp ../sources/plugins/create/conf.php /var/www/rutorrent/plugins/create/conf.php - -sudo rm /var/www/rutorrent/plugins/filemanager/conf.php -sudo cp ../sources/plugins/filemanager/conf.php /var/www/rutorrent/plugins/filemanager/conf.php - -sudo rm /var/www/rutorrent/plugins/mobile/init.js -sudo cp ../sources/plugins/mobile/init.js /var/www/rutorrent/plugins/mobile/init.js # Configure nginx sudo sed -i "s@PATHTOCHANGE@$path@g" ../sources/nginx/rutorrent.conf