bugfix
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
|
||||
|
||||
#### Depuis le terminal:
|
||||
|
||||
On utilise la commande **chsh**.
|
||||
|
||||
Mais il faut que le nouveau shell soit déclaré dans <u>/etc/shells</u>.
|
||||
@@ -35,7 +37,7 @@ $ chsh -s $(which zsh)
|
||||
|
||||
|
||||
|
||||
**En mode GUI:**
|
||||
#### En mode GUI:
|
||||
|
||||
*ubuntu:*
|
||||
In your terminal window, Open Edit/Profile Preferences, negative to command tab.
|
||||
|
||||
@@ -6,14 +6,14 @@ http://getantibody.github.io
|
||||
|
||||
|
||||
|
||||
Installer Antibody:
|
||||
##### Installer Antibody:
|
||||
|
||||
```bash
|
||||
$ brew install getantibody/tap/antibody
|
||||
$ curl -sL git.io/antibody | sh -s
|
||||
```
|
||||
|
||||
Fichier plugins:
|
||||
##### Fichier plugins:
|
||||
|
||||
```bash
|
||||
~/.zsh_plugins.txt
|
||||
@@ -21,7 +21,7 @@ Fichier plugins:
|
||||
|
||||
|
||||
|
||||
Chargement static:
|
||||
##### Chargement static:
|
||||
|
||||
```bash
|
||||
$ antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
|
||||
@@ -29,7 +29,7 @@ $ antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
|
||||
|
||||
|
||||
|
||||
Supprimer un plugin:
|
||||
##### Supprimer un plugin:
|
||||
|
||||
```bash
|
||||
[bruno@SilverBook/~] $ antibody purge denysdovhan/spaceship-prompt
|
||||
@@ -39,7 +39,7 @@ removed!
|
||||
|
||||
|
||||
|
||||
Tout mettre à jour:
|
||||
##### Tout mettre à jour:
|
||||
|
||||
```bash
|
||||
[bruno@SilverBook/~] $ antibody update
|
||||
@@ -53,7 +53,7 @@ updating: https://github.com/zsh-users/zsh-autosuggestions
|
||||
|
||||
|
||||
|
||||
Liste des plugins/thèmes installés:
|
||||
##### Liste des plugins/thèmes installés:
|
||||
|
||||
```bash
|
||||
[bruno@SilverBook/~] $ antibody list
|
||||
@@ -66,13 +66,13 @@ https://github.com/zsh-users/zsh-history-substring-search /Users/bruno/Librar
|
||||
|
||||
|
||||
|
||||
##### Home
|
||||
|
||||
```bash
|
||||
[bruno@SilverBook/~] $ antibody home
|
||||
/Users/bruno/Library/Caches/antibody
|
||||
```
|
||||
|
||||
|
||||
|
||||
```bash
|
||||
[bruno@SilverBook/~] $ cd /Users/bruno/Library/Caches/antibody
|
||||
[bruno@SilverBook/antibody] $ l
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Paquets: liste des mises-à-jour disponibles
|
||||
# Mises-à-jour
|
||||
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ https://unix.stackexchange.com/questions/19470/list-available-updates-but-do-not
|
||||
|
||||
|
||||
|
||||
### Liste des m-à-j disponibles
|
||||
|
||||
**apt-get --just-print upgrade**
|
||||
|
||||
```bash
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
|
||||
|
||||
Installer vsftpd:
|
||||
#### Installer vsftpd:
|
||||
|
||||
```bash
|
||||
$ sudo apt install vsftpd
|
||||
```
|
||||
|
||||
Configurer vsftpd:
|
||||
#### Configurer vsftpd:
|
||||
|
||||
```bash
|
||||
$ sudo mv -v /etc/vsftpd.conf /etc/vsftpd.conf.bk
|
||||
@@ -41,13 +41,13 @@ userlist_file=/etc/vsftpd.userlist
|
||||
## userlist_deny=NO
|
||||
```
|
||||
|
||||
Liste des utilisateurs:
|
||||
#### Liste des utilisateurs:
|
||||
|
||||
```bash
|
||||
$ sudo nano /etc/vsftpd.userlist
|
||||
```
|
||||
|
||||
Redémarrer vsftpd:
|
||||
#### Redémarrer vsftpd:
|
||||
|
||||
```bash
|
||||
$ sudo systemctl restart vsftpd
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
$ sudo apt-get install nginx
|
||||
```
|
||||
|
||||
**Version de Nginx:**
|
||||
##### Version de Nginx:
|
||||
|
||||
```bash
|
||||
$ nginx -v
|
||||
nginx version: nginx/1.14.0 (Ubuntu)
|
||||
```
|
||||
|
||||
**Démarrer,activer et vérifier l'étât du service Nginx.**
|
||||
##### Démarrer,activer et vérifier l'étât du service Nginx.
|
||||
|
||||
```bash
|
||||
$ sudo systemctl start nginx.service
|
||||
@@ -42,7 +42,7 @@ https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
|
||||
|
||||
https://wiki.debian.org/Nginx/DirectoryStructure
|
||||
|
||||
**Arborescence:**
|
||||
##### Arborescence:
|
||||
|
||||
```bash
|
||||
bruno@MintBook:/etc/nginx$ tree
|
||||
@@ -74,7 +74,7 @@ bruno@MintBook:/etc/nginx$ tree
|
||||
└── win-utf
|
||||
```
|
||||
|
||||
**Configuration:**
|
||||
##### Configuration:
|
||||
|
||||
Le fichier `/etc/nginx/nginx.conf` contient la configuration générale de nginx.
|
||||
|
||||
@@ -178,7 +178,6 @@ Déclarer le socket Unix de PHP-FPM au niveau de Nginx: il faut modifier ou cré
|
||||
upstream php7.2-fpm-sock {
|
||||
server unix:/run/php/php7.2-fpm.sock;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -199,30 +198,27 @@ lrwxrwxrwx 1 root root 34 mai 30 10:40 default -> /etc/nginx/sites-available
|
||||
lrwxrwxrwx 1 root root 31 mai 30 12:56 mint -> /etc/nginx/sites-available/mint
|
||||
|
||||
$ sudo rm default
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
**Tester la configuration Nginx:**
|
||||
##### Tester la configuration Nginx:
|
||||
|
||||
```bash
|
||||
$ sudo nginx -t
|
||||
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
|
||||
nginx: configuration file /etc/nginx/nginx.conf test is successful
|
||||
|
||||
```
|
||||
|
||||
**Relancer Nginx:**
|
||||
##### Relancer Nginx:
|
||||
|
||||
```bash
|
||||
$ sudo service nginx reload
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
**Commandes Nginx:**
|
||||
##### Commandes Nginx:
|
||||
|
||||
Démarrer nginx: `$ sudo systemctl start nginx`
|
||||
|
||||
@@ -238,7 +234,7 @@ Activer le démarrage auto de nginx avec le système: `$ sudo systemctl enable n
|
||||
|
||||
|
||||
|
||||
**Vérifier l'étât de Nginx:**
|
||||
##### Vérifier l'étât de Nginx:
|
||||
|
||||
```bash
|
||||
$ systemctl status nginx
|
||||
@@ -271,7 +267,7 @@ https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl
|
||||
|
||||
|
||||
|
||||
**Créer une clé et un certificat. auto-signé:**
|
||||
##### Créer une clé et un certificat. auto-signé:
|
||||
|
||||
```bash
|
||||
$ sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/mintbook.local.key -out /etc/ssl/certs/mintbook.local.crt
|
||||
@@ -300,7 +296,7 @@ Email Address []:enzo@clicclac.info
|
||||
|
||||
```
|
||||
|
||||
**Paramètres Diffie-Hellman (DH):**
|
||||
##### Paramètres Diffie-Hellman (DH):
|
||||
|
||||
```
|
||||
$ sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
|
||||
@@ -310,7 +306,7 @@ This is going to take a long time
|
||||
|
||||
```
|
||||
|
||||
|
||||
##### Configuration SSL:
|
||||
|
||||
```bash
|
||||
$ sudo nano /etc/nginx/snippets/self-signed.conf
|
||||
@@ -407,7 +403,7 @@ Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
|
||||
|
||||
|
||||
|
||||
**Configurer PHP-FPM:**
|
||||
##### Configurer PHP-FPM:
|
||||
|
||||
- PHP et Nginx sur la même machine => socket Unix
|
||||
- PHP et Nginx sur la même machine => socket TCP
|
||||
@@ -429,7 +425,7 @@ listen = /run/php/php7.2-fpm.sock
|
||||
|
||||
|
||||
|
||||
**Configurer PHP.ini:**
|
||||
##### Configurer PHP.ini:
|
||||
|
||||
```bash
|
||||
$ nano /etc/php/7.2/fpm/php.ini
|
||||
@@ -452,7 +448,7 @@ date.timezone = Europe/Paris
|
||||
|
||||
|
||||
|
||||
**Configurer Nginx:**
|
||||
##### Configurer Nginx:
|
||||
|
||||
```bash
|
||||
$ sudo gedit /etc/nginx/sites-availables
|
||||
@@ -483,7 +479,7 @@ $ sudo service php7.2-fpm restart
|
||||
|
||||
|
||||
|
||||
**Installer les modules PHP manquants:**
|
||||
##### Installer les modules PHP manquants:
|
||||
|
||||
Dans le Gestionnaire de paquets Synaptic, installer les modules GD, MySQL...
|
||||
|
||||
@@ -507,7 +503,7 @@ $ sudo apt-get -y install mariadb-server mariadb-client
|
||||
|
||||
```
|
||||
|
||||
**Démarrer, activer et vérifier l'étât du service MariaDB:**
|
||||
##### Démarrer, activer et vérifier l'étât du service MariaDB:
|
||||
|
||||
```bash
|
||||
$ sudo systemctl start mysql.service
|
||||
@@ -518,7 +514,7 @@ $ sudo systemctl status mysql.service
|
||||
|
||||
|
||||
|
||||
**Securiser l'installation de MariaDB:**
|
||||
##### Securiser l'installation de MariaDB:
|
||||
|
||||
```bash
|
||||
$ sudo mysql_secure_installation
|
||||
@@ -558,7 +554,7 @@ Thanks for using MariaDB!
|
||||
|
||||
|
||||
|
||||
Desinstaller mysql:**
|
||||
##### Désinstaller mysql:
|
||||
|
||||
```bash
|
||||
$ sudo service mysql stop
|
||||
@@ -572,7 +568,7 @@ Desinstaller mysql:**
|
||||
|
||||
|
||||
|
||||
**Se connecter à MySQL:**
|
||||
##### Se connecter à MySQL:
|
||||
|
||||
```bash
|
||||
$ sudo mysql -u root -p
|
||||
@@ -591,7 +587,7 @@ MariaDB [(none)]>
|
||||
|
||||
|
||||
|
||||
**Depuis ubuntu 18.04**
|
||||
##### Depuis ubuntu 18.04
|
||||
|
||||
Se logguer dans mysql en root.
|
||||
|
||||
@@ -645,7 +641,7 @@ Profile Nginx HTTPS: ouvre les ports 443 (https)
|
||||
|
||||
|
||||
|
||||
**Active le profile Nginx Full:**
|
||||
##### Activer le profile Nginx Full:
|
||||
|
||||
```bash
|
||||
$ sudo ufw allow 'Nginx Full'
|
||||
@@ -654,7 +650,7 @@ Rule added (v6)
|
||||
|
||||
```
|
||||
|
||||
**Status du firewall:**
|
||||
##### Status du firewall:
|
||||
|
||||
```bash
|
||||
$ sudo ufw status
|
||||
|
||||
Reference in New Issue
Block a user