This commit is contained in:
2019-06-19 10:19:31 +02:00
parent cd5c3e7951
commit 6c393e6874
5 changed files with 40 additions and 40 deletions

View File

@@ -2,6 +2,8 @@
#### Depuis le terminal:
On utilise la commande **chsh**. On utilise la commande **chsh**.
Mais il faut que le nouveau shell soit déclaré dans <u>/etc/shells</u>. 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:* *ubuntu:*
In your terminal window, Open Edit/Profile Preferences, negative to command tab. In your terminal window, Open Edit/Profile Preferences, negative to command tab.

View File

@@ -6,14 +6,14 @@ http://getantibody.github.io
Installer Antibody: ##### Installer Antibody:
```bash ```bash
$ brew install getantibody/tap/antibody $ brew install getantibody/tap/antibody
$ curl -sL git.io/antibody | sh -s $ curl -sL git.io/antibody | sh -s
``` ```
Fichier plugins: ##### Fichier plugins:
```bash ```bash
~/.zsh_plugins.txt ~/.zsh_plugins.txt
@@ -21,7 +21,7 @@ Fichier plugins:
Chargement static: ##### Chargement static:
```bash ```bash
$ antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh $ 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 ```bash
[bruno@SilverBook/~] $ antibody purge denysdovhan/spaceship-prompt [bruno@SilverBook/~] $ antibody purge denysdovhan/spaceship-prompt
@@ -39,7 +39,7 @@ removed!
Tout mettre à jour: ##### Tout mettre à jour:
```bash ```bash
[bruno@SilverBook/~] $ antibody update [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 ```bash
[bruno@SilverBook/~] $ antibody list [bruno@SilverBook/~] $ antibody list
@@ -66,13 +66,13 @@ https://github.com/zsh-users/zsh-history-substring-search /Users/bruno/Librar
##### Home
```bash ```bash
[bruno@SilverBook/~] $ antibody home [bruno@SilverBook/~] $ antibody home
/Users/bruno/Library/Caches/antibody /Users/bruno/Library/Caches/antibody
``` ```
```bash ```bash
[bruno@SilverBook/~] $ cd /Users/bruno/Library/Caches/antibody [bruno@SilverBook/~] $ cd /Users/bruno/Library/Caches/antibody
[bruno@SilverBook/antibody] $ l [bruno@SilverBook/antibody] $ l

View File

@@ -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** **apt-get --just-print upgrade**
```bash ```bash

View File

@@ -2,13 +2,13 @@
Installer vsftpd: #### Installer vsftpd:
```bash ```bash
$ sudo apt install vsftpd $ sudo apt install vsftpd
``` ```
Configurer vsftpd: #### Configurer vsftpd:
```bash ```bash
$ sudo mv -v /etc/vsftpd.conf /etc/vsftpd.conf.bk $ sudo mv -v /etc/vsftpd.conf /etc/vsftpd.conf.bk
@@ -41,13 +41,13 @@ userlist_file=/etc/vsftpd.userlist
## userlist_deny=NO ## userlist_deny=NO
``` ```
Liste des utilisateurs: #### Liste des utilisateurs:
```bash ```bash
$ sudo nano /etc/vsftpd.userlist $ sudo nano /etc/vsftpd.userlist
``` ```
Redémarrer vsftpd: #### Redémarrer vsftpd:
```bash ```bash
$ sudo systemctl restart vsftpd $ sudo systemctl restart vsftpd

View File

@@ -12,14 +12,14 @@
$ sudo apt-get install nginx $ sudo apt-get install nginx
``` ```
**Version de Nginx:** ##### Version de Nginx:
```bash ```bash
$ nginx -v $ nginx -v
nginx version: nginx/1.14.0 (Ubuntu) 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 ```bash
$ sudo systemctl start nginx.service $ 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 https://wiki.debian.org/Nginx/DirectoryStructure
**Arborescence:** ##### Arborescence:
```bash ```bash
bruno@MintBook:/etc/nginx$ tree bruno@MintBook:/etc/nginx$ tree
@@ -74,7 +74,7 @@ bruno@MintBook:/etc/nginx$ tree
└── win-utf └── win-utf
``` ```
**Configuration:** ##### Configuration:
Le fichier `/etc/nginx/nginx.conf` contient la configuration générale de nginx. 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 { upstream php7.2-fpm-sock {
server unix:/run/php/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 lrwxrwxrwx 1 root root 31 mai 30 12:56 mint -> /etc/nginx/sites-available/mint
$ sudo rm default $ sudo rm default
``` ```
**Tester la configuration Nginx:** ##### Tester la configuration Nginx:
```bash ```bash
$ sudo nginx -t $ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful nginx: configuration file /etc/nginx/nginx.conf test is successful
``` ```
**Relancer Nginx:** ##### Relancer Nginx:
```bash ```bash
$ sudo service nginx reload $ sudo service nginx reload
``` ```
**Commandes Nginx:** ##### Commandes Nginx:
Démarrer nginx: `$ sudo systemctl start 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 ```bash
$ systemctl status nginx $ 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 ```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 $ 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 $ 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 ```bash
$ sudo nano /etc/nginx/snippets/self-signed.conf $ 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 Unix
- PHP et Nginx sur la même machine => socket TCP - 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 ```bash
$ nano /etc/php/7.2/fpm/php.ini $ nano /etc/php/7.2/fpm/php.ini
@@ -452,7 +448,7 @@ date.timezone = Europe/Paris
**Configurer Nginx:** ##### Configurer Nginx:
```bash ```bash
$ sudo gedit /etc/nginx/sites-availables $ 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... 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 ```bash
$ sudo systemctl start mysql.service $ 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 ```bash
$ sudo mysql_secure_installation $ sudo mysql_secure_installation
@@ -558,7 +554,7 @@ Thanks for using MariaDB!
Desinstaller mysql:** ##### Désinstaller mysql:
```bash ```bash
$ sudo service mysql stop $ sudo service mysql stop
@@ -572,7 +568,7 @@ Desinstaller mysql:**
**Se connecter à MySQL:** ##### Se connecter à MySQL:
```bash ```bash
$ sudo mysql -u root -p $ 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. 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 ```bash
$ sudo ufw allow 'Nginx Full' $ sudo ufw allow 'Nginx Full'
@@ -654,7 +650,7 @@ Rule added (v6)
``` ```
**Status du firewall:** ##### Status du firewall:
```bash ```bash
$ sudo ufw status $ sudo ufw status