Logo carnetderootxzz@carnetderoot.net"La simplicité est la sophistication suprême" - Léonard De Vinci
dimanche 18 février 2018

:: Installation de Raspbian sur Raspberry Pi ::

Matériel

Raspberry Pi 3 Model B 1.2

  • 1.2 GHz 64 bit quad core ARM Cortex A53
  • Broadcom BCM2837
  • 1 Go SDRAM

Carte SD 16Go

PC sous Linux

Préparation de la carte SD

$ sudo dd if=/home/pi/raspian.img of=/dev/sdb bs=512M

Configuration Raspbian

Au 1er démarrage, l'installation se fait automatiquement avec les paramètres par défaut. Pour changer la configuration :

$ sudo raspi-config

WiFi en ligne de commande

Récupération du nom de l'interface wifi

$ ifconfig

Infos réseau

$ iwlist -i wlan0 scan

Configuration wpa_supplicant

  • en root (sudo -i préalable nécessaire)

    # wpa_passphrase "ssid" "password" >> /etc/wpa_supplicant/wpa_supplicant.conf
  • en mode utilisateur

    $ wpa_passphrase "ssid" "password" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null
  • à partir d'un fichier contenant la clé (/home/pi/psk.txt)

    # wpa_passphrase "ssid" `cat /home/pi/psk.txt` >> /etc/wpa_supplicant/wpa_supplicant.conf
    $ wpa_passphrase "ssid" `cat /home/pi/psk.txt` | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null

Références


dimanche 04 février 2018

:: Rundeck ::

Rappel

Aller dans le répertoire "rundeck"

PS C:\> cd D:\rundeck

rd-queue

Synopsis

rd-queue [*action*] [-h] [-e id] [-p project]

Actions

  • list (default) : liste les exécutions en cours
  • follow : suit le retour de l'exécution spécifiée par son id
  • kill : tue l'exécution en cours spécifié par son id

Options

Option Description Actions
-h, --help Affiche l'aide
-p Nom du projet list
-e, --eid Id d'exécution follow, kill
-q, --quiet Mode silencieux follow
-r, --progress Affiche la progression de l'exécution follow
-t, --restart Affiche la log depuis le début follow

Lister exécutions en cours

> .\tools\bin\rd-queue list -p MyProject
Queue: x items
[id] NomJob <http://lien_vers_details_du_job>
...

Suivre exécution d'un job

Avec affichage de la sortie

> .\tools\bin\rd-queue follow -e 183
[...]
[183] execution status: success

Avec l'indicateur de progression

> .\tools\bin\rd-queue follow -e 183 --progress
################
[183] execution status: success

rd-jobs

[ à suivre ]


:: MultiMarkdown ::

Basics

What Syntax
Italic *Italic* or _Italic_
*Bold * **Bold** or __Italic__
Both ***Both*** or ___Both___
Block Quote > Block Quote (like email)
List *, + or -
Ordered 1. on first item,
Header ### Header
HRule --- or *** on empty line

Links

What Syntax
Basic [CNN](http://cnn.com)
Reference [link][linkid] for [link][linkid] then [linkid]: http://cnn.com "title" on its own line elsewhere.
Def Link [linkid]: http://cnn.com "title" on its own line elsewhere.
Short <http://cnn.com> <pierce@twinforces.com>
Internal [Links][] (any header name)
Footnote1 [^footnote] def footnote later
Def Footnote [^footnote]: text
Image ![Image Name](URL "title") for an image
![Image Ref] then later def
![Caption][Image Ref] then later def
Image Def ```[Image Ref]: URL "Title" width="45px" height="45px"

Tables

Table caption, also works as a reference
First Header Second Header Third Header
First row Bold Very long data entry
Second row Cell that spans across two columns

| First Header | Second Header | Third Header | | :------------ | :-----------: | -------------------: |
| : Left align | : centered : | Right align : | | First row | **Bold** | Very long data entry | | Second row | Cell that spans across two columns ||
[Table caption, also works as a reference][section-mmd-tables-table1]

Critic

What Syntax
{--a delete. --} a delete. {-- remove --}
{++an add. ++} {++ add++}
swap {~~from~>to~~} {\~\~\from\~>to\~\~}
{==a highlight==} {\=\=highlight\=\=}
Comment, which you can't see{>>What is it a test of?<<}. {>>Comment?\<\<}

  1. This is the footnote ↩