diff --git a/docs/Divers/JDownloader.md b/docs/Divers/JDownloader.md new file mode 100644 index 0000000..8d9f0fc --- /dev/null +++ b/docs/Divers/JDownloader.md @@ -0,0 +1,19 @@ +# JDownloader + + + +[How to use another browser than your OS' default to solve browser captchas](https://support.jdownloader.org/Knowledgebase/Article/View/define-custom-browser-solver-captcha-browser) + +Ouvrir **Preferences** -> **Paramètres avancés**. + +Chercher *"browser captchasolver browser commandline"* + +Ajouter `[ "open", "-n", "-a", "/Applications/Firefox.app", "--args", "-new-tab", "%s" ]` + + + +Coller un lien dans JDownloader. + +Un onglet Firefox s'ouvre pour résoudre le captcha. + +Cliquer sur **I am no robot**. \ No newline at end of file diff --git a/docs/Divers/bash/basename.md b/docs/Divers/bash/basename.md index 173251e..4aad3f7 100644 --- a/docs/Divers/bash/basename.md +++ b/docs/Divers/bash/basename.md @@ -1,43 +1,53 @@ +# Basename -#### basename + +### basename Récupérer la dernière partie d'un chemin (nom du fichier): ```bash -$ basename /usr/local/etc/php/8.0/conf.d/ext-apcu.ini +basename /usr/local/etc/php/8.0/conf.d/ext-apcu.ini + ext-apcu.ini ``` Récupérer la dernière partie d'un chemin (dossier): ```bash -$ basename /usr/local/etc/php/8.0/conf.d/ +basename /usr/local/etc/php/8.0/conf.d/ + conf.d ``` Récupérer le nom de fichier sans l'extension ```bash -$ basename -s .ini /usr/local/etc/php/8.0/conf.d/ext-apcu.ini +basename -s .ini /usr/local/etc/php/8.0/conf.d/ext-apcu.ini + ext-apcu ``` Sur plusieurs chemins: ```bash -$ basename -a -s .ini /usr/local/etc/php/8.0/conf.d/ext-apcu.ini /usr/local/etc/php/7.3/conf.d/ext-ssh2.ini +basename -a -s .ini /usr/local/etc/php/8.0/conf.d/ext-apcu.ini + +/usr/local/etc/php/7.3/conf.d/ext-ssh2.ini ext-apcu ext-ssh2 ``` -#### dirname + + +### dirname Récupérer le chemin (sans le nom du fichier): ```bash -$ dirname /usr/local/etc/php/8.0/conf.d/ext-apcu.ini +dirname /usr/local/etc/php/8.0/conf.d/ext-apcu.ini + /usr/local/etc/php/8.0/conf.d ``` @@ -45,7 +55,7 @@ Si le chemin n'est pas indiqué: ```bash /usr/local/etc/php/7.3/conf.d -$ dirname ext-apcu.ini +dirname ext-apcu.ini . ``` @@ -55,11 +65,13 @@ $ dirname ext-apcu.ini Récupérer le chemin du script courant: - - ```bash -$ nano chemins.sh +nano chemins.sh +``` + + +```bash title="chemins.sh" #!/usr/local/bin/bash echo "Chemin du script: " $0 @@ -69,15 +81,13 @@ echo "Le répertoire courant est `pwd`" -```bash -$ ./chemins.sh +```bash title="./chemins.sh" Chemin du script: ./chemins.sh Le script exécuté a comme basename chemins.sh, dirname . Le répertoire courant est /Users/bruno/Documents/shell_scripts ``` -```bash -$ /Users/bruno/Documents/shell_scripts/chemins.sh +```bash title="/Users/bruno/Documents/shell_scripts/chemins.sh" Chemin du script: /Users/bruno/Documents/shell_scripts/chemins.sh Le script exécuté a comme basename chemins.sh, dirname /Users/bruno/Documents/shell_scripts Le répertoire courant est /Users/bruno/Documents/shell_scripts diff --git a/docs/Divers/bash/bash_exemples.md b/docs/Divers/bash/bash_exemples.md index 16b41db..75068f3 100644 --- a/docs/Divers/bash/bash_exemples.md +++ b/docs/Divers/bash/bash_exemples.md @@ -2,7 +2,7 @@ -Ajouter un préfixe à la ligne d'un fichier texte: +#### Ajouter un préfixe à la ligne d'un fichier texte: ```bash brew list | sed -e 's/^/brew install /' > brew-list.txt @@ -16,7 +16,7 @@ sed -e 's/$/suffix/' -Cherche tous les .jpg d'un répertoire et les effacer: +#### Cherche tous les .jpg d'un répertoire et les effacer: ```bash find . -name '*jpg' -exec rm {} + @@ -24,14 +24,15 @@ find . -name '*jpg' -exec rm {} + -Concaténer tous les .csv: +#### Concaténer tous les .csv: ```bash find . -type f -iname "*.csv" -exec cat {} \; > toutes.txt ``` -Couleurs dans le terminal: + +#### Couleurs dans le terminal: ```bash export UNDERLINE=$(tput sgr 0 1) @@ -61,7 +62,9 @@ for i in {0..255}; do echo "$(tput setaf $i)test"; done ``` -Supprimer récursivement tous les fichiers .DS_ST0RE: + + +#### Supprimer récursivement tous les fichiers .DS_ST0RE: ```bash sudo find / -name ".DS_Store" -depth -exec rm {} \; @@ -75,7 +78,9 @@ find . -name '*.DS_Store' -type f -delete find . -name '.DS_Store' -type f -print -exec rm -f {} + ``` -Commentaire multi-lignes: + + +#### Commentaire multi-lignes: ```bash res1=$(gdate +%s.%N) @@ -99,15 +104,17 @@ echo -e "\e[1;34m $dd $dh $dm $ds \e[0m" END_COMMENT ``` -Créer une playlist .m3u: + + +#### Créer une playlist .m3u: ```bash $ ~/Music/Shaka Ponk - Apelogies/CD1 master* # Musepack(mpc) Monkey's Audio(ape) WavPack(wv) Apple alac(m4a) -❯ printf "#EXTM3U\n" > playlist.m3u +printf "#EXTM3U\n" > playlist.m3u -❯ ls -1v | grep -E '.mp3|.mp4|.m4a|.aac|.alac|.flac|.ogg|.mpc|.ape|.wma|.wav' >> playlist.m3u +ls -1v | grep -E '.mp3|.mp4|.m4a|.aac|.alac|.flac|.ogg|.mpc|.ape|.wma|.wav' >> playlist.m3u #EXTM3U 01. ————————THE GREATEST TITS.mp3 @@ -130,11 +137,20 @@ $ ~/Music/Shaka Ponk - Apelogies/CD1 master* ``` ```bash -❯ printf "#EXTM3U\n" > playlist.m3u -❯ find . -name '*.mp3' | sort >> playlist.m3u +printf "#EXTM3U\n" > playlist.m3u +find . -name '*.mp3' | sort >> playlist.m3u ``` ```bash for i in {1..5}; do printf "#EXTM3U\n" > ${i}star.m3u; find . -type f -exec grep -i -l --text "rating.$i" '{}' \; >> ${i}star.m3u; done ``` + + +#### Remplacer les espaces dans les noms de dossiers/fichiers: + +```bash + find ./thumsup -name "* *" -print0 | sort -rz | while read -d $'\0' f; do mv -v "$f" "$(dirname "$f")/$(basename "${f// /_}")"; done +r +``` + diff --git a/docs/Divers/bash/commandes.md b/docs/Divers/bash/commandes.md index 7e19105..3d19621 100644 --- a/docs/Divers/bash/commandes.md +++ b/docs/Divers/bash/commandes.md @@ -53,7 +53,7 @@ $ history | grep 'chmod' Excécuter une commande de l'historique d'après son nombre (!#): -```bash +```bash title="!507" $ !507 cd .ssh/ drwx------ 1 bruno users 124 Mar 15 19:23 . @@ -68,7 +68,7 @@ bruno@DS916:~/.ssh $ Excécuter 2 commandes en arrière: -```bash +```bash title="!-2" $ !-2 # 10 commandes en arrière @@ -77,7 +77,7 @@ $ !-10 Ré-excécuter la dernière commande (!!): -```bash +```bash title="!!" $ cat .npmrc #prefix=/var/services/homes/bruno/.npm-packages tmp=/tmp @@ -92,7 +92,7 @@ tmp=/tmp Relancer la dernière commande avec sudo comme préfixe: -```bash +```bash title="sudo !!" $ nano /etc/fstab $ sudo !! @@ -102,14 +102,14 @@ sudo nano /etc/fstab Relancer la dernière commande avec 'keygen': -```bash +```bash title="!keygen" $ !keygen ssh-keygen -t rsa -b 1024 ``` Rechercher la dernière commande avec 'keygen' sans l'exécuter: -```bash +```bash title="!keygen:p" # on ajoute :p après $ !keygen:p diff --git a/docs/Divers/bash/programmation.md b/docs/Divers/bash/programmation.md index 137ab38..207a3e1 100644 --- a/docs/Divers/bash/programmation.md +++ b/docs/Divers/bash/programmation.md @@ -135,3 +135,14 @@ status=$? if [ $status -ne 0 ]; then ``` + + +#### Convertir un script bash en application macOS: + +[mac-appify](https://pypi.org/project/mac-appify/) + +```bash +$ appify script.sh name.app +$ appify script.sh name.app Icon.png +``` + diff --git a/docs/Divers/go.md b/docs/Divers/go.md index 3643586..f9b12a4 100644 --- a/docs/Divers/go.md +++ b/docs/Divers/go.md @@ -83,6 +83,16 @@ GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmess +### Installer une application: + +```bash +GO111MODULE=on go install github.com/olivere/iterm2-imagetools/cmd/imgcat@latest + +GO111MODULE=on go install github.com/olivere/iterm2-imagetools/cmd/imgls@latest +``` + + + ### Créer une application: Dans le dossier **src**, créer un nouveau dossier pour l'application **hello**: diff --git a/docs/Divers/iTerm2.md b/docs/Divers/iTerm2.md new file mode 100644 index 0000000..282b779 --- /dev/null +++ b/docs/Divers/iTerm2.md @@ -0,0 +1,9 @@ +# iTerm2 + + + +### Afficher des images dans iTerm: + +https://iterm2.com/documentation-images.html + +https://github.com/olivere/iterm2-imagetools \ No newline at end of file diff --git a/docs/Divers/zsh/Untitled.md b/docs/Divers/zsh/tools.md similarity index 72% rename from docs/Divers/zsh/Untitled.md rename to docs/Divers/zsh/tools.md index 1541926..2f7c2a1 100644 --- a/docs/Divers/zsh/Untitled.md +++ b/docs/Divers/zsh/tools.md @@ -1,6 +1,10 @@ -exa +### exa + https://the.exa.website/ https://github.com/ogham/exa + +#### Installation: + ubuntu 20.10+ : apt install exa debian : unstable repo https://github.com/ogham/exa/releases/download/v0.10.0/exa-linux-armv7-v0.10.0.zip @@ -8,49 +12,73 @@ http://ftp.br.debian.org/debian/pool/main/r/rust-exa/exa_0.10.1-1_arm64.deb sudo dpkg -i exa_0.10.1-1_arm64.deb -fzf + +### fzf + https://github.com/junegunn/fzf + +#### Installation: + Debian 9+ : sudo apt-get install fzf Ubuntu 19.10+ : sudo apt-get install fzf -dotbare + + +### dotbare -zoxide +### zoxide + https://github.com/ajeetdsouza/zoxide + +#### Installation: + ubuntu 21.04+ : apt install zoxide debian11+ : apt install zoxide curl -sS https://webinstall.dev/zoxide | bash +#### Utilisation: - -rg +```bash +j +``` -rga +### diractions + +https://github.com/AdrieanKhisbe/diractions -dircolors +### rg + + + +### rga + + + +### dircolors + partie de coreutils http://www.gnu.org/software/coreutils/ + +#### Installation: + ubuntu : sudo apt install coreutils -mstsc.exe -zinit +### rust - -rust https://www.rust-lang.org/ wsl : curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -nanorc +### nanorc ```bash curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh @@ -58,4 +86,10 @@ curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh -sudo apt install cabextract p7zip-full unzip \ No newline at end of file +sudo apt install cabextract p7zip-full unzip + +mstsc.exe + + +zinit + diff --git a/docs/Divers/zsh/zinit.md b/docs/Divers/zsh/zinit.md index d9c91b5..269e956 100644 --- a/docs/Divers/zsh/zinit.md +++ b/docs/Divers/zsh/zinit.md @@ -7,12 +7,20 @@ For more information see: - README section on the ice-modifiers: - https://github.com/zdharma/zinit#ice-modifiers, + - intro to Zinit at the Wiki: - https://zdharma.org/zinit/wiki/INTRODUCTION/, + - zinit-zsh GitHub account, which holds all the available Zinit annexes: - https://github.com/zinit-zsh/, + - For-Syntax article on the Wiki; it is less directly related to the ices, however, it explains how to use them conveniently: - https://zdharma.org/zinit/wiki/For-Syntax/. + +- zdharma-continuum + - https://github.com/zdharma-continuum/zinit + + diff --git a/docs/Linux/archiver.md b/docs/Linux/archiver.md index 7259cc0..4d2f8d2 100644 --- a/docs/Linux/archiver.md +++ b/docs/Linux/archiver.md @@ -196,6 +196,46 @@ $ unzip -P password vegas.zip +#### tzst (Z Standard) + +```bash +$ sudo apt install zstd + +$ brew install zstd +``` + +Compresser: + +```bash +# Tous les .sh individuellement +$ zstd *.sh + 26 files compressed :44.75% ( 24.7 KiB => 11.1 KiB) + +# 1 archive pour tous les .sh +$ tar --zstd -cf scripts.tar.zst *.sh + +# Niveaux de compression: -1 à -19 +# Niveaux ultra (19 à 22): --ultra -22 +``` + +Décompresser: + +```bash +$ unzstd scripts.tar.zst +$ zstd -d scripts.tar.zst +scripts.tar.zst : 117248 bytes + +$ tar --zstd -xf scripts.tar.zst +``` + +BetterZip (macOS) + +[Peazip](https://peazip.github.io/peazip-64bit.html) (Windows) + +[7-zip-zstd](https://github.com/mcmilk/7-Zip-zstd) (command-line) + + + #### dmg (macOS) Créer: diff --git a/docs/Linux/compare.md b/docs/Linux/compare.md index aede18c..788c8fc 100644 --- a/docs/Linux/compare.md +++ b/docs/Linux/compare.md @@ -113,6 +113,14 @@ Files photonix/docker-compose.yml and photoprism/docker-compose.yml differ ### diffmerge (GUI): ```bash -❯ diffmerge config.json config.json.bak +$ diffmerge config.json config.json.bak +``` + + + +### Comparer 2 dossiers: + +```bash +$ diff --brief --recursive bootstrap_darkroom/ s ``` diff --git a/docs/Linux/du-df.md b/docs/Linux/du-df.md new file mode 100644 index 0000000..fd30781 --- /dev/null +++ b/docs/Linux/du-df.md @@ -0,0 +1,99 @@ +# du - df + + + +### du + +Options: + + + +```bash +[sentier@localhost thumbsup]$ ls -la + +total 32 +drwxrwxr-x 5 sentier psacln 4096 févr. 18 16:55 . +drwxrwxr-x 22 sentier psaserv 4096 févr. 18 17:09 .. +-rw-r--r-- 1 sentier psacln 440 févr. 7 10:55 config-npm.json +drwxrwxr-x 6 sentier psacln 4096 févr. 26 18:24 Nas +drwxr-xr-x 5 sentier psacln 4096 févr. 7 10:46 theme-flow +drwxr-xr-x 5 sentier psacln 4096 févr. 7 10:46 theme-flow-bruno +-rw-r--r-- 1 sentier psacln 24 févr. 7 11:39 theme_options.json +-rwxr-xr-x 1 sentier psacln 1317 févr. 12 15:27 thumbsup-npm.sh +``` + +Connaitre la taille des dossiers et fichiers d'un répertoire: + + +```bash +[sentier@localhost thumbsup]$ du -ach . --max-depth 1 + +4,0K ./config-npm.json +4,0K ./theme_options.json +4,0K ./thumbsup-npm.sh +668M ./Nas +2,2M ./theme-flow +2,2M ./theme-flow-bruno +672M . +672M total +``` + +Connaitre la taille des dossiers (et sous-dossiers) d'un répertoire: + +```bash +[sentier@localhost thumbsup]$ du -h + +21M ./Nas/Motos/24H Mans +11M ./Nas/Motos/GP France +... +672M . +``` + + + +Afficher la taille totale d'un répertoire: + +```bash +[sentier@localhost thumbsup]$ du -sh Nas/ + +668M Nas/ +``` + + + +```bash +[sentier@localhost thumbsup]$ du -Sh Nas/ + +21M Nas/Motos/24H Mans +11M Nas/Motos/GP France +9,3M Nas/Motos/Bol Classic +... +4,0K Nas/Faune +4,0K Nas/_Archived Items +4,0K Nas/ +``` + + + + + +### df (espace libre) + +Options: + +- T: Type +- h: Human + +```bash +[sentier@localhost Nas]$ df -hT +Filesystem Type Size Used Avail Use% Mounted on +udev devtmpfs 1,9G 0 1,9G 0% /dev +tmpfs tmpfs 393M 1,3M 391M 1% /run +/dev/mapper/vg00-lv01 ext4 47G 38G 7,1G 85% / +tmpfs tmpfs 2,0G 0 2,0G 0% /dev/shm +tmpfs tmpfs 5,0M 24K 5,0M 1% /run/lock +tmpfs tmpfs 2,0G 0 2,0G 0% /sys/fs/cgroup +/dev/sda1 ext4 464M 115M 321M 27% /boot +tmpfs tmpfs 393M 0 393M 0% /run/user/10001 +``` + diff --git a/docs/Linux/find.md b/docs/Linux/find.md index fc5cf42..374eb14 100644 --- a/docs/Linux/find.md +++ b/docs/Linux/find.md @@ -25,11 +25,19 @@ Les critères de recherche sont les suivants : #### Nom: -Recherche par nom de fichier: +Recherche par nom (**-name**) (sensible à la case): ```bash +# Le nom exact: toto + $ find /usr -name toto -print +# Le nom contient: Casa + +$ find /usr -name "*Casa*" + +# L'extension est .c + $ find /usr -name " *.c " -print # commence par un a ou A, suivi de quelque chose, et se termine par un chiffre compris entre 3 et 6 @@ -37,13 +45,44 @@ $ find /usr -name " *.c " -print $ find . -name '[aA]*[3-6]' -print ``` +Recherche par nom (**-iname**) (non sensible à la case): + +```bash +# Le nom exact: toto + +$ find /usr -iname toto -print +``` + +Cela renvoie à la fois des fichiers et des dossiers. Pour avoir le choix fichiers ou dossiers (**-type**): + +```bash +# Pour les fichiers uniquement + +$ find /usr -name toto -type f + +# Pour les dossiers uniquement + +$ find /usr -name toto -type d +``` + #### Taille: -Recherche suivant la taille: +Recherche suivant la taille (**-size**): + +- c: octet +- k: kilo +- M: méga +- G: giga + + ```bash +# fichiers de 30ko + +$ find / -size 30k -print + # fichiers dont la taille dépasse 30ko $ find / -size +30k -print @@ -51,6 +90,24 @@ $ find / -size +30k -print # fichiers dont la taille est comprise entre 30 et 100ko $ find / -size +30k -size -100k + +# fichiers de moins de 30ko + +$ find / -size -30k -print + + +# répertoire de plus de 30k + +$ find / -type d -size +30k -print +``` + +```bash +# fichier ou répertoire vide + +$ find / -size 0 +$ find / -empty + +find / -type d -empty ``` @@ -60,7 +117,7 @@ $ find / -size +30k -size -100k Recherche en utilisant les opérateurs logiques: ```bash -# les fichiers n'appartenant pas à l'utilisateur olivierles fichiers n'appartenant pas à l'utilisateur olivier +# Recherche les fichiers n'appartenant pas à l'utilisateur olivier. $ find . ! -user olivier -print @@ -68,6 +125,10 @@ $ find . ! -user olivier -print $ find . \ ( -name a.out -o -name " *.c " \ ) -print +# Recherche les fichiers dont l'extension est .pdf, .txt ou .doc + +$ find . -type f ( -name "*.txt" -o -name "*.pdf" -o -name "*.doc" ) + # Recherche des fichiers dont le nom est core et d'une taille supérieure à 1Mo (une condition ET l'autre). $ find . \ (-name core -a size +2000 \ ) -print @@ -83,7 +144,7 @@ Rechercher le plus vieux fichier: $ find / -type f -printf '%T+ %p\n' | sort | head -n 1 ``` -Recherche suivant la date de dernière modification: +Recherche suivant la date de dernière modification (**-mtime**): ```bash # modifiés il y a 30 jours diff --git a/docs/Linux/fzf.md b/docs/Linux/fzf.md index 47cecb6..a93074f 100644 --- a/docs/Linux/fzf.md +++ b/docs/Linux/fzf.md @@ -14,7 +14,7 @@ https://github.com/junegunn/fzf/blob/master/ADVANCED.md -##### Installation: +### Installation: ```bash $ brew install fzf @@ -47,7 +47,7 @@ Options -##### Utilisation 1: +### Utilisation 1: ```bash ~/Documents/Scripts_Raspberry master* 19s 17:46:16 @@ -58,7 +58,9 @@ puis on entre des mots-clé pour affiner la recherche. fzf2 -##### Utilisation 2: + + +### Utilisation 2: ```bash ~/Documents/Scripts_Raspberry master* @@ -84,7 +86,7 @@ puis **Tab** pour sélectionner plusieurs fichiers et **Return** pour les ouvrir -#### Fuzzy completion +### Fuzzy completion Déclencheur: ** puis @@ -113,7 +115,9 @@ $ La complétion marche aussi avec la commande ssh: les serveurs sont tirés de /etc/hosts et de ssh/config. -##### Utilisation 4 (kill): + + +### Utilisation 4 (kill): Taper **kill** puis **Espace** puis **Tab** @@ -132,7 +136,7 @@ $ kill 266 311 -##### Utilisation 5 (complétion de cat): +### Utilisation 5 (complétion de cat): ```bash ~/Documents/Scripts_Raspberry master* @@ -160,7 +164,7 @@ $ export ** -##### Utilisation 6 (complétion de nano): +### Utilisation 6 (complétion de nano): ```bash ~/Documents/Scripts_Raspberry master* @@ -189,7 +193,7 @@ $ nano ../** -##### Options: +### Options: ```bash fzf --height 40% --layout reverse --info inline --border \ @@ -210,4 +214,12 @@ export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border' + + +https://bluz71.github.io/2018/11/26/fuzzy-finding-in-bash-with-fzf.html + +https://curatedgo.com/r/fzf-is-a-junegunnfzf/index.html + + + ### \ No newline at end of file diff --git a/docs/mkdocs.md b/docs/MkDocs/index.md similarity index 69% rename from docs/mkdocs.md rename to docs/MkDocs/index.md index f6918f2..2db9120 100644 --- a/docs/mkdocs.md +++ b/docs/MkDocs/index.md @@ -2,13 +2,9 @@ For full documentation visit [mkdocs.org](http://mkdocs.org). -Take me to [pookie](#some-heading) - -Take me to [pookie](macos/python/pip.md#Environnement virtuel:) - -## Installation: +### Installation: ```bash $ pip install mkdocs @@ -16,7 +12,7 @@ $ pip install mkdocs -## Commandes: +### Commandes: * `mkdocs new [dir-name]` - Create a new project. * `mkdocs serve` - Start the live-reloading docs server. @@ -26,7 +22,7 @@ $ pip install mkdocs -## Project layout: +### Project layout: ```bash mkdocs.yml # The configuration file. @@ -37,7 +33,7 @@ docs/ -## Créer un nouveau projet de docs: +### Créer un nouveau projet de docs: ```bash bruno@SilverBook:~$ mkdocs new project @@ -61,7 +57,7 @@ drwxr-xr-x 3 bruno staff 96 16 déc 20:48 docs -## Servir le projet: +### Servir le projet: ```bash bruno@SilverBook:~/project$ mkdocs serve @@ -79,7 +75,7 @@ INFO - Cleaning site directory -## Copier les docs sur le serveur: +### Copier les docs sur le serveur: ```bash $ cd /Users/bruno/project @@ -101,9 +97,9 @@ scp -P42666 -r ./central_docs bruno@192.168.xxx.xxx:/volume1/web -## Admonitions: +### Admonitions: -### Note: +#### Note: **Note simple:** @@ -164,7 +160,7 @@ scp -P42666 -r ./central_docs bruno@192.168.xxx.xxx:/volume1/web ???+ note Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa. -### Type: +#### Type: `abstract`, `summary`, `tldr` @@ -285,7 +281,7 @@ https://squidfunk.github.io/mkdocs-material/reference/abbreviations/ -## Font Awesome icons: +### Font Awesome icons: :fa-link: [http://bwmarrin.github.io/MkDocsPlus/](http://bwmarrin.github.io/MkDocsPlus/) @@ -324,9 +320,9 @@ https://squidfunk.github.io/mkdocs-material/reference/abbreviations/ -## Themes: +### Themes: -### Installer un thème: +#### Installer un thème: ```bash $ pip install mkdocs-cinder @@ -334,7 +330,7 @@ $ pip install mkdocs-cinder -### Mettre à jour un thème: +#### Mettre à jour un thème: ```bash $ pip install --upgrade mkdocs-material @@ -352,15 +348,135 @@ https://github.com/otsuarez/mkdocs_auth -## Plugins: +### Plugins: - mkdocs-material-extensions - mkdocs-git-revision-date-localized-plugin - mkdocs-minify-plugin - fontawesome_markdown - mkdocs-pdf-export-plugin +- markdown +- pymdown-extensions ```bash -$ pip install --upgrade mkdocs-material-extensions mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin fontawesome_markdown mkdocs-pdf-export-plugin +$ pip install --upgrade mkdocs-material-extensions mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin fontawesome_markdown mkdocs-pdf-export-plugin markdown pymdown-extensions ``` + + +### Structures: + +```bash linenums="1" hl_lines="1 19 30 44 45 47 51 67 69" +├── central_docs (*) +│   ├── Distributions +│   │   ├── Mint +├── docs +│   ├── Distributions +│   │   ├── Mint +│   │      ├── Mint.md +│   │      ├── applications.md +│   │      ├── backup.md +│   │      ├── grub.md +│   │      ├── index.md +│   │      ├── samba.md +│   │      ├── systemctl.md +│   │      ├── vsftpd.md +│   │      └── webserver.md +│   ├── NBResources +│   │   └── Misc +│   │   └── RecentItems.txt +│   ├── assets (*) +│   │   └── icons +│   │   ├── icon-128x128.png +│   │   ├── icon-144x144.png +│   │   ├── icon-152x152.png +│   │   ├── icon-192x192.png +│   │   ├── icon-384x384.png +│   │   ├── icon-512x512.png +│   │   ├── icon-72x72.png +│   │   └── icon-96x96.png +│   ├── index.md +│   ├── javascripts (*) +│   │   └── extra.js +│   ├── macos +│   │   ├── Divers +│   │   │   ├── Divers.md +│   │   │   ├── Hackintosh.md +│   │   │   └── weasyprint.md +│   │   └── webserver +│   │   ├── apache_M1.md +│   │   ├── index.md +│   │   ├── install_mysql.md +│   │   ├── mysql.md +│   │   ├── php.md +│   │   └── php80.md +│   ├── manifest.json (*) +│   ├── overrides (*) +│   │   └── partials +│   ├── stylesheets (*) +│   │   ├── extra.css +│   │   ├── fontawesome-all.css +│   │   └── second_extra.css +│   └── webfonts (*) +│   ├── fa-brands-400.eot +│   ├── fa-brands-400.svg +│   ├── fa-brands-400.ttf +│   ├── fa-brands-400.woff +│   ├── fa-brands-400.woff2 +│   ├── fa-regular-400.eot +│   ├── fa-regular-400.svg +│   ├── fa-regular-400.ttf +│   ├── fa-regular-400.woff +│   ├── fa-regular-400.woff2 +│   ├── fa-solid-900.eot +│   ├── fa-solid-900.svg +│   ├── fa-solid-900.ttf +│   ├── fa-solid-900.woff +│   └── fa-solid-900.woff2 +├── includes (*) +│   └── abbreviations.md +├── mkdocs.yml (*) +└── src + └── mkdocs-pdf-export-plugin + +``` + + + +- **assets/** + * icons + + icon-128x128.png + + icon-96x96.png + +- **javascripts/** + * extra.js + +- Manifest.json + +- **stylesheets/** + * extra.css + * fontawesome-all.css + * second_extra.css + +- **webfonts/** + * fa-brands-400.eot + * fa-regular-400.eot + * fa-solid-900.eot + +- **Includes/** + * abbreviations.md + +- mkdocs.yml + +- **overrides/** + * partials/ + +- **central_docs/** : le site crée par `mkdocs build` + + + + + + +### [suite...:material-arrow-right-top:](mkdocs-material.md) + diff --git a/docs/MkDocs/mkdocs-material-2.md b/docs/MkDocs/mkdocs-material-2.md new file mode 100644 index 0000000..84f91f2 --- /dev/null +++ b/docs/MkDocs/mkdocs-material-2.md @@ -0,0 +1,192 @@ +# Material for MkDocs + +https://squidfunk.github.io/mkdocs-material/ + + + +### Icons + Emojis + +https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/ + +```yaml +markdown_extensions: + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg +``` + + + +:material-material-design: [Material Design](https://materialdesignicons.com/) + +:fontawesome-brands-font-awesome: [Font Awesome](https://fontawesome.com/search?m=free) + +:octicons-mark-github-16: [Octicons](https://octicons.github.com/) + + + +#### Emojis + +``` +:smile: + +:angry: + +:deer: +``` + +:smile: + +:angry: + +:deer: + + + +#### Icons + +``` +:material-phone-classic: + +:fontawesome-solid-phone-flip: + +:octicons-megaphone-24: +``` + +:material-phone-classic: + +:fontawesome-solid-phone-flip: + +:octicons-megaphone-24: + + + + +### Lists + +https://squidfunk.github.io/mkdocs-material/reference/lists/ + +``` +markdown_extensions: + - def_list + - pymdownx.tasklist: + custom_checkbox: true +``` + +#### Unordered lists + +```title="List, unordered" +- Nulla et rhoncus turpis. Mauris ultricies elementum leo. Duis efficitur + accumsan nibh eu mattis. Vivamus tempus velit eros, porttitor placerat nibh + lacinia sed. Aenean in finibus diam. + + * Duis mollis est eget nibh volutpat, fermentum aliquet dui mollis. + * Nam vulputate tincidunt fringilla. + * Nullam dignissim ultrices urna non auctor. + + + Vivamus venenatis + + Morbi eget dapibus felis. +``` + +- Nulla et rhoncus turpis. Mauris ultricies elementum leo. Duis efficitur + accumsan nibh eu mattis. Vivamus tempus velit eros, porttitor placerat nibh + lacinia sed. Aenean in finibus diam. + + * Duis mollis est eget nibh volutpat, fermentum aliquet dui mollis. + * Nam vulputate tincidunt fringilla. + * Nullam dignissim ultrices urna non auctor. + + + Vivamus venenatis + + Morbi eget dapibus felis. + + + + +#### Ordered lists + +```title="List, ordered" +1. Vivamus id mi enim. Integer id turpis sapien. Ut condimentum lobortis + sagittis. Aliquam purus tellus, faucibus eget urna at, iaculis venenatis + nulla. Vivamus a pharetra leo. + + 1. Vivamus venenatis porttitor tortor sit amet rutrum. Pellentesque aliquet + quam enim, eu volutpat urna rutrum a. Nam vehicula nunc mauris, a + ultricies libero efficitur sed. + + 2. Morbi eget dapibus felis. Vivamus venenatis porttitor tortor sit amet + rutrum. Pellentesque aliquet quam enim, eu volutpat urna rutrum a. + + 1. Mauris dictum mi lacus + 2. Ut sit amet placerat ante + 3. Suspendisse ac eros arcu + +``` + +1. Vivamus id mi enim. Integer id turpis sapien. Ut condimentum lobortis + sagittis. Aliquam purus tellus, faucibus eget urna at, iaculis venenatis + nulla. Vivamus a pharetra leo. + 1. Vivamus venenatis porttitor tortor sit amet rutrum. Pellentesque aliquet + quam enim, eu volutpat urna rutrum a. Nam vehicula nunc mauris, a + ultricies libero efficitur sed. + 2. Morbi eget dapibus felis. Vivamus venenatis porttitor tortor sit amet + rutrum. Pellentesque aliquet quam enim, eu volutpat urna rutrum a. + + 1. Mauris dictum mi lacus + 2. Ut sit amet placerat ante + 3. Suspendisse ac eros arcu + + + +#### Task lists + +```title="Task list" +- [x] Lorem ipsum dolor sit amet, consectetur adipiscing elit +- [ ] Vestibulum convallis sit amet nisi a tincidunt + * [x] In hac habitasse platea dictumst + * [x] In scelerisque nibh non dolor mollis congue sed et metus + * [ ] Praesent sed risus massa +- [ ] Aenean pretium efficitur erat, donec pharetra, ligula non scelerisque + +``` + +- [x] Lorem ipsum dolor sit amet, consectetur adipiscing elit +- [ ] Vestibulum convallis sit amet nisi a tincidunt + * [x] In hac habitasse platea dictumst + * [x] In scelerisque nibh non dolor mollis congue sed et metus + * [ ] Praesent sed risus massa +- [ ] Aenean pretium efficitur erat, donec pharetra, ligula non scelerisque + + + +#### Definition lists + +```title="Definition list" +`Lorem ipsum dolor sit amet` + +: Sed sagittis eleifend rutrum. Donec vitae suscipit est. Nullam tempus + tellus non sem sollicitudin, quis rutrum leo facilisis. + +`Cras arcu libero` + +: Aliquam metus eros, pretium sed nulla venenatis, faucibus auctor ex. Proin + ut eros sed sapien ullamcorper consequat. Nunc ligula ante. + + Duis mollis est eget nibh volutpat, fermentum aliquet dui mollis. + Nam vulputate tincidunt fringilla. + Nullam dignissim ultrices urna non auctor. + +``` + +`Lorem ipsum dolor sit amet` + +: Sed sagittis eleifend rutrum. Donec vitae suscipit est. Nullam tempus + tellus non sem sollicitudin, quis rutrum leo facilisis. + +`Cras arcu libero` + +: Aliquam metus eros, pretium sed nulla venenatis, faucibus auctor ex. Proin + ut eros sed sapien ullamcorper consequat. Nunc ligula ante. + + Duis mollis est eget nibh volutpat, fermentum aliquet dui mollis. + Nam vulputate tincidunt fringilla. + Nullam dignissim ultrices urna non auctor. diff --git a/docs/MkDocs/mkdocs-material-3.md b/docs/MkDocs/mkdocs-material-3.md new file mode 100644 index 0000000..084217b --- /dev/null +++ b/docs/MkDocs/mkdocs-material-3.md @@ -0,0 +1,71 @@ +# Material for MkDocs + +https://squidfunk.github.io/mkdocs-material/ + + + +### Images + +https://squidfunk.github.io/mkdocs-material/reference/images/ + +```yaml +markdown_extensions: + - attr_list + - md_in_html +``` + + + +```title="Image, aligned to left" +![Image title](https://dummyimage.com/600x400/eee/aaa){ align=left } +``` + +![Image title](https://dummyimage.com/400x300/eee/aaa){ align=left } + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa. + + + +------ + + + +```title="Image, aligned to right" +![Image title](https://dummyimage.com/600x400/eee/aaa){ align=right } +``` + +![Image title](https://dummyimage.com/400x300/eee/aaa){ align=right } + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa. + +

+ +```title="Image with caption" +

+ ![Image title](https://dummyimage.com/600x400/){ width="300" } +
Image caption
+
+``` + +
+ ![Image title](https://dummyimage.com/600x400/eee/aaa){ width="300" } +
Image caption
+
+ + ![Image title](https://dummyimage.com/600x400/eee/aaa){ width="300" } + + + +![](https://dummyimage.com/600x400/eee/aaa) + + + +![aaa](/Users/bruno/Downloads/aaa.png) + + + +```title="Image, lazy-loaded" +![Image title](https://dummyimage.com/600x400/){ loading=lazy } +``` + +![Image title](https://dummyimage.com/600x400/){ loading=lazy } \ No newline at end of file diff --git a/docs/MkDocs/mkdocs-material.md b/docs/MkDocs/mkdocs-material.md new file mode 100644 index 0000000..2630fb1 --- /dev/null +++ b/docs/MkDocs/mkdocs-material.md @@ -0,0 +1,590 @@ + + +# Material for MkDocs + +https://squidfunk.github.io/mkdocs-material/ + + + +### Installer Material + +```bash +pip install --upgrade mkdocs-material +``` + + +### Installing Python-Markdown + +```bash +pip install markdown +pip install git+https://github.com/Python-Markdown/markdown.git +``` + +```bash +pip install pymdown-extensions +``` + + + +### pipx + +```bash +pipx inject mkdocs mkdocs-material mkdocs-material-extensions mkdocs-minify-plugin mkdocs-git-revision-date-localized-plugin mkdocs-pdf-export-plugin fontawesome_markdown markdown pymdown-extensions +``` + + + +------ + + + +### Abbreviations + +https://squidfunk.github.io/mkdocs-material/reference/abbreviations/ + +```yaml +markdown_extensions: + - abbr + - pymdownx.snippets +``` + +The HTML specification is maintained by the W3C. + +*[HTML]: Hyper Text Markup Language +*[W3C]: World Wide Web Consortium + + + +### Glossary + +```yaml +markdown_extensions: + - abbr + - pymdownx.snippets +``` + +The HTML specification is maintained by the W3C. +--8<-- "includes/abbreviations.md" + + + +### Admonition + +https://squidfunk.github.io/mkdocs-material/reference/admonitions/ + +```yaml +markdown_extensions: + - admonition + - pymdownx.details + - pymdownx.superfences +``` + +#### Note: + +``` +!!! note +``` + +!!! note + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + +#### Collapsible blocks + +``` +??? note +``` + +??? note + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + +``` +???+ note +``` + +???+ note + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + +#### Inline blocks + +##### Aligné à droite: + +``` +!!! info inline end +``` + +!!! info inline end + + Lorem ipsum dolor sit amet, consectetur + adipiscing elit. Nulla et euismod nulla. + Curabitur feugiat, tortor non consequat + finibus, justo purus auctor massa, nec + semper lorem quam in massa. + +**Important**: admonitions that use the `inline` modifiers *must* be declared prior to the content block you want to place them beside. If there's insufficient space to render the admonition next to the block, the admonition will stretch to the full width of the viewport, e.g. on mobile viewports. + +------ + + + +##### Aligné à gauche: + +``` +!!! info inline +``` + +!!! info inline + + Lorem ipsum dolor sit amet, consectetur + adipiscing elit. Nulla et euismod nulla. + Curabitur feugiat, tortor non consequat + finibus, justo purus auctor massa, nec + semper lorem quam in massa. + +**Important**: admonitions that use the `inline` modifiers *must* be declared prior to the content block you want to place them beside. If there's insufficient space to render the admonition next to the block, the admonition will stretch to the full width of the viewport, e.g. on mobile viewports. + +------ + + + +#### Titre personnalisé: + +``` +!!! note "Phasellus posuere in sem ut cursus" +``` + +!!! note "Phasellus posuere in sem ut cursus" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + +#### Sans titre: + +``` +!!! note "" +``` + +!!! note "" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + +#### Supported types + +#### `info` `todo` + +!!! info "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `abstract` `summary` `tldr` + +!!! abstract "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `tip` `hint` `important` + +!!! tip "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `success` `check` `done` + +!!! success "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `question` `help` `faq` + +!!! question "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `warning` `caution` `attention` + +!!! warning "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `failure` `fail` `missing` + +!!! failure "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `danger` `error` + +!!! danger "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `bug` + +!!! bug "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `example` + +!!! example "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + + `quote` `cite` + +!!! quote "Info" + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + + + +### Annotations + +https://squidfunk.github.io/mkdocs-material/reference/annotations/ + + + +### Buttons + +https://squidfunk.github.io/mkdocs-material/reference/buttons/ + + + +### Code blocks + +https://squidfunk.github.io/mkdocs-material/reference/code-blocks/ + +```yaml +markdown_extensions: + - pymdownx.highlight: + anchor_linenums: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences +``` + + + +#### Add a title + +``` + title="" +``` + +``` py title="bubble_sort.py" +def bubble_sort(items): + for i in range(len(items)): + for j in range(len(items) - 1 - i): + if items[j] > items[j + 1]: + items[j], items[j + 1] = items[j + 1], items[j] +``` + +#### Add line number + +``` + linenums="" +``` + +``` py linenums="1" +def bubble_sort(items): + for i in range(len(items)): + for j in range(len(items) - 1 - i): + if items[j] > items[j + 1]: + items[j], items[j + 1] = items[j + 1], items[j] +``` + +#### Highlighting specific lines + +``` + hl_lines="2 4" +``` + +``` py hl_lines="2 4" +def bubble_sort(items): + for i in range(len(items)): + for j in range(len(items) - 1 - i): + if items[j] > items[j + 1]: + items[j], items[j + 1] = items[j + 1], items[j] +``` + +#### Highlighting inline code blocks + +``` +#! +``` + +The `#!python range()` function is used to generate a sequence of numbers. + + + +### Content tabs + +https://squidfunk.github.io/mkdocs-material/reference/content-tabs/ + + + +### Data tables + +https://squidfunk.github.io/mkdocs-material/reference/data-tables/ + +```yam +markdown_extensions: + - tables +``` + +#### Aligner une colonne à gauche + +```markdown +| Method | Description | +| :---------- | :----------------------------------- | +| `GET` | :material-check: Fetch resource | +| `PUT` | :material-check-all: Update resource | +| `DELETE` | :material-close: Delete resource | +``` + +| Method | Description | +| :------- | :----------------------------------- | +| `GET` | :material-check: Fetch resource | +| `PUT` | :material-check-all: Update resource | +| `DELETE` | :material-close: Delete resource | + +#### Aligner une colonne au centre + +```markdown +| Method | Description | +| :---------: | :----------------------------------: | +| `GET` | :material-check: Fetch resource | +| `PUT` | :material-check-all: Update resource | +| `DELETE` | :material-close: Delete resource | +``` + +| Method | Description | +| :------: | :----------------------------------: | +| `GET` | :material-check: Fetch resource | +| `PUT` | :material-check-all: Update resource | +| `DELETE` | :material-close: Delete resource | + +#### Aligner une colonne à droite + +```markdown +| Method | Description | +| ----------: | -----------------------------------: | +| `GET` | :material-check: Fetch resource | +| `PUT` | :material-check-all: Update resource | +| `DELETE` | :material-close: Delete resource | +``` + +| Method | Description | +| -------: | -----------------------------------: | +| `GET` | :material-check: Fetch resource | +| `PUT` | :material-check-all: Update resource | +| `DELETE` | :material-close: Delete resource | + +#### Trier une colonne + +```yaml +extra_javascript: + - https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js + - javascripts/tablesort.js +``` + + + +| Method | Description | +| -------- | ------------------------------------ | +| `GET` | :material-check: Fetch resource | +| `PUT` | :material-check-all: Update resource | +| `DELETE` | :material-close: Delete resource | + +### Diagrams + +https://squidfunk.github.io/mkdocs-material/reference/diagrams/ + + + +### Footnotes + +https://squidfunk.github.io/mkdocs-material/reference/footnotes/ + +```yaml +markdown_extensions: + - footnotes +``` + +#### Adding footnote references + +``` +Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit.[^2] +``` + +Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit.[^2] + +#### Adding footnote content + +``` +[^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit. +``` + +[^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + +[Footnote 1](#fn:1) + +``` +[^2]: + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. +``` + +[^2]: + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod + nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor + massa, nec semper lorem quam in massa. + +[Footnote 2](#fn:2) + + + +### Formatting + +https://squidfunk.github.io/mkdocs-material/reference/formatting/ + +```yaml +markdown_extensions: + - pymdownx.critic + - pymdownx.caret + - pymdownx.keys + - pymdownx.mark + - pymdownx.tilde +``` + +#### Highlighting changes + +``` +Text can be {--deleted--} and replacement text {++added++}. This can also be +combined into {~~one~>a single~~} operation. {==Highlighting==} is also +possible {>>and comments can be added inline<<}. + +{== + +Formatting can also be applied to blocks by putting the opening and closing +tags on separate lines and adding new lines between the tags and the content. + +==} +``` + +Text can be {--deleted--} and replacement text {++added++}. This can also be +combined into {~~one~>a single~~} operation. {==Highlighting==} is also +possible {>>and comments can be added inline<<}. + +{== + +Formatting can also be applied to blocks by putting the opening and closing +tags on separate lines and adding new lines between the tags and the content. + +==} + +#### Highlighting text + +``` +- ==This was marked== +- ^^This was inserted^^ +- ~~This was deleted~~ +``` + +- ==This was marked== +- ^^This was inserted^^ +- ~~This was deleted~~ + +#### Sub- and superscripts + +``` +- H~2~0 +- A^T^A +``` + +- H~2~0 +- A^T^A + +#### Keys + +``` +++ctrl+alt+del++ + +++cmd+alt+"Ü"++ + +++cmd++ +``` + +++ctrl+alt+"My Special Key"++ + +++cmd+alt+"Ü"++ + +++cmd++ + + + +[suite...:material-arrow-right-top:](mkdocs-material-2.md) + +### diff --git a/docs/MySQL/bases.md b/docs/MySQL/bases.md index bdee1f6..75d7703 100644 --- a/docs/MySQL/bases.md +++ b/docs/MySQL/bases.md @@ -51,7 +51,7 @@ et donner les privilèges à un utilisateur (existant) sur cette base: MariaDB [(none)]> GRANT ALL ON bdd.* TO 'theuser'@'localhost'; Query OK, 0 rows affected (0.021 sec) -MariaDB [(none)]> FLUSH PRIVILEGES +MariaDB [(none)]> FLUSH PRIVILEGES; ``` ou à un utilisateur qui n'existe pas encore: @@ -60,7 +60,7 @@ ou à un utilisateur qui n'existe pas encore: MariaDB [(none)]> GRANT ALL ON bdd.* TO 'matrix'@'localhost' IDENTIFIED BY 'password'; Query OK, 0 rows affected (0.030 sec) -MariaDB [(none)]> FLUSH PRIVILEGES +MariaDB [(none)]> FLUSH PRIVILEGES; ``` L'utilisateur 'matrix' sera crée. diff --git a/docs/MySQL/index.md b/docs/MySQL/index.md index ccd5d2d..c2eefb9 100644 --- a/docs/MySQL/index.md +++ b/docs/MySQL/index.md @@ -40,3 +40,5 @@ MariaDB [(none)]> SELECT VERSION(), CURRENT_DATE; [:fa-link: http://apple.stackexchange.com/questions/255671/error-mysql-server-pid-file-could-not-be-found](http://apple.stackexchange.com/questions/255671/error-mysql-server-pid-file-could-not-be-found) + + diff --git a/docs/MySQL/repair.md b/docs/MySQL/repair.md index a8f6bf0..961fcb5 100644 --- a/docs/MySQL/repair.md +++ b/docs/MySQL/repair.md @@ -86,7 +86,7 @@ note : The storage engine for the table doesn't support repair Pour les tables InnoDB, il faut [forcer la récupération](https://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html): 1) Arrêter **mysqld**: - + 2) Sauvegarder **mysql**: ```bash @@ -99,7 +99,7 @@ Pour les tables InnoDB, il faut [forcer la récupération](https://dev.mysql.com 3) Ajouter au fichier de configuration MySQL my.cnf: -``` +```ini #osx (Homebrew): /usr/local/etc/my.cnf [mysqld] @@ -127,11 +127,11 @@ $ mysqldump -A -u root -ppassword > '/tmp/dump.sql'; ``` 6) Parfois cela peut suffire. Sinon, - + 7) Supprimer les tables / bases corrompues (DROP ...) - + 8) Arrêter **mysqld**: - + 9) Supprimer les ib*: ```bash @@ -150,7 +150,7 @@ $ mysqldump -A -u root -ppassword > '/tmp/dump.sql'; ``` 11) Redémarrer **mysqld**: - + 12) Restaurer les bases: ```bash diff --git a/docs/Plesk/index.md b/docs/Plesk/index.md index f339da9..853d08a 100644 --- a/docs/Plesk/index.md +++ b/docs/Plesk/index.md @@ -183,6 +183,8 @@ Ne marche pas !! https://support.plesk.com/hc/en-us/articles/360003876473-How-to-clean-temporary-Plesk-files-on-a-Linux-server +https://support.plesk.com/hc/en-us/articles/115002557954-How-to-remove-Plesk-backup-files-and-their-logs?source=search + ```bash root@localhost:~# df -h /tmp Filesystem Size Used Avail Use% Mounted on @@ -193,10 +195,25 @@ Filesystem Size Used Avail Use% Mounted on ``` +Remove backup logfiles: + +```bash +# status change XX*24 hours ago. + +find /var/log/plesk/PMM/ -name 'backup*' -type d -ctime +XX -exec rm -rf {} +; +``` + +Remove backup files: + +```bash +find /var/lib/psa/dumps -name 'backup*' -type f -ctime +XX -exec rm -rf {} +; +``` + Allocate additional disk space or remove unnecessary files in `/var/lib/psa/dumps`. ```bash -# find / -type f -size +200M -exec du -h {} + 2>/dev/null | sort -r -h +find / -type f -size +200M -exec du -h {} + 2>/dev/null | sort -r -h + 5,0G /var/lib/psa/dumps/domains/sur-le-sentier.fr/backup_user-data_2108080143.tgz 2,5G /var/www/vhosts/sur-le-sentier.fr/.wp-toolkit/snapshots/instance_files_2_52x7sld.zip 1,3G /var/lib/psa/dumps/domains/maboiteverte.fr/backup_user-data_2110310443.tgz diff --git a/docs/Plesk/joplin.md b/docs/Plesk/joplin.md index a82489c..03dfa64 100644 --- a/docs/Plesk/joplin.md +++ b/docs/Plesk/joplin.md @@ -169,3 +169,51 @@ Serveur Joplin: +### Purger les anciennes images + + + +```bash title="Liste des toutes les images" +root@localhost:~# docker image ls + +REPOSITORY TAG IMAGE ID CREATED SIZE +joplin/server latest 782cbde24b82 3 weeks ago 1.23GB +joplin/server a26c4004d386 2 months ago 3.17GB +joplin/server f9f69a3c0e96 3 months ago 2.64GB +joplin/server f1a60289456e 4 months ago 2.61GB +joplin/server 10eda2200dab 5 months ago 2.5GB +postgres 13.1 407cece1abff 12 months ago 314MB +``` + +Les images sans tags apparaissent comme SHA256 dans Plesk. + + + +```bash title="Liste de tous les containers" +root@localhost:~# docker container ls --all + +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +17d973e4c278 joplin/server:latest "tini -- node dist/a…" 2 weeks ago Up 2 weeks 0.0.0.0:22300->22300/tcp, :::22300->22300/tcp joplin_app_1 +2eeccf277a3d postgres:13.1 "docker-entrypoint.s…" 7 months ago Up 2 weeks 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp joplin_db_1 +``` + + + +```bash title="Supression des images non  associées à un container" +root@localhost:~# docker image prune -a + +WARNING! This will remove all images without at least one container associated to them. +Are you sure you want to continue? [y/N] y +Deleted Images: +untagged: joplin/server@sha256:ecd8d71d0b8c972d85e9fa626b0f3b476bc72d0e82ec9afd1c63c951531ad9e1 +delete ... +untagged: joplin/server@sha256:17100fc5349199b8398ede4f7079f0ecbfbc5cca5a9e5fbcb17660f9b8496330 +delete ... +untagged: joplin/server@sha256:a2895e667ded09b6622111a58196ade878781ce2afbde19b3d5a12bd4ac8efb7 +delete ... +untagged: joplin/server@sha256:e70ee993aecbb8b7fdf6a24a8cacad1a73084f3c566abc50ef1dbfa48c247a47 +delete ... + +Total reclaimed space: 10.09GB +``` + diff --git a/docs/Plesk/nextcloud.md b/docs/Plesk/nextcloud.md index 4e77247..93c0bbe 100644 --- a/docs/Plesk/nextcloud.md +++ b/docs/Plesk/nextcloud.md @@ -57,7 +57,23 @@ Starting scan for user 1 out of 1 (bruno) | Folders | Files | Elapsed time | +---------+-------+--------------+ | 5 | 16 | 00:00:00 | -+---------+-------+--------------+ ++---------+-------+--------------+` +``` + + + +#### Mise-à-jour de Nextcloud: + +```bash +~$ ./upgrade_nextcloud.sh +``` + + + +#### La base de données a quelques index manquants: + +```bash +~/httpdocs/nextcloud$ sudo -u bruno /opt/plesk/php/7.4/bin/php occ db:add-missing-indices ``` diff --git a/docs/Plesk/nodejs.md b/docs/Plesk/nodejs.md new file mode 100644 index 0000000..f50067e --- /dev/null +++ b/docs/Plesk/nodejs.md @@ -0,0 +1,64 @@ +# Node.js + + + + + + + +Installer l'extension Gestionnaire Node.js: + +```bash +# plesk ext nodejs --versions + Enabled Version Path + false 17.4.0 /opt/plesk/node/17/bin/node + true 16.13.2 /opt/plesk/node/16/bin/node + true 14.19.0 /opt/plesk/node/14/bin/node + false 12.22.10 /opt/plesk/node/12/bin/node +``` + + + +```bash +root@localhost:~# /opt/plesk/node/16/bin/node -v +v16.13.2 +root@localhost:~# /opt/plesk/node/16/bin/npm -v +8.1.2 +``` + +```bash +bruno@localhost:~$ /opt/plesk/node/16/bin/node -v +v16.13.2 +``` + + + +```bash +root@localhost:~# ln -s /opt/plesk/node/16/bin/node /usr/bin/node +root@localhost:~# ln -s /opt/plesk/node/16/bin/npm /usr/bin/npm +``` + +Installer thumsup: + +```bash +root@localhost:~# npm install -g thumbsup + +/opt/plesk/node/16/lib/node_modules/thumbsup' + +root@localhost:~# ln -s /opt/plesk/node/16/lib/node_modules/thumbsup/bin/thumbsup.js /usr/bin/thumbsup + +``` + +Installer les dépendances: + +```bash +# apt install libimage-exiftool-perl +# apt install graphicsmagick +``` + + + +!!! warning "Après augmentation SSD 50Go -> 100Go, il faut réactiver node dans Plesk, et installer thumsup." + +!!! warning "Désactiver node sinon erreur 'phusionpassenger'" + diff --git a/docs/Raspberry/Argon-one.md b/docs/Raspberry/Argon-one.md index 8919a3b..e553208 100644 --- a/docs/Raspberry/Argon-one.md +++ b/docs/Raspberry/Argon-one.md @@ -10,10 +10,10 @@ Le boitier accepte les SSD M.2 (Key-B ou Key-B&M) ### Installer Raspberry Pi OS sur la MicroSD: -Télécharger [Raspberry Pi OS](https://www.raspberrypi.org/software/operating-systems/) + Télécharger [Raspberry Pi OS](https://www.raspberrypi.org/software/operating-systems/) -``` -https://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2021-01-12/2021-01-11-raspios-buster-armhf-full.zip +```bash +wget https://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2021-01-12/2021-01-11-raspios-buster-armhf-full.zip ``` Copier Raspberry Pi OS sur la MicroSD avec [Etcher](https://www.balena.io/etcher/) @@ -23,9 +23,9 @@ Booter sur la MicroSD. Mettre à jour l'OS et le firmware: ```bash -$ sudo apt update -$ sudo apt full-upgrade -$ sudo rpi-update +sudo apt update +sudo apt full-upgrade +sudo rpi-update ``` Redémarrer le Raspberry. @@ -33,7 +33,7 @@ Redémarrer le Raspberry. Installer le dernier bootloader; ```bash -$ sudo rpi-eeprom-update -d -a +sudo rpi-eeprom-update -d -a ``` Redémarrer le Raspberry. @@ -45,7 +45,7 @@ Redémarrer le Raspberry. Ouvrir **raspi-config**: ```bash -$ sudo raspi-config +sudo raspi-config ``` 1. Choisir **Advanded Options** puis Enter @@ -76,7 +76,7 @@ $ sudo raspi-config Installer Bouton Power et contrôle ventilo: ```bash -$ curl https://download.argon40.com/argon1.sh | bash +curl https://download.argon40.com/argon1.sh | bash ``` Fonctions Bouton Power: @@ -100,13 +100,13 @@ Vitesse ventilo: Pour configurer: ```bash -$ argonone-config +argonone-config ``` Désinstaller: ```bash -$ argonone-uninstall +argonone-uninstall ``` @@ -118,7 +118,7 @@ $ argonone-uninstall #### Installer le correcteur orthographique français: ```bash -$ sudo apt-get install myspell-fr +sudo apt-get install myspell-fr ``` @@ -301,14 +301,14 @@ AllowUsers user1 user2 #### Redémarrer le service ssh: ```bash -$ sudo service ssh restart +sudo service ssh restart ``` #### Si pas besoin de SSH, il faut le désactiver: ```bash -$ sudo systemctl stop sshd -$ sudo systemctl disable sshd +sudo systemctl stop sshd +sudo systemctl disable sshd ``` @@ -339,7 +339,9 @@ export NVM_DIR="$HOME/.config/nvm" $ nvm install --lts=fermium Installing with latest version of LTS line: fermium Downloading and installing node v14.16.0... +``` +```bash title="Version" $ node -v v14.16.0 ``` diff --git a/docs/Raspberry/aptitude.md b/docs/Raspberry/aptitude.md index 163b8be..e11fda9 100644 --- a/docs/Raspberry/aptitude.md +++ b/docs/Raspberry/aptitude.md @@ -5,19 +5,19 @@ https://debian-facile.org/doc:systeme:apt:aptitude #### Mettre à jour met à jour la liste des paquets: ```bash -$ sudo aptitude update +sudo aptitude update ``` #### Mettre à jour tous les paquets installés sur le système: ```bash -$ sudo aptitude safe-upgrade +sudo aptitude safe-upgrade ``` #### Pour les mises à jour nécessitant d'installer ou de désinstaller les dépendances nécessaires : ( message « Les paquets suivants ont été conservés : ») ```bash -$ sudo aptitude full-upgrade +sudo aptitude full-upgrade # idem à $ sudo aptitude dist-upgrade ``` @@ -25,7 +25,7 @@ $ sudo aptitude full-upgrade #### Installer un paquet : ```bash -$ sudo aptitude install +sudo aptitude install ``` #### Supprimer un paquet: @@ -33,7 +33,7 @@ $ sudo aptitude install ```bash # Les fichiers de préférences et les logs sont conservés. -$ sudo aptitude remove +sudo aptitude remove ``` #### Supprimer les paquets indiqués et leurs fichiers de configuration : @@ -41,7 +41,7 @@ $ sudo aptitude remove ```bash # Les fichiers de préférences et les logs sont conservés. -$ sudo aptitude purge +sudo aptitude purge ``` #### Supprimer un paquet en le mettant "automatique" @@ -49,50 +49,49 @@ $ sudo aptitude purge (celui-ci sera soit désinstallé tout de suite, soit automatiquement désinstallé dès que plus aucun autre paquet n'aura besoin de lui) : ```bash -$ sudo aptitude markauto +sudo aptitude markauto ``` #### Chercher un paquet: ```bash -$ sudo aptitude search wge +sudo aptitude search wge ``` **Indicateurs de réponse** -i le paquet est installé et toutes ses dépendances sont satisfaites +| | | +| ---- | ------------------------------------------------------------ | +| i | le paquet est installé et toutes ses dépendances sont satisfaites | +| c | le paquet a été supprimé mais ses fichiers de configuration sont toujours présents sur le système | +| p | le paquet et tous ses fichiers de configuration ont été supprimés, ou le paquet n'a jamais été installé | +| v | le paquet est virtuel | +| B | le paquet a des dépendances cassées | +| A | le paquet a été automatiquement installé | -c le paquet a été supprimé mais ses fichiers de configuration sont toujours présents sur le système -p le paquet et tous ses fichiers de configuration ont été supprimés, ou le paquet n'a jamais été installé - -v le paquet est virtuel - -B le paquet a des dépendances cassées - -A le paquet a été automatiquement installé #### Vérifier si un paquet est installé : ```bash -$ sudo aptitude show wget +sudo aptitude show wget ``` #### Liste des packages non à jour: ```bash -$ sudo aptitude search '~U' +sudo aptitude search '~U' ``` #### Dépendances du paquet : ```bash -$ sudo aptitude search ~R wget +sudo aptitude search ~R wget ``` #### Dépendances inverses du paquet : ```bash -$ sudo aptitude search ~D wget +sudo aptitude search ~D wget ``` diff --git a/docs/Raspberry/boot.md b/docs/Raspberry/boot.md index c9b71cd..41f64d6 100644 --- a/docs/Raspberry/boot.md +++ b/docs/Raspberry/boot.md @@ -1,21 +1,25 @@ # Boot et clone -#### Mise à jour du Raspberry: +### Mise à jour du Raspberry: -```bash -#version du firmware -$ uname -a +```bash title="Version du firmware" +uname -a +``` -#mise à jour du dépot -$ sudo apt-get update +```bash title="Mise à jour du dépot" +sudo apt-get update +``` -#mise à jour du système -$ sudo apt-get upgrade +```bash title="Mise à jour du système" +sudo apt-get upgrade +``` -#mise à jour firmware -$ sudo apt-get install raspberrypi-bootloader +```bash title="Mise à jour firmware" +sudo apt-get install raspberrypi-bootloader +``` -$ sudo reboot +```bash title="Redémarrage" +sudo reboot ``` @@ -28,29 +32,27 @@ ssh pi@raspberrypi.local sudo dd if=/dev/mmcblk0 | pv | gzip -c> raspberry.img.g -#### cmdline.txt original de la SD: - -```bash +```bash title="cmdline.txt original de la SD" dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles ``` -#### boot sur le mSSD: +### boot sur le mSSD: Modifier la cmdline.txt avec root=/dev/sda2 -#### Cloner la SD sur le mSSD: +### Cloner la SD sur le mSSD: [:fa-link: https://github.com/billw2/rpi-clone](https://github.com/billw2/rpi-clone) -```bash -#1er clone -$ sudo rpi-clone sda -f -s framboise - -#Clones suivants -$ sudo rpi-clone sda -s framboise +```bash title="1er clone" +sudo rpi-clone sda -f -s framboise +``` + +```bash title="Clones suivants" +sudo rpi-clone sda -s framboise ``` diff --git a/docs/Raspberry/cloud.md b/docs/Raspberry/cloud.md index 811d267..f993be5 100644 --- a/docs/Raspberry/cloud.md +++ b/docs/Raspberry/cloud.md @@ -6,37 +6,35 @@ https://help.nextcloud.com/t/nextcloud-client-for-raspberry-pi/27989/61 -Récupérer les archives nécessaires: +#### Récupérer les archives nécessaires: ```bash -$ wget http://ftp.br.debian.org/debian/pool/main/q/qtwebengine-opensource-src/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb -$ wget http://ftp.br.debian.org/debian/pool/main/q/qtwebengine-opensource-src/libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb -$ wget http://ftp.br.debian.org/debian/pool/main/n/nextcloud-desktop/libnextcloudsync0_2.5.1-3+deb10u1_armhf.deb -$ wget http://ftp.br.debian.org/debian/pool/main/n/nextcloud-desktop/nextcloud-desktop_2.5.1-3+deb10u1_armhf.deb +wget http://ftp.br.debian.org/debian/pool/main/q/qtwebengine-opensource-src/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb +wget http://ftp.br.debian.org/debian/pool/main/q/qtwebengine-opensource-src/libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb +wget http://ftp.br.debian.org/debian/pool/main/n/nextcloud-desktop/libnextcloudsync0_2.5.1-3+deb10u1_armhf.deb +wget http://ftp.br.debian.org/debian/pool/main/n/nextcloud-desktop/nextcloud-desktop_2.5.1-3+deb10u1_armhf.deb ``` -Installer les paquets avec apt (méthode préférée): +#### Installer les paquets avec apt (méthode préférée): ```bash -$ sudo apt install /home/pi/Downloads/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb -$ sudo apt install /home/pi/Downloads/libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb -$ sudo apt install /home/pi/Downloads/libnextcloudsync0_2.5.1-3+deb10u1_armhf.deb -$ sudo apt install /home/pi/Downloads/nextcloud-desktop_2.5.1-3+deb10u1_armhf.deb +sudo apt install /home/pi/Downloads/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb +sudo apt install /home/pi/Downloads/libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb +sudo apt install /home/pi/Downloads/libnextcloudsync0_2.5.1-3+deb10u1_armhf.deb +sudo apt install /home/pi/Downloads/nextcloud-desktop_2.5.1-3+deb10u1_armhf.deb ``` -ou avec dpkg: +#### ou avec dpkg: ```bash -$ sudo dpkg -i libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb -$ sudo dpkg -i libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb -$ sudo dpkg -i libnextcloudsync0_2.5.1-3+deb10u1_armhf.deb -$ sudo dpkg -i nextcloud-desktop_2.5.1-3+deb10u1_armhf.deb +sudo dpkg -i libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb +sudo dpkg -i libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb +sudo dpkg -i libnextcloudsync0_2.5.1-3+deb10u1_armhf.deb +sudo dpkg -i nextcloud-desktop_2.5.1-3+deb10u1_armhf.deb # puis fixer les dépendances -$ sudo apt --fix-broken install +sudo apt --fix-broken install ``` - -### Installer pCloud: \ No newline at end of file diff --git a/docs/Raspberry/divers.md b/docs/Raspberry/divers.md index b4b3062..7e1a4e4 100644 --- a/docs/Raspberry/divers.md +++ b/docs/Raspberry/divers.md @@ -1,30 +1,26 @@ # Raspberry (divers) -#### Installer le correcteur orthographique français: +### Installer le correcteur orthographique français: ```bash -$ sudo apt-get install myspell-fr +sudo apt-get install myspell-fr ``` -#### Installer LibreOffice français: +### Installer LibreOffice français: ```bash -$ sudo apt-get install libreoffice-l10n-fr - -$ sudo apt-get install myspell-fr - -$ sudo apt-get install hyphen-fr - -$ sudo apt-get install mythes-fr - -$ sudo apt-get install libreoffice-help-fr +sudo apt-get install libreoffice-l10n-fr +sudo apt-get install myspell-fr +sudo apt-get install hyphen-fr +sudo apt-get install mythes-fr +sudo apt-get install libreoffice-help-fr ``` -#### Installer avec Git: +### Installer avec Git: ```bash cd /SourceCache @@ -35,7 +31,7 @@ make -#### Installer une appli depuis un .deb: +### Installer une appli depuis un .deb: ```bash pi@framboise:~/Downloads $ wget http://www.bristolwatch.com/rpi/dl/beaver_0.4.1-1_armhf.deb @@ -45,70 +41,68 @@ pi@framboise:~/Downloads $ sudo dpkg -i beaver_0.4.1-1_armhf.deb -#### Editer un fichier de config: +### Editer un fichier de config: ```bash -$ sudo leafpad /etc/samba/smb.conf & +sudo leafpad /etc/samba/smb.conf & ``` -#### Virer les fichiers .DS_Store: +### Virer les fichiers .DS_Store: ```bash -$ find /my/data/to/move -name '*.DS_Store' -type f -delete +find /my/data/to/move -name '*.DS_Store' -type f -delete ``` -#### Installer clé bluetooth (pas utile avec Raspian): +### Installer clé bluetooth (pas utile avec Raspian): ```bash -$ lsusb -$ update-rc.d -f dbus defaults -$ apt-get install bluetooth bluez-utils blueman -$ hcitool scan +lsusb +update-rc.d -f dbus defaults +apt-get install bluetooth bluez-utils blueman +hcitool scan ``` [:fa-link: http://blog.petrilopia.net/linux/raspberry-pi-bluetooth-keyboard-work/](http://blog.petrilopia.net/linux/raspberry-pi-bluetooth-keyboard-work/) -#### Installer clé wifi (pas utile avec Raspian): +### Installer clé wifi (pas utile avec Raspian): ```bash -$ sudo apt-get install wicd +sudo apt-get install wicd ``` -#### Permissions: +### Permissions: Donner les permissions exécutable ```bash -$ chmod +x ./subfolder/anexecutablefile.sh +chmod +x ./subfolder/anexecutablefile.sh ``` Retirer er les permissions exécutable ```bash -$ chmod -x ./subfolder/anexecutablefile.sh +chmod -x ./subfolder/anexecutablefile.sh ``` Donner les permissions lecture/écriture ```bash -$ chmod +rw .anexecutablefile.sh +chmod +rw .anexecutablefile.sh ``` -#### blkid +### blkid -locate/print block device attributes - -```bash +```bash title="locate/print block device attributes" pi@framboise:/media/pi/boot $ blkid /dev/mmcblk0p1: LABEL="boot" UUID="E5B7-FEA1" TYPE="vfat" PARTUUID="1b38a7cf-01" @@ -118,11 +112,9 @@ pi@framboise:/media/pi/boot $ blkid -#### lsblk +### lsblk -list block devices - -```bash +```bash title="list block devices" pi@framboise:~/Downloads/Ted-2.23 $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 29,8G 0 disk @@ -134,7 +126,8 @@ mmcblk0 179:0 0 29,7G 0 disk ``` -#### df -h + +### df -h ```bash pi@framboise:~ $ df -h diff --git a/docs/Raspberry/hardware.md b/docs/Raspberry/hardware.md index 36b1328..9721c9f 100644 --- a/docs/Raspberry/hardware.md +++ b/docs/Raspberry/hardware.md @@ -2,17 +2,17 @@ -#### Version of Debian: +### Version of Debian: ```bash -pi@framboise:~ $ cat /etc/debian_version +$ cat /etc/debian_version 9.6 ``` -#### OS Release Notes: +### OS Release Notes: ```bash -pi@framboise:~ $ cat /etc/os-release +$ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" @@ -24,17 +24,17 @@ SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" ``` -#### Kernel version: +### Kernel version: ```bash -pi@framboise:~ $ uname -a +$ uname -a Linux framboise 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux ``` -#### Harware version: +### Hardware version: ```bash -pi@framboise:~ $ cat /proc/cpuinfo +$ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 38.40 @@ -87,15 +87,15 @@ https://elinux.org/RPi_HardwareHistory -#### Autres méthodes (Raspian reçent): +### Autres méthodes (Raspian reçent): ```bash -pi@framboise:~ $ cat /proc/device-tree/model +$ cat /proc/device-tree/model Raspberry Pi 3 Model B Rev 1.2 ``` ```bash -pi@framboise:~ $ pinout +$ pinout ,--------------------------------. | oooooooooooooooooooo J8 +==== | 1ooooooooooooooooooo | USB @@ -146,19 +146,19 @@ GPIO26 (37) (38) GPIO20 For further information, please refer to https://pinout.xyz/ ``` -#### Version actuelle du firmware: +### Version actuelle du firmware: ```bash -pi@framboise:~ $ vcgencmd version +$ vcgencmd version Nov 4 2018 16:35:17 Copyright (c) 2012 Broadcom version ed5baf9520a3c4ca82ba38594b898f0c0446da66 (clean) (release) ``` -#### Télécharger la m-à-j du firmware sans installer: +### Télécharger la m-à-j du firmware sans installer: ```bash -pi@framboise:~ $ sudo JUST_CHECK=1 rpi-update +$ sudo JUST_CHECK=1 rpi-update *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom *** Performing self-update % Total % Received % Xferd Average Speed Time Time Time Current @@ -172,7 +172,7 @@ pi@framboise:~ $ sudo JUST_CHECK=1 rpi-update #### Mettre à jour le firmware: ```bash -pi@framboise:~ $ sudo rpi-update +$ sudo rpi-update *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom *** Performing self-update *** Relaunching after update diff --git a/docs/Raspberry/headless.md b/docs/Raspberry/headless.md index d2f4ef6..af00fa0 100644 --- a/docs/Raspberry/headless.md +++ b/docs/Raspberry/headless.md @@ -1,18 +1,21 @@ -# Headless +# Installation Headless Télécharger l'image [Raspian Stretch Lite](https://www.raspberrypi.org/downloads/raspbian/) et l'installer sur la carte SD avec [Etcher](https://www.balena.io/etcher/). -Activer et connecter le wifi: +### Activer et connecter le wifi: Il faut créer un fichier `wpa_supplicant.conf` dans /boot -```bash -# Depuis macOS +```bash title="Depuis macOS" cd /Volumes/boot nano wpa_supplicant.conf +``` + + +```ini title="wpa_supplicant.conf" ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=FR @@ -24,19 +27,17 @@ network={ } ``` -Activer SSH: +### Activer SSH: Il faut créer un fichier `ssh` dans /boot -```bash -#Depuis macOS +```bash title="Depuis macOS" cd /Volumes/boot touch ssh ``` - Démarrer le Raspberry, il va se connecter automatiquement à la Box. -Pour trouver l'ip, aller sur la box -> Configuration DHCP -> Baux DHCP valides +Pour trouver l'ip, aller sur la box :material-arrow-right: Configuration DHCP :material-arrow-right: Baux DHCP valides Se connecter au Raspberry en SSH: @@ -56,12 +57,15 @@ Retype new UNIX password: passwd: password updated successfully ``` -Mettre en IP fixe: +### Mettre en IP fixe: ```bash -$ sudo nano /etc/dhcpcd.conf +sudo nano /etc/dhcpcd.conf +``` + +```bash title="dhcpcd.conf" +# à rajouter à la fin du fichier: -à rajouter à la fin du fichier: interface eth0 static ip_address=192.168.1.24/24 static routers=192.168.1.1 @@ -73,16 +77,19 @@ static routers=192.168.1.1 static domain_name_servers=192.168.1.1 ``` -Ajouter la clé ssh: +#### Ajouter la clé ssh: ``` bruno@silverbook:~/.ssh$ ssh pi@framboise.local 'mkdir -p ~/.ssh; chmod 0700 ~/.ssh; echo ' $(< ~/.ssh/id_ed25519.pub) ' >> ~/.ssh/authorized_keys ; chmod 0600 ~/.ssh/authorized_keys' ``` -Sécuriser ssh: +#### Sécuriser ssh: ```bash -$ sudo nano /etc/ssh/sshd_config +sudo nano /etc/ssh/sshd_config +``` + +```bash title="sshd_config" Port 36722 PermitRootLogin prohibit-password @@ -90,15 +97,21 @@ yes (défaut) # without-password (prohibit-password) authentification par mot de passe désactivée, # authentification par clé publique seulement # forced-commands-only avec l'option Commande, authentification par clé publique seulement # no - -$ sudo service ssh restart ``` -Configurer le Raspberry: +```bash +sudo service ssh restart +``` + + + +### Configurer le Raspberry: ```bash -$ sudo raspi-config +sudo raspi-config +``` +```bash title="raspî-config" -Network Options -> changer le hostname -Localisations Options -> Change Locale, Change Timezone -Interfacing Options -> enable Camera, SPI, I2C, Serial @@ -106,13 +119,13 @@ $ sudo raspi-config -Update (raspi-config) ``` -Installer git: +#### Installer git: ```bash -$ sudo apt-get install -y git dirmngr +sudo apt-get install -y git dirmngr ``` -Installer log2ram: +#### Installer log2ram: ```bash cd /home/pi @@ -125,9 +138,9 @@ sudo ./install.sh sudo vi /etc/log2ram.conf ``` -Vérifier l'installation de log2ram: +##### Vérifier l'installation de log2ram: -``` +```bash $ df -h Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur /dev/root 15G 1,1G 13G 8% / @@ -148,16 +161,21 @@ sudo mv /etc/cron.hourly/log2ram /etc/cron.daily/log2ram sudo reboot ``` -Mettre à jour le Raspberry: + + +### Mettre à jour le Raspberry: ```bash -$ sudo apt-get update && sudo apt-get upgrade +sudo apt-get update && sudo apt-get upgrade ``` -Créer un alias dans .bashrc: -alias update='sudo apt-get update && sudo apt-get upgrade' +*Créer un alias dans .bashrc:* +`alias update='sudo apt-get update && sudo apt-get upgrade'` + + + +### Backup de la carte SD -Backup de la carte SD https://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi ```bash @@ -169,7 +187,7 @@ bruno@silverbook:~$ sudo dd if=/dev/rdisk2 bs=1m | gzip > /Users/bruno/Downloads bruno@silverbook:~$ sudo dd if=/dev/rdisk2 bs=1m | pv | gzip > /Users/bruno/Downloads/litePi_1.gz ``` -Restaurer: +#### Restaurer: ```bash bruno@silverbook:~$ diskutil list diff --git a/docs/Raspberry/heure.md b/docs/Raspberry/heure.md index bdc5687..01c32a2 100644 --- a/docs/Raspberry/heure.md +++ b/docs/Raspberry/heure.md @@ -5,29 +5,33 @@ #### Renseigner le ou les serveurs ntp ([Renater](https://services.renater.fr/ntp/serveurs_francais))([NTP Pool](https://www.pool.ntp.org/zone/fr)): ```bash -$ sudo nano -c /etc/systemd/timesyncd.conf +sudo nano -c /etc/systemd/timesyncd.conf +``` +```inf title="timesyncd.conf" [Time] Servers=ntp.midway.ovh 3.fr.pool.ntp.org ``` + + #### Activer le service de mise-à-jour automatique: ```bash -$ sudo timedatectl set-ntp true +sudo timedatectl set-ntp true ``` #### Liste des fuseaux horaires: ```bash -$ timedatectl list-timezones -$ timedatectl list-timezones | grep Europe +timedatectl list-timezones +timedatectl list-timezones | grep Europe ``` #### Régler le fuseau horaire: ```bash -$ sudo timedatectl set-timezone Europe/Paris +sudo timedatectl set-timezone Europe/Paris ``` #### Tester: @@ -47,7 +51,7 @@ NTP synchronized: yes #### Pour vérifier que la synchro est active: ```bash -$ sudo service systemd-timesyncd status +sudo service systemd-timesyncd status ``` @@ -55,7 +59,7 @@ $ sudo service systemd-timesyncd status #### Réglage manuel: ```bash -$ sudo timedatectl set-ntp false -$ sudo timedatectl set-time 'A:M:J HH:mm:ss' +sudo timedatectl set-ntp false +sudo timedatectl set-time 'A:M:J HH:mm:ss' ``` diff --git a/docs/Raspberry/nextcloud.md b/docs/Raspberry/nextcloud.md index 24c4772..5c12536 100644 --- a/docs/Raspberry/nextcloud.md +++ b/docs/Raspberry/nextcloud.md @@ -1,11 +1,15 @@ - +# Nextcloud https://help.nextcloud.com/t/nextcloud-client-for-raspberry-pi/27989/61 + + +### Télécharger les paquets + ```bash wget http://ftp.br.debian.org/debian/pool/main/q/qtwebengine-opensource-src/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb wget http://ftp.br.debian.org/debian/pool/main/q/qtwebengine-opensource-src/libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb @@ -15,6 +19,8 @@ wget http://ftp.br.debian.org/debian/pool/main/n/nextcloud-desktop/nextcloud-des +### Installer les paquets + ```bash sudo dpkg -i libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb sudo dpkg -i libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb @@ -24,13 +30,15 @@ sudo dpkg -i nextcloud-desktop_2.5.1-3+deb10u1_armhf.deb -# fixer les dépendances +### fixer les dépendances ```bash sudo apt --fix-broken install ``` +### Autre installation + ```bash sudo apt install /home/pi/Downloads/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb sudo apt install /home/pi/Downloads/libqt5webenginewidgets5_5.11.3+dfsg-2+deb10u1_armhf.deb diff --git a/docs/Raspberry/pi-desktop.md b/docs/Raspberry/pi-desktop.md index b8eb70d..dae6554 100644 --- a/docs/Raspberry/pi-desktop.md +++ b/docs/Raspberry/pi-desktop.md @@ -1,5 +1,7 @@ # Pi Desktop + + #### Télécharger le paquet Pi Desktop: https://github.com/pi-desktop/deb-make/releases @@ -10,19 +12,24 @@ https://github.com/hoopsurfer/pidesktop (Fork) #### Installer Pi Desktop: -```bash -Installer Pi Desktop: -# Supprimer l'ancienne version -$ sudo dpkg -r pidesktop-base -# Installer -$ sudo dpkg -i pidesktop-base-1.1.0.deb +```bash title="Supprimer l'ancienne version" +sudo dpkg -r pidesktop-base +``` + +```bash title="Installation" +sudo dpkg -i pidesktop-base-1.1.0.deb ``` -Le RPi 3+ peut nativement booter depuis un disque USB. +!!! info "Info" + + Le RPi 3+ peut nativement booter depuis un disque USB. + + + +#### Il y a 2 méthodes: -Il y a 2 méthodes: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/README.md 1. **Avec une carte une SD:** @@ -34,7 +41,7 @@ https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/README. Dans ce cas, pour le RPi 3, il faut que le bit USB boot soit mis dans le OTP: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md -On vérifie si le boot USB est actif: +##### On vérifie si le boot USB est actif: ```bash $ vcgencmd otp_dump | grep 17: @@ -42,14 +49,14 @@ $ vcgencmd otp_dump | grep 17: La valeur doit être 3020000a ``` -On active le boot USB: +##### On active le boot USB: ```bash $ echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt $ sudo reboot ``` -On vérifie que le boot USB est actif: +##### On vérifie que le boot USB est actif: ```bash $ vcgencmd otp_dump | grep 17: @@ -61,7 +68,7 @@ On peut supprimer la ligne `program_usb_boot_mode=1` dans le config.txt pour L'activation du bit USB boot dans le OTP est définitive (mais n'empêche pas de démarrer sur la SD ultérieurement). Cloner la carte SD sur le mSSD avec SD Carte Copier (la commande pd-clonessd ouvre bien SD Carte Copier mais ce dernier reste grisé) -Lancer la commande pd-bootssd +Lancer la commande `pd-bootssd` On peut retirer la SD et démarrer sur le mSSD. Perso, j'ai laissé la SD en place qui me sert de backup. @@ -74,8 +81,7 @@ On peut retirer la SD et démarrer sur le mSSD. Perso, j'ai laissé la SD en pla #### Bouton du Pi Desktop: -- Lorsque vous appuyez **une fois rapidement (plus de 150mS)** sur le bouton A/M, le Raspberry Pi **démarre** +- Lorsque vous appuyez **une fois rapidement (plus de 150mS)** sur le bouton A/M, le Raspberry Pi **démarre**. - Lorsque vous appuyez **plus longuement (plus de 2 secondes)** sur le bouton A/M, le programme de gestion **arrête proprement le Raspberry Pi** (le système s’arrête normalement) puis **coupe l’alimentation**. - Lorsque vous appuyez **très longuement (plus de 5 secondes)** sur le bouton A/M, le programme de gestion **arrête le Raspberry Pi à « la sauvage »** en coupant l’alimentation. - diff --git a/docs/Raspberry/python.md b/docs/Raspberry/python.md index fdf93b8..fc3b364 100644 --- a/docs/Raspberry/python.md +++ b/docs/Raspberry/python.md @@ -7,10 +7,10 @@ ```bash # 09/02/2021 -pi@framboise:~/Downloads $ python -V +$ python -V Python 2.7.16 -pi@framboise:~/Downloads $ python3 -V +$ python3 -V Python 3.7.3 ``` diff --git a/docs/Synology/Docker/joplin.md b/docs/Synology/Docker/joplin.md index b7a35ff..3e6a06a 100644 --- a/docs/Synology/Docker/joplin.md +++ b/docs/Synology/Docker/joplin.md @@ -9,8 +9,8 @@ https://github.com/laurent22/joplin/blob/dev/packages/server/README.md #### Créer les dossiers: ```bash -$ mkdir /volume1/docker/joplin -$ mkdir /volume1/docker/joplin/data +mkdir /volume1/docker/joplin +mkdir /volume1/docker/joplin/data ``` #### Créer le fichier `docker-compose.yml` dans `/volume1/docker/joplin`: @@ -19,7 +19,7 @@ $ mkdir /volume1/docker/joplin/data $ nano docker-compose.yml ``` -```yaml +```yaml title="docker-compose.yml" version: '3' services: @@ -56,7 +56,8 @@ services: #### Créer le container: ```bash -$ sudo docker-compose up -d +sudo docker-compose up -d + Creating network "joplin_default" with the default driver Pulling app (joplin/server:latest)... latest: Pulling from joplin/server @@ -71,7 +72,7 @@ Le serveur est disponible en local sur: http://dsm916.local:22300 #### Créer une règle de proxy-inverse: -Panneau de configuration -> Portail des applications -> Proxy inversé -> Créer: +Panneau de configuration :material-arrow-right: Portail des applications :material-arrow-right: Proxy inversé :material-arrow-right: Créer: Source: @@ -93,8 +94,9 @@ On se connecte à https://clicclac.synology.me:22301/login en administrateur ave #### Voir les logs: ```bash -$ sudo docker-compose --file docker-compose.yml logs +sudo docker-compose --file docker-compose.yml logs Password: + Attaching to joplin_app_1, joplin_db_1 app_1 | WARNING: no logs are available with the 'db' log driver db_1 | WARNING: no logs are available with the 'db' log driver @@ -104,7 +106,7 @@ db_1 | WARNING: no logs are available with the 'db' log driver ### Application Joplin -Préférences -> Synchronisation: +Préférences :material-arrow-right: Synchronisation: Cible de la synchronisation: Joplin Server diff --git a/docs/Synology/ImageMagick.md b/docs/Synology/ImageMagick.md index 35d8f4e..fa0c654 100644 --- a/docs/Synology/ImageMagick.md +++ b/docs/Synology/ImageMagick.md @@ -1,12 +1,11 @@ -#### Paquet opkg +### Paquet opkg -Formats supportés: +```bash title="Formats supportés" +magick --version +identify --version -```bash - $ magick --version - $ identify --version Version: ImageMagick 7.0.9-5 Q8 x86_64 2021-04-19 https://imagemagick.org Copyright: © 1999-2019 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php @@ -17,18 +16,18 @@ Delegates (built-in): freetype jng jpeg ltdl png tiff zlib ```bash -$ identify /volume1/web/IMG_0636.HEIC +identify /volume1/web/IMG_0636.HEIC + identify: NoDecodeDelegateForThisImageFormat `HEIC' @ error/constitute.c/ReadImage/562. ``` -#### Paquet SynoCommunity +### Paquet SynoCommunity -Formats supportés: +```bash title="Formats supportés" +/usr/local/bin/magick --version -```bash -$ /usr/local/bin/magick --version Version: ImageMagick 7.0.11-6 Q16 x86_64 2021-03-28 https://imagemagick.org Copyright: (C) 1999-2021 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php @@ -39,7 +38,8 @@ Delegates (built-in): bzlib fontconfig freetype heic jng jp2 jpeg lcms ltdl lzma ```bash -$ /usr/local/bin/identify /volume1/web/IMG_0636.HEIC +/usr/local/bin/identify /volume1/web/IMG_0636.HEIC + identify: UnableToOpenModuleFile '/var/services/homes/bruno/.config/ImageMagick/heic.la': No such file or directory @ warning/module.c/GetMagickModulePath/823. identify: NoDecodeDelegateForThisImageFormat `HEIC' @ error/constitute.c/ReadImage/572. ``` @@ -47,24 +47,38 @@ identify: NoDecodeDelegateForThisImageFormat `HEIC' @ error/constitute.c/ReadIma ```bash -$ identify /volume1/web/IMG_0636.HEIC +identify /volume1/web/IMG_0636.HEIC + identify: DecoderNotActivated `/volume1/web/IMG_0636.HEIC' @ error/heic.c/ReadHEICImage/186. ``` https://unix.stackexchange.com/questions/96004/imagemagick-on-open-wrt-router-unabletoopenconfigurefile ```bash -$ /usr/local/bin/identify -list format +/usr/local/bin/identify -list format + + Format Module Mode Description +------------------------------------------------------------------------------- + 3FR DNG r-- Hasselblad CFV/H3D39II + 3G2 VIDEO r-- Media Container + .../... +YCbCrA* YCbCr rw+ Raw Y, Cb, Cr, and alpha samples + YUV* YUV rw- CCIR 601 4:1:1 or 4:2:2 + +* native blob support +r read support +w write support ++ support for multiple images ``` -#### Debug +### Debug -$ identify -debug configure -list configure +`identify -debug configure -list configure` ```bash -$ /usr/local/bin/identify -debug configure -list configure +/usr/local/bin/identify -debug configure -list configure 2021-07-10T09:22:23+00:00 0:00.001 0.000u 7.0.11 Configure identify[6366]: utility.c/ExpandFilenames/971/Configure Command line: /usr/local/bin/identify {-debug} {configure} {-list} {configure} 2021-07-10T09:22:23+00:00 0:00.001 0.000u 7.0.11 Configure identify[6366]: configure.c/GetConfigureOptions/675/Configure @@ -90,24 +104,16 @@ QuantumDepth Q16 identify: UnableToOpenConfigureFile `configure.xml' @ warning/configure.c/GetConfigureOptions/702. ``` - - -Fichiers xml - -```bash +```bash title="Fichiers xml" /var/packages/imagemagick/target/etc/ImageMagick-7 ``` +### Mac / Homebrew - - - -Homebrew - -``` -#/var/packages/imagemagick/target/lib/ImageMagick-7.0.11/modules-Q16HDRI/coders +```bash title="Homebrew" +# /var/packages/imagemagick/target/lib/ImageMagick-7.0.11/modules-Q16HDRI/coders /usr/local/Cellar/imagemagick/7.1.0-2_1/lib/ImageMagick/modules-Q16HDRI -rwxr-xr-x 1 bruno staff 1352 Jul 7 07:26 heic.la -r--r--r-- 1 bruno staff 73432 Jul 7 07:26 heic.so diff --git a/docs/Synology/bash.md b/docs/Synology/bash.md index d5c3532..6d66582 100644 --- a/docs/Synology/bash.md +++ b/docs/Synology/bash.md @@ -37,7 +37,7 @@ root:x:0:0:root:/root:/bin/bash !!! attention "Attention, une m-à-j Synology peut supprimer /opt/bin/bash." Aussi, il est préférable de garder ash pour se logger et de démarrer bash ensuite. -On va éditer le fichier .profile +On va éditer le fichier `.profile`: ```bash DiskStation$> nano .profile @@ -53,13 +53,15 @@ fi ------ -Pour configurer bash, on va créer un fichier .bashrc +### Configurer bash: + +On va créer un fichier .bashrc: ```bash DiskStation$> nano .bashrc ``` -et y ajouter +et y ajouter: ```bash #prompt diff --git a/docs/Synology/crontab.md b/docs/Synology/crontab.md index 91347f1..6ecc29a 100644 --- a/docs/Synology/crontab.md +++ b/docs/Synology/crontab.md @@ -2,20 +2,20 @@ -Ouvrir la crontab: - -```bash +```bash title="Connexion en root" bruno@DS916:~ $ sudo -i Password: -root@DS916:~# nano /etc/crontab - ``` -Redémarrer le service cron: +```bash title="Ouvrir la crontab" +root@DS916:~# nano /etc/crontab +``` -```bash + + +```bash title="Redémarrer le service cron" root@DS916:~# synoservice -restart crond ``` diff --git a/docs/Synology/dsm6/dsm6.md b/docs/Synology/dsm6/dsm6.md index 6ed469a..a2d4b4e 100644 --- a/docs/Synology/dsm6/dsm6.md +++ b/docs/Synology/dsm6/dsm6.md @@ -123,7 +123,7 @@ DS414> synoservicecfg --restart syslog-acc ```bash # echec pour un problème de signature -$ sudo dpkg -i nano_2.7.4-1_i386.deb +sudo dpkg -i nano_2.7.4-1_i386.deb Password: Authenticating nano_2.7.4-1_i386.deb ... debsig: Origin Signature check failed. This deb might not be signed. @@ -134,7 +134,7 @@ Errors were encountered while processing: nano_2.7.4-1_i386.deb # option --force-bad-verify -$ sudo dpkg -i --force-bad-verify nano_2.7.4-1_amd64.deb +sudo dpkg -i --force-bad-verify nano_2.7.4-1_amd64.deb Authenticating nano_2.7.4-1_amd64.deb ... debsig: Origin Signature check failed. This deb might not be signed. @@ -144,7 +144,7 @@ Selecting previously unselected package nano. Unpacking nano (from nano_2.7.4-1_amd64.deb) ... # supprimer le paquet debsig-verify -$ dpkg --purge dpkg-verify +dpkg --purge dpkg-verify ``` @@ -152,7 +152,7 @@ $ dpkg --purge dpkg-verify ### Installer manuellement un paquet .spk ```bash -$ sudo synopkg install +sudo synopkg install ``` @@ -196,7 +196,7 @@ service [pkgctl-Apache2.2] restart failed, synoerr=[0x2000] #### Liste des modules Apache: ```bash -$ httpd22 -M +httpd22 -M Loaded Modules: core_module (static) mpm_worker_module (static) @@ -208,7 +208,7 @@ Loaded Modules: ### php7.0 ```bash -$ php70 --ini +php70 --ini Configuration File (php.ini) Path: /usr/local/etc/php70 Loaded Configuration File: /usr/local/etc/php70/php.ini Scan for additional .ini files in: /usr/local/etc/php70/conf.d @@ -230,7 +230,7 @@ Web Station -> Paramètres PHP-> Paramètres Avancés -> Coeur -> error_log #### Connaitre les extensions chargées par PHP CLI: ```bash -$ php -m +php -m [PHP Modules] apcu bz2 @@ -327,15 +327,15 @@ Pour Apache, c'est la version choisie dans WebStation qui est active. En ligne de commande, par défaut, c'est la version Busybox qui est active: ```bash -$ which php +which php /bin/php -$ /bin/php -v +/bin/php -v PHP 7.3.16 (cli) (built: Sep 14 2020 18:32:16) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.16, Copyright (c) 1998-2018 Zend Technologies -$ /bin/php --ini +/bin/php --ini Configuration File (php.ini) Path: /usr/local/etc/php73/cli Loaded Configuration File: /usr/local/etc/php73/cli/php.ini Scan for additional .ini files in: /usr/local/etc/php73/cli/conf.d @@ -343,76 +343,80 @@ Additional .ini files parsed: /usr/local/etc/php73/cli/conf.d/extension.ini /usr/local/etc/php73/cli/conf.d/timezone.ini ``` -Les 2 autres versions sont néanmoins disponibles: +D'autres versions sont néanmoins disponibles: -```bash -$ which php70 +```bash title="PHP 7.0" +which php70 /usr/local/bin/php70 -$ php70 -v +php70 -v PHP 7.0.33 (cli) (built: Dec 13 2018 12:30:20) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.33, Copyright (c) 1999-2017, by Zend Technologies -$ php70 --ini +php70 --ini Configuration File (php.ini) Path: /usr/local/etc/php70 Loaded Configuration File: /usr/local/etc/php70/php.ini Scan for additional .ini files in: /usr/local/etc/php70/conf.d Additional .ini files parsed: /usr/local/etc/php70/conf.d/SYNO.SDS.PhotoStation.ini +``` - -$ which php72 +```bash title="PHP 7.2" +which php72 /usr/local/bin/php72 -$ php72 -v +php72 -v PHP 7.2.29 (cli) (built: Jun 5 2020 14:21:39) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies -$ php72 --ini +php72 --ini Configuration File (php.ini) Path: /usr/local/etc/php72/cli Loaded Configuration File: /usr/local/etc/php72/cli/php.ini Scan for additional .ini files in: /usr/local/etc/php72/cli/conf.d Additional .ini files parsed: /usr/local/etc/php72/cli/conf.d/extension.ini, /usr/local/etc/php72/cli/conf.d/phpMyAdmin.ini, /usr/local/etc/php72/cli/conf.d/timezone.ini +``` - -$ which php73 +```bash title="PHP 7.3" +which php73 /usr/local/bin/php73 - $ php73 -v +php73 -v PHP 7.3.16 (cli) (built: Sep 14 2020 18:32:16) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.16, Copyright (c) 1998-2018 Zend Technologies -$ php73 --ini +php73 --ini Configuration File (php.ini) Path: /usr/local/etc/php73/cli Loaded Configuration File: /usr/local/etc/php73/cli/php.ini Scan for additional .ini files in: /usr/local/etc/php73/cli/conf.d Additional .ini files parsed: /usr/local/etc/php73/cli/conf.d/extension.ini, /usr/local/etc/php73/cli/conf.d/timezone.ini +``` - -$ which php74 +```bash title="PHP 7.3" +which php74 /usr/local/bin/php74 -$ php74 -v +php74 -v PHP 7.4.9 (cli) (built: Oct 14 2020 15:15:33) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies -$ php74 --ini +php74 --ini Configuration File (php.ini) Path: /usr/local/etc/php74/cli Loaded Configuration File: /usr/local/etc/php74/cli/php.ini Scan for additional .ini files in: /usr/local/etc/php74/cli/conf.d Additional .ini files parsed: /usr/local/etc/php74/cli/conf.d/extension.ini, /usr/local/etc/php74/cli/conf.d/timezone.ini - ``` -Mettre PHP70 par défaut en CLI: + + +#### Mettre PHP70 par défaut en CLI: ```bash # On renomme PHP Busybox diff --git a/docs/Synology/dsm7/apache.md b/docs/Synology/dsm7/apache.md index fc0a724..9cce97f 100644 --- a/docs/Synology/dsm7/apache.md +++ b/docs/Synology/dsm7/apache.md @@ -2,17 +2,16 @@ -Version: +```bash title="Version" +httpd24 -v -```bash -$ httpd24 -v Server version: Apache/2.4.46 (Unix) Server built: Apr 19 2021 14:41:36 ``` -Log: -```bash + +```bash title="Voir les logs" cd /var/log/httpd/ -rw-rw---- 1 system log 383317 Aug 25 14:21 apache24-error_log diff --git a/docs/Synology/dsm7/dsm7.md b/docs/Synology/dsm7/dsm7.md index 1e23b76..5114d4e 100644 --- a/docs/Synology/dsm7/dsm7.md +++ b/docs/Synology/dsm7/dsm7.md @@ -10,10 +10,11 @@ https://github.com/SynoCommunity/spksrc/issues/4524 -#### ffmpeg (SynoCommunity) +### ffmpeg (SynoCommunity) ```bash -$ /var/packages/ffmpeg/target/bin/ffmpeg -version +/var/packages/ffmpeg/target/bin/ffmpeg -version + ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 7.3.0 (crosstool-NG crosstool-ng-1.23.0-306-g04d910b) configuration: --target-os=linux --cross-prefix=/home/spksrc/all-supported-fix/spksrc/toolchain/syno-x64-7.0/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/home/spksrc/all-supported-fix/spksrc/spk/ffmpeg/work-x64-7.0/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/home/spksrc/all-supported-fix/spksrc/spk/ffmpeg/work-x64-7.0/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/all-supported-fix/spksrc/toolchain/syno-x64-7.0/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-gpl --enable-version3 --enable-fontconfig --enable-avresample --disable-debug --disable-doc --disable-static --enable-debug=1 --extra-cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarations --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libvorbis --enable-gnutls --enable-libopus --enable-libsoxr --enable-libx264 --enable-libx265 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libzmq --enable-libshine --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --enable-libsvthevc --arch=x86_64 --enable-vaapi --enable-libmfx @@ -28,13 +29,17 @@ ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers libpostproc 55. 7.100 / 55. 7.100 ``` -#### ffmpeg (dsm7) -```bash -$ which ffmpeg + +### ffmpeg (dsm7) + +```bash title="Exécutable ffmpeg" +which ffmpeg /bin/ffmpeg +``` -$ ffmpeg -version +```bash title="Version" +ffmpeg -version ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7.5.0 (GCC) configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --disable-stripping --enable-version3 --enable-encoders --enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-cuvid --disable-nvenc --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-encoder=hevc_vaapi --disable-decoder=hevc --disable-muxer=hevc --disable-demuxer=hevc --disable-parser=hevc --disable-bsf=hevc_mp4toannexb --x86asmexe=yasm --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-wrap-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264 @@ -54,33 +59,41 @@ ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers #### php -```bash -$ which php +```bash title="Exécutable PHP" +which php /bin/php +``` -$ php -v +```bash title="Version" +php -v PHP 7.3.3 (cli) (built: Dec 18 2020 10:30:19) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies ``` -```bash -$ which php74 +#### php7.4 + +```bash title="Exécutable PHP" +which php74 /usr/local/bin/php74 -$ php74 -v +``` + +```bash title="Version" +php74 -v PHP 7.4.9 (cli) (built: Apr 22 2021 16:12:43) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies ``` -Paramètres: +##### Paramètres: -```bash +```bash title="Dossier extensions" extension_dir = /usr/local/lib/php74/modules ``` -```bash -$ php74 --ini +```bash title="Fichiers configuration" +php74 --ini + Configuration File (php.ini) Path: /usr/local/etc/php74/cli Loaded Configuration File: /usr/local/etc/php74/cli/php.ini Scan for additional .ini files in: /usr/local/etc/php74/cli/conf.d @@ -88,10 +101,9 @@ Additional .ini files parsed: /usr/local/etc/php74/cli/conf.d/extension.ini /usr/local/etc/php74/cli/conf.d/timezone.ini ``` -```bash -# PHP info +```bash title="PHP info" +php74 -i -$ php74 -i phpinfo() PHP Version => 7.4.9 @@ -114,7 +126,7 @@ PHP Extension Build => API20190902,NTS -```bash +```bash title="php.ini" /usr/local/etc/php74/cli $ ls drwxr-xr-x 2 root root 4096 Jun 30 14:43 conf.d # Paramètres PHP (Web Station -> Paramètres du language de script -> Modifier un profil PHP -> Coeur) @@ -126,9 +138,9 @@ drwxr-xr-x 2 root root 4096 Jun 30 14:43 conf.d -rw-r--r-- 1 root root 33 Jun 30 14:43 timezone.ini ``` -Logs: +##### Logs: -```bash +```bash title="Log PHP" sudo tail -f /var/log/php73-fpm.log ``` @@ -136,25 +148,19 @@ sudo tail -f /var/log/php73-fpm.log #### nginx -Version: - -```bash -$ nginx -V +```bash title="Version" +nginx -V nginx version: nginx/1.17.10 TLS SNI support enabled ``` -Fichiers html: - -```bash +```bash title="Document root" /usr/share/nginx/html $ ls -rw-r--r-- 1 root root 494 Jan 28 10:59 50x.html -rw-r--r-- 1 root root 612 Jan 28 10:59 index.html ``` -Paramètres: - -```bash +```bash title="Configuration" /etc/nginx $ ls rw-r--r-- 1 root root 16863 Jul 11 16:45 nginx.conf lrwxrwxrwx 1 root root 34 Jun 30 14:06 sites-enabled -> /usr/local/etc/nginx/sites-enabled @@ -168,7 +174,7 @@ lrwxrwxrwx 1 root root 80 Jul 7 13:45 synowstransfer-nginx.conf -> /usr/local -```bash +```bash title="Configuration" /usr/local/etc/nginx $ ls drwxr-xr-x 2 root root 4096 Jul 10 20:45 conf.d drwxr-xr-x 2 root root 4096 Jul 10 20:45 conf.d-available @@ -182,10 +188,9 @@ lrwxrwxrwx 1 root root 80 Jul 7 13:46 server.webstation-vhost.conf -> /usr/lo lrwxrwxrwx 1 root root 80 Jul 7 13:45 synowstransfer-nginx.conf -> /usr/local/etc/nginx/sites-available/6e75aa1e-afa3-475c-8391-d980fd3c7a1f.w3conf ``` -Logs: +```bash title="Logs nginx" +sudo -i -```bash -$ sudo -i bash-5.1# cd /var/log/nginx bash-5.1# ls -la -rw-r--r-- 1 root root 5433 Jul 10 20:47 error_default.log @@ -193,46 +198,60 @@ bash-5.1# ls -la -rw-rw---- 1 system log 70396 Jul 9 23:47 error.log.1.xz -rw-rw---- 1 system log 70440 Jul 7 09:00 error.log.2.xz -rw-rw---- 1 system log 70268 Jul 4 19:35 error.log.3.xz - ``` -Tester la configuration: +##### Tester la configuration: ```bash -$ sudo nginx -t +sudo nginx -t Password: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful ``` -Recharger le serveur nginx (après un changement de configuration: +##### Recharger le serveur nginx: -```bash -$ sudo nginx -s reload +```bash title="après un changement de configuration" +sudo nginx -s reload ``` -Autres commandes: +##### Autres commandes: -```bash -# quitter nginx immédiatement. -$ sudo nginx -s stop +```bash title="Quitter nginx immédiatement" +sudo nginx -s stop +``` -# quitter nginx après que toutes les requêtes actives ont obtenu une réponse. -$ sudo nginx -s quit +```bash title="Quitter nginx après que toutes les requêtes actives ont obtenu une réponse" +sudo nginx -s quit +``` -# les Log-Files sont relancés. -$ sudo nginx -s reopen +```bash title="Les Log-Files sont relancés" +sudo nginx -s reopen +``` -# lancer nginx -$ sudo service nginx start - -# Redémarrer le serveur nginx: -$ synosystemctl restart nginx +```bash title="Démarrer nginx" +sudo service nginx start +``` +```bash title="Redémarrer le serveur nginx" +synosystemctl restart nginx ``` #### Liens - [nginx.md](../nginx.md) \ No newline at end of file + [nginx.md](../nginx.md) + + + +#### deb packages: + +Installer un paquet debian: + +```bash +$ sudo dpkg -i bat_0.18.3_amd64.deb + +$ sudo dpkg -i --force-bad-verify bat_0.18.3_amd64.deb +``` + diff --git a/docs/Synology/dsm7/gitea.md b/docs/Synology/dsm7/gitea.md index a24db11..c54f078 100644 --- a/docs/Synology/dsm7/gitea.md +++ b/docs/Synology/dsm7/gitea.md @@ -61,7 +61,7 @@ GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini -DSM -> Portail des applications -> Proxy inversé +DSM :material-arrow-right: Portail des applications :material-arrow-right: Proxy inversé | | Source | Destination | | ---------- | -------------------- | ----------- | @@ -69,9 +69,11 @@ DSM -> Portail des applications -> Proxy inversé | Nom d'hôte | clicclac.synology.me | localhost | | Port | 3001 | 3000 | -Apache: -```bash + +##### Configurer les Virtual Host: + +```bash title="Apache" ProxyPreserveHost On ProxyRequests off @@ -80,9 +82,7 @@ Apache: ``` -Nginx: - -```bash +```bash title="Nginx" server { listen 80; server_name git.example.com; @@ -97,9 +97,8 @@ server { #### Configuration: -Base: sqlite3 (impossible de se connecter à mariadb) - -PATH: = /var/services/homes/bruno/gitea/data/gitea.db +1. Base: sqlite3 (impossible de se connecter à mariadb) +2. PATH: `= /var/services/homes/bruno/gitea/data/gitea.db` @@ -129,7 +128,7 @@ ROOT_PATH = /var/services/homes/bruno/gitea/log On peut lancer gitea depuis un script: ```bash -$ /usr/local/bin/gitea web -c /etc/gitea/app.ini +/usr/local/bin/gitea web -c /etc/gitea/app.ini ``` ou depuis un service. @@ -140,7 +139,7 @@ ou depuis un service. A installer dans `/etc/systemd/system`: -```ini +```ini title="gitea.service" [Unit] Description=Gitea (Git with a cup of tea) After=syslog.target @@ -229,30 +228,20 @@ WantedBy=multi-user.target -Activer le service gitea au démarrage: - -```bash -$ sudo systemctl enable gitea +```bash title="Activer le service gitea au démarrage" +sudo systemctl enable gitea ``` - - -Démarrer le service gitea: - -```bash -$ sudo systemctl start gitea +```bash title="Démarrer le service gitea" +sudo systemctl start gitea ``` - - -Vérifier le status de gitea: - -```bash -$ sudo systemctl status -l gitea +```bash title="Status de gitea" +sudo systemctl status -l gitea ``` -```bash -$ ps auxw | grep gitea +```bash title="Status de gitea" +ps auxw | grep gitea bruno 8220 0.8 6.2 2038820 122672 ? Ssl 20:26 0:02 /usr/local/bin/gitea web --config /etc/gitea/app.ini bruno 9790 0.0 0.0 2860 184 pts/1 D+ 20:32 0:00 grep gitea ``` @@ -261,9 +250,9 @@ bruno 9790 0.0 0.0 2860 184 pts/1 D+ 20:32 0:00 grep gitea ### Mise-à-jour -Depuis un script `dsm7-gitea-update.sh`: +Depuis un script: -```bash +```bash title="dsm7-gitea-update.sh" #!/bin/bash GITEA_BIN=`which gitea` diff --git a/docs/Synology/dsm7/nextcloud.md b/docs/Synology/dsm7/nextcloud.md index bf14def..616c2e0 100644 --- a/docs/Synology/dsm7/nextcloud.md +++ b/docs/Synology/dsm7/nextcloud.md @@ -6,11 +6,7 @@ https://blog.viking-studios.net/en/nextcloud-hub-optimization-on-a-synology-disk - - -config.php - -``` +```php title="config.php" 'memcache.local' => '\OC\Memcache\APCu', 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'redis' => @@ -25,9 +21,7 @@ config.php - - -``` +```ini title="php.ini" [apc] apc.enable_cli=1 ``` diff --git a/docs/Synology/dsm7/node.md b/docs/Synology/dsm7/node.md index 0de5fd9..198d1e4 100644 --- a/docs/Synology/dsm7/node.md +++ b/docs/Synology/dsm7/node.md @@ -2,44 +2,43 @@ -#### Installer nvm +### Installer nvm ```bash -$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash ``` Installer node=lts/fermium (ou mettre-à-jour) ```bash -$ nvm install --lts=fermium +nvm install --lts=fermium ``` -Mettre-à-jour npm +Mettre-à-jour npm: ```bash -$ npm -g install npm +npm -g install npm ``` Réinstaller les paquets d'une ancienne version après une mise-à jour: -```bash -# update 14.17.3 depuis 14.17.0 -$ nvm reinstall-packages 14.17.0 +```bash title="Update 14.17.3 depuis 14.17.0" +nvm reinstall-packages 14.17.0 ``` -#### Installer thumbsup +### Installer thumbsup ```bash -$ npm -g install thumbsup +npm -g install thumbsup -$ which thumbsup +which thumbsup /var/services/homes/bruno/.nvm/versions/node/v14.17.3/bin/thumbsup ``` ```bash -$ cd /volume1/photo/thumbsup +cd /volume1/photo/thumbsup total 32 drwxrwxrwx+ 1 bruno 138862 286 Mar 15 10:56 . drwxrwxrwx+ 1 138862 138862 588 Aug 9 08:35 .. @@ -57,11 +56,17 @@ drwxrwxrwx+ 1 bruno users 122 Nov 29 2020 theme-flow-bruno -rwxrwxrwx+ 1 bruno users 365 Mar 15 10:11 thumbsup_update.sh ``` -```bash -$ nano config.json + + +### Configurer thumsup + +https://thumbsup.github.io/docs/3-configuration/usage/ + +```bash title="Configurer Thumsup" +nano config.json ``` -```json +```json title="config.json" { "input": "/input/Flore", "output": "/output/gallery", @@ -85,7 +90,7 @@ $ nano config.json  -```bash -$ thumbsup --config config.json +```bash title="Lancer Thumbsup" +thumbsup --config config.json ``` diff --git a/docs/Synology/dsm7/piwigo.md b/docs/Synology/dsm7/piwigo.md new file mode 100644 index 0000000..dca1eba --- /dev/null +++ b/docs/Synology/dsm7/piwigo.md @@ -0,0 +1,28 @@ +# Piwigo + +https://fr.piwigo.org + + + +```mysql title="Créer la base MySQL" +MariaDB [(none)]> CREATE DATABASE piwigo_db; +MariaDB [(none)]> CREATE USER 'piwigo_db_user'@'localhost' IDENTIFIED BY 'the-password123!'; +MariaDB [(none)]> GRANT ALL ON piwigo_db.* TO 'piwigo_db_user'@'localhost'; +MariaDB [(none)]> FLUSH PRIVILEGES; +``` + + + +```bash title="Erreur lors de la mise-à-jour des thèmes et plugins" +sudo chown -R http:http plugins/ + +sudo chown -R http:http themes/ +``` + + + +[Aide à la création d'un thème](https://fr.piwigo.org/doc/doku.php?id=projet:developpement:themes) + +[How to make a child theme](https://piwigo.org/forum/viewtopic.php?pid=131778) + +[Modus: how to clone ?](https://piwigo.org/forum/viewtopic.php?pid=173570#p173570) diff --git a/docs/Synology/dsm7/python.md b/docs/Synology/dsm7/python.md index 3a5d597..8afec1f 100644 --- a/docs/Synology/dsm7/python.md +++ b/docs/Synology/dsm7/python.md @@ -4,9 +4,9 @@ -Python 3 est installé par défaut: +#### Python 3 est installé par défaut: -```bash +```bash title="Python3" $ python -V Python 3.8.8 @@ -22,9 +22,9 @@ $ find / -iname "site-packages" -type d -print 2>/dev/null -Python 2 est aussi installé: +#### Python 2 est aussi installé: -```bash +```bash title="Python2" $ python2 -V Python 2.7.18 @@ -37,12 +37,12 @@ $ which python2 -pip n'est pas installé par défaut +!!!warning "pip n'est pas installé par défaut" -```bash -$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py +```bash title="Installer pip" +curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py -$ $ python3 get-pip.py +python3 get-pip.py Defaulting to user installation because normal site-packages is not writeable Collecting pip Using cached pip-21.1.3-py3-none-any.whl (1.5 MB) @@ -58,10 +58,8 @@ Successfully installed pip-21.1.3 -Local installation: - -```bash -$ which pip3 +```bash title="Chemins en installation locale" +which pip3 /var/services/homes/bruno/.local/bin/pip3 bruno@DS916:~/.local/bin $ pip --version @@ -71,25 +69,30 @@ pip 21.1.3 from /var/services/homes/bruno/.local/lib/python3.8/site-packages/pip -Mieux vaut créer un environnement virtuel: +#### Mieux vaut créer un environnement virtuel: -```bash -# Création de l'environnement virtuel +```bash title="Création de l'environnement virtuel" bruno@DS916:~/venv $ python3 -m venv mkdocs +``` -# Activation +```bash title="Activation" bruno@DS916:~/venv $ source mkdocs/bin/activate +``` -# Mise-à-jour de pip et setuptools +```bash title="Mise-à-jour de pip et setuptools" (mkdocs) bruno@DS916:~/venv $ pip3 install -U pip setuptools +``` -# Installation de mkdocs +```bash title="Installation de mkdocs" (mkdocs) bruno@DS916:~/venv $ pip3 install -U mkdocs +``` -# Dé-activation +```bash title="Dé-activation" (mkdocs) bruno@DS916:~/venv $ deactivate +``` -$ /var/services/homes/bruno/venv/mkdocs/bin/mkdocs --version +```bash title="Version de mkdocs" +/var/services/homes/bruno/venv/mkdocs/bin/mkdocs --version mkdocs, version 1.2.1 from /volume1/homes/bruno/venv/mkdocs/lib/python3.8/site-packages/mkdocs (Python 3.8) ``` diff --git a/docs/Synology/dsm7/redis.md b/docs/Synology/dsm7/redis.md index 5a8f9d0..8edbfb4 100644 --- a/docs/Synology/dsm7/redis.md +++ b/docs/Synology/dsm7/redis.md @@ -6,14 +6,16 @@ https://digitalboxweb.wordpress.com/2020/02/01/redis-sur-nas-synology/ -1. Ajouter le repo DigitalBox comme source de paquets (http://digital.box.free.fr/sspks) +### Installation: -2. Depuis le Centre de paquets, installer le paquet Redis. +1. Ajouter le repo **DigitalBox** comme source de paquets (http://digital.box.free.fr/sspks) -3. Vérifier que Redis est correctement installé: +2. Depuis le Centre de paquets, installer le paquet **Redis**. + +3. Vérifier que **Redis** est correctement installé: ```bash - $ cd /var/packages/redis/target/bin + cd /var/packages/redis/target/bin total 3676 drwxr-xr-x 1 sc-redis sc-redis 160 Jul 26 09:43 . drwxr-xr-x 1 sc-redis sc-redis 18 Nov 10 09:21 .. @@ -23,36 +25,43 @@ https://digitalboxweb.wordpress.com/2020/02/01/redis-sur-nas-synology/ -rwxr-xr-x 1 sc-redis sc-redis 835832 Jul 26 09:43 redis-cli lrwxrwxrwx 1 sc-redis sc-redis 12 Jul 26 09:43 redis-sentinel -> redis-server -rwxr-xr-x 1 sc-redis sc-redis 2018008 Jul 26 09:43 redis-server - - $ ./redis-cli + ``` + ```bash title="Tester l'installation de redis" + ./redis-cli 127.0.0.1:6379> ping PONG ``` -4. Activer Redis dans PHP: - Redis n'est pas proposé dans les extensions, bien que le module soit présent.. - ```bash - $ ls /volume1/@appstore/PHP7.3/usr/local/lib/php73/modules/redis.so - /volume1/@appstore/PHP7.3/usr/local/lib/php73/modules/redis.so - ``` +### Configuration: - ```bash - sudo nano /usr/local/etc/php73/cli/conf.d/extension.ini - - # Ajouter la ligne extension = redis.so juste après posix.po - ``` +Activer **Redis** dans PHP: - ```bash - sudo nano /volume1/@appstore/PHP7.3/misc/extension_list.json - - # Ajouter le bloc suivant après le bloc posix - "redis": { - "enable_default": true, - "desc": "The phpredis extension provides an API for communicating with the Redis key-value store." - }, - ``` +Redis n'est pas proposé dans les extensions, bien que le module soit présent.. -5. Redis est maintenant disponible dans les extensions PHP. On l'active. +```bash +ls /volume1/@appstore/PHP7.3/usr/local/lib/php73/modules/redis.so +/volume1/@appstore/PHP7.3/usr/local/lib/php73/modules/redis.so +``` + +```bash title="Editer le fichier extension.ini" +sudo nano /usr/local/etc/php73/cli/conf.d/extension.ini + +# Ajouter la ligne extension = redis.so juste après posix.po +``` + +```bash title="Editer le fichier extension_list.json" +sudo nano /volume1/@appstore/PHP7.3/misc/extension_list.json + +# Ajouter le bloc suivant après le bloc posix +"redis": { +"enable_default": true, +"desc": "The phpredis extension provides an API for communicating with the Redis key-value store." +}, +``` + + + +**Redis** est maintenant disponible dans les extensions PHP. On l'active. diff --git a/docs/Synology/dsm7/wordpress.md b/docs/Synology/dsm7/wordpress.md index 3171a0a..9708dba 100644 --- a/docs/Synology/dsm7/wordpress.md +++ b/docs/Synology/dsm7/wordpress.md @@ -2,23 +2,23 @@ -#### Installer WordPress: +### Installer WordPress: -Téléchargement: +#### -```bash -$ cd /volume1/web -$ wget https://wordpress.org/latest.tar.gz -$ tar -xzvf latest.tar.gz +```bash title="Télécharger Wordpress" +cd /volume1/web +wget https://wordpress.org/latest.tar.gz +tar -xzvf latest.tar.gz ``` -Régler les permissions: -```bash -$ sudo chown -R http:http wordpress -$ sudo chmod -R 755 /volume1/web/wordpress/ -$ sudo find /volume1/web/wordpress/ -type d -exec chmod 755 {} \; -$ sudo find /volume1/web/wordpress/ -type f -exec chmod 644 {} \; + +```bash title="Régler les permissions" +sudo chown -R http:http wordpress +sudo chmod -R 755 /volume1/web/wordpress/ +sudo find /volume1/web/wordpress/ -type d -exec chmod 755 {} \; +sudo find /volume1/web/wordpress/ -type f -exec chmod 644 {} \; ``` @@ -41,11 +41,11 @@ DSM ajustera les permissions pour les fichiers WordPress. #### Créer une base MariaDB: -```bash -$ sudo mysql -u root -p +```bash title="Se connecter à MySQL" +sudo mysql -u root -p ``` -```mariadb +```mysql title="Créer une base" # Supprimer une ancienne base: # DROP DATABASE wordpress; @@ -70,9 +70,9 @@ MariaDB > GRANT ALL PRIVILEGES ON wordpress . * TO 'adm_wp'@'localhost'; MariaDB > FLUSH PRIVILEGES; ``` -Vérifier la base créee: -```mariadb + +```mariadb title="Vérifier la base créée" MariaDB > SHOW DATABASES; +--------------------+ | Database | @@ -121,7 +121,7 @@ Aller à https://clicclac.synology.me/wordpress dans Firefox. Identification du dossier *réceptacle*: ```bash -$ sudo nano /usr/local/etc/nginx/sites-enabled/server.webstation-vhost.conf +sudo nano /usr/local/etc/nginx/sites-enabled/server.webstation-vhost.conf ``` ```nginx @@ -138,7 +138,7 @@ Création du fichier: cd /usr/local/etc/nginx/conf.d/2bbf5ec3-353e-48c2-8564-f5ad432bb05e/ # Créer un fichier de configuration nginx pour gérer les permaliens -$ sudo nano user.conf.wordpress-permalink +sudo nano user.conf.wordpress-permalink ``` ```nginx @@ -147,12 +147,14 @@ location /{ } ``` -Tester la configuration et recharger nginx: -```bash -$ sudo nginx -t -$ sudo systemctl reload nginx +```bash title="Tester la configuration" +sudo nginx -t +``` + +```bash title="Recharger nginx" +sudo systemctl reload nginx ``` diff --git a/docs/Synology/eadir.md b/docs/Synology/eadir.md index 8737f7f..06b0466 100644 --- a/docs/Synology/eadir.md +++ b/docs/Synology/eadir.md @@ -1,5 +1,7 @@ # Trouver et supprimer les répertoires @eaDir + + ### Désactiver les services qui créent ces dossiers: Se connecter sous root en ssh, puis: diff --git a/docs/Synology/nginx.md b/docs/Synology/nginx.md index 08e115f..54d2dc4 100644 --- a/docs/Synology/nginx.md +++ b/docs/Synology/nginx.md @@ -7,18 +7,18 @@ Création d'un certificat ssl self-signed: ```bash -$ sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt +sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt # => /etc/ssl/certs/nginx-selfsigned.crt -$ sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048 +sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048 # => /etc/ssl/certs/dhparam.pem -$ sudo nano /etc/nginx/snippets/self-signed.conf +sudo nano /etc/nginx/snippets/self-signed.conf # ajouter: ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt; ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key; -$ sudo nano /etc/nginx/snippets/ssl-params.conf +sudo nano /etc/nginx/snippets/ssl-params.conf # ajouter: # from https://cipherli.st/ # and https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html @@ -46,8 +46,8 @@ ssl_dhparam /etc/ssl/certs/dhparam.pem; Configurer nginx pour qu'il utilise SSL: ```bash -$ sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/default.bak -$ sudo nano /etc/nginx/sites-available/default +sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/default.bak +sudo nano /etc/nginx/sites-available/default ``` ```nginx @@ -110,23 +110,27 @@ server { } ``` -Tester la configuration et redémarrer nginx: +Tester la configuration: ```bash # message normal pour certificat auto-signé -$ sudo /usr/sbin/nginx -t +sudo /usr/sbin/nginx -t nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/etc/ssl/certs/nginx-selfsigned.crt" 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 success +``` -$ sudo systemctl restart nginx +Et redémarrer nginx: + +```bash +sudo systemctl restart nginx ``` Vérifier le status de nginx: ```bash -$ systemctl status nginx +systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2021-07-13 09:30:48 CEST; 2min 58s ago @@ -153,7 +157,7 @@ $ systemctl status nginx -rw-r----- 1 www-data adm 3252 juil. 13 11:51 error.log ``` ```bash -$ nano /etc/nginx/nginx.conf +nano /etc/nginx/nginx.conf ``` ```nginx @@ -171,33 +175,42 @@ $ nano /etc/nginx/nginx.conf On commande nginx avec SystemD (Debian 8+, ubuntu 16+, CentOS): -```bash -$ systemctl stop nginx.service - -$ systemctl start nginx.service - -$ systemctl restart nginx - -$ systemctl reload nginx - -$ systemctl disable nginx - -$ systemctl enable nginx - +```bash title="Arrêter nginx" +systemctl stop nginx.service ``` +```bash title="Démarrer nginx" +systemctl start nginx.service +``` + +```bash title="Redémarrer nginx" +systemctl restart nginx +``` + +```bash title="Recharger nginx" +systemctl reload nginx +``` + +```bash title="Désactiver nginx" +systemctl disable nginx +``` + +```bash title="Activer nginx" +systemctl enable nginx +``` + + + On peut controller directement nginx avec les signals: -```bash -# Relancer nginx - -$ sudo /usr/sbin/nginx -s reload +```bash title="Relancer nginx" +sudo /usr/sbin/nginx -s reload ``` Aide: ```bash -$ sudo /usr/sbin/nginx -h +sudo /usr/sbin/nginx -h nginx version: nginx/1.14.2 Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives] @@ -217,7 +230,7 @@ Options: Tester la configuration: ```bash -$ sudo /usr/sbin/nginx -t +sudo /usr/sbin/nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful ``` @@ -225,7 +238,7 @@ nginx: configuration file /etc/nginx/nginx.conf test is successful Tester la configuration et l'afficher: ```nginx -$ sudo /usr/sbin/nginx -T +sudo /usr/sbin/nginx -T nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful # configuration file /etc/nginx/nginx.conf: diff --git a/docs/Synology/opkg/iPKG5.md b/docs/Synology/opkg/iPKG5.md index bab992c..41026f5 100644 --- a/docs/Synology/opkg/iPKG5.md +++ b/docs/Synology/opkg/iPKG5.md @@ -70,9 +70,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin: ### Configuration de nail: -Editer le fichier /opt/etc/nail.rc: - -```bash +```bash title="Editer le fichier /opt/etc/nail.rc" set from="bruno@funnymac.com" set smtp=smtp://smtp.funnymac.com #set smtp-use-starttls diff --git a/docs/Synology/opkg/iPKG6.md b/docs/Synology/opkg/iPKG6.md index a99b1be..64278ef 100644 --- a/docs/Synology/opkg/iPKG6.md +++ b/docs/Synology/opkg/iPKG6.md @@ -1,5 +1,7 @@ # iPKG (DSM 6) + + ### Installer iPKG: Se connecter en root: @@ -11,11 +13,13 @@ bruno@DS916:~ $ sudo -i root@DS916:~# ``` -Télécharger et installer le bootstrap correspondant au processeur du NAS. +Télécharger et installer le bootstrap correspondant au processeur du NAS: -Pour le DS414 → MARVELL Armada XP MV78230 → processeur ARM v7 avec FPU → ARMv7 EABI hardfloat +- Pour le DS414 → MARVELL Armada XP MV78230 → processeur ARM v7 avec FPU → ARMv7 EABI hardfloat + + +- Pour le DS916 → INTEL Pentium N3710 -Pour le DS916 → INTEL Pentium N3710 [Optware-ng](https://github.com/Optware/Optware-ng) @@ -58,17 +62,15 @@ Bootstraping done Installing glibc-locale package to generate needed /opt/lib/locale/locale-archive ``` -Une fois l'installation terminée, mettre à jour la liste des packages +Une fois l'installation terminée: -``` +```bash title="Mettre à jour la liste des packages" DiskStation> /opt/bin/ipkg update ``` -### Nettoyer le dossier d'installation: - -```bash +```bash title="Nettoyer le dossier d'installation" DiskStation> cd /volume1/@tmp DiskStation> rm buildroot-armeabihf-bootstrap.sh ``` @@ -77,47 +79,39 @@ DiskStation> rm buildroot-armeabihf-bootstrap.sh ### Principales commandes -Afficher la liste des packages -```bash -DiskStation> /opt/bin/ipkg list + +```bash title="Afficher la liste des packages" +/opt/bin/ipkg list ``` -Afficher la liste des packages installés - -```bash -DiskStation> /opt/bin/ipkg list-installed +```bash title="Afficher la liste des packages installés" +/opt/bin/ipkg list-installed ``` -Installer une application - -```bash -DiskStation> /opt/bin/ipkg install pkg +```bash title="Installer une application" +/opt/bin/ipkg install pkg ``` -Mettre à jour les packages - -```bash -DiskStation> /opt/bin/ipkg upgrade +```bash title="Mettre à jour les packages" +/opt/bin/ipkg upgrade ``` -Supprimer un package - -```bash -DiskStation> /opt/bin/ipkg remove pkg +```bash title="Supprimer un package" +/opt/bin/ipkg remove pkg ``` ### Mettre à jour iPKG: -Se connecter sous un compte admin +Se connecter sous un compte admin: ```bash ssh bruno@192.168.0.8 ``` -Mettre à jour les paquets installés +Mettre à jour les paquets installés: ```bash DiskStation> /opt/bin/ipkg update diff --git a/docs/Synology/opkg/oPKG.md b/docs/Synology/opkg/oPKG.md index a9a74b6..c4acb96 100644 --- a/docs/Synology/opkg/oPKG.md +++ b/docs/Synology/opkg/oPKG.md @@ -204,9 +204,9 @@ Installed-Time: 1536489744 ##### Options: --V --verbosity mode bavard +- -V --verbosity : mode bavard --A tous les paquets (pas seulement ceux installés) +- -A : tous les paquets (pas seulement ceux installés) @@ -286,7 +286,7 @@ lsof - 4.94.0-1 - LiSt Open Files - a diagnostic tool -#### Compiler dcraw. +### Compiler dcraw. Télécharger les [sources](https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/24922branch/evansport-source/), puis: diff --git a/docs/Synology/scripts.md b/docs/Synology/scripts.md index 6088e51..979caf3 100644 --- a/docs/Synology/scripts.md +++ b/docs/Synology/scripts.md @@ -2,27 +2,25 @@ -#### Copier un fichier sur le NAS +#### Copier un fichier sur le NAS: ```bash -$ scp -P42666 wsgi.py bruno@192.168.1.7:/var/services/homes/bruno/scripts/ +scp -P42666 wsgi.py bruno@192.168.1.7:/var/services/homes/bruno/scripts/ -$ scp -P42666 httpd_vhost.conf bruno@clicclac.synology.me:/var/services/homes/bruno/ +scp -P42666 httpd_vhost.conf bruno@clicclac.synology.me:/var/services/homes/bruno/ ``` -#### Réception d'un fichier depuis le NAS +#### Réception d'un fichier depuis le NAS: ```bash -$ scp -P42666 bruno@clicclac.synology.me:/var/services/homes/bruno/httpd-vhost.conf /Users/bruno/Desktop +scp -P42666 bruno@clicclac.synology.me:/var/services/homes/bruno/httpd-vhost.conf /Users/bruno/Desktop ``` - - #### wget: not an http or ftp url: -Sur le NAS, `wget` ne gère pas les URLs https. Il faut passer `curl`. +Sur le NAS, `wget` ne gère pas les URLs https. Il faut passer par `curl`. ```bash -$ curl -L -O https://github.com/go-gitea/gitea/releases/download/v1.11.4/gitea-1.11.4-linux-amd64 +curl -L -O https://github.com/go-gitea/gitea/releases/download/v1.11.4/gitea-1.11.4-linux-amd64 ``` diff --git a/docs/javascripts/extra.js b/docs/javascripts/extra.js new file mode 100644 index 0000000..25c2ec8 --- /dev/null +++ b/docs/javascripts/extra.js @@ -0,0 +1,10 @@ +/* Tri des tables +https://squidfunk.github.io/mkdocs-material/reference/data-tables/#column-alignment + */ + +document$.subscribe(function() { + var tables = document.querySelectorAll("article table:not([class])") + tables.forEach(function(table) { + new Tablesort(table) + }) +}) \ No newline at end of file diff --git a/docs/macos/node/nvm.md b/docs/macos/node/nvm.md index 71517a2..f6a5cfc 100644 --- a/docs/macos/node/nvm.md +++ b/docs/macos/node/nvm.md @@ -2,7 +2,7 @@ -nvm est un gestionnaire de version pour Node. +[nvm](https://github.com/nvm-sh/nvm) est un gestionnaire de version pour Node. diff --git a/docs/macos/python/pipx.md b/docs/macos/python/pipx.md index d890a9f..309aac7 100644 --- a/docs/macos/python/pipx.md +++ b/docs/macos/python/pipx.md @@ -52,6 +52,8 @@ lrwxr-xr-x 42 bruno staff 17 aoû 10:47 17 aoû 10:47  python3.9@ .rwxr-xr-x 245 bruno staff 17 aoû 10:47 17 aoû 10:47  uvicorn* ``` +Les applis sont linkées dans `$HOME/.local/bin` + ```bash $ which soco /Users/bruno/.local/bin/soco @@ -125,7 +127,8 @@ apps are exposed on your $PATH at /Users/bruno/.local/bin #### Installer un paquet dans un environnement virtuel: ```bash -$ pipx inject mkdocs mkdocs-material mkdocs-material-extensions mkdocs-minify-plugin mkdocs-git-revision-date-localized-plugin mkdocs-pdf-export-plugin fontawesome_markdown +$ pipx inject mkdocs mkdocs-material mkdocs-material-extensions mkdocs-minify-plugin mkdocs-git-revision-date-localized-plugin mkdocs-pdf-export-plugin fontawesome_markdown markdown pymdown-extensions + injected package mkdocs-material into venv mkdocs done! ✨ 🌟 ✨ injected package mkdocs-material-extensions into venv mkdocs @@ -138,6 +141,11 @@ done! ✨ 🌟 ✨ done! ✨ 🌟 ✨ injected package fontawesome-markdown into venv mkdocs done! ✨ 🌟 ✨ + injected package markdown into venv mkdocs +done! ✨ 🌟 ✨ + injected package pymdown-extensions into venv mkdocs +done! ✨ 🌟 ✨ + ``` @@ -159,7 +167,7 @@ mkdocs-git-revision-date-localized-plugin is already at latest version 0.9.2 (lo mkdocs-material is already at latest version 7.2.4 (location: /Users/bruno/.local/pipx/venvs/mkdocs) mkdocs-material-extensions is already at latest version 1.0.1 (location: /Users/bruno/.local/pipx/venvs/mkdocs) mkdocs-minify-plugin is already at latest version 0.4.0 (location: /Users/bruno/.local/pipx/venvs/mkdocs) -mkdocs-pdf-export-plugin is already at latest version 0.5.8 (location: /Users/bruno/.local/pipx/venvs/mkdocs)p +mkdocs-pdf-export-plugin is already at latest version 0.5.8 (location: /Users/bruno/.local/pipx/venvs/mkdocs) ``` ```bash @@ -178,6 +186,27 @@ uninstalled glances! ✨ 🌟 ✨ +#### Reinstaller: + +En réinstallant un paquet, on met aussi à jour sa version de Python. + +```bash +$ pipx list +package pycowsay 0.0.0.1, installed using Python 3.9.6 + - pycowsay +``` + +```bash +$ pipx reinstall pycowsay +uninstalled pycowsay! ✨ 🌟 ✨ + installed package pycowsay 0.0.0.1, installed using Python 3.10.2 + These apps are now globally available + - pycowsay +done! ✨ 🌟 ✨ +``` + + + #### Aide: ```bash @@ -185,3 +214,8 @@ $ pipx --help $ pipx --help ``` + + +The HTML specification is maintained by the W3C. + +--8<-- "includes/abbreviations.md" diff --git a/docs/macos/rust.md b/docs/macos/rust.md new file mode 100644 index 0000000..e78edec --- /dev/null +++ b/docs/macos/rust.md @@ -0,0 +1,110 @@ +# rust + + + +### Installation: + +```bash +$ brew install rustup-init +``` + +Installer le compilateur et Cargo, le gestionnaire de paquet: + +```bash +$ rustup-init + +Welcome to Rust! + +This will download and install the official compiler for the Rust +programming language, and its package manager, Cargo. + +Rustup metadata and toolchains will be installed into the Rustup +home directory, located at: + + /Users/bruno/.rustup + +This can be modified with the RUSTUP_HOME environment variable. + +The Cargo home directory located at: + + /Users/bruno/.cargo + +This can be modified with the CARGO_HOME environment variable. + +The cargo, rustc, rustup and other commands will be added to +Cargo's bin directory, located at: + + /Users/bruno/.cargo/bin + +This path will then be added to your PATH environment variable by +modifying the profile files located at: + + /Users/bruno/.profile + /Users/bruno/.bash_profile + /Users/bruno/.bashrc + /Users/bruno/.zshenv + +You can uninstall at any time with rustup self uninstall and +these changes will be reverted. + +Current installation options: + + + default host triple: aarch64-apple-darwin + default toolchain: stable (default) + profile: default + modify PATH variable: yes + +1) Proceed with installation (default) +2) Customize installation +3) Cancel installation +``` + + + +### Installer kiro-editor: + +```bash +$ cargo install kiro-editor + Updating crates.io index + Downloaded kiro-editor v0.4.3 + Downloaded 1 crate (38.2 KB) in 1.59s + Installing kiro-editor v0.4.3 + Downloaded dirs-sys-next v0.1.2 + Downloaded getopts v0.2.21 + Downloaded term_size v0.3.2 + Downloaded unicode-width v0.1.9 + Downloaded termios v0.3.3 + Downloaded term v0.7.0 + Downloaded jemallocator v0.3.2 + Downloaded libc v0.2.117 + Downloaded jemalloc-sys v0.3.2 + Downloaded signal-hook-registry v1.4.0 + Downloaded signal-hook v0.3.13 + Downloaded fs_extra v1.2.0 + Downloaded cfg-if v1.0.0 + Downloaded cc v1.0.72 + Downloaded dirs-next v2.0.0 + Downloaded 15 crates (2.2 MB) in 0.68s (largest was `jemalloc-sys` at 1.3 MB) + Compiling libc v0.2.117 + Compiling fs_extra v1.2.0 + Compiling cc v1.0.72 + Compiling cfg-if v1.0.0 + Compiling signal-hook v0.3.13 + Compiling unicode-width v0.1.9 + Compiling getopts v0.2.21 + Compiling jemalloc-sys v0.3.2 + Compiling dirs-sys-next v0.1.2 + Compiling signal-hook-registry v1.4.0 + Compiling termios v0.3.3 + Compiling term_size v0.3.2 + Compiling dirs-next v2.0.0 + Compiling term v0.7.0 + Compiling jemallocator v0.3.2 + Compiling kiro-editor v0.4.3 + Finished release [optimized + debuginfo] target(s) in 1m 05s + Installing /Users/bruno/.cargo/bin/kiro + Installed package `kiro-editor v0.4.3` (executable `kiro`) + +``` + diff --git a/docs/macos/ssh/ssh-passwordless.md b/docs/macos/ssh/ssh-passwordless.md index 8f89036..4b57f5c 100644 --- a/docs/macos/ssh/ssh-passwordless.md +++ b/docs/macos/ssh/ssh-passwordless.md @@ -93,6 +93,12 @@ Sur le serveur, vérifier les autorisations: [server]$ chmod 600 ~/.ssh/* ``` +Ainsi que le dossier Users: + +```bash +$ chmod go-w sur-le-sentier.fr/ +``` + ### Ajouter la passphrase à SSH-agent. diff --git a/docs/macos/terminal/terminal.md b/docs/macos/terminal/terminal.md index d61cda2..58c889f 100644 --- a/docs/macos/terminal/terminal.md +++ b/docs/macos/terminal/terminal.md @@ -2,7 +2,7 @@ -##### Ouvrir une page man dans un fenêtre spécifique: +#### Ouvrir une page man dans un fenêtre spécifique: ```bash $ open x-man-page://ls @@ -11,7 +11,9 @@ $ open x-man-page://ls function xmanpage() { open x-man-page://$@ ; } ``` -##### Ouvrir une page man dans Aperçu: + + +#### Ouvrir une page man dans Aperçu: ```bash $ man -t ls | open -f -a "Preview" @@ -20,7 +22,9 @@ $ man -t ls | open -f -a "Preview" function preman() { man -t "$@" | open -f -a "Preview" ;} ``` -##### Obtenir le chemin de la fenêtre courante du Finder: + + +#### Obtenir le chemin de la fenêtre courante du Finder: ```bash $ osascript -e 'tell app "Finder" to get posix path of ((target of window 1) as alias)' @@ -49,6 +53,27 @@ alias cdf='pwdf; cd "$(pwdf)"' +#### Erreur: 'zsh: operation not permitted' + +```bash +zsh: operation not permitted: /Users/bruno/.local/bin/convert-videos-for-plex.sh +``` + +Le script est peut-être en quarantaine: + +```bash +$ xattr -l /Users/bruno/.local/bin/convert-videos-for-plex.sh +com.apple.quarantine +``` + +Pour supprimer la quarantaine: + +```bash +$ xattr -d com.apple.quarantine /Users/bruno/.local/bin/convert-videos-for-plex.sh +``` + + + #### Raccourcis: Aller en début de ligne: `CTRL+A` diff --git a/docs/macos/terminal/xattr.md b/docs/macos/terminal/xattr.md new file mode 100644 index 0000000..226ecb4 --- /dev/null +++ b/docs/macos/terminal/xattr.md @@ -0,0 +1,124 @@ +# xattr + + + +```bash +alubook:Custom bruno$ ls -la +total 7960 +drwxr-xr-x 18 bruno staff 612 24 déc 09:11 . +drwx------+ 92 bruno staff 3128 24 déc 09:05 .. +-rw-r--r--@ 1 bruno staff 6148 24 déc 09:05 .DS_Store +-rw-r--r-- 1 bruno staff 558 7 oct 01:14 Localizable.strings +-rw-r--r--@ 1 bruno staff 16836 24 déc 08:28 MacOSX copie.png +-rw-r--r-- 1 bruno staff 10284 21 aoû 03:00 MacOSX.png +``` + + + +1er caractère + +- d: dossier + +- -: fichier + + + +Dernier caractère: + +- @: extended attributes + +- +: extended security information (acl) + + + +Afficher les attributs étendus: `xattr -l ` + +Effacer un attribut étendu: `xattr -d com.apple.quarantine my_jar.jar` + +Effacer tous les attributs étendus: `xattr -c my_jar.jar` + + + +#### Affiche les attributs étendus: + +```bash +$ xattr tabColor.sh +com.apple.TextEncoding +com.apple.lastuseddate#PS +com.apple.macl +com.apple.metadata:_kMDItemUserTags +com.apple.metadata:kMDItemDownloadedDate +com.apple.metadata:kMDItemWhereFroms +com.apple.metadata:kMDLabel_mpkqupmo7cxdxxjnmfdfxofpfe +com.apple.quarantine +``` + + + +#### Affiche les attributs étendus et leur valeur: + +```bash +$ xattr -l tabColor.sh +com.apple.TextEncoding: UTF-8;134217984 +com.apple.lastuseddate#PS: ��] +com.apple.macl: +com.apple.metadata:_kMDItemUserTags: bplist00� +com.apple.metadata:kMDItemDownloadedDate: bplist00�3A�Yw��#� + +com.apple.metadata:kMDItemWhereFroms: bplist00�_Ahttps://www.admin-linux.fr/wp-content/uploads/2013/09/tabColor.sh + +com.apple.metadata:kMDLabel_mpkqupmo7cxdxxjnmfdfxofpfe: � +com.apple.quarantine: 0081;00000000;; +``` + + + +#### Affiche (-p (print)) la valeur d'un attribut étendu: + +```bash +$ xattr -p com.apple.TextEncoding tabColor.sh +UTF-8;134217984 +``` + + + +#### Modifie (-w (write)) la valeur d'un attribut étendu: + +```bash +$ xattr -w tabColor.sh +``` + + + +#### Supprime (-d (delete)) l'attribut étendu et sa valeur: + +```bash +$ xattr -d tabColor.sh +``` + + + +#### Supprime (-c (clear)) tous les attributs étendus: + +```bash +$ xattr -c tabColor.sh +``` + + + +#### Options: + +- `-l` +- `-r`: récursive +- `-s` +- `-v` +- `-x` + + + + + + + +https://developer.apple.com/library/archive/documentation/CoreServices/Reference/MetadataAttributesRef/MetadataAttrRef.html#//apple_ref/doc/uid/TP40001691-BCICJDHA + diff --git a/docs/macos/webserver/apache_M1.md b/docs/macos/webserver/apache_M1.md index e1634d1..4932988 100644 --- a/docs/macos/webserver/apache_M1.md +++ b/docs/macos/webserver/apache_M1.md @@ -684,6 +684,27 @@ WSGIPythonHome "/usr/local/Cellar/python@3.8/3.8.3_2/Frameworks/Python.framework +### Erreur _apr_bucket: + +```bash +dyld[15170]: Symbol not found: _apr_bucket_file_set_buf_size + Referenced from: /opt/homebrew/Cellar/httpd/2.4.52/bin/httpd + Expected in: /usr/lib/libaprutil-1.0.dylib + +``` + +Il faut réinstaller apr-util + +https://stackoverflow.com/questions/69892715/installing-httpd-and-php-in-mac-os-12 + +```bash +$ brew reinstall apr-util + +$ brew services restart httpd +``` + + + ### Liens: [:fa-link: https://getgrav.org/blog/macos-bigsur-apache-multiple-php-versions](https://getgrav.org/blog/macos-bigsur-apache-multiple-php-versions) diff --git a/docs/macos/webserver/install_mysql.md b/docs/macos/webserver/install_mysql.md index e5803ee..4c80659 100644 --- a/docs/macos/webserver/install_mysql.md +++ b/docs/macos/webserver/install_mysql.md @@ -8,8 +8,25 @@ $ brew install mariadb $ brew services start mariadb ``` +MariaDb est installé ici: + +Mac intel: + `/usr/local/Cellar/mariadb/10.2.11` +Mac M1: + +`/opt/homebrew/Cellar/mariadb/10.6.4` + +### Sécuriser l'installation: + +```bash +$ sudo /opt/homebrew/bin/mysql_secure_installation + +mysql -u root -p +Enter password: +``` + ### Arrêter MySQL: ```bash diff --git a/docs/macos/webserver/php-fpm.md b/docs/macos/webserver/php-fpm.md index 1b9296d..d00abd7 100644 --- a/docs/macos/webserver/php-fpm.md +++ b/docs/macos/webserver/php-fpm.md @@ -174,6 +174,10 @@ par +Si PHP n'est pas interprété, redémarrer le mac. + + + ### Changer de version: *PHP switcher script*: diff --git a/docs/macos/webserver/php.md b/docs/macos/webserver/php.md index 8f9976a..b1266ba 100644 --- a/docs/macos/webserver/php.md +++ b/docs/macos/webserver/php.md @@ -234,10 +234,18 @@ install ok: channel://pecl.php.net/yaml-2.2.1 Extension yaml enabled in php.ini ``` +```bash +echo $(brew --prefix yaml) | pecl install yaml +``` + + + PECL a un souci avec l'installation homebrew des macs M1: https://stackoverflow.com/a/68138560/12431632 + + Chaque version de PHP a son propre répertoire d'extensions: Mac intel: diff --git a/includes/abbreviations.md b/includes/abbreviations.md new file mode 100644 index 0000000..9f9c1aa --- /dev/null +++ b/includes/abbreviations.md @@ -0,0 +1,399 @@ +*[AAC]: Advanced Audio Coding +*[ACL]: Access Control List +*[ACPI]: Advanced Configuration and Power Interface +*[ADC]: Analog-to-Digital Converter +*[ADSL]: Asymmetric Digital Subscriber Line +*[AES]: Advanced Encryption Standard +*[AFP]: Apple Filing Protocol +*[AGP]: Accelerated Graphics Port +*[AHCI]: Advanced Host Controller Interface +*[AIFF]: Audio Interchange File Format +*[AIX]: Advanced Interactive Executive +*[Ajax]: Asynchronous JavaScript and XML +*[ALSA]: Advanced Linux Sound Architecture +*[alu]: arithmetic logic unit +*[AMD]: Advanced Microchip Devices +*[ANR]: automatic network routing +*[ANSI]: American National Standards Institute +*[API]: Application Program Interface +*[APR]: Apache Portable Runtime +*[APS]: Automatic Protection Switching +*[ARA]: Apple Remote Access +*[ARP]: Address Resolution Protocol +*[ASCII]: American Standard Code for Information Interchange +*[ATA]: Advanced Technology Attachment +*[ATAPI]: AT Attachment Packet Interface +*[atm]: asynchronous transfer mode +*[AUI]: Attachment Unit Interface +*[AUX]: auxiliary device +*[AVI]: Audio/Video Interleaved +*[AWS]: Amazon Web Services +*[Bash]: Bourne-Again SHell +*[Basic]: Beginners' All-purpose Symbolic Instruction Code +*[BCB]: Buffer control block +*[bcc]: Blind Carbon Copy +*[BIOS]: Basic Input/Output System +*[BOM]: Byte Order Mark +*[BSD]: Berkeley Software Distribution +*[BSoD]: Blue Screen of Death +*[CAPTCHA]: Completely Automated Public Turing Test to tell Computers and Humans Apart +*[cbr]: constant bit rate +*[CCD]: Charged Coupled Device +*[CD]: Compact Disc +*[CD-R]: Compact Disc Recordable +*[CD-ROM]: Compact Disc Read-Only Memory +*[CD-RW]: Compact Disc Re-Writable +*[CDMA]: Code Division Multiple Access +*[CGI]: Common Gateway Interface +*[CIFS]: Common Internet File System +*[CISC]: Complex Instruction Set Computing +*[cli]: command line interface +*[CLUT]: Color LookUp Table +*[CMOS]: Complementary Metal Oxide Semiconductor +*[CMYB]: Cyan Magenta Yellow Black +*[CNAME]: Canonical name +*[CODEC]: coder/decoder +*[CPAN]: Comprehensive Perl Archive Network +*[CPU]: Central Processing Unit +*[CRC]: Cyclic Redundancy Check +*[CRLF]: carriage return, line feed +*[CRM]: Customer Relationship Management +*[csv]: comma separated values +*[CRT]: Cathode Ray Tube +*[CUPS]: Common Unix Printing System +*[CSS]: Cascading Style Sheet +*[CVS]: Concurrent Versions System +*[CYMK]: Cyan Yellow Magenta Black +*[DAC]: Digital-to-Analog Converter +*[DAM]: Digital Asset Management +*[dat]: digital audio tape +*[db]: Decibel +*[DBMS]: Database Management System +*[DDBMS]: Distributed database management system +*[DDNS]: Dynamic Domain Name System +*[DDoS]: Distributed Denial of Service +*[DDR]: Double Data Rate +*[DDR2]: Double Data Rate 2 +*[DDR3]: Double Data Rate Type 3 +*[DDT]: Disk-to-Disk-to-Tape +*[DES]: Data Encryption Standard +*[DHCP]: Dynamic Host Configuration Protocol +*[DHTML]: Dynamic HyperText Markup Language +*[DHX]: Diffie-Hellman Exchange +*[DICOM]: Digital Imaging and Communications in Medicine +*[DIMM]: Dual In-Line Memory Module +*[DITTO]: Data Interfile Transfer, Testing and Operations +*[DKMS]: Dynamic Kernel Module Support +*[DLL]: Dynamic Link Library +*[DMA]: Direct Memory Access +*[DMI]: Desktop Management Interface +*[DMCA]: Digital Millennium Copyright Act +*[dmz]: demilitarized zone +*[DNS]: Domain Name System +*[DNSSEC]: Domain Name System SECurity extensions +*[DOM]: Document Object Model +*[DOS]: Disk Operating System +*[DoS]: denial of service +*[DPI]: Dots Per Inch +*[DRAM]: Dynamic Random Access Memory +*[DRM]: Digital Rights Management +*[DSA]: Digital Signature Algorithm +*[DSL]: Digital Subscriber Line +*[DSLAM]: Digital Subscriber Line Access Multiplexer +*[DSP]: digital signal processor +*[DTD]: Document Type Definition +*[DTM]: Document Table Model +*[DTS]: Digital Theater System +*[DV]: Digital Video +*[DVB-H]: Digital Video Broadcasting - Handhelds +*[DVB-SH]: Digital Video Broadcasting - Satellite services to Handhelds +*[DVD]: Digital Versatile Disc +*[DVD+R]: Digital Versatile Disc Recordable +*[DVD+RW]: Digital Versatile Disk Rewritable +*[DVD-R]: Digital Versatile Disc Recordable +*[DVD-RAM]: Digital Versatile Disc - Random Access Memory +*[DVD-RW]: Digital Versatile Disk Rewritable +*[DVI]: Digital Video Interface +*[DVR]: Digital Video Recorder +*[ECC]: Error Correction Code +*[EFI]: Extensible Firmware Interface +*[EIDE]: Enhanced Integrated Drive Electronics +*[EOF]: end-of-file +*[EOL]: End Of Life +*[EULA]: End-User License Agreement +*[EPS]: Encapsulated PostScript +*[EXIF]: EXchangeable Image File format +*[FAQ]: Frequently Asked Questions +*[FAT32]: File Allocation Table 32 bits +*[FIFO]: First In, First Out +*[FLAC]: Free Lossless Audio Codec +*[FLOPS]: Floating Point Operations Per Second +*[FOSS]: Free ans open source software +*[fps]: frames per second +*[FPU]: Floating Point Unit +*[FQDN]: Fully Qualified Domain Name +*[FreeBSD]: Free Berkeley Software Distribution +*[FSB]: frontside bus +*[FTP]: File Transfer Protocol +*[FTTB]: Fiber to the building +*[FXP]: File eXchange Protocol +*[GDI]: Graphics Device Interface +*[GIF]: Graphics Interchange Format +*[GIMP]: Gnu Image Manipulation Program +*[GNOME]: GNU Network Object Model Environment +*[GNU]: GNU's Not Unix +*[gpio]: general-purpose I/O +*[GPL]: General Public License +*[GPRS]: General packet radio service +*[GPS]: Global Positioning System +*[GPU]: Graphics Processing Unit +*[GUI]: Graphical User Interface +*[GUID]: Globally Unique Identifier +*[HAL]: Hardware Abstraction Layer +*[HCL]: Hardware Compatibility List +*[HDD]: Hard disk drive +*[HDR]: High-dynamic-range imaging +*[HDMI]: High-Definition Multimedia Interface +*[HDSL]: High bit-rate Digital Subscriber Line +*[HDTV]: High Definition television +*[HE-AAC]: High Efficiency Advanced Audio Coding +*[HFS+]: Hierarchical File System Plus +*[HID]: Human Interface Device +*[HTML]: Hyper Text Markup Language +*[HTML5]: HyperText Markup Language 5 +*[HTTP]: HyperText Transfer Protocol +*[HTTPS]: HyperText Transport Protocol Secure +*[I/O]: Input/Output +*[I2C]: Inter-Integrated Circuit +*[IA-32/64]: Intel Architecture - 32/64 +*[ICANN]: Internet Corporation For Assigned Names and Numbers +*[ICMP]: Internet Control Message Protocol +*[ICS]: Internet Connection Sharing +*[IDE]: Integrated Device Electronics +*[IEEE]: Institute of Electrical and Electronics Engineers +*[IGP]: Integrated Graphics Processor +*[IMAP]: Internet Message Access Protocol +*[IMEI]: International Mobile Equipment Identifier +*[IP]: Internet Protocol +*[IP PBX]: Internet Protocol private branch exchange +*[IPSec]: IP Security +*[IPTV]: Internet Protocol Television +*[IPv4]: Internet Protocol, version 4 +*[IPv6]: Internet Protocol, version 6 +*[IPX]: Internetwork Packet Exchange +*[IRC]: Internet Relay Chat +*[IQ]: Interrupt Request +*[ISA]: Industry Standard Architecture +*[iSCSI]: Internet Small Computer Systems Interface +*[ISO]: International Organization for Standardization +*[ISP]: Internet Service Provider +*[J2EE]: Java 2 Platform, Enterprise Edition +*[JDBC]: Java DataBase Connectivity +*[JFS]: Journaling File System +*[JIT]: Just-in-time +*[JPEG]: Joint Photographic Experts Group +*[JRE]: Java Runtime Environment +*[JSON]: JavaScript Object Notation +*[JSP]: Java Server Page +*[Kbps]: Kilobits Per Second +*[KDE]: K Desktop Environment +*[KISS]: Keep It Simple, Stupid +*[KML]: Keyhole Markup Language +*[ksh]: Korn shell +*[KVM]: K Virtual Machine +*[L2TP]: Layer 2 Tunneling Protocol +*[L3TP]: Layer Three Tunneling Protocol +*[LAMP]: Linux, Apache, MySQL and PHP +*[LAN]: Local Area Network +*[LCD]: Liquid Crystal Display +*[LDAP]: Lightweight Directory Access Protocol +*[LED]: Light-Emitting Diode +*[LGPL]: Lesser General Public License (GNU) +*[LIFO]: Last In, First Out +*[LUN]: Logical Unit Number +*[Mac Adrress]: Media Access Control Address +*[Mbps]: Megabits Per Second +*[mbr]: master boot record +*[mib]: Management Information Base +*[MIDI]: Musical Instrument Digital Interface +*[MIME]: Multipurpose Internet Mail Extensions +*[MIPS]: Million Instructions Per Second +*[MIT]: Massachusetts Institute of Technology +*[MMU]: Memory Management Unit +*[MP3]: MPEG-1 Audio Layer-3 +*[MPEG]: Moving Picture Experts Group +*[MTA]: Mail Transfer Agent +*[MTU]: Maximum Transmission Unit +*[NaN]: Not a Number +*[NAS]: Network Attached Storage +*[NAT]: Network Address Translation +*[NetBIOS]: Network Basic Input/Output System +*[NFC]: Near-field communication +*[NFS]: Network File System +*[NIC]: Network Interface Card +*[NSLookup]: Name Server Lookup +*[NTFS]: New Technology File System +*[ntp]: network time protocol +*[NTSC]: National Television System Committee +*[OCR]: Optical Character Recognition +*[ODBC]: Open Database Connectivity +*[OEM]: Original Equipment Manufacturer +*[OLED]: organic light-emitting diode +*[OOB]: Out Of Band +*[OOo]: OpenOffice.org +*[OSD]: On Screen Display +*[OSPF]: Open Shortest Path First +*[P2P]: Peer to Peer +*[PABX]: private automatic branch exchange +*[PAL]: Phase Alternate Line +*[PASV]: Passive (command) +*[PAT]: port address translation +*[PC]: Personal computer +*[PCB]: Printed Circuit Board +*[PCI]: Peripheral Component Interconnect +*[PCIe]: PCI Express +*[PCMCIA]: Personal Computer Memory Card International Association +*[PCRE]: Perl-compatible regular expressions +*[PDA]: Personal Digital Assistant +*[PDF]: Portable Document Format +*[PGP]: Pretty Good Privacy +*[pgSQL]: PostgreSQL +*[PHP]: PHP: Hypertext Preprocessor +*[pin]: personal identification number +*[PING]: Packet Internet or Inter-Network Groper +*[PIO]: Programmed Input/Output +*[PKCS]: Public-Key Cryptography Standards +*[PKI]: public-key infrastructure +*[PLA]: Programmable Logic Array +*[PLL]: Phase Lock Loop +*[PMU]: Power Management Unit +*[PNG]: Portable Network Graphic +*[PnP]: Plug and Play +*[PoE]: Power Over Etherne +*[POP3]: Post Office Protocol +*[Posix]: Portable Operating System Interface for UNIX +*[PPI]: Pixels Per Inch +*[PPP]: Point to Point Protocol +*[PPoE]: Point-to-Point Protocol over Ethernet +*[PXE]: Preboot eXecution Environment +*[PPTP]: Point-to-Point Tunneling Protocol +*[QoS]: Quality of service +*[PROM]: Programmable Read-Only Memory" +*[RAID]: Redundant Array of Independent Disks +*[RAM]: Random Access Memory +*[RAT]: Remote Administration Tool +*[RCS]: Revision Control System +*[RDBMS]: Relational database management system +*[RDF]: Resource Description Framework +*[rDNS]: Reverse DNS +*[RDP]: Remote Desktop Protocol +*[REST]: Representational State Transfer +*[RFC]: Request For Comments +*[RFID]: Radio-Frequency Identification +*[RGB]: Red Green Blue +*[RHEL]: Red Hat Enterprise Linux +*[RISC]: Reduced Instruction Set Computing +*[RoHS]: Restriction of Hazardous Substances +*[ROM]: Read-Only Memory. +*[RPC]: Remote Procedure Call +*[RPM]: Red Hat Package Manager +*[RSA]: Rivest, Shamir and Adleman +*[RSS]: RDF Site Summary +*[RSVP]: Resource Reservation Protocol +*[RTF]: Rich Text Format +*[RTM]: Read The Manual +*[RTP]: Real-Time Transport Protocol +*[SaaS]: software as a service +*[SAN]: Storage Area Network +*[SATA]: Serial Advanced Technology Attachment +*[SCP]: Secure Copy +*[SD]: Secure Digital +*[SDK]: Software development kit +*[SEO]: Search Engine Optimization +*[SFTP]: SSH File Transfer Protocol +*[SHA]: Secure Hash Algorithm +*[SMART]: Self-Monitoring Analysis And Reporting Technology +*[SMB]: Server Message Block +*[SMTP]: Simple Mail Transfer Protocol +*[SNMP]: Simple Network Management Protocol +*[SOCKS]: SOCKetS +*[SOH]: Start Of Header +*[S/PDIF]: Sony/Philips Digital Interface +*[SQL]: Structured Query Language +*[SSD]: Solid-State Drive +*[SSDHMB]: Synchronous Data Hierarchy +*[SSHD]: OpenSSH Daemon +*[SSH]: Secure Shell +*[SSI]: Server-Side Includes +*[SSID]: Service Set identifier +*[SSL]: Secure Socket Layer +*[SSMP]: Simple Screen Management Protocol +*[SSO]: Single sign-on +*[SVG]: Scalable Vector Graphics +*[SVGA]: Super Video Graphics Array +*[TCP/IP]: Transmission Control Protocol/Internet Protocol +*[TFT]: Thin Film Transistor +*[TFTP]: Trivial File Transfer Protocol +*[TIFF]: Tag Image File Format +*[TLD]: Top Level Domain +*[TLS]: Transport Layer Security +*[TPM]: Trusted Platform Module +*[TSV]: Tab Separated Value +*[TTY]: TeleTypewriter +*[TWAIN]: Technology without an interesting name +*[UAC]: User Account Control +*[UART]: Universal asynchronous receiver-transmitter +*[UDF]: Universal Disk Format +*[UDMA]: Ultra Direct Memory Access +*[UDP]: User Datagram Protocol +*[UFS]: Unix File System +*[UML]: Unified Modeling Language +*[UPnP]: Universal Plug and Play +*[UPS]: Uninterruptible Power Supply +*[URI]: Uniform Resource Identifier +*[URL]: Uniform Resource Locator +*[USB]: Universal Serial Bus +*[vbr]: Variable bit rate +*[VDI]: Virtual desktop infrastructure +*[VDSL]: Very high-speed digital subscriber line +*[VESA]: Video Electronics Standards Association +*[VFAT]: Virtual File Allocation Table +*[VGA]: Video Graphics Array +*[VLAN]: Virtual local-area network +*[VNC]: Virtual Network Computing +*[VOD]: Video On Demand +*[VOIP]: Voice over Internet Protocol +*[VPN]: Virtual Private Network +*[VPS]: Virtual private server +*[VQF]: Vector Quantization Format +*[VRAM]: Video Random Access Memory +*[VRML]: Virtual Reality Modeling Language +*[W3C]: World Wide Web Consortium +*[WAMP]: Windows, Apache, Mysql, PHP +*[WAN]: Wide Area Network +*[WAP]: Wireless Application Protocol +*[WebDAV]: Web-based Distributed Authoring and Versioning +*[WEP]: Wired Equivalent Privacy +*[WHQL]: Windows Hardware Quality Lab +*[WIA]: Windows Image Acquisition +*[WINE]: Wine Is Not an Emulator +*[WFS]: Windows Future Storage +*[WINS]: Windows Internet Name Service +*[WLAN]: Wireless LAN +*[WMI]: Windows Management Instrumentation +*[WOL]: Wake On LAN +*[WPA]: Wi-Fi Protected Access +*[WPF]: Windows Presentation Foundation +*[WWW]: World Wide Web +*[WYSIWYG]: what you see is what you get +*[XHR]: XmlHttpRequest +*[XHTML]: Extensible Hypertext Markup Language +*[XML]: Extensible Markup Language +*[XMLRPC]: XML Remote Procedure Call +*[XMP]: eXtensible Metadata Platform +*[XLST]: Extensible Style Sheet Language Transformation +*[XPath]: XML Path Language +*[XSS]: Cross-Site Scripting +*[XUL]: eXtensible User-interface Language +*[ZFS]: Zettabyte File System +*[zsh]: Z shell \ No newline at end of file diff --git a/mkdocs_backup.yml b/mkdocs _backup.yml similarity index 55% rename from mkdocs_backup.yml rename to mkdocs _backup.yml index fb942d6..31d9724 100644 --- a/mkdocs_backup.yml +++ b/mkdocs _backup.yml @@ -11,6 +11,7 @@ nav: - Linux: - Index: Linux/index.md - ack: Linux/ack.md + - Alternatives: Linux/alternatives.md - Apps: - AppImage: Linux/Apps/AppImage.md - flatpak: Linux/Apps/flatpak.md @@ -19,24 +20,34 @@ nav: - apt-get: Raspberry/apt-get.md - aptitude: Raspberry/aptitude.md - awk: Linux/awk.md + - bat: Linux/bat.md - Chaines: Linux/string.md - Commandes sympas: Linux/commandes.md + - Compare: Linux/compare.md - Conditions: Linux/conditions.md + - cron: Linux/cron.md - Date: Linux/date.md - Editeurs: - index: Linux/Editeurs/index.md - nano: Linux/Editeurs/nano.md - vi: Linux/Editeurs/vi.md + - Exa: Linux/exa.md - Executer: Linux/executer.md + - fd (find): Linux/fd.md - Filtres: Linux/filtres.md - Format ext4: Linux/format_ext4.md - find: Linux/find.md - for: Linux/for.md + - fzf: Linux/fzf.md - grep: Linux/grep.md + - grep --options (fr): Linux/grep-options-fr.md + - grep --options (us): Linux/grep-options.md + - kill: Linux/kill.md - Lire un fichier: Linux/read.md - MàJ sans internet: Linux/maj.md - Permissions: Linux/permissions.md - Pipelines: Linux/pipeline.md + - Pushd / popd: Linux/pushd-popd.md - I/O Redirections: Linux/redirections.md - SCP: Linux/scp.md - SFTP: Linux/sftp.md @@ -44,54 +55,76 @@ nav: - Shells: Linux/shell.md - SSH: Linux/ssh.md - Tail / Head: Linux/tail-head.md + - Users: Linux/users.md - Divers: Linux/divers.md - - Linux Mint: - - Index: Mint/index.md - - Mint: Mint/Mint.md - - Applications: Mint/applications.md - - Backup: Mint/backup.md - - Grub: Mint/grub.md - - Info Système: Mint/info_sys.md - - Mises-à-jour: Mint/outdated.md - - Recovery: Mint/recovery.md - - Samba: Mint/samba.md - - Systemctl: Mint/systemctl.md - - Serveur ftp: Mint/vsftpd.md - - Serveur web: Mint/webserver.md + - Distributions: + - Index: Distributions/index.md + - Debian: Distributions/debian.md + - Linux Mint: + - Index: Distributions/Mint/index.md + - Mint: Distributions/Mint/Mint.md + - Applications: Distributions/Mint/applications.md + - Backup: Distributions/Mint/backup.md + - Grub: Distributions/Mint/grub.md + - Info Système: Distributions/Mint/info_sys.md + - Mises-à-jour: Distributions/Mint/outdated.md + - Recovery: Distributions/Mint/recovery.md + - Samba: Distributions/Mint/samba.md + - Systemctl: Distributions/Mint/systemctl.md + - Serveur ftp: Distributions/Mint/vsftpd.md + - Serveur web: Distributions/Mint/webserver.md + - Solus: + - Index: Distributions/solus/index.md + - Apache: Distributions/solus/apache.md + - MySQL: Distributions/solus/mysql.md + - PHP: Distributions/solus/php.md + - zsh: Distributions/solus/zsh.md + - Update: Distributions/update.md - macos: - Index: macos/index.md - Divers: - AllToMP3: macos/Divers/AllToMP3.md - DeezloaderRemix: macos/Divers/DeezloaderRemix.md - Divers: macos/Divers/Divers.md + - Paralles Desktop: macos/Divers/parallels.md + - Vuepress: macos/Divers/vuepress.md - weasyprint: macos/Divers/weasyprint.md - Hackintosh: macos/Divers/Hackintosh.md + - GPG: macos/GPG.md - Homebrew: - homebrew: macos/homebrew/brew.md - homebrew-cask: macos/homebrew/brew-cask.md + - Latex: macos/Latex.md - Logs: macos/logs.md - Mail: macos/Mail.md - Node.js: - Index: macos/node/index.md - Ghost: macos/node/ghost.md - node-js: macos/node/node-js.md + - nodeenv: macos/node/nodeenv.md - nvm: macos/node/nvm.md - Perl: - - Installation: macos/perl/installer.md + - Index: macos/perl/index.md + - Homebrew: macos/perl/homebrew.md + - Perlbrew: macos/perl/perlbrew.md - Perl: macos/perl/perl.md - Python: - Index: macos/python/index.md - Conda: macos/python/conda.md - Django: macos/python/Django.md - pip: macos/python/pip.md + - pipx: macos/python/pipx.md + - poetry: macos/python/poetry.md - Python 3: macos/python/python3.md - Environnement virtuel: macos/python/virtuel.md - Ruby: macos/ruby.md + - Rust: macos/rust.md - Sécurité (Gatekeeper): macos/securite.md - ssh: - SSH: macos/ssh/ssh.md - passwordless: macos/ssh/ssh-passwordless.md - Terminal: + - alias: macos/terminal/alias.md - chflags: macos/terminal/chflags.md - Exécuter un script Bash: macos/terminal/executer_shell_script.md - getfileinfo - setfile: macos/terminal/getfileinfo_setfile.md @@ -100,31 +133,52 @@ nav: - Shebang: macos/terminal/shebang.md - Terminal: macos/terminal/terminal.md - you have mail: macos/terminal/youhavemail.md + - xattr: macos/terminal/xattr.md - Touch ID: macos/TouchID.md - WebServer: - Index: macos/webserver/index.md - Apache: macos/webserver/apache.md + - Apache (M1): macos/webserver/apache_M1.md - Composer: macos/webserver/composer.md - erreurs: macos/webserver/errors_apache.md + - htpasswd: macos/webserver/htpasswd.md - mongodb: macos/webserver/mongodb.md - MySQL (installation): macos/webserver/install_mysql.md - MySQL (trucs): macos/webserver/mysql.md - PHP: macos/webserver/php.md - - PHP 7.2: macos/webserver/php72.md + - mod-php: macos/webserver/mod-php.md + - php-fpm: macos/webserver/php-fpm.md + - PHP 7.1: macos/webserver/php71.md - PHP 7.3: macos/webserver/php73.md + - PHP 7.4: macos/webserver/php74.md + - PHP 8.0: macos/webserver/php80.md - Xhprof: macos/webserver/Xhprof.md - Liens: macos/liens.md - MySQL: - Index: MySQL/index.md - Backup: MySQL/Backup.md + - Bases: MySQL/bases.md + - Connexion: MySQL/connexion.md + - Host: MySQL/host.md + - Install: MySQL/install.md - mysqlcheck: MySQL/mysqlcheck.md - - Reset Password: MySQL/Expired-root-Password.md - - Socket error: MySQL/Socket-error.md + - password: MySQL/password.md + - Privilèges: MySQL/privileges.md + - Repair: MySQL/repair.md + - Select: MySQL/select.md + - Tables: MySQL/tables.md + - Trucs: MySQL/trucs.md + - Types de bases: MySQL/type_bases.md + - Utilisateurs: MySQL/users.md - Commandes diverses: MySQL/diverses.md - Plesk Onyx: - Index: Plesk/index.md - Ghost: Plesk/Ghost.md + - Git: Plesk/git.md + - Gitea: Plesk/Gitea.md + - Joplin: Plesk/joplin.md - Nextcloud: Plesk/nextcloud.md + - Nodejs: Plesk/nodejs.md - Programmation: -Python: - Index: Programmation/Python/index.md @@ -148,49 +202,93 @@ nav: - Index: Raspberry/index.md - apt-get: Raspberry/apt-get.md - aptitude: Raspberry/aptitude.md + - Argon One: Raspberry/Argon-one.md - Backup SD: Raspberry/backup_sd.md - Boot et clone: Raspberry/boot.md - Backup: Raspberry/backup.md + - Cloud: Raspberry/cloud.md - Hardware: Raspberry/hardware.md + - Heure: Raspberry/heure.md - Installation sans écran: Raspberry/headless.md - Matériels: - Liste: Raspberry/materiels/materiels.md - Cameras: Raspberry/materiels/camera.md - HC-SR04: Raspberry/materiels/HC-SR04.md - HC-SR501: Raspberry/materiels/HC-SR501.md + - Nextcloud: Raspberry/nextcloud.md - Pi Desktop: Raspberry/pi-desktop.md + - Python: Raspberry/python.md - Réseau: Raspberry/reseau.md + - Rclone: Raspberry/rclone.md - Envoyer un mail depuis le RPi: Raspberry/send_mail.md + - Services: Raspberry/services.md - SiriControl: Raspberry/siri_control.md - Tools: Raspberry/tools.md - Divers: Raspberry/divers.md + - Sonos: + - Support: Sonos/support.md + - Voyants: Sonos/voyants.md - Synology: - Index: Synology/index.md - bash: Synology/bash.md - - DSM 6: Synology/dsm6.md + - crontab: Synology/crontab.md + - Docker: + - Joplin: Synology/Docker/joplin.md + - Ports: Synology/Docker/ports.md + - DSM 6: + - DSM 6: Synology/dsm6/dsm6.md + - Gitea: Synology/dsm6/gitea.md + - Nextcloud: Synology/dsm6/nextcloud.md + - ownCloud: Synology/dsm6/owncloud.md + - PHP: Synology/dsm6/php.md + - Python 3: Synology/dsm6/python.md + - Services: Synology/dsm6/services.md + - DSM 7: + - Apache: Synology/dsm7/apache.md + - DSM 7: Synology/dsm7/dsm7.md + - Gitea: Synology/dsm7/gitea.md + - Nextcloud: Synology/dsm7/nextcloud.md + - Node: Synology/dsm7/node.md + - Piwigo: Synology/dsm7/piwigo.md + - Python 3: Synology/dsm7/python.md + - Redis: Synology/dsm7/redis.md + - WordPress: Synology/dsm7/wordpress.md - eadir: Synology/eadir.md - - Gitea: Synology/gitea.md - - Nextcloud: Synology/nextcloud.md + - ImageMagick: Synology/ImageMagick.md + - nginx: Synology/nginx.md - oPKG: - iPKG (DSM5): Synology/opkg/iPKG5.md - iPKG (DSM6): Synology/opkg/iPKG6.md - oPKG: Synology/opkg/oPKG.md - - ownCloud (DSM6): Synology/owncloud.md - - Python 3: Synology/python.md - Scripts: Synology/scripts.md - - Solus: - - Index: solus/index.md - - Apache: solus/apache.md - - MySQL: solus/mysql.md - - PHP: solus/php.md - Windows: - Index: Windows/index.md - Astuces: Windows/trucs.md + - Chocolatey: Windows/Chocolatey.md - Clés ssh: Windows/cles-ssh.md - - WSL: Windows/wsl.md + - Commandes: Windows/commandes.md + - Firewall: Windows/firewall.md + - PowerShell: + - Index: Windows/PowerShell/index.md + - Stratégies d'exécution: Windows/PowerShell/ExecutionPolicies.md + - Commandes: Windows/PowerShell/commands.md + - Environnements: Windows/PowerShell/env.md + - Modules: Windows/PowerShell/modules.md + - PowerShell sur macOS: Windows/PowerShell/macOS.md + - Trucs: Windows/PowerShell/trucs.md + - systeminfo: Windows/systeminfo.md + - Windows Terminal: Windows/Terminal.md + - winget: Windows/winget.md + - Installer WSL: Windows/wsl.md + - Personnaliser WSL: Windows/wsl_2.md - Divers: - Index: Divers/index.md + - Adobe: Divers/adobe.md + - Alfred: Divers/alfred.md - bash: + - basename: Divers/bash/basename.md + - Commandes: Divers/bash/commandes.md + - direnv: Divers/bash/direnv.md - Exemples: Divers/bash/bash_exemples.md - Programmation: Divers/bash/programmation.md - Strings: Divers/bash/strings.md @@ -200,21 +298,42 @@ nav: - Commades DOS (2): Divers/batch/Commandes_DOS_2.md - Changer de shell: Divers/Changer_shell.md - Chromium: Divers/Chromium.md - - Debian: Divers/debian.md + - diraction: Divers/diraction.md + - Docker: + - docker: Divers/docker/docker.md + - applications: Divers/docker/applications.md + - dotbare: Divers/dotbare.md - git: - Index: Divers/git/index.md - git: Divers/git/git.md - Session de travail avec git: Divers/git/git-session.md - gitea: Divers/git/gitea.md - git-ftp: Divers/git/git-ftp.md + - Synchroniser 2 dépôts: Divers/git/sync-repo.md - go: Divers/go.md + - Homebridge: Divers/homebridge.md + - iTerm2: Divers/iTerm2.md + - JDownloader: Divers/JDownloader.md + - Joplin: Divers/joplin.md - Markdown: Divers/markdown.md - Nextcloud: Divers/nextcloud.md - Plex: Divers/plex.md + - Réseau: + - Reseau: Divers/reseau/reseau.md + - Routeur Asus: Divers/reseau/rt-ac88u.md + - Sonos: + - Index: Divers/Sonos/index.md + - One: Divers/Sonos/one.md + - Alexa: Divers/Sonos/alexa.md + - myMedia for Alexa: Divers/Sonos/myMedia.md + - soco-cli: Divers/Sonos/soco-cli.md + - tmux: Divers/tmux.md - Vagrant: - Installation: Divers/Vagrant/Vagrant.md - Créer une Vagrant box: Divers/Vagrant/creer_une_vagrant_box.md - Vider le cache DNS: Divers/Vider_cache_DNS.md + - WordPress: + - Sur Debian/nginx: Divers/wordpress.md - wp-cli: - Index: Divers/wp-cli/index.md - cli: Divers/wp-cli/wp_cli.md @@ -239,6 +358,9 @@ nav: - OVH: Divers/wp-cli/ovh.md - zsh: - Antibody: Divers/zsh/antibody.md + - Plugins: Divers/zsh/plugins.md + - Tools: Divers/zsh/tools.md + - zinit: Divers/zsh/zinit.md - zsh: Divers/zsh/zsh.md - zsh2: Divers/zsh/zsh2.md - MkDocs: mkdocs.md @@ -246,23 +368,37 @@ nav: theme: name: 'material' language: 'fr' + palette: + - media: "(prefers-color-scheme: light)" + scheme: default + primary: light green + #accent: green + toggle: + icon: material/weather-sunny + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: indigo + #accent: blue + toggle: + icon: material/weather-night + name: Switch to light mode features: - # v4 - #tabs: true - # v5 - -tabs - -instant + - navigation.tabs + - navigation.instant + - navigation.expand + - navigation.top + - search.suggest + - search.highlight plugins: - search: - # v4 - #lang: 'fr' - # v5 lang: - fr - pdf-export: media_type: print enabled_if_env: ENABLE_PDF_EXPORT - - git-revision-date-localized + - git-revision-date-localized: + fallback_to_build_date: true extra_css: - stylesheets/fontawesome-all.css - stylesheets/second_extra.css @@ -272,9 +408,11 @@ markdown_extensions: - pymdownx.magiclink - pymdownx.mark - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg + #emoji_index: !!python/name:materialx.emoji.twemoji + #emoji_generator: !!python/name:materialx.emoji.to_svg - admonition + - pymdownx.details + - pymdownx.superfences - fontawesome_markdown - footnotes - toc: @@ -282,7 +420,14 @@ markdown_extensions: extra: manifest: 'manifest.json' - + social: + - icon: fontawesome/brands/github + link: https://github.com/Bruno21 + - icon: fontawesome/brands/flickr + link: https://www.flickr.com/photos/funnymac/ + +copyright: Copyright © 2016 - 2022 Bruno Pesenti + site_dir: central_docs dev_addr: '127.0.0.1:8001' diff --git a/mkdocs.yml b/mkdocs.yml index 3ddb90d..b423b13 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -27,6 +27,7 @@ nav: - Conditions: Linux/conditions.md - cron: Linux/cron.md - Date: Linux/date.md + - du - df: Linux/du-df.md - Editeurs: - index: Linux/Editeurs/index.md - nano: Linux/Editeurs/nano.md @@ -42,6 +43,7 @@ nav: - grep: Linux/grep.md - grep --options (fr): Linux/grep-options-fr.md - grep --options (us): Linux/grep-options.md + - kill: Linux/kill.md - Lire un fichier: Linux/read.md - MàJ sans internet: Linux/maj.md - Permissions: Linux/permissions.md @@ -117,6 +119,7 @@ nav: - Python 3: macos/python/python3.md - Environnement virtuel: macos/python/virtuel.md - Ruby: macos/ruby.md + - Rust: macos/rust.md - Sécurité (Gatekeeper): macos/securite.md - ssh: - SSH: macos/ssh/ssh.md @@ -131,6 +134,7 @@ nav: - Shebang: macos/terminal/shebang.md - Terminal: macos/terminal/terminal.md - you have mail: macos/terminal/youhavemail.md + - xattr: macos/terminal/xattr.md - Touch ID: macos/TouchID.md - WebServer: - Index: macos/webserver/index.md @@ -143,6 +147,8 @@ nav: - MySQL (installation): macos/webserver/install_mysql.md - MySQL (trucs): macos/webserver/mysql.md - PHP: macos/webserver/php.md + - mod-php: macos/webserver/mod-php.md + - php-fpm: macos/webserver/php-fpm.md - PHP 7.1: macos/webserver/php71.md - PHP 7.3: macos/webserver/php73.md - PHP 7.4: macos/webserver/php74.md @@ -152,10 +158,19 @@ nav: - MySQL: - Index: MySQL/index.md - Backup: MySQL/Backup.md + - Bases: MySQL/bases.md + - Connexion: MySQL/connexion.md + - Host: MySQL/host.md + - Install: MySQL/install.md - mysqlcheck: MySQL/mysqlcheck.md - password: MySQL/password.md - - Reset Password: MySQL/Expired-root-Password.md - - Socket error: MySQL/Socket-error.md + - Privilèges: MySQL/privileges.md + - Repair: MySQL/repair.md + - Select: MySQL/select.md + - Tables: MySQL/tables.md + - Trucs: MySQL/trucs.md + - Types de bases: MySQL/type_bases.md + - Utilisateurs: MySQL/users.md - Commandes diverses: MySQL/diverses.md - Plesk Onyx: - Index: Plesk/index.md @@ -164,6 +179,7 @@ nav: - Gitea: Plesk/Gitea.md - Joplin: Plesk/joplin.md - Nextcloud: Plesk/nextcloud.md + - Nodejs: Plesk/nodejs.md - Programmation: -Python: - Index: Programmation/Python/index.md @@ -210,6 +226,9 @@ nav: - SiriControl: Raspberry/siri_control.md - Tools: Raspberry/tools.md - Divers: Raspberry/divers.md + - Sonos: + - Support: Sonos/support.md + - Voyants: Sonos/voyants.md - Synology: - Index: Synology/index.md - bash: Synology/bash.md @@ -228,8 +247,12 @@ nav: - DSM 7: - Apache: Synology/dsm7/apache.md - DSM 7: Synology/dsm7/dsm7.md + - Gitea: Synology/dsm7/gitea.md + - Nextcloud: Synology/dsm7/nextcloud.md - Node: Synology/dsm7/node.md + - Piwigo: Synology/dsm7/piwigo.md - Python 3: Synology/dsm7/python.md + - Redis: Synology/dsm7/redis.md - WordPress: Synology/dsm7/wordpress.md - eadir: Synology/eadir.md - ImageMagick: Synology/ImageMagick.md @@ -290,6 +313,8 @@ nav: - Synchroniser 2 dépôts: Divers/git/sync-repo.md - go: Divers/go.md - Homebridge: Divers/homebridge.md + - iTerm2: Divers/iTerm2.md + - JDownloader: Divers/JDownloader.md - Joplin: Divers/joplin.md - Markdown: Divers/markdown.md - Nextcloud: Divers/nextcloud.md @@ -335,25 +360,44 @@ nav: - zsh: - Antibody: Divers/zsh/antibody.md - Plugins: Divers/zsh/plugins.md + - Tools: Divers/zsh/tools.md - zinit: Divers/zsh/zinit.md - zsh: Divers/zsh/zsh.md - zsh2: Divers/zsh/zsh2.md - - MkDocs: mkdocs.md + - MkDocs: + - Installation: MkDocs/index.md + - Material: MkDocs/mkdocs-material.md + - Material (2): MkDocs/mkdocs-material-2.md + - Material (3): MkDocs/mkdocs-material-3.md theme: name: 'material' + custom_dir: docs/overrides language: 'fr' + palette: + - media: "(prefers-color-scheme: light)" + scheme: default + primary: light green + #accent: green + toggle: + icon: material/weather-sunny + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: indigo + #accent: blue + toggle: + icon: material/weather-night + name: Switch to light mode features: - # v4 - #tabs: true - # v5 - -tabs - -instant + - navigation.tabs + - navigation.instant + - navigation.expand + - navigation.top + - search.suggest + - search.highlight plugins: - search: - # v4 - #lang: 'fr' - # v5 lang: - fr - pdf-export: @@ -364,25 +408,44 @@ plugins: extra_css: - stylesheets/fontawesome-all.css - stylesheets/second_extra.css - +extra_javascript: + - https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js + - javascripts/extra.js + markdown_extensions: + - abbr - codehilite - pymdownx.magiclink - pymdownx.mark - pymdownx.emoji: - #emoji_index: !!python/name:materialx.emoji.twemoji - #emoji_generator: !!python/name:materialx.emoji.to_svg + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg - admonition - pymdownx.details + - pymdownx.keys + - pymdownx.critic + - pymdownx.caret + - pymdownx.tilde - pymdownx.superfences + - pymdownx.snippets - fontawesome_markdown - footnotes + - attr_list + - md_in_html + - def_list - toc: permalink: true extra: manifest: 'manifest.json' - + social: + - icon: fontawesome/brands/github + link: https://github.com/Bruno21 + - icon: fontawesome/brands/flickr + link: https://www.flickr.com/photos/funnymac/ + +copyright: Copyright © 2016 - 2022 Bruno Pesenti + site_dir: central_docs dev_addr: '127.0.0.1:8001'