Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- apt-get update
- apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev
- apt-get install apache2 php5 php5-cli php5-curl
- #Enable scgi for Apache:
- apt-get install libapache2-mod-scgi
- ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
- echo "Install XMLRPC:"
- mkdir /install;cd /install
- svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
- cd xmlrpc-c
- ./configure --disable-cplusplus
- make
- make install
- echo "Intall libtorrent:"
- cd /install
- wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.2.tar.gz
- tar xvf libtorrent-0.13.2.tar.gz
- cd libtorrent-0.13.2
- ./autogen.sh
- ./configure
- make
- make install
- Install rTorrent:
- cd /install
- wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.2.tar.gz
- tar xvf rtorrent-0.9.2.tar.gz
- cd rtorrent-0.9.2
- ./autogen.sh
- ./configure --with-xmlrpc-c
- make
- make install
- ldconfig
- echo "Create required directories:"
- mkdir /home/teszt/rtorrent
- mkdir /home/teszt/rtorrent/.session
- mkdir /home/teszt/rtorrent/watch
- mkdir /home/teszt/rtorrent/download
- echo "Setup .rtorrent.rc file (rTorrent config):"
- cd ~/
- wget http://vps6.net/src/.rtorrent.rc
- cp .rtorrent.rc /home/teszt/
- echo "Install ruTorrent:"
- cd /install
- wget http://rutorrent.googlecode.com/files/rutorrent-3.4.tar.gz
- tar xvf rutorrent-3.4.tar.gz
- mv rutorrent /var/www
- wget http://rutorrent.googlecode.com/files/plugins-3.4.tar.gz
- tar xvf plugins-3.4.tar.gz
- mv plugins /var/www/rutorrent
- # rm -rf /var/www/rutorrent/plugins/darkpal
- chown -R www-data:www-data /var/www/rutorrent
- a2enmod ssl
- a2enmod auth_digest
- a2enmod scgi
- /etc/init.d/apache2 reload
- apt-get install ffmpeg
- apt-get install screen
- add-apt-repository ppa:shiki/mediainfo
- apt-get update
- apt-get install libmediainfo
- apt-get install libzen
- apt-get install mediainfo
- screen -fa -d -m rtorrent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement