1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
| #!/bin/bash
# On crée les Group pour le Serveur FTP
groupadd proftpd &&
useradd -d /srv/ftp -g proftpd -s /usr/bin/proftpdshell proftpd &&
install -v -d -m775 -o proftpd -g proftpd /srv/ftp &&
ln -v -s /bin/false /usr/bin/proftpdshell &&
echo /usr/bin/proftpdshell >> /etc/shells
# On télécharge le programme Proftp
cd /usr/src &&
wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2.tar.bz2 &&
tar xjf proftpd-1.3.2.tar.bz2 &&
rm -f proftpd-1.3.2.tar.bz2&&
#On Compil
cd /usr/src/proftpd-1.3.1 &&
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run &&
make
#On install ProDFTPD
make install&&
cd /usr/src &&
rm -Rf proftpd-1.3.2&&
#On redemmmare le Serveur FTP
proftpd&&
#
echo proftpd >> /etc/rc.d/rc.local&&
cd /home/ && mkdir gamefiles &&
cd /home/gamefiles && mkdir cs && cd cs&&
cd /home/gamefiles && mkdir czero && cd czero&&
cd /home/gamefiles && mkdir css && cd css&&
cd /home/gamefiles && mkdir dod && cd dod&&
cd /home/gamefiles && mkdir dods && cd dods&&
cd /home/gamefiles && mkdir hltv && cd hltv&&
cd /home/gamefiles && mkdir tf2 && cd tf2&&
cd /home/gamefiles/cs &&
wget http://www.monsite.com/resources/steam.tar.gz &&
tar zxvf steam.tar.gz &&
rm -f steam.tar.gz &&
chmod +x steam&&
cd /home/gamefiles/czero &&
wget http://www.monsite.com/resources/steam.tar.gz &&
tar zxvf steam.tar.gz &&
rm -f steam.tar.gz &&
chmod +x steam&&
cd /home/gamefiles/css &&
wget http://www.monsite.com/resources/steam.tar.gz &&
tar zxvf steam.tar.gz &&
rm -f steam.tar.gz &&
chmod +x steam&&
cd /home/gamefiles/dod &&
wget http://www.monsite.com/resources/steam.tar.gz &&
tar zxvf steam.tar.gz &&
rm -f steam.tar.gz &&
chmod +x steam&&
cd /home/gamefiles/dods &&
wget http://www.monsite.com/resources/steam.tar.gz &&
tar zxvf steam.tar.gz &&
rm -f steam.tar.gz &&
chmod +x steam&&
cd /home/gamefiles/hltv &&
wget http://www.monsite.com/resources/steam.tar.gz &&
tar zxvf steam.tar.gz &&
rm -f steam.tar.gz &&
chmod +x steam&&
cd /home/gamefiles/tf2 &&
wget http://www.monsite.com/resources/steam.tar.gz &&
tar zxvf steam.tar.gz &&
rm -f steam.tar.gz &&
chmod +x steam&&
cd /home/
cd /home/gamefiles/cs &&
./steam -command update -game cstrike -dir . -verify_all&&
cd /home/gamefiles/czero &&
./steam -command update -game czero -dir . -verify_all&&
cd /home/gamefiles/css &&
./steam -command update -game "counter-strike source" -dir . -verify_all&&
cd /home/gamefiles/dod &&
./steam -command update -game dod -dir . -verify_all&&
cd /home/gamefiles/dods &&
./steam -command update -game dods -dir . -verify_all&&
cd /home/gamefiles/hltv &&
./steam -command update -game valve -dir . -verify_all&&
cd /home/gamefiles/tf2 &&
./steam -command update -game tf -dir . -verify_all&& |