blog
Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
EFI Notes partitions EFI GPT vs MBR
EFI/GPT
Optional: To create a partition, use the GNU parted command :
parted /dev/volume
mklabel gpt
Warning: The existing disk label on /dev/volume will be destroyed and all data on this disk will be lost. Do you want to continue?
mkpart primary 0% 100%
unit TB
print print free
quit
partprobe /dev/volume
Ou addpart / delpart ?
cat /proc/partitions
To create an XFS file system, type the following command :
mkfs.xfs -f /dev/partition
For an ext4 files system, type the following command :
mkfs.ext4 /dev/partition
#parted /dev/sdb mklabel gpt mkpart P1 0% 100% parted /dev/sdb mklabel gpt mkpart primary ext4 0% 100%
parted /dev/sdb unit s print > sdb-pt.parted
parted -ms /dev/sdb print > sdb-pt.parted2
sdb.parted2
BYT; /dev/sdb:322GB:scsi:512:512:gpt:EQLOGIC 100E-00:; 1:1049kB:322GB:322GB:ext4:primaire:;
Exemple
parted /dev/sdb mklabel msdos mkpart p xfs 0% 100%
Éditer un PDF grâce à LibreOffice Draw
Créer un fichier PDF hybride éditable
PDFimport
Manipuler des fichiers PDF avec Libre-office Draw
Sous Debian installez le paquet “libreoffice-pdfimport”
Génération de PDF
libreoffice --headless --convert-to pdf --outdir plop.pdf plop.odt 2>&1
E2guardian - dansguardian - Filtrer le web de site porno - Contrôle parentale
Voir :
Liste blanche
cat >> /etc/e2guardian/lists/exceptionsitelist <<EOF e2guardian.org www.e2guardian.org EOF systemctl restart e2guardian
Dynamic hostname based on ip address - dhcp hook
- name: set dynamic hostname based on ip address - use dhcp hook copy: src=hostname dest=/etc/dhcp/dhclient-exit-hooks.d/hostname owner=root group=root when: ansible_os_family == 'Debian' - name: set dynamic hostname based on ip address - use dhcp hook copy: src=hostname dest=/etc/dhcp/dhclient.d/hostname.sh owner=root group=root mode="0755" when: ansible_os_family == 'RedHat' # Raspberry #- name: set dynamic hostname based on ip address - use dhcp hook # copy: src=hostname dest=/lib/dhcpcd/dhcpcd-hooks/30-hostname owner=root group=root
hostname
#!/bin/bash set_hostname() { local new_hostname local strip_simple_hostname=$(hostname -s | sed -e 's/-.*$//') new_hostname="$strip_simple_hostname-$(hostname -I | awk '{print $1}' | tr . -)" hostname "$new_hostname" sed -i -e "s/^127.0.1.1\\t.*/127.0.1.1\\t$new_hostname/" /etc/hosts # Delete duplicate lines perl -i -ne 'print unless $a{$_}++' /etc/hosts } if $if_up; then set_hostname fi
blog.txt · Dernière modification : de 127.0.0.1
