Tous les journaux publics
De www.yakakliker.org
Affichage combiné de tous les journaux disponibles sur www.yakakliker.org. Vous pouvez personnaliser l’affichage en sélectionnant le type de journal, le nom d’utilisateur ou la page concernée (ces deux derniers étant sensibles à la casse).
- 28 mai 2024 à 08:49 Administrateur discussion contributions a créé la page Itsm-ng : Installation (Page créée avec « === Lien === https://wiki.itsm-ng.org/fr/Installation/DEB Catégorie:Itsm-ng ») Balise : Éditeur visuel
- 27 mai 2024 à 16:22 Administrateur discussion contributions a créé la page Haproxy : Reverse Proxy Tcp (Page créée avec « Dans certains cas, le reverse proxy Tcp s'impose. Voici la configuration type <syntaxhighlight lang="bash"> frontend MonTCP mode tcp bind *:3306 default_backend TSE backend TSE mode tcp balance leastconn server S1 192.168.1.50:3306 check server S2 192.168.2.50:3306 check stick-table type ip size 1m expire 30m </syntaxhighlight> === Lien === https://www.haproxy.com/documentation/haproxy-configuration-tutorials/load-... ») Balise : Éditeur visuel
- 24 mai 2024 à 14:53 Administrateur discussion contributions a créé la page Haproxy : Configuration de plusieurs certificats (Page créée avec « === Exemple de configuration === <syntaxhighlight lang="bash"> frontend yakakliker bind *:80 bind *:443 ssl crt /etc/haproxy/cert/www.yakakliker.org.pem name www.yakakliker.org # filter cache mycache # http-request cache-use mycache # http-response cache-store mycache mode http option httplog acl yaka_acl hdr(host) www.yakakliker.org http-request redirect scheme https code 301 unless { ssl_fc } use_backend backend1 if yak... ») Balise : Éditeur visuel
- 23 mai 2024 à 09:28 Administrateur discussion contributions a créé la page Let's Encrypt : Renouveler automatiquement les certificats (Page créée avec « <syntaxhighlight lang="bash"> sudo certbot renew --force-renewal </syntaxhighlight> === Lien === https://quillevere.net/programmation/linux/creer-renouveler-ses-certificats-let-s-encrypt-automatiquement-2_60908.htm Catégorie:Let's Encrypt Catégorie:Scripts Catégorie:Certificats ») Balise : Éditeur visuel
- 22 mai 2024 à 17:02 Administrateur discussion contributions a créé la page Haproxy : Unable to load SSL private key from PEM file (Page créée avec « Il faut concaténer la clé Let's Encrypt fullchain.pem et privkey.pem pour créer une clé pour le site en question. <syntaxhighlight lang="bash"> cat fullchain.pem privkey.pem > example.com.pem </syntaxhighlight> Reste à l'ajouter dans la configuration Haproxy<syntaxhighlight lang="bash"> bind *:443 ssl crt /etc/letsencrypt/live/example.com/example.com.pem </syntaxhighlight> === Lien === https://stackoverflow.com/questions/27947982/haproxy-unable-to-load-s... ») Balise : Éditeur visuel
- 22 mai 2024 à 16:46 Administrateur discussion contributions a créé la page Haproxy : Reverse Proxy https (Page créée avec « === Approche 1 : https to http === Avec cette approche, la communication se fait en http avec le backend (serveur web de destination) et en https avec les clients. Les certificats sont hébergés uniquement sur HAproxy<syntaxhighlight lang="bash"> frontend yakakliker bind *:80 mode http option httplog acl yaka_acl hdr(host) www.yakakliker.org use_backend backend1 if yaka_acl frontend yakakliker_443 bind *:443 ssl crt /etc/haproxy/ce... ») Balise : Éditeur visuel
- 22 mai 2024 à 16:37 Administrateur discussion contributions a créé la page Apache : Installation d'un certificat Let's Encrypt (Page créée avec « === Installation de Certbot === <syntaxhighlight lang="bash"> sudo apt install certbot python3-certbot-apache </syntaxhighlight> === Vérification de la configuration Apache (Virtualhost) === <syntaxhighlight lang="bash"> sudo nano /etc/apache2/sites-available/your_domain.conf </syntaxhighlight>Vérifier la présence de ces lignes :<syntaxhighlight lang="bash"> ... ServerName your_domain ServerAlias www.your_domain ... </syntaxhighlight>Tester la configuration :... ») Balise : Éditeur visuel
- 21 mai 2024 à 13:51 Administrateur discussion contributions a créé la page Installation d'un certificat Let's encrypt (Page créée avec « https://fr-wiki.ikoula.com/fr/Mise_en_place_d%E2%80%99un_certificat_Let%E2%80%99s_Encrypt_avec_Apache_sur_Debian_10 ») Balise : Éditeur visuel
- 16 mai 2024 à 13:00 Administrateur discussion contributions a créé la page Linux : Haproxy (Page créée avec « === Lien === https://www.aukfood.fr/mise-en-place-haproxy-2-8-sur-une-debian-12/ https://upcloud.com/resources/tutorials/haproxy-load-balancer-debian Catégorie:Haproxy Catégorie:Linux ») Balise : Éditeur visuel
- 15 mai 2024 à 08:57 Administrateur discussion contributions a créé la page IVentoy (Page créée avec « Serveur PXE === Lien === https://www.it-connect.fr/tuto-iventoy-serveur-pxe-windows-linux-vmware-esxi/ Catégorie:IVentoy Catégorie:PXE ») Balise : Éditeur visuel
- 10 mai 2024 à 17:23 Administrateur discussion contributions a créé la page Script Bash : Les Variables (Page créée avec « === Exemple === <syntaxhighlight lang="bash"> #!/bin/bash export VAR01=$1 export VAR02=$2 echo $VAR01.$VAR02 </syntaxhighlight> ==== Résultat ==== <syntaxhighlight lang="shell"> franck@VirtualBox:~/Deploiement$ sh test.sh Bonjour "Tout le monde" Bonjour.Tout le monde franck@VirtualBox:~/Deploiement$ </syntaxhighlight> Catégorie:Scripts Catégorie:Bash ») Balise : Éditeur visuel
- 7 mai 2024 à 10:40 Administrateur discussion contributions a créé la page Python : Formatage des flottants (Page créée avec « <syntaxhighlight lang="bash"> b=3.14116 print(f"b = {b}") # pas d'instruction de formatage print(f"b = {b:.3f}") # 3 chiffres après la virgule print(f"b = {b:6.2f}") # au moins 6 caractères, dont deux chiffres après la virgule, si besoin des blancs print(f"b = {b:06.2f}") # au moins 6 caractères, dont deux chiffres après la virgule, si besoin des zéros </syntaxhighlight> === Lien === https://filedn.com/lpKG7uY9hIHVel5exA5Ik80/Bases_Python/L'affich... ») Balise : Éditeur visuel
- 7 mai 2024 à 10:36 Administrateur discussion contributions a créé la page Python : Formatage des entiers (Page créée avec « <syntaxhighlight lang="bash"> a = 14 print(f"a = {a}") # pas d'instruction de formatage print(f"a = {a:4d}") # au moins 4 caractères, si besoin des blancs print(f"a = {a:04d}") # au moins 4 caractères si besoin des 0 </syntaxhighlight> === Lien === https://filedn.com/lpKG7uY9hIHVel5exA5Ik80/Bases_Python/L'affichage.html Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 7 mai 2024 à 10:34 Administrateur discussion contributions a créé la page Python : f-strings (Page créée avec « <syntaxhighlight lang="bash"> a = 3 b = 5 print(f"La somme de {a} et {b} vaut {a+b}.") </syntaxhighlight> === Lien === https://filedn.com/lpKG7uY9hIHVel5exA5Ik80/Bases_Python/L'affichage.html Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 6 mai 2024 à 16:13 Administrateur discussion contributions a créé la page Rundeck : Les variables (Page créée avec « === Variable type Text === Pour une variable créé de type ''Text'' du nom de '''Var01'''<syntaxhighlight lang="bash"> #!/bin/bash filename=$RD_OPTION_VAR01 echo $RD_OPTION_VAR01 echo $filename </syntaxhighlight> ==== Pour info ==== '''Les valeurs dʼoption seront accessibles aux scripts sous ces formes:''' Prompt : <code>$RD_OPTION_VAR01</code> Arguments de la ligne de commande : <code>${option.Var01}</code> Arguments de la ligne de commande (sans guillem... ») Balise : Éditeur visuel
- 6 mai 2024 à 12:08 Administrateur discussion contributions a créé la page Créer un java Keystore en ligne de commande (Page créée avec « https://net-security.fr/securite/creer-javakeystore/ Catégorie:Linux Catégorie:SSL Catégorie:Keystore ») Balise : Éditeur visuel
- 6 mai 2024 à 09:37 Administrateur discussion contributions a créé la page Linux : Vérifier la date de validité du certificat SSL (Page créée avec « <syntaxhighlight lang="bash"> openssl s_client -connect outildechiffrage.lan.groupeherve.com:443 -servername outildechiffrage.lan.groupeherve.com | openssl x509 -noout -dates </syntaxhighlight> === Liens === https://www.developpez.net/forums/d2121910/systemes/securite/verifier-validite-periodicite-d-certificat/ Catégorie:Linux Catégorie:SSL Catégorie:Certificats ») Balise : Éditeur visuel
- 2 mai 2024 à 15:23 Administrateur discussion contributions a créé la page Bash : Whiptail (Page créée avec « === Msgbox === <syntaxhighlight lang="bash"> whiptail --title "Déploiement" --fb --msgbox " Avant d'aller plus loin, veillez à avoir ces différentes informations en votre possession :" 20 100 </syntaxhighlight> === --yesno === <syntaxhighlight lang="bash"> if (whiptail --title "Déploiement" --fb --yesno "Souhaitez vous continuer ?" 10 60); then echo "ok" else echo "Fin" fi </syntaxhighlight> === Choix multiples === <syntaxhighlight lang="bash"> #Fonction... ») Balise : Éditeur visuel
- 2 mai 2024 à 15:22 Administrateur discussion contributions a supprimé la page Whiptail (contenait « {{DISPLAYTITLE:Bash : Whiptail}} === Msgbox === <syntaxhighlight lang="bash"> whiptail --title "Déploiement" --fb --msgbox " Avant d'aller plus loin, veillez à avoir ces différentes informations en votre possession :" 20 100 </syntaxhighlight> === --yesno === <syntaxhighlight lang="bash"> if (whiptail --title "Déploiement" --fb --yesno "So... » et son seul contributeur était Administrateur (discussion))
- 2 mai 2024 à 15:12 Administrateur discussion contributions a créé la page Whiptail (Page créée avec « === Msgbox === <syntaxhighlight lang="bash"> whiptail --title "Déploiement" --fb --msgbox " Avant d'aller plus loin, veillez à avoir ces différentes informations en votre possession :" 20 100 </syntaxhighlight> === --yesno === <syntaxhighlight lang="bash"> if (whiptail --title "Déploiement" --fb --yesno "Souhaitez vous continuer ?" 10 60); then echo "ok" else echo "Fin" fi </syntaxhighlight> === Choix multiples === <syntaxhighlight lang="bash"> #Fonction... ») Balise : Éditeur visuel
- 30 avril 2024 à 14:26 Administrateur discussion contributions a créé la page Bash : Echo (Page créée avec « <syntaxhighlight lang="bash"> #!/bin/bash export red="\033[31m" export turquoise="\033[36m" export bleue="\033[34m" export jaune="\033[33m" export vert="\033[32m" export gras="\033[1m" export souligne="\033[4m" export clignotant="\033[5m" export reset="\033[0m" export rougegrasclignotant="\033[31;1;5m" export turquoisegras="\033[36;1m" export vertgras="\033[32;1m" export jaunegras="\033[33;1m" echo "${vertgras}Le serveur "$VAR05" est bien accessible.""$reset"... ») Balise : Éditeur visuel
- 30 avril 2024 à 08:51 Administrateur discussion contributions a créé la page Bash : Script Ping (Page créée avec « <syntaxhighlight lang="bash"> #!/bin/bash IP="8.8.8.8" # Replace with the IP address you want to ping COUNT=1 # Number of ping attempts if ping -c $COUNT $IP > /dev/null 2>&1; then echo "Ping to $IP was successful." else echo "Ping to $IP failed." fi </syntaxhighlight> === Liens === https://tecadmin.net/check-network-connectivity-using-ping-in-shell-scripts/ Catégorie:Scripts Catégorie:Bash Catégorie:Linux ») Balise : Éditeur visuel
- 29 avril 2024 à 13:32 Administrateur discussion contributions a créé la page Bash : sshpass (Page créée avec « === Créer un utilisateur sur un remote distant avec sshpass : === <syntaxhighlight lang="bash"> export VAR05=Adresse_IP export VAR08=Password export VAR07=Utilisateur export SSHPASS=$VAR08 sshpass -e ssh root@$VAR05 useradd -s /bin/bash -m $VAR07 </syntaxhighlight> === Copier des documents depuis le remote vers un dossier local avec sshpass : === <syntaxhighlight lang="bash"> export VAR05=Adresse_IP export VAR08=Password export SSHPASS=$VAR08 sshpass -e scp... ») Balise : Éditeur visuel
- 29 avril 2024 à 09:45 Administrateur discussion contributions a créé la page Zerotier : Installation du client (Page créée avec « curl -s <nowiki>https://install.zerotier.com</nowiki> | sudo bash curl -o Zerotier.sh <nowiki>https://raw.githubusercontent.com/Yakakliker37/Base_info/main/Zerotier.sh</nowiki> sh Zerotier.sh Catégorie:Zerotier Catégorie:VPN Catégorie:SDWAN ») Balise : Éditeur visuel
- 29 avril 2024 à 09:26 Administrateur discussion contributions a créé la page Serveur Syslog OpenSource (Page créée avec « https://www.tecmint.com/open-source-centralized-linux-log-management-tools/ Catégorie:Veille Techno ») Balise : Éditeur visuel
- 26 avril 2024 à 11:26 Administrateur discussion contributions a créé la page Bash : Test presence fichier (Page créée avec « <syntaxhighlight lang="bash"> #!/bin/bash VAR15=jdk-21 echo $VAR15 #Création d'un dossier temporaire pour le lien JDK mkdir ./temp-java chmod 777 ./temp-java rm -rf ./temp-java/* #Connexion au serveur Apache et récupération des JDK présents sshpass -p N38r45k437! scp root@172.20.14.62:/usr/java/jdk* ./temp-java/ cd ./temp-java if [ -f $VAR15 ]; then echo "File $VAR15 exists." else echo "File $VAR15 does not exist." fi </syntaxhighlight> Catég... ») Balise : Éditeur visuel
- 26 avril 2024 à 09:07 Administrateur discussion contributions a créé la page Bash : Boucle (Page créée avec « <syntaxhighlight lang="bash"> #!/bin/bash i=1 var=00$i ls ./temp-sites/$var*.conf 2>&1 > /dev/null status=$? while [ $status -eq 0 ]; do echo $status i=$(( i + 1 )) var=00$i ls ./temp-sites/$var*.conf 2>&1 > /dev/null status=$? echo $status done echo $var </syntaxhighlight> Catégorie:Scripts Catégorie:Bash ») Balise : Éditeur visuel
- 23 avril 2024 à 15:43 Administrateur discussion contributions a créé la page Linux : apt-get upgrade non interactive (Page créée avec « <syntaxhighlight lang="bash"> apt-get --force-yes -o Dpkg::Options::='--force-confold' --force-yes -o Dpkg::Options::='--force-confdef' -fuy upgrade </syntaxhighlight> Catégorie:Linux ») Balise : Éditeur visuel
- 22 avril 2024 à 16:19 Administrateur discussion contributions a créé la page Apache2 : AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message (Page créée avec « Editer le fichier : /etc/apache2/apache2.conf Ajouter la ligne suivante à la fin du fichier. as<syntaxhighlight lang="bash"> ServerName 127.0.0.1 </syntaxhighlight>Recharger Apache2<syntaxhighlight lang="bash"> systemctl restart apache2 </syntaxhighlight> === Lien : === https://www.digitalocean.com/community/tutorials/apache-configuration-error-ah00558-could-not-reliably-determine-the-server-s-fully-qualified-domain-name Catégorie:Apache2 Catégorie... ») Balise : Éditeur visuel
- 22 avril 2024 à 10:01 Administrateur discussion contributions a créé la page SSH : Enlever une ancienne clé SSH (Page créée avec « <syntaxhighlight lang="bash"> ssh-keygen -f "/root/.ssh/known_hosts" -R "172.20.14.38" </syntaxhighlight> Catégorie:SSH Catégorie:Linux ») Balise : Éditeur visuel
- 19 avril 2024 à 16:55 Administrateur discussion contributions a créé la page Linux : Script avec expect (Page créée avec « <syntaxhighlight lang="bash"> #!/usr/bin/expect set timeout 20 set ip [lindex $argv 0] set user [lindex $argv 1] set password [lindex $argv 2] spawn ssh -o "StrictHostKeyChecking no" "$user\@$ip" expect "password:" send "$password\r"; expect "# " send "apt-get update\r" expect "# " send "apt-get upgrade -y && exit\r" expect "# " send "ls\r" expect "# " send -- "\r" send "exit\r" expect "# " send "exit\r" interact #expect eof </syntaxhighlight> [... ») Balise : Éditeur visuel
- 19 avril 2024 à 14:16 Administrateur discussion contributions a créé la page Rundeck : Exemple de script de mise à jour automatique Linux (Page créée avec « <syntaxhighlight lang="bash"> #!/bin/sh export DEBIAN_FRONTEND=noninteractive && echo "executing autoremove" && apt-get -fuy autoremove && echo "executing update" && apt-get update && echo "executing upgrade" -o Dpkg::Options::="--force-confdef" -fuy upgrade -y </syntaxhighlight> Catégorie:Rundeck Catégorie:Linux Catégorie:Scripts ») Balise : Éditeur visuel
- 18 avril 2024 à 13:23 Administrateur discussion contributions a créé la page Python : Supprimer des éléments d'un dictionnaire (Page créée avec « === La méthode pop() === La méthode pop() permet de supprimer la paire clé / valeur dont la clé est passée en argument. Elle retourne la valeur de la paire clé / valeur :<syntaxhighlight lang="python3"> personne = { 'nom': 'dupont', 'prenom': 'jean', 'adresse': { 'ville': 'paris' } } nom = personne.pop('nom') print(nom) # dupont </syntaxhighlight> === La méthode popItem() === La méthode popItem() permet de supprimer la dernièr... ») Balise : Éditeur visuel
- 17 avril 2024 à 13:21 Administrateur discussion contributions a créé la page Python : Parcourir les dictionnaires (Page créée avec « === La méthode keys() === La méthode keys renvoie un objet dict_keys contenant les clés d'un dictionnaire. Par exemple :<syntaxhighlight lang="python3"> personne = { 'nom': 'dupont', 'prenom': 'jean', 'adresse': { 'ville': 'paris' } } print(personne.keys()) # dict_keys(['nom', 'prenom', 'adresse']) </syntaxhighlight>Attention ! Un dict_keys n'est pas une liste, il s'agit d'un objet particulier appelé une vue. C'est un objet itérabl... ») Balise : Éditeur visuel
- 17 avril 2024 à 13:07 Administrateur discussion contributions a créé la page Python : Opérateur in et méthodes get(), copy() et clear() (Page créée avec « === Tester l'existence d'une clé === <syntaxhighlight lang="python3"> personne = { 'nom': 'dupont', 'prenom': 'jean' } print(personne['age']) # KeyError: 'age' </syntaxhighlight>La plupart du temps ce n'est pas souhaitable et pour cette raison nous utilisons l'opérateur in ou la méthode get(). === Utilisation de l'opérateur in === Le plus souvent nous utiliserons l'opérateur in pour vérifier l'existence d'une clé dans un dictionnaire :<syntaxhigh... ») Balise : Éditeur visuel
- 17 avril 2024 à 09:49 Administrateur discussion contributions a créé la page Proxmox : Sauvegarder une VM (Page créée avec « <syntaxhighlight lang="bash"> vzdump 100 --dumpdir /mnt/pve/Backups --mode snapshot --compress zstd </syntaxhighlight> Catégorie:Proxmox ») Balise : Éditeur visuel
- 17 avril 2024 à 08:39 Administrateur discussion contributions a créé la page Linux : Erreur de démarrage Initramfs (Page créée avec « <syntaxhighlight lang="bash"> BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.1) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs) exit </syntaxhighlight>Il indique quelle partition il faut réparer. <syntaxhighlight lang="bash"> (initramfs) fsck /dev/sda1 -y </syntaxhighlight> Refaire un exit :<syntaxhighlight lang="bash"> (initramfs) exit </syntaxhighlight> === Lien : === https://lewinux.over-blog.fr/2022/03/initramfs-l-erreur-de-de... ») Balise : Éditeur visuel
- 16 avril 2024 à 15:26 Administrateur discussion contributions a créé la page Rundeck : Création d'un node distant (Page créée avec « Sous Rundeck, pour pouvoir lancer une commande ssh sur un node distant : Sur le serveur Rundeck, il faut au préalable créer une clé SSH en tant de user "Rundeck" <syntaxhighlight lang="bash"> sudo -u rundeck ssh-keygen -t rsa -b 4096 </syntaxhighlight> Il faut ensuite la partager sur le serveur distant :! Exemple :<syntaxhighlight lang="bash"> sudo -u rundeck ssh-copy-id user@srv-distant </syntaxhighlight> Valider le fonctionnement :<syntaxhighlight l... ») Balise : Éditeur visuel
- 16 avril 2024 à 15:23 Administrateur discussion contributions a créé la page Fichier:Rundeck004.png
- 16 avril 2024 à 15:23 Administrateur discussion contributions a téléversé Fichier:Rundeck004.png
- 16 avril 2024 à 15:15 Administrateur discussion contributions a créé la page Fichier:Rundeck003.png
- 16 avril 2024 à 15:15 Administrateur discussion contributions a téléversé Fichier:Rundeck003.png
- 16 avril 2024 à 15:13 Administrateur discussion contributions a créé la page Fichier:Rundeck002.png
- 16 avril 2024 à 15:13 Administrateur discussion contributions a téléversé Fichier:Rundeck002.png
- 16 avril 2024 à 15:11 Administrateur discussion contributions a créé la page Fichier:Rundeck001.png
- 16 avril 2024 à 15:11 Administrateur discussion contributions a téléversé Fichier:Rundeck001.png
- 16 avril 2024 à 13:51 Administrateur discussion contributions a créé la page Rundeck : Gestion des clés (Page créée avec « === Lien : === https://docs.rundeck.com/docs/learning/getting-started/secrets-overview.html Catégorie:Rundeck ») Balise : Éditeur visuel
- 16 avril 2024 à 13:12 Administrateur discussion contributions a créé la page Python : Les dictionnaires (Page créée avec « Les dictionnaires sont déclarés en utilisant des accolades :<syntaxhighlight lang="python3"> annuaire = { "clé1": 'valeur1', "clé2": 'valeur2', } </syntaxhighlight> '''Exemple :'''<syntaxhighlight lang="python3"> annuaire = { "Jean Dupont": '0145854547', "Paul Joseph": '0145854547', "Stéphanie Leroux": '0458477854', } </syntaxhighlight> On accède ensuite aux valeurs en utilisant les clés avec des crochets : <syntaxhighlight lang="p... ») Balise : Éditeur visuel
- 16 avril 2024 à 12:50 Administrateur discussion contributions a créé la page Python : Trier une liste (Page créée avec « === Inverser les éléments d'une liste === La méthode '''''reverse()''''' permet d'inverser l'ordre des éléments d'une liste comme avec la syntaxe [::-1] :<syntaxhighlight lang="python3"> liste = [1, 2, 3] liste.reverse() print(liste) # [3, 2, 1] </syntaxhighlight> === Trier des éléments d'une liste === La méthode '''''sort()''''' permet de trier les éléments d'une liste du plus petit au plus grand :<syntaxhighlight lang="python3"> liste = [42, 2, 28]... ») Balise : Éditeur visuel
- 16 avril 2024 à 09:13 Administrateur discussion contributions a créé la page Linux : Gestion de l'utilisation de l'espace disque (Page créée avec « <syntaxhighlight lang="bash"> du -sm * | sort -rh </syntaxhighlight> ») Balise : Éditeur visuel