Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- # Ajoute des depots non-free
- echo "deb http://ftp2.fr.debian.org/debian/ squeeze main non-free
- deb-src http://ftp2.fr.debian.org/debian/ squeeze main non-free" >> /etc/apt/sources.list
- # Update depots
- apt-get update
- # Installation des paquets vitaux
- apt-get install -y apache2 apache2-utils autoconf build-essential ca-certificates comerr-dev libapache2-mod-php5 libcloog-ppl-dev libcppunit-dev libcurl3 libcurl4-openssl-dev libncurses5-dev ncurses-base ncurses-term libterm-readline-gnu-perl libsigc++-2.0-dev libssl-dev libtool libxml2-dev ntp openssl patch libperl-dev php5 php5-cli php5-dev php5-fpm php5-curl php5-geoip php5-mcrypt php5-xmlrpc pkg-config python-scgi dtach ssl-cert subversion unrar zlib1g-dev pkg-config unzip htop irssi curl cfv rar zip ffmpeg mediainfo git
- # Telechargement des fichier instalation xmlrpc libtorrent rtorrent Plowshare 4
- cd ~
- mkdir source
- cd source
- svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc
- curl http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz | tar xz
- curl http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz | tar xz
- git clone https://code.google.com/p/plowshare/ plowshare4
- # Instalation de Plowshare 4
- cd plowshare4
- make install
- # instalation de xmlrpc
- cd /root/source/xmlrpc
- ./configure --prefix=/usr --enable-libxml2-backend --disable-libwww-client --disable-wininet-client --disable-abyss-server --disable-cgi-server
- make
- make install
- # instalation de libtorrent
- cd /root/source/libtorrent-0.13.3
- ./autogen.sh
- ./configure --prefix=/usr
- make -j2
- make install
- # instalation de rtorrent
- cd /root/source/rtorrent-0.9.3
- ./autogen.sh
- ./configure --prefix=/usr --with-xmlrpc-c
- make -j2
- make install
- rm -rf /root/source/
- ldconfig
- # Installation de Rutorrent
- cd /tmp
- svn checkout http://rutorrent.googlecode.com/svn/trunk/rutorrent
- svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins
- rm -r rutorrent/plugins
- mv plugins rutorrent/
- mv rutorrent /var/www/
- cd /var/www/rutorrent/plugins
- svn co http://svn.rutorrent.org/svn/filemanager/trunk/filemanager
- svn co http://svn.rutorrent.org/svn/filemanager/trunk/fileupload
- chmod 775 fileupload/scripts/upload
- # Permission
- cd /var/www
- chown -R www-data:www-data rutorrent
- chmod -R 755 rutorrent
- # Creation des dossier
- mkdir /home/darky/downloads
- mkdir /home/darky/downloads/complete
- mkdir /home/darky/downloads/watch
- mkdir /home/darky/downloads/.session
- chown -R darky:darky /home/darky/downloads/
- # SSL configuration
- a2enmod ssl
- a2enmod auth_digest
- cd /etc/apache2/
- cp apache2.conf apache2.conf.bak
- sed -i 's/^Timeout 300$/Timeout 30\n ServerTokens Prod/' apache2.conf
- openssl req -new -x509 -days 365 -nodes -newkey rsa:2048 -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
- chmod 600 /etc/apache2/apache.pem
- htdigest -c /etc/apache2/htpasswd rutorrent darky
- cd /etc/apache2/
- mv ports.conf ports.conf.bak
- echo "# If you just change the port or add more ports here, you will likely also
- # have to change the VirtualHost statement in
- # /etc/apache2/sites-enabled/000-default
- # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
- # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
- # README.Debian.gz
- NameVirtualHost *:80
- Listen 80
- <IfModule mod_ssl.c>
- # If you add NameVirtualHost *:443 here, you will also have to change
- # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
- # to <VirtualHost *:443>
- # Server Name Indication for SSL named virtual hosts is currently not
- # supported by MSIE on Windows XP.
- NameVirtualHost *:443
- Listen 443
- </IfModule>
- <IfModule mod_gnutls.c>
- Listen 443
- </IfModule>" >> /etc/apache2/ports.conf
- /etc/init.d/apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement