Skip to content

Instantly share code, notes, and snippets.

@Blacksly
Last active September 28, 2016 21:28
Show Gist options
  • Save Blacksly/312900e93772363dea63 to your computer and use it in GitHub Desktop.
Save Blacksly/312900e93772363dea63 to your computer and use it in GitHub Desktop.
script install
#!/bin/bash
#install
apt-get install aptitude
aptitude -y install nginx vim rtorrent php5 php5-fpm
#config bash et vim
cd /root
rm .bashrc
cd /home/blacksly
rm .bashrc
wget https://gist.githubusercontent.com/Blacksly/dd2e19976a65261d615e/raw/415aee8f19505a62ba82c61e8a0c48c0e397b2f5/gistfile1.txt
mv gistfile1.txt .bashrc
cp .bashrc /root/.bashrc
wget https://gist.githubusercontent.com/Blacksly/8151ba80adc30f916e53/raw/255170941a3648892c7a36fe66b43eb8b9096516/gistfile1.txt
mv gistfile1.txt .vimrc
cp .bashrc /root/.vimrc
. .bashrc
cd /root
. .bashrc
#config nginx
cd /etc/nginx/site-available
wget https://gist.githubusercontent.com/Blacksly/205f5bbc196db22ce7b9/raw/6ac873ce4e21acb6f8ea9002c4b27158800bb21c/gistfile1.txt
mv gistfile1.txt blacksly.fr
cd ../site-enable
ln -s ../site-available/blacksly.fr .
service nginx restart
#config rtorrent
cd /home/blacksly
wget https://gist.githubusercontent.com/Blacksly/a91d4a69960333c6c0b3/raw/84d77cce16bd9721bb0e2b0302143b729793ec46/.rtorrent.rc
cd /etc/init.d
wget https://gist.githubusercontent.com/Blacksly/73fc9c6488b993e6c5ca/raw/579548ee22d2ec4b8a1356d99480b0cf5c44b3a5/rtorrent-daemon.sh
sudo chmod +x /etc/init.d/rtorrent-daemon.sh
#config rutorrent
cd /var
mkdir www
cd /www
wget http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz
tar xvzf rutorrent-3.6.tar.gz
rm rutorrent-3.6.tar.gz
#droit
cd /root
mkdir torrent
cd torrent
mkdir session
chmod -R 777 /root/torrent
chown -R www-data:www-data /var/www
echo test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment