-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernel.sh
More file actions
executable file
·66 lines (53 loc) · 1.89 KB
/
kernel.sh
File metadata and controls
executable file
·66 lines (53 loc) · 1.89 KB
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
#!/bin/bash
#Script a executer en Root
function replace
{
if [ -f $2 ] #Si le fichier $2 existe
then
rm -R $2
fi
mv $1 $2
}
#Les depots
file="/sources/sources.list"
path="/etc/apt/sources.list"
replace $install$file $path
#On ajoute GnuPG key des Depots
##//deb.torproject.org
apt-get deb.torproject.org-keyring
apt-key adv --recv-keys --keyserver keys.gnupg.net 74A941BA219EC810
##//www.deb-multimedia.org
apt-get install debian-multimedia-keyring
apt-key adv --recv-keys --keyserver keys.gnupg.net 07DC563D1F41B907
##//download.virtualbox.org
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -
apt-get update
apt-get upgrade
echo "=============== Depots a jour et complet ==============="
sleep 2
#Fichiers a telecharger & installer
cd /
wget https://github.com/JonathanDekhtiar/ServerInstallScript/raw/master/Files/backup.zip
unzip backup.zip
install="/backup"
cd $install
echo "=============== Fichier backup recupere ==============="
sleep 2
#On met a jour le noyaux:
apt-get install linux-image-3.2.0-4-amd64
grub-mkconfig > /boot/grub/grub.cfg
echo "=============== Kernel Linux mis a jour ==============="
sleep 2
#Config Grub pour booter sur le bon noyau => Dossier grub
file="/grub/grub"
path="/etc/default/grub"
replace $install$file $path
update-grub
echo "=============== Grub mis a jour ==============="
sleep 2
#On installe tous les paquets necessaire
apt-get install git nano zip make gcc bzip2 lshell sudo vim-nox proftpd-basic build-essential linux-libc-dev nginx mysql-server mysql-client php-codesniffer php-doc php5-imap php5-mcrypt php5-pgsql php5-sqlite php5-imagick php5-tidy phpmyadmin php5-dev php5-common php5-mysql php5-fpm php-apc php5-gd php5-curl php5-memcache memcached
echo
echo "=============== Tous les packets ont ete installes ==============="
echo
sleep 2