Advertisement
Guest User

rutorrent install local

a guest
Apr 28th, 2012
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.95 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. apt-get update
  5. apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev
  6. apt-get install apache2 php5 php5-cli php5-curl
  7.  
  8. #Enable scgi for Apache:
  9. apt-get install libapache2-mod-scgi
  10. ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
  11.  
  12. echo "Install XMLRPC:"
  13. mkdir /install;cd /install
  14. svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
  15. cd xmlrpc-c
  16. ./configure --disable-cplusplus
  17. make
  18. make install
  19.  
  20. echo "Intall libtorrent:"
  21. cd /install
  22. wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.2.tar.gz
  23. tar xvf libtorrent-0.13.2.tar.gz
  24. cd libtorrent-0.13.2
  25. ./autogen.sh
  26. ./configure
  27. make
  28. make install
  29.  
  30. Install rTorrent:
  31. cd /install
  32. wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.2.tar.gz
  33. tar xvf rtorrent-0.9.2.tar.gz
  34. cd rtorrent-0.9.2
  35. ./autogen.sh
  36. ./configure --with-xmlrpc-c
  37. make
  38. make install
  39. ldconfig
  40.  
  41.  
  42. echo "Create required directories:"
  43. mkdir /home/teszt/rtorrent
  44. mkdir /home/teszt/rtorrent/.session
  45. mkdir /home/teszt/rtorrent/watch
  46. mkdir /home/teszt/rtorrent/download
  47.  
  48. echo "Setup .rtorrent.rc file (rTorrent config):"
  49. cd ~/
  50. wget http://vps6.net/src/.rtorrent.rc
  51. cp .rtorrent.rc /home/teszt/
  52.  
  53.  
  54.  
  55. echo "Install ruTorrent:"
  56. cd /install
  57. wget http://rutorrent.googlecode.com/files/rutorrent-3.4.tar.gz
  58. tar xvf rutorrent-3.4.tar.gz
  59. mv rutorrent /var/www
  60. wget http://rutorrent.googlecode.com/files/plugins-3.4.tar.gz
  61. tar xvf plugins-3.4.tar.gz
  62. mv plugins /var/www/rutorrent
  63. # rm -rf /var/www/rutorrent/plugins/darkpal
  64. chown -R www-data:www-data /var/www/rutorrent
  65. a2enmod ssl
  66. a2enmod auth_digest
  67. a2enmod scgi
  68. /etc/init.d/apache2 reload
  69. apt-get install ffmpeg
  70. apt-get install screen
  71. add-apt-repository ppa:shiki/mediainfo
  72. apt-get update
  73. apt-get install libmediainfo
  74. apt-get install libzen
  75. apt-get install mediainfo
  76.  
  77.  
  78. screen -fa -d -m rtorrent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement