Advertisement
Guest User

rtorrent install

a guest
Jul 24th, 2013
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. #!/bin/bash
  2. clear
  3.  
  4. # Ajoute des depots non-free
  5. echo "deb http://ftp2.fr.debian.org/debian/ squeeze main non-free
  6. deb-src http://ftp2.fr.debian.org/debian/ squeeze main non-free" >> /etc/apt/sources.list
  7.  
  8. # Update depots
  9. apt-get update
  10.  
  11. # Installation des paquets vitaux
  12. 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
  13. # Telechargement des fichier instalation xmlrpc libtorrent rtorrent Plowshare 4
  14. cd ~
  15. mkdir source
  16. cd source
  17. svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc
  18. curl http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz | tar xz
  19. curl http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz | tar xz
  20. git clone https://code.google.com/p/plowshare/ plowshare4
  21.  
  22. # Instalation de Plowshare 4
  23. cd plowshare4
  24. make install
  25.  
  26. # instalation de xmlrpc
  27. cd /root/source/xmlrpc
  28. ./configure --prefix=/usr --enable-libxml2-backend --disable-libwww-client --disable-wininet-client --disable-abyss-server --disable-cgi-server
  29. make
  30. make install
  31.  
  32. # instalation de libtorrent
  33. cd /root/source/libtorrent-0.13.3
  34. ./autogen.sh
  35. ./configure --prefix=/usr
  36. make -j2
  37. make install
  38.  
  39. # instalation de rtorrent
  40. cd /root/source/rtorrent-0.9.3
  41. ./autogen.sh
  42. ./configure --prefix=/usr --with-xmlrpc-c
  43. make -j2
  44. make install
  45.  
  46. rm -rf /root/source/
  47.  
  48. ldconfig
  49.  
  50. # Installation de Rutorrent
  51.  
  52. cd /tmp
  53. svn checkout http://rutorrent.googlecode.com/svn/trunk/rutorrent
  54. svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins
  55. rm -r rutorrent/plugins
  56. mv plugins rutorrent/
  57. mv rutorrent /var/www/
  58. cd /var/www/rutorrent/plugins
  59. svn co http://svn.rutorrent.org/svn/filemanager/trunk/filemanager
  60. svn co http://svn.rutorrent.org/svn/filemanager/trunk/fileupload
  61. chmod 775 fileupload/scripts/upload
  62.  
  63.  
  64.  
  65. # Permission
  66. cd /var/www
  67. chown -R www-data:www-data rutorrent
  68. chmod -R 755 rutorrent
  69.  
  70. # Creation des dossier
  71. mkdir /home/darky/downloads
  72. mkdir /home/darky/downloads/complete
  73. mkdir /home/darky/downloads/watch
  74. mkdir /home/darky/downloads/.session
  75. chown -R darky:darky /home/darky/downloads/
  76.  
  77. # SSL configuration
  78. a2enmod ssl
  79. a2enmod auth_digest
  80.  
  81. cd /etc/apache2/
  82. cp apache2.conf apache2.conf.bak
  83. sed -i 's/^Timeout 300$/Timeout 30\n ServerTokens Prod/' apache2.conf
  84.  
  85. openssl req -new -x509 -days 365 -nodes -newkey rsa:2048 -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
  86. chmod 600 /etc/apache2/apache.pem
  87.  
  88. htdigest -c /etc/apache2/htpasswd rutorrent darky
  89.  
  90. cd /etc/apache2/
  91. mv ports.conf ports.conf.bak
  92. echo "# If you just change the port or add more ports here, you will likely also
  93. # have to change the VirtualHost statement in
  94. # /etc/apache2/sites-enabled/000-default
  95. # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
  96. # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
  97. # README.Debian.gz
  98.  
  99. NameVirtualHost *:80
  100. Listen 80
  101.  
  102. <IfModule mod_ssl.c>
  103. # If you add NameVirtualHost *:443 here, you will also have to change
  104. # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
  105. # to <VirtualHost *:443>
  106. # Server Name Indication for SSL named virtual hosts is currently not
  107. # supported by MSIE on Windows XP.
  108. NameVirtualHost *:443
  109. Listen 443
  110. </IfModule>
  111.  
  112. <IfModule mod_gnutls.c>
  113. Listen 443
  114. </IfModule>" >> /etc/apache2/ports.conf
  115.  
  116. /etc/init.d/apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement