From 6c393e687461b4f57c5a9e0827225dd761e1b9df Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Wed, 19 Jun 2019 10:19:31 +0200 Subject: [PATCH] bugfix --- docs/Divers/Changer_shell.md | 4 ++- docs/Divers/zsh/antibody.md | 16 ++++++------ docs/Mint/outdated.md | 4 ++- docs/Mint/vsftpd.md | 8 +++--- docs/Mint/webserver.md | 48 +++++++++++++++++------------------- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/docs/Divers/Changer_shell.md b/docs/Divers/Changer_shell.md index 4293540..64dec88 100644 --- a/docs/Divers/Changer_shell.md +++ b/docs/Divers/Changer_shell.md @@ -2,6 +2,8 @@ +#### Depuis le terminal: + On utilise la commande **chsh**. Mais il faut que le nouveau shell soit déclaré dans /etc/shells. @@ -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. diff --git a/docs/Divers/zsh/antibody.md b/docs/Divers/zsh/antibody.md index 5ec3abd..215fa4f 100644 --- a/docs/Divers/zsh/antibody.md +++ b/docs/Divers/zsh/antibody.md @@ -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 diff --git a/docs/Mint/outdated.md b/docs/Mint/outdated.md index 249895e..6444da6 100644 --- a/docs/Mint/outdated.md +++ b/docs/Mint/outdated.md @@ -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 diff --git a/docs/Mint/vsftpd.md b/docs/Mint/vsftpd.md index 34fc890..a87b08f 100644 --- a/docs/Mint/vsftpd.md +++ b/docs/Mint/vsftpd.md @@ -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 diff --git a/docs/Mint/webserver.md b/docs/Mint/webserver.md index 1cf7c51..1da0b4c 100644 --- a/docs/Mint/webserver.md +++ b/docs/Mint/webserver.md @@ -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