-
+
- // More info https://github.com/hakimel/reveal.js#configuration
- Reveal.initialize({
- controls: true,
- progress: true,
- history: true,
- center: true,
+
-
+
-
diff --git a/reveal/linux_install.html b/reveal/linux_install.html
index 530cdf6..dd2a267 100644
--- a/reveal/linux_install.html
+++ b/reveal/linux_install.html
@@ -1,204 +1,259 @@
-
-
+
-
-
+
+
-
-Formation Evolix
-installation Linux
-
+
+ Formation Evolix
+ installation Linux
+
-
-Méthode d'installation
-par CD/ROM ou clé USB (machine physique ou virtuelle)
-par le réseau, via boot PXE+DHCP+TFTP
-Image préinstallée par un hébergeur
-Conteneur minimal (LXC/Docker)
-
+
+ Méthode d'installation
+
+ - CD/ROM ou clé USB (machine physique ou virtuelle)
+ - Réseau, via boot PXE+DHCP+TFTP
+ - Image préinstallée par un hébergeur
+ - Conteneur minimal (LXC/Docker)
+
+
-
-Compatibilité du matériel
-enjeu principal : carte réseau et controleur disque/RAID
-test avec Live-CD
-Compatibilité du matériel
-lspci -n sur http://kmuto.jp/debian/hcl/ plus à jour :(
-Listes de diffusion
-Recherche Google avec “site:lists.debian.org/debian-boot”
-
+
+ Compatibilité du matériel
+
+ - Enjeu principal : carte réseau et controleur disque/RAID
+ - Test avec Live-CD
+ - Compatibilité du matériel
+ - lspci -n sur http://kmuto.jp/debian/hcl/ plus à jour :(
+ - Listes de diffusion
+ - Recherche Google avec "site:lists.debian.org/debian-boot"
+
+
-
-Choix pour un serveur
-carte réseau : 1G ou 10G ?
-CPU Intel Xeon : fréquence ? nombre de cores ? https://www.cpubenchmark.net/
-Quantité de mémoire
-Importance du stockage :
-local ou distant (NFS, iSCSI)
-Type : SATA, SAS, SSD ?
-Performance lecture/écriture : Mo/s, IOPS
-Gestion du cache
-
+
+ Choix pour un serveur
+
+ - Carte réseau : 1G ou 10G ?
+ - CPU Intel Xeon : fréquence ? nombre de cores ? https://www.cpubenchmark.net/
+ - Quantité de mémoire
+ - Importance du stockage :
+ - Local ou distant (NFS, iSCSI)
+ - Type : SATA, SAS, SSD ?
+ - Performance lecture/écriture : Mo/s, IOPS
+ - Gestion du cache
+
+
-
-Focus sur le RAID
-RAID0
-RAID1
-RAID5
-RAID6
-RAID10
-RAID hardware ou logiciel
-
+
+ Focus sur le RAID
+
+ - RAID0
+ - RAID1
+ - RAID5
+ - RAID6
+ - RAID10
+ - RAID hardware ou logiciel
+
+
-
-Focus sur le stockage
-parted
+
+ Focus sur le stockage
parted
+
-
+
+ Partitionnement
+
+ - Partitionnement DOS limité à 2,2 T
+ - Partitionnement GPT
+ - Outils : fdisk, cfdisk, sfdisk, parted
+ - /boot / /var /usr /tmp 2xswap /srv /home
+ - systèmes de fichiers : ext3/ext4, reiserfs, xfs, btrfs
+
+
-
-Partitionnement
-Partitionnement DOS limité à 2,2 T
-Partitionnement GPT
-Outils : fdisk, cfdisk, sfdisk, parted
-/boot / /var /usr /tmp 2xswap /srv /home
-systèmes de fichiers : ext3/ext4, reiserfs, xfs, btrfs
-
+
+ Focus sur RAID logiciel
+
-
-Focus sur RAID logiciel
-
+
-
+
+ Réseau
+
+ - Fichiers de paramètres :
Fichiers spécifiques /etc/resolv.conf, /etc/hosts
+
+ - Configuration dynamique DHCP (Dynamic Host Configuration Protocol) :
Paramètres réseau sont automatiquement mis en place.
+
+ - Configuration statique :
Configuration manuelle des fichiers
+
+ - Outils réseaux :
(ifconfig, ping, route, ip, netstat, traceroute...)
+
+
+
-
-Réseau
- Fichiers de paramètres :
- Fichiers spécifiques /etc/resolv.conf, /etc/hosts
+
+ Installation de logiciels
+
+ - Méthode classique de compilation des sources
+ - Utilisation du système de packages
+
+
+ Les packages sont des binaires précompilés qui sont prêts à être installés de façon simple et rapide.
Les dépendances sont gérées, ainsi que la mise à jour et la suppression des packages déjà installés (varie selon les distributions).
+
+
- Configuration dynamique DHCP
- (Dynamic Host Configuration Protocol)
- Paramètres réseau sont automatiquement mis en place.
+
+ TP
+ Installation Debian GNU/Linux
+
- Configuration statique
- Configuration manuelle des fichiers
+
+ Versions actuelles
+
+ - Debian GNU/Linux « Sid » = unstable
+ - Debian GNU/Linux 10 (« Buster ») = testing
+ - Debian GNU/Linux 9 (« Stretch ») = stable
+ - Debian GNU/Linux 8 (« Jessie ») = oldstable
+ - Debian GNU/Linux 7 (« Wheezy ») = oldoldstable
+
+
- Outils réseaux
- (ifconfig, ping, route, ip, netstat, traceroute...)
-
+
+ Versions (suite)
+
+ - Debian GNU/Linux 6 (« Squeeze »)
+ - Debian GNU/Linux 5 (« Lenny »)
+ - Debian GNU/Linux 4 (« Etch »)
+ - Debian GNU/Linux 3.1 (« Sarge »)
+ - Debian GNU/Linux 3.0 (« Woody »)
+ - Debian GNU/Linux 2.2 (« Potato »)
+ - Debian GNU/Linux 2.1 (« Slink »)
+ - Debian GNU/Linux 2.0 (« Hamm »)
+ - Debian GNU/Linux 1.1 (« Buzz »)
+
+
+
+
+
+ - Boot sur CD/DVD ou USB
+ - Choix de la langue : anglais (en_US.UTF8)
+ - Réglage du clavier
+ - Réseau
+ - Partitionnement
+ - Choix des miroirs
+ - Mot de passe
+ - Choix de packages
+ - Installation GRUB
+
+
-
-Installation de logiciels
-- Méthode classique de compilation des sources.
-- Utilisation du système de packages
+
+ console de debug à l'installation
+
+
+# lspci | grep Eth
+# ip addr show
+# dmesg | grep sd
+# cat /proc/cpuinfo
+
+
+
-Les packages sont des binaires précompilés qui sont prêts à être installés de façon simple et rapide. Les dépendances sont gérées, ainsi que la mise à jour et la suppression des packages déjà installés (varie selon les distributions).
-
-
-
-TP : installation Debian GNU/Linux
-
-
-
-Choix de la version
-Debian GNU/Linux « Sid » : actuelle version unstable
-Debian GNU/Linux 10 (« Buster ») : actuelle version testing
-Debian GNU/Linux 9 (« Stretch ») : actuelle version stable
-Debian GNU/Linux 8 (« Jessie ») : actuelle version oldstable
-Debian GNU/Linux 7 (« Wheezy ») : actuelle version oldoldstable
-Debian GNU/Linux 6 (« Squeeze »)
-Debian GNU/Linux 5 (« Lenny »)
-Debian GNU/Linux 4 (« Etch »)
-Debian GNU/Linux 3.1 (« Sarge »)
-Debian GNU/Linux 3.0 (« Woody »)
-Debian GNU/Linux 2.2 (« Potato »)
-Debian GNU/Linux 2.1 (« Slink »)
-Debian GNU/Linux 2.0 (« Hamm »)
-
-
-
-
-boot sur CD/DVD ou USB
-choix de la langue : anglais (en_US.UTF8)
-réglage du clavier
-réseau
-partitionnement
-choix des miroirs
-mot de passe
-choix de packages
-installation GRUB
-
-
-
-console de debug à l'installation
-lspci | grep Eth
-ip addr show
-dmesg | grep sd
-cat /proc/cpuinfo
-
-
-
-Focus sur Vim
+
+ Focus sur Vim
+
+
# apt install vim
# select-editor
+# update-alternatives --config editor
# vi /etc/vim/vimrc
let g:skip_defaults_vim = 1
# vi ~/.vimrc
-"musthave
+
+
+
+
+
+
+ Incontournables
+
+
syntax on
set background=dark
set nocompatible
-"dev
+
+
+
+
+
+
+ Pour les devs
+
+
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
-
+
+
+
+
-
-Vim basics
+
+ Vim basics
+
Mode "commandes" <-> Mode "insertion"
[Échap] <-> i
+
+
+
+ Vim basics
+
Mode "commandes"
----------------
@@ -215,95 +270,129 @@ x supprimer (ou couper) le caractère courant
p coller après le curseur
P coller avant le curseur
v mode visuel pour couper ou copier facilement
-rX remplace le caractère courant par X
+rX remplace le caractère courant par X
u annule la dernière commande
Ctrl+r restaure la dernière commande
+
+
-Passer en mode insertion
+
+ Vim basics
+
+Passer en mode insertion
------------------------
+
i passer en mode insert avant le curseur
a passer en mode insert après le curseur
I passer en mode insert au début de la ligne
A passer en mode insert à la fin de la ligne
o sauter une ligne et passer en mode insert
-
+
+
-
+
+
+
# apt install locales
$ LANG=fr_FR.UTF8 /usr/bin/vimtutor
-
+
+
+
-
-Focus sur dpkg / APT
-- Utilitaire principal : dpkg
- dpkg -l
- dpkg --unpack
- dpkg --configure
- dpkg -i
- dpkg -r
- dpkg -P
- dpkg -L
- dpkg -S
- dpkg -s
- dpkg-reconfigure
+
+Gestion des paquets dans Debian
+dpkg et APT
+
-- Gestion avancée de paquets : APT
- (Advanced Package Tool)
- Dépendances, mises à jour, conflits [Packages.gz]
-
+
+ dpkg
+ gestion bas-niveau (manipulation directe des paquets)
+
+
+$ dpkg -l
+# dpkg --unpack
+# dpkg --configure
+# dpkg -i
+# dpkg -r
+# dpkg -P
+$ dpkg -L
+$ dpkg -S
+$ dpkg -s
+# dpkg-reconfigure
+
+
+
-
-- Sources de paquets : /etc/apt/sources.list
- netselect / apt-cdrom / apt-config
+
+ APT
+ gestion avancée (dépendances, mises à jour, conflits…)
+
+Sources de paquets : /etc/apt/sources.list
+
+# netselect / apt-cdrom / apt-config
+
+Interface pour APT : apt, apt-cache, apt-get, aptitude
+
+# apt update
+# apt upgrade
+# apt install paquet
+# apt remove paquet
+# apt purge paquet
+$ apt-cache show / search / -n search / depends / rdepends / policy
+
+
+
-- Interface pour APT : apt, apt-cache, apt-get, aptitude
- apt update
- apt upgrade
- apt install paquet
- apt remove paquet
- apt purge paquet
- apt-cache show / search / -n search / depends / rdepends / policy
- etc.
-
+
+
+Autres commandes :
+
+# apt -s install
+$ apt-file
+$ apt-show-versions
+# apt-listchanges
+# apt clean/autoclean
+# apt upgrade/full-upgrade
+$ apt changelog
+$ rmadison
+# apt-get check
+$ apt source
+# apt build-dep
+$ debuild -us -uc
+
+
+
-
-apt -s install
-apt-file
-apt-show-versions
-apt-listchanges
-apt clean/autoclean
-apt upgrade/full-upgrade
-apt changelog
-rmadison
-apt-get check
-apt source
-apt build-dep
-debuild -us -uc
-
-
-
+
+
+
# vim /etc/apt/sources.list
-
+
deb http://mirror.evolix.org/debian/ stretch main
deb http://security.debian.org/ stretch/updates main
deb http://mirror.evolix.org/debian/ stretch-updates main
-
deb http://mirror.evolix.org/debian/ stretch main
-
+
+
-
+
+
+
# dpkg-reconfigure -plow debconf
-
# vim /etc/apt/apt.conf.d/99custom
+
APT::Install-Recommends "false";
APT::Install-Suggests "false";
DPkg::Pre-Invoke { "mount -oremount,exec /tmp && mount -oremount,rw /usr || true"; };"
DPkg::Post-Invoke { "mount -oremount /tmp && mount -oremount /usr || true"; };"
-
+
+
-
+
+
+
# vim /etc/fstab
-
+
/dev/sda2 / ext4 defaults,errors=remount-ro 0 1
/dev/sda1 /boot ext4 defaults 0 2
/dev/sda3 /var ext4 defaults 0 2
@@ -313,92 +402,128 @@ DPkg::Post-Invoke { "mount -oremount /tmp && mount -oremount /usr || true"; };"
/dev/sda8 none swap sw 0 0
/dev/sda9 /home ext4 defaults,noexec,nosuid,nodev 0 2
tmpfs /var/tmp tmpfs defaults,noexec,nosuid,nodev 0 2
-
+
+
-
+
+
On installe Postfix :
+
# apt install postfix
-
+
On renvoie tous les alias vers root :
+
# getent passwd | cut -d":" -f1 | sed "s/$/: root/" > /etc/aliases
# vim /etc/aliases
# newaliases
-
+
+
+
-
+
+
Installons les outils de base :
-
+
# apt install ssh less mailx sudo munin htop iotop iftop
-
-
-
-Mesure des performances disque
+
+
+
+
+
+Mesure des performances disque :
+
# time dd if=/dev/zero of=/home/32gb bs=1024k count=32768
# time dd if=/home/32gb of=/dev/null bs=1024k count=32768
# time rm /home/32gb
# apt install postgresql-contrib
# /usr/lib/postgresql/9.6/bin/pg_test_fsync
-
-
-
-Mesure des performances réseau
+
+
+
+
+
+Mesure des performances réseau :
+
# apt install iperf mtr-tiny
$ ping -4 google.fr
$ mtr -4 google.fr
$ iperf -c debit.k-net.fr
-
+
+
+
-
-Comment choisir sa version de Linux ?
-
-- Versions logiciels fixes : Apache / PHP / MySQL / etc.
-- Version nue / panel (cpanel, plesk)
-- apt-get / yum install
-
-
+
+ Comment choisir sa version de Linux ?
+
+ - Versions logiciels fixes : Apache / PHP / MySQL / etc.
+ - Version nue / panel (cpanel, plesk)
+ - apt-get / yum install
+
+
-
-Récapitulatif
-Choix matériel
-Choix version de Linux
-Premières optimisations
-Validation des performances
-
-
-
+
+ Récapitulatif
+
+ - Choix matériel
+ - Choix version de Linux
+ - Premières optimisations
+ - Validation des performances
+
+
-
-
+
-
+
- // More info https://github.com/hakimel/reveal.js#configuration
- Reveal.initialize({
- controls: true,
- progress: true,
- history: true,
- center: true,
+
-
+
-
diff --git a/reveal/reveal.js/css/reveal.css b/reveal/reveal.js/css/reveal.css
index 5f501b1..9950bc7 100644
--- a/reveal/reveal.js/css/reveal.css
+++ b/reveal/reveal.js/css/reveal.css
@@ -3,7 +3,7 @@
* http://lab.hakim.se/reveal-js
* MIT licensed
*
- * Copyright (C) 2017 Hakim El Hattab, http://hakim.se
+ * Copyright (C) 2016 Hakim El Hattab, http://hakim.se
*/
/*********************************************
* RESET STYLES
@@ -32,6 +32,9 @@ html, body, .reveal div, .reveal span, .reveal applet, .reveal object, .reveal i
.reveal footer, .reveal header, .reveal hgroup, .reveal menu, .reveal nav, .reveal section {
display: block; }
+ .reveal figcaption {
+ font-size: 0.30em; }
+
/*********************************************
* GLOBAL STYLES
*********************************************/
@@ -47,6 +50,12 @@ body {
background-color: #fff;
color: #000; }
+ html body {
+ background:url("../imagesEvoFormation2017/visuelSlidesEvolix.svg");
+ background-position:center;
+ background-size: cover;
+ background-repeat: no-repeat;
+ }
/*********************************************
* VIEW FRAGMENTS
*********************************************/
@@ -323,7 +332,6 @@ body {
bottom: 0;
left: 0;
margin: auto;
- pointer-events: none;
overflow: visible;
z-index: 1;
text-align: center;
@@ -341,7 +349,6 @@ body {
position: absolute;
width: 100%;
padding: 20px 0px;
- pointer-events: auto;
z-index: 10;
-webkit-transform-style: flat;
transform-style: flat;
@@ -376,12 +383,6 @@ body {
z-index: 11;
opacity: 1; }
-.reveal .slides > section:empty,
-.reveal .slides > section > section:empty,
-.reveal .slides > section[data-background-interactive],
-.reveal .slides > section > section[data-background-interactive] {
- pointer-events: none; }
-
.reveal.center,
.reveal.center .slides,
.reveal.center .slides section {
@@ -597,10 +598,6 @@ body {
/*********************************************
* CUBE TRANSITION
- *
- * WARNING:
- * this is deprecated and will be removed in a
- * future version.
*********************************************/
.reveal.cube .slides {
-webkit-perspective: 1300px;
@@ -676,10 +673,6 @@ body {
/*********************************************
* PAGE TRANSITION
- *
- * WARNING:
- * this is deprecated and will be removed in a
- * future version.
*********************************************/
.reveal.page .slides {
-webkit-perspective-origin: 0% 50%;
@@ -855,7 +848,6 @@ body {
height: 100%;
opacity: 0;
visibility: hidden;
- overflow: hidden;
background-color: transparent;
background-position: 50% 50%;
background-repeat: no-repeat;
@@ -868,8 +860,7 @@ body {
.reveal .slide-background.present {
opacity: 1;
- visibility: visible;
- z-index: 2; }
+ visibility: visible; }
.print-pdf .reveal .slide-background {
opacity: 1 !important;
@@ -883,13 +874,7 @@ body {
max-width: none;
max-height: none;
top: 0;
- left: 0;
- -o-object-fit: cover;
- object-fit: cover; }
-
-.reveal .slide-background[data-background-size="contain"] video {
- -o-object-fit: contain;
- object-fit: contain; }
+ left: 0; }
/* Immediate transition style */
.reveal[data-background-transition=none] > .backgrounds .slide-background,
@@ -1061,8 +1046,6 @@ body {
visibility: visible;
outline: 10px solid rgba(150, 150, 150, 0.1);
outline-offset: 10px; }
- .reveal.overview .backgrounds .slide-background.stack {
- overflow: visible; }
.reveal.overview .slides section,
.reveal.overview-deactivating .slides section {
@@ -1074,6 +1057,10 @@ body {
-webkit-transition: none;
transition: none; }
+.reveal.overview-animated .slides {
+ -webkit-transition: -webkit-transform 0.4s ease;
+ transition: transform 0.4s ease; }
+
/*********************************************
* RTL SUPPORT
*********************************************/
diff --git a/reveal/reveal.js/css/theme/beige.css b/reveal/reveal.js/css/theme/beige.css
index 7424a05..6bb34bd 100644
--- a/reveal/reveal.js/css/theme/beige.css
+++ b/reveal/reveal.js/css/theme/beige.css
@@ -22,7 +22,7 @@ body {
font-family: "Lato", sans-serif;
font-size: 40px;
font-weight: normal;
- color: #333; }
+ color: #363736; }
::selection {
color: #fff;
@@ -49,7 +49,7 @@ body {
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
- color: #333;
+ color: #363736;
font-family: "League Gothic", Impact, sans-serif;
font-weight: normal;
line-height: 1.2;
@@ -62,13 +62,13 @@ body {
font-size: 3.77em; }
.reveal h2 {
- font-size: 2.11em; }
+ font-size: 1.77em; }
.reveal h3 {
- font-size: 1.55em; }
+ font-size: 1.30em; }
.reveal h4 {
- font-size: 1em; }
+ font-size: 0.7em; }
.reveal h1 {
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
@@ -150,14 +150,14 @@ body {
.reveal pre {
display: block;
position: relative;
- width: 90%;
+ /*width: 90%;*/
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
- box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
+ }
.reveal code {
font-family: monospace; }
@@ -214,7 +214,7 @@ body {
* LINKS
*********************************************/
.reveal a {
- color: #8b743d;
+ color: #87cbe7;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
@@ -235,8 +235,9 @@ body {
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
- border: 4px solid #333;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.95);
+ max-width:400px;
+}
.reveal section img.plain {
border: 0;
@@ -249,7 +250,7 @@ body {
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
- border-color: #8b743d;
+ border-color: #87cbe7;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
@@ -257,31 +258,31 @@ body {
*********************************************/
.reveal .controls .navigate-left,
.reveal .controls .navigate-left.enabled {
- border-right-color: #8b743d; }
+ border-right-color: #2c596e; }
.reveal .controls .navigate-right,
.reveal .controls .navigate-right.enabled {
- border-left-color: #8b743d; }
+ border-left-color: #2c596e; }
.reveal .controls .navigate-up,
.reveal .controls .navigate-up.enabled {
- border-bottom-color: #8b743d; }
+ border-bottom-color: #2c596e; }
.reveal .controls .navigate-down,
.reveal .controls .navigate-down.enabled {
- border-top-color: #8b743d; }
+ border-top-color: #2c596e; }
.reveal .controls .navigate-left.enabled:hover {
- border-right-color: #c0a86e; }
+ border-right-color: #87cbe7; }
.reveal .controls .navigate-right.enabled:hover {
- border-left-color: #c0a86e; }
+ border-left-color: #87cbe7; }
.reveal .controls .navigate-up.enabled:hover {
- border-bottom-color: #c0a86e; }
+ border-bottom-color: #87cbe7; }
.reveal .controls .navigate-down.enabled:hover {
- border-top-color: #c0a86e; }
+ border-top-color: #87cbe7; }
/*********************************************
* PROGRESS BAR
@@ -290,7 +291,7 @@ body {
background: rgba(0, 0, 0, 0.2); }
.reveal .progress span {
- background: #8b743d;
+ background: #87cbe7;
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
diff --git a/reveal/reveal.js/lib/css/zenburn.css b/reveal/reveal.js/lib/css/zenburn.css
index 07be502..9f83be4 100644
--- a/reveal/reveal.js/lib/css/zenburn.css
+++ b/reveal/reveal.js/lib/css/zenburn.css
@@ -9,8 +9,9 @@ based on dark.css by Ivan Sagalaev
display: block;
overflow-x: auto;
padding: 0.5em;
- background: #3f3f3f;
+ background: #363736;
color: #dcdcdc;
+ padding:15px !important;
}
.hljs-keyword,