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).
- 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
- 15 avril 2024 à 16:32 Administrateur discussion contributions a créé la page Linux : Se connecter en SSH par échange de clés SSH (Page créée avec « === Liens : === https://lecrabeinfo.net/se-connecter-en-ssh-par-echange-de-cles-ssh.html ») Balise : Éditeur visuel
- 9 avril 2024 à 15:36 Administrateur discussion contributions a créé la page Apache : Tester la configuration (Page créée avec « Pour tester la configuration d'apache <syntaxhighlight lang="bash"> apachectl configtest </syntaxhighlight> Catégorie:Apache ») Balise : Éditeur visuel
- 9 avril 2024 à 10:00 Administrateur discussion contributions a créé la page Rundeck : Configuration de l'URL d'accès (Page créée avec « Par défaut, Rundeck n'est accessible uniquement via l'URL : http://localhost:4440 Pour modifier cet URL, éditer le fichier /etc/rundeck/rundeck-config.properties <syntaxhighlight lang="bash"> #loglevel.default is the default log level for jobs: ERROR,WARN,INFO,VERBOSE,DEBUG loglevel.default=INFO rdeck.base=/var/lib/rundeck #rss.enabled if set to true enables RSS feeds that are public (non-authenticated) rss.enabled=false # change hostname here grails.server... ») Balise : Éditeur visuel
- 8 avril 2024 à 14:50 Administrateur discussion contributions a créé la page Rundeck : Gestion des utilisateurs (Page créée avec « === Liens === https://docs.rundeck.com/docs/learning/getting-started/users-overview.html Catégorie:Rundeck ») Balise : Éditeur visuel
- 4 avril 2024 à 13:10 Administrateur discussion contributions a créé la page Linux : Liens symboliques (Page créée avec « === Créer un lien symbolique === <syntaxhighlight lang="bash"> ln -s /media/files/tb-prod/files files </syntaxhighlight> === Mettre à jour un lien symbolique === <syntaxhighlight lang="bash"> ln -sfn /a/new/path files </syntaxhighlight> === Liens === https://unix.stackexchange.com/questions/151999/how-to-change-where-a-symlink-points Catégorie:Linux ») Balise : Éditeur visuel
- 3 avril 2024 à 14:19 Administrateur discussion contributions a créé la page Rundeck : Installation (Page créée avec « https://docs.rundeck.com/docs/administration/install/ ») Balise : Éditeur visuel
- 30 mars 2024 à 13:21 Administrateur discussion contributions a créé la page Reseau : Utilitaires (Page créée avec « === Mtr === https://www.malekal.com/comment-utiliser-la-commande-mtr-my-traceroute-linux/ https://www.redhat.com/sysadmin/linux-mtr-command Catégorie:Reseau ») Balise : Éditeur visuel
- 28 mars 2024 à 16:30 Administrateur discussion contributions a créé la page Fichier:Capture d’écran du 2024-03-28 15-29-50.png
- 28 mars 2024 à 16:30 Administrateur discussion contributions a téléversé Fichier:Capture d’écran du 2024-03-28 15-29-50.png
- 27 mars 2024 à 10:25 Administrateur discussion contributions a créé la page Mikrotik : Tunnel GRE (Page créée avec « === Liens === https://help.mikrotik.com/docs/display/ROS/GRE Catégorie:Mikrotik Catégorie:VPN ») Balise : Éditeur visuel
- 26 mars 2024 à 15:37 Administrateur discussion contributions a créé la page Python : Les index des chaînes de caractères (Page créée avec « <syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[0]) # U print(chaine[1]) # n print(chaine[2]) # e </syntaxhighlight><syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[4:8]) # chai </syntaxhighlight><syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[:-1]) # Une chain print(chaine[4:]) # chaine </syntaxhighlight><syntaxhighlight lang="python3"> chaine = 'Une chaine' print(chaine[2:-1:2]) # ecan print(c... ») Balise : Éditeur visuel
- 26 mars 2024 à 12:02 Administrateur discussion contributions a créé la page Python : Formater les chaînes de caractères (Page créée avec « === f-strings === <syntaxhighlight lang="python3"> age = 42 prenom = 'Paul' print(f'Je m\'appelle {prenom} et j\'ai {age} ans') </syntaxhighlight><syntaxhighlight lang="python3"> print(f"Le minimum est {min(-1, 2, 4, -3)}") # Le minimum est -3 </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 26 mars 2024 à 11:13 Administrateur discussion contributions a créé la page Python : Opérateurs arithmetiques (Page créée avec « <syntaxhighlight lang="python3"> print(2 + 3) # Addition => 5 print(12 - 3) # Soustraction => 9 print(5 * 3) # Multiplication => 15 print(12 / 3 ) # Division => 4.0 print(22 % 6 ) # Modulo => 4 (reste de la division) print(22 // 6 ) # Division entière => 3 print(2 ** 3 ) # 8 </syntaxhighlight><syntaxhighlight lang="python3"> a = 2 b = 3.1 print(a + b) # 5.1 print(a - b) # -1.1 print(a // b) # 0.0 print(a / b) # 0.6451612903225806 print(a * b) # 6.2 </syntax... ») Balise : Éditeur visuel
- 26 mars 2024 à 10:51 Administrateur discussion contributions a créé la page Python : Les nombres entiers (Page créée avec « <syntaxhighlight lang="python3"> print(int('2')) </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 26 mars 2024 à 10:38 Administrateur discussion contributions a créé la page Python : Break, continue et pass (Page créée avec « <syntaxhighlight lang="python3"> for n in range(10): if n % 2 == 0: continue print(n) </syntaxhighlight> Cela n'affichera que les nombres impairs. En effet, à chaque fois que la condition n % 2 == 0 sera vraie, l'itération sera sautée et l'instruction print(n) ne sera donc pas exécutée. Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 26 mars 2024 à 10:30 Administrateur discussion contributions a créé la page Python : While (Page créée avec « <syntaxhighlight lang="python3"> i = 0 while i <= 20: reponse = input("Entrez un entier supérieur à 20 : ") i = int(reponse) print(i) </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 26 mars 2024 à 10:08 Administrateur discussion contributions a créé la page Python : Enumerate (Page créée avec « <syntaxhighlight lang="python3"> saisons = ["été", "automne", "hiver", "printemps"] for i, saison in enumerate(saisons): print(f"La saison {i} est {saisons[i]}") # La saison 0 est été # La saison 1 est automne # La saison 2 est hiver # La saison 3 est printemps </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 25 mars 2024 à 18:15 Administrateur discussion contributions a créé la page Python : Le type range (Page créée avec « <syntaxhighlight lang="python3"> range(départ, arrivée, pas) </syntaxhighlight><syntaxhighlight lang="python3"> range = range(0, 10, 2) for i in range: print(i) </syntaxhighlight><syntaxhighlight lang="python3"> print(list(range(0, 10, 3))) # [0, 3, 6, 9] </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 25 mars 2024 à 17:25 Administrateur discussion contributions a créé la page Python : La boucle for (Page créée avec « <syntaxhighlight lang="python3"> for element in [1, 2, 3]: print(element) print(element) </syntaxhighlight><syntaxhighlight lang="python3"> compteur = 0 for element in 'Bonjour': compteur += 1 print(element, compteur) </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 25 mars 2024 à 17:14 Administrateur discussion contributions a créé la page Python : Les iterables (Page créée avec « === Exemple === <syntaxhighlight lang="python3"> liste = [1, 2, 3] iterateur = iter(liste) print(next(iterateur)) # 1 print(next(iterateur)) # 2 print(next(iterateur)) # 3 </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 25 mars 2024 à 16:59 Administrateur discussion contributions a créé la page Python : Operateur ternaire (Page créée avec « === Exemple === <syntaxhighlight lang="python3"> age = 12 adulte = True if age >= 18 else False print(adulte) </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») Balise : Éditeur visuel
- 25 mars 2024 à 15:20 Administrateur discussion contributions a créé la page Python : Operateur match (Page créée avec « <syntaxhighlight lang="python3"> erreur = 406 match erreur: case 400: print("La syntaxe de la requête est erronée.") case 401: print("Une authentification est nécessaire pour accéder à la ressource.") case 402: print("Paiement requis pour accéder à la ressource.") case 403: print("Le serveur a compris la requête, mais refuse de l'exécuter.") case 404: print("Ressource non trouvée.") case... ») Balise : Éditeur visuel
- 25 mars 2024 à 15:05 Administrateur discussion contributions a créé la page Python : Operateurs logiques (Page créée avec « === L'opérateur and === <syntaxhighlight lang="python3"> print(True and True) # True print(True and False) # False print(False and True) # False print(False and False) # False </syntaxhighlight> === L'opérateur or === <syntaxhighlight lang="python3"> print(True or True) # True print(True or False) # True print(False or True) # True print(False or False) # False </syntaxhighlight> === L'opérateur not === <syntaxhighlight lang="python3"> print(not 1)... ») Balise : Éditeur visuel