Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ‼️‼️ https://pastebin.com/u/LeGamerInfini
- ‼️‼️ LAST UPDATE 2026 07 23
- ‼️‼️ THANK YOU VERY MUCH.
- ---------------------------------
- ---------------------------------
- -
- ‼️ RASPBERRY PI OS (LEGACY) FULL: BEGINNER GUIDE AND ESSENTIAL COMMANDS ‼️Thank You‼️
- -
- ---------------------------------
- ---------------------------------
- -
- --
- -
- - ENGLISH VERSION
- -
- - RASPBERRY PI OS (LEGACY) FULL: BEGINNER GUIDE AND ESSENTIAL COMMANDS
- -
- - OFFICIAL DESCRIPTION:
- -
- - Raspberry Pi OS (Legacy) Full is a Raspberry Pi edition based on Debian 12 Bookworm.
- -
- - It includes:
- -
- - - security updates;
- - - the Raspberry Pi desktop;
- - - recommended applications;
- - - web browsers;
- - - VLC Media Player;
- - - programming tools;
- - - LibreOffice;
- - - Scratch;
- - - KiCad;
- - - many other educational and productivity applications.
- -
- - Official Raspberry Pi OS download page:
- - https://www.raspberrypi.com/software/operating-systems/
- -
- - Raspberry Pi Imager:
- - https://www.raspberrypi.com/software/
- -
- - IMPORTANT CURRENT INFORMATION:
- -
- - - Raspberry Pi OS Legacy Full remains based on Debian 12 Bookworm.
- - - The current main Raspberry Pi OS branch is based on Debian 13 Trixie.
- - - Use the Legacy Bookworm edition when you need compatibility with older software, accessories, drivers, or projects.
- - - For a future move from Bookworm to Trixie, Raspberry Pi recommends a clean installation instead of an in-place major upgrade.
- - - Back up all important files before replacing or reinstalling the OS.
- -
- - WHICH VERSION SHOULD YOU CHOOSE?
- -
- - Raspberry Pi OS Legacy Full 64-bit:
- -
- - - recommended for Raspberry Pi 3, 4 and 5;
- - - recommended for Raspberry Pi 400 and Raspberry Pi 500;
- - - suitable for newer 64-bit Raspberry Pi models;
- - - can use more than 4 GB of RAM efficiently.
- -
- - Raspberry Pi OS Legacy Full 32-bit:
- -
- - - intended mainly for older Raspberry Pi models;
- - - useful when older software requires a 32-bit environment;
- - - not the normal choice for Raspberry Pi 5 or Raspberry Pi 500.
- -
- - A 32 GB or larger microSD card is recommended for comfortable use because the Full edition, updates, applications, and personal files require significant storage space.
- -
- --
- -
- - VERY BASIC INSTALLATION TUTORIAL
- -
- - 1. PREPARE THE EQUIPMENT
- -
- - You need:
- -
- - - a compatible Raspberry Pi;
- - - an official or suitable power supply;
- - - a microSD card or compatible USB storage device;
- - - a keyboard and mouse;
- - - a display and HDMI cable;
- - - another computer for writing the image.
- -
- - 2. INSTALL RASPBERRY PI IMAGER
- -
- - Download Raspberry Pi Imager:
- - https://www.raspberrypi.com/software/
- -
- - Install and open it on Windows, Linux, or macOS.
- -
- - 3. CHOOSE THE RASPBERRY PI MODEL
- -
- - Select your Raspberry Pi model in Raspberry Pi Imager.
- -
- - 4. CHOOSE THE OS
- -
- - Open the OS selection menu and find:
- -
- - - Raspberry Pi OS (other);
- - - Raspberry Pi OS (Legacy);
- - - Raspberry Pi OS (Legacy) Full.
- -
- - Choose the 64-bit or 32-bit version that matches your Raspberry Pi.
- -
- - 5. CHOOSE THE STORAGE DEVICE
- -
- - Select the correct microSD card or USB drive.
- -
- - WARNING:
- -
- - Everything on the selected storage device will be erased.
- -
- - 6. CONFIGURE THE BASIC SETTINGS
- -
- - Raspberry Pi Imager can configure:
- -
- - - username;
- - - password;
- - - Wi-Fi network;
- - - Wi-Fi password;
- - - keyboard layout;
- - - time zone;
- - - hostname;
- - - SSH remote access.
- -
- - 7. WRITE THE IMAGE
- -
- - Start the writing process and wait for writing and verification to finish.
- -
- - Safely eject the storage device.
- -
- - 8. START THE RASPBERRY PI
- -
- - Insert the microSD card or connect the USB storage device.
- -
- - Connect the display, keyboard, mouse, network, and power supply.
- -
- - Follow the first-start configuration screens.
- -
- - 9. UPDATE THE SYSTEM
- -
- - Open Terminal and run:
- -
- - sudo apt update
- -
- - sudo apt full-upgrade
- -
- - Restart after important kernel or firmware updates:
- -
- - sudo reboot
- -
- - 10. CONFIGURE THE RASPBERRY PI
- -
- - Open the graphical Raspberry Pi configuration utility from the desktop preferences.
- -
- - The Terminal configuration utility is:
- -
- - sudo raspi-config
- -
- - Use it to configure options such as:
- -
- - - hostname;
- - - boot behaviour;
- - - display;
- - - interfaces;
- - - SSH;
- - - camera support;
- - - serial port;
- - - localisation;
- - - keyboard;
- - - time zone.
- -
- --
- -
- - ESSENTIAL UPDATE COMMANDS
- -
- - Refresh the list of available packages:
- -
- - sudo apt update
- -
- - Install all normal updates, including dependency changes:
- -
- - sudo apt full-upgrade
- -
- - Recommended complete update command:
- -
- - sudo apt update && sudo apt full-upgrade
- -
- - Check available storage before a large update:
- -
- - df -h
- -
- - Remove downloaded package files from the APT cache:
- -
- - sudo apt clean
- -
- - Remove dependencies that are no longer required:
- -
- - sudo apt autoremove
- -
- - Restart the Raspberry Pi:
- -
- - sudo reboot
- -
- - Shut down safely:
- -
- - sudo poweroff
- -
- --
- -
- - INSTALLING AND REMOVING APPLICATIONS
- -
- - Search for an application:
- -
- - apt-cache search KEYWORD
- -
- - Example:
- -
- - apt-cache search image editor
- -
- - Display information about a package:
- -
- - apt-cache show PACKAGE
- -
- - Install an application:
- -
- - sudo apt install PACKAGE
- -
- - Example:
- -
- - sudo apt install gimp
- -
- - Install several applications at the same time:
- -
- - sudo apt install gimp inkscape git curl wget htop
- -
- - Remove an application while keeping its configuration files:
- -
- - sudo apt remove PACKAGE
- -
- - Completely remove an application and its system configuration:
- -
- - sudo apt purge PACKAGE
- -
- - Graphical method:
- -
- - Open the Raspberry Pi menu and select:
- -
- - Preferences > Add / Remove Software
- -
- - Raspberry Pi OS Full already contains many recommended applications, so verify that an application is not already installed before adding it.
- -
- --
- -
- - DRIVERS, KERNEL, AND STABLE FIRMWARE
- -
- - On Raspberry Pi OS, most hardware drivers are included in the Linux kernel and official Raspberry Pi packages.
- -
- - Routine driver, kernel, and stable firmware updates are installed with:
- -
- - sudo apt update
- -
- - sudo apt full-upgrade
- -
- - Do not download random driver installers or scripts from unknown websites.
- -
- - Display the current kernel and architecture:
- -
- - uname -a
- -
- - Display the Raspberry Pi model:
- -
- - cat /proc/device-tree/model
- -
- - Display loaded kernel modules:
- -
- - lsmod
- -
- - Display USB devices:
- -
- - lsusb
- -
- - Display PCI devices and their active kernel drivers:
- -
- - lspci -k
- -
- - Display recent kernel messages:
- -
- - dmesg | less
- -
- - Search the kernel messages for errors:
- -
- - dmesg --level=err,warn
- -
- - Reinstall the officially supported stable Raspberry Pi firmware package only when repairing a damaged or experimental firmware installation:
- -
- - sudo apt update
- -
- - sudo apt install --reinstall raspi-firmware
- -
- - sudo reboot
- -
- - IMPORTANT WARNING ABOUT RPI-UPDATE:
- -
- - Do not use this command for normal updates:
- -
- - sudo rpi-update
- -
- - It installs experimental or pre-release kernel and firmware files and may make the Raspberry Pi unstable or unable to start.
- -
- - Use rpi-update only when a Raspberry Pi engineer or official troubleshooting instruction specifically requests it.
- -
- --
- -
- - RASPBERRY PI 4, 5, 400, AND 500 BOOTLOADER
- -
- - Check the EEPROM bootloader status:
- -
- - sudo rpi-eeprom-update
- -
- - Normal Raspberry Pi OS updates usually provide the supported bootloader files automatically.
- -
- - Install a pending supported EEPROM update only when necessary:
- -
- - sudo rpi-eeprom-update -a
- -
- - sudo reboot
- -
- - Do not interrupt power during a bootloader or firmware update.
- -
- --
- -
- - ESSENTIAL HARDWARE AND SYSTEM COMMANDS
- -
- - Show disk devices and partitions:
- -
- - lsblk
- -
- - Show available storage:
- -
- - df -h
- -
- - Show RAM and swap usage:
- -
- - free -h
- -
- - Show running processes:
- -
- - top
- -
- - Show a more readable process monitor when htop is installed:
- -
- - htop
- -
- - Install htop:
- -
- - sudo apt install htop
- -
- - Show the Raspberry Pi processor temperature:
- -
- - vcgencmd measure_temp
- -
- - Show the IP address:
- -
- - hostname -I
- -
- - Show detailed network information:
- -
- - ip address
- -
- - Show the current hostname:
- -
- - hostname
- -
- - Show the current OS version:
- -
- - cat /etc/os-release
- -
- - Show the Debian version:
- -
- - cat /etc/debian_version
- -
- - Show failed services:
- -
- - systemctl --failed
- -
- - Show important errors from the current boot:
- -
- - journalctl -p 3 -xb
- -
- --
- -
- - WI-FI, BLUETOOTH, AND NETWORK
- -
- - Show network interfaces:
- -
- - ip link
- -
- - Show the current Wi-Fi connection:
- -
- - iwgetid
- -
- - Restart NetworkManager:
- -
- - sudo systemctl restart NetworkManager
- -
- - Check Bluetooth service status:
- -
- - systemctl status bluetooth
- -
- - Restart Bluetooth:
- -
- - sudo systemctl restart bluetooth
- -
- - Verify Internet connectivity:
- -
- - ping -c 4 raspberrypi.com
- -
- - Stop the ping command automatically after four requests:
- -
- - The option “-c 4” sends only four requests.
- -
- --
- -
- - SSH REMOTE ACCESS
- -
- - The easiest method is:
- -
- - sudo raspi-config
- -
- - Then open:
- -
- - Interface Options > SSH
- -
- - Check the SSH service:
- -
- - systemctl status ssh
- -
- - Start SSH immediately:
- -
- - sudo systemctl start ssh
- -
- - Start SSH automatically at every boot:
- -
- - sudo systemctl enable ssh
- -
- - Enable and start SSH with one command:
- -
- - sudo systemctl enable --now ssh
- -
- - Find the Raspberry Pi IP address:
- -
- - hostname -I
- -
- - From another Linux, macOS, or Windows Terminal computer:
- -
- - ssh USERNAME@IP_ADDRESS
- -
- - Example:
- -
- - ssh [email protected]
- -
- --
- -
- - BASIC FILE AND DIRECTORY COMMANDS
- -
- - Show the current directory:
- -
- - pwd
- -
- - List files:
- -
- - ls
- -
- - List files with details and hidden files:
- -
- - ls -la
- -
- - Enter a directory:
- -
- - cd DIRECTORY
- -
- - Return to the home directory:
- -
- - cd ~
- -
- - Create a directory:
- -
- - mkdir DIRECTORY
- -
- - Copy a file:
- -
- - cp SOURCE DESTINATION
- -
- - Copy a complete directory:
- -
- - cp -r SOURCE_DIRECTORY DESTINATION
- -
- - Move or rename a file:
- -
- - mv SOURCE DESTINATION
- -
- - Delete a file:
- -
- - rm FILE
- -
- - Delete an empty directory:
- -
- - rmdir DIRECTORY
- -
- - WARNING:
- -
- - The rm command normally deletes files directly without using a recycle bin.
- -
- - Verify the complete path before deleting anything with sudo.
- -
- --
- -
- - SIMPLE BACKUP COMMAND
- -
- - Copy the Documents directory to a mounted USB drive:
- -
- - cp -r ~/Documents /media/$USER/USB_DRIVE_NAME/
- -
- - A more reliable synchronized copy can be performed with rsync:
- -
- - rsync -avh ~/Documents/ /media/$USER/USB_DRIVE_NAME/Documents/
- -
- - Replace USB_DRIVE_NAME with the actual name of the mounted drive.
- -
- --
- -
- - BEGINNER MAINTENANCE ROUTINE
- -
- - Once a week or regularly:
- -
- - sudo apt update
- -
- - sudo apt full-upgrade
- -
- - sudo apt autoremove
- -
- - Check storage:
- -
- - df -h
- -
- - Check temperature:
- -
- - vcgencmd measure_temp
- -
- - Restart when a kernel or firmware update requires it:
- -
- - sudo reboot
- -
- --
- -
- - IMPORTANT SAFETY RULES
- -
- - - Back up important files before reinstalling the OS or changing partitions.
- - - Use an appropriate power supply.
- - - Shut down the Raspberry Pi before disconnecting power.
- - - Do not remove the microSD card while the Raspberry Pi is running.
- - - Download images and software from official or trusted sources.
- - - Read a command before using sudo.
- - - Do not use rpi-update for routine updates.
- - - Do not interrupt firmware or EEPROM updates.
- - - Do not perform a direct Bookworm-to-Trixie major upgrade by simply changing repository names.
- - - Use Raspberry Pi Imager and a clean image when moving to a new major Raspberry Pi OS version.
- -
- --
- -
- - QUICK COMMAND SUMMARY
- -
- - Update:
- - sudo apt update && sudo apt full-upgrade
- -
- - Install:
- - sudo apt install PACKAGE
- -
- - Remove:
- - sudo apt remove PACKAGE
- -
- - Completely remove:
- - sudo apt purge PACKAGE
- -
- - Clean the package cache:
- - sudo apt clean
- -
- - Configure Raspberry Pi:
- - sudo raspi-config
- -
- - Check storage:
- - df -h
- -
- - Check RAM:
- - free -h
- -
- - Check temperature:
- - vcgencmd measure_temp
- -
- - Show IP address:
- - hostname -I
- -
- - Restart:
- - sudo reboot
- -
- - Shut down:
- - sudo poweroff
- -
- --
- -
- - VERSION FRANÇAISE
- -
- - RASPBERRY PI OS (LEGACY) FULL : GUIDE POUR DÉBUTANTS ET COMMANDES ESSENTIELLES
- -
- - DESCRIPTION OFFICIELLE :
- -
- - Raspberry Pi OS (Legacy) Full est une édition pour Raspberry Pi basée sur Debian 12 Bookworm.
- -
- - Elle comprend :
- -
- - - les mises à jour de sécurité ;
- - - le bureau Raspberry Pi ;
- - - les applications recommandées ;
- - - des navigateurs Internet ;
- - - VLC Media Player ;
- - - des outils de programmation ;
- - - LibreOffice ;
- - - Scratch ;
- - - KiCad ;
- - - de nombreuses autres applications éducatives et bureautiques.
- -
- - Page officielle de téléchargement de Raspberry Pi OS :
- - https://www.raspberrypi.com/software/operating-systems/
- -
- - Raspberry Pi Imager :
- - https://www.raspberrypi.com/software/
- -
- - INFORMATION ACTUELLE IMPORTANTE :
- -
- - - Raspberry Pi OS Legacy Full reste basé sur Debian 12 Bookworm.
- - - La branche principale actuelle de Raspberry Pi OS est basée sur Debian 13 Trixie.
- - - Utilise l’édition Legacy Bookworm lorsque tu as besoin d’une compatibilité avec d’anciens logiciels, accessoires, pilotes ou projets.
- - - Pour passer ultérieurement de Bookworm à Trixie, Raspberry Pi recommande une installation propre plutôt qu’une mise à niveau majeure directe.
- - - Sauvegarde tous les fichiers importants avant de remplacer ou de réinstaller l’OS.
- -
- - QUELLE VERSION CHOISIR ?
- -
- - Raspberry Pi OS Legacy Full 64 bits :
- -
- - - recommandé pour les Raspberry Pi 3, 4 et 5 ;
- - - recommandé pour les Raspberry Pi 400 et Raspberry Pi 500 ;
- - - adapté aux modèles Raspberry Pi récents équipés d’un processeur 64 bits ;
- - - peut utiliser efficacement plus de 4 Go de mémoire vive.
- -
- - Raspberry Pi OS Legacy Full 32 bits :
- -
- - - principalement destiné aux anciens modèles de Raspberry Pi ;
- - - utile lorsqu’un ancien logiciel nécessite un environnement 32 bits ;
- - - ce n’est pas le choix normal pour un Raspberry Pi 5 ou Raspberry Pi 500.
- -
- - Une carte microSD de 32 Go ou plus est recommandée pour une utilisation confortable, car l’édition Full, ses mises à jour, les applications et les fichiers personnels occupent beaucoup d’espace.
- -
- --
- -
- - PETIT TUTORIEL D’INSTALLATION TRÈS SIMPLE
- -
- - 1. PRÉPARE LE MATÉRIEL
- -
- - Tu as besoin :
- -
- - - d’un Raspberry Pi compatible ;
- - - d’une alimentation officielle ou adaptée ;
- - - d’une carte microSD ou d’un périphérique USB compatible ;
- - - d’un clavier et d’une souris ;
- - - d’un écran et d’un câble HDMI ;
- - - d’un autre ordinateur pour écrire l’image.
- -
- - 2. INSTALLE RASPBERRY PI IMAGER
- -
- - Télécharge Raspberry Pi Imager :
- - https://www.raspberrypi.com/software/
- -
- - Installe-le et ouvre-le sous Windows, Linux ou macOS.
- -
- - 3. CHOISIS LE MODÈLE DE RASPBERRY PI
- -
- - Sélectionne ton modèle de Raspberry Pi dans Raspberry Pi Imager.
- -
- - 4. CHOISIS L’OS
- -
- - Ouvre le menu de sélection des OS et recherche :
- -
- - - Raspberry Pi OS (other) ;
- - - Raspberry Pi OS (Legacy) ;
- - - Raspberry Pi OS (Legacy) Full.
- -
- - Choisis la version 64 bits ou 32 bits correspondant à ton Raspberry Pi.
- -
- - 5. CHOISIS LE PÉRIPHÉRIQUE DE STOCKAGE
- -
- - Sélectionne la bonne carte microSD ou le bon disque USB.
- -
- - AVERTISSEMENT :
- -
- - Toutes les données du périphérique sélectionné seront effacées.
- -
- - 6. CONFIGURE LES RÉGLAGES DE BASE
- -
- - Raspberry Pi Imager peut configurer :
- -
- - - le nom d’utilisateur ;
- - - le mot de passe ;
- - - le réseau Wi-Fi ;
- - - le mot de passe Wi-Fi ;
- - - la disposition du clavier ;
- - - le fuseau horaire ;
- - - le nom de l’appareil ;
- - - l’accès distant SSH.
- -
- - 7. ÉCRIS L’IMAGE
- -
- - Lance l’écriture et attends la fin de l’écriture et de la vérification.
- -
- - Éjecte ensuite correctement le périphérique.
- -
- - 8. DÉMARRE LE RASPBERRY PI
- -
- - Insère la carte microSD ou connecte le périphérique USB.
- -
- - Connecte l’écran, le clavier, la souris, le réseau et l’alimentation.
- -
- - Suis les écrans de configuration du premier démarrage.
- -
- - 9. METS LE SYSTÈME À JOUR
- -
- - Ouvre le Terminal et exécute :
- -
- - sudo apt update
- -
- - sudo apt full-upgrade
- -
- - Redémarre après une mise à jour importante du noyau ou du micrologiciel :
- -
- - sudo reboot
- -
- - 10. CONFIGURE LE RASPBERRY PI
- -
- - Ouvre l’utilitaire graphique de configuration Raspberry Pi depuis les préférences du bureau.
- -
- - L’utilitaire de configuration dans le Terminal est :
- -
- - sudo raspi-config
- -
- - Il permet notamment de configurer :
- -
- - - le nom de l’appareil ;
- - - le comportement au démarrage ;
- - - l’affichage ;
- - - les interfaces ;
- - - SSH ;
- - - la caméra ;
- - - le port série ;
- - - la langue et la région ;
- - - le clavier ;
- - - le fuseau horaire.
- -
- --
- -
- - COMMANDES ESSENTIELLES DE MISE À JOUR
- -
- - Actualiser la liste des paquets disponibles :
- -
- - sudo apt update
- -
- - Installer toutes les mises à jour, y compris les changements de dépendances :
- -
- - sudo apt full-upgrade
- -
- - Commande complète recommandée :
- -
- - sudo apt update && sudo apt full-upgrade
- -
- - Vérifier l’espace disponible avant une mise à jour importante :
- -
- - df -h
- -
- - Supprimer les anciens fichiers téléchargés dans le cache d’APT :
- -
- - sudo apt clean
- -
- - Supprimer les dépendances devenues inutiles :
- -
- - sudo apt autoremove
- -
- - Redémarrer le Raspberry Pi :
- -
- - sudo reboot
- -
- - Éteindre correctement :
- -
- - sudo poweroff
- -
- --
- -
- - INSTALLER ET SUPPRIMER DES APPLICATIONS
- -
- - Rechercher une application :
- -
- - apt-cache search MOT_CLÉ
- -
- - Exemple :
- -
- - apt-cache search image editor
- -
- - Afficher les informations d’un paquet :
- -
- - apt-cache show PAQUET
- -
- - Installer une application :
- -
- - sudo apt install PAQUET
- -
- - Exemple :
- -
- - sudo apt install gimp
- -
- - Installer plusieurs applications en une seule fois :
- -
- - sudo apt install gimp inkscape git curl wget htop
- -
- - Supprimer une application tout en conservant ses fichiers de configuration :
- -
- - sudo apt remove PAQUET
- -
- - Supprimer complètement une application et sa configuration système :
- -
- - sudo apt purge PAQUET
- -
- - Méthode graphique :
- -
- - Ouvre le menu Raspberry Pi et sélectionne :
- -
- - Preferences > Add / Remove Software
- -
- - Raspberry Pi OS Full contient déjà de nombreuses applications recommandées. Vérifie donc qu’une application n’est pas déjà installée avant de l’ajouter.
- -
- --
- -
- - PILOTES, NOYAU ET MICROLOGICIEL STABLE
- -
- - Sous Raspberry Pi OS, la plupart des pilotes matériels sont inclus dans le noyau Linux et dans les paquets officiels Raspberry Pi.
- -
- - Les mises à jour normales des pilotes, du noyau et du micrologiciel stable sont installées avec :
- -
- - sudo apt update
- -
- - sudo apt full-upgrade
- -
- - Ne télécharge pas d’installateurs de pilotes ou de scripts provenant de sites inconnus.
- -
- - Afficher le noyau et l’architecture :
- -
- - uname -a
- -
- - Afficher le modèle du Raspberry Pi :
- -
- - cat /proc/device-tree/model
- -
- - Afficher les modules du noyau chargés :
- -
- - lsmod
- -
- - Afficher les périphériques USB :
- -
- - lsusb
- -
- - Afficher les périphériques PCI et leurs pilotes actifs :
- -
- - lspci -k
- -
- - Afficher les messages récents du noyau :
- -
- - dmesg | less
- -
- - Rechercher les erreurs et avertissements du noyau :
- -
- - dmesg --level=err,warn
- -
- - Réinstaller le paquet officiel du micrologiciel stable uniquement pour réparer une installation endommagée ou expérimentale :
- -
- - sudo apt update
- -
- - sudo apt install --reinstall raspi-firmware
- -
- - sudo reboot
- -
- - AVERTISSEMENT IMPORTANT CONCERNANT RPI-UPDATE :
- -
- - N’utilise pas cette commande pour les mises à jour normales :
- -
- - sudo rpi-update
- -
- - Elle installe des versions expérimentales ou préliminaires du noyau et du micrologiciel et peut rendre le Raspberry Pi instable ou impossible à démarrer.
- -
- - Utilise rpi-update uniquement lorsqu’un ingénieur Raspberry Pi ou une procédure officielle de dépannage le demande précisément.
- -
- --
- -
- - CHARGEUR DE DÉMARRAGE DES RASPBERRY PI 4, 5, 400 ET 500
- -
- - Vérifier l’état du chargeur de démarrage EEPROM :
- -
- - sudo rpi-eeprom-update
- -
- - Les mises à jour normales de Raspberry Pi OS fournissent généralement automatiquement les fichiers officiels du chargeur de démarrage.
- -
- - Installer une mise à jour EEPROM en attente uniquement lorsque cela est nécessaire :
- -
- - sudo rpi-eeprom-update -a
- -
- - sudo reboot
- -
- - Ne coupe pas l’alimentation pendant une mise à jour du chargeur de démarrage ou du micrologiciel.
- -
- --
- -
- - COMMANDES ESSENTIELLES POUR LE MATÉRIEL ET LE SYSTÈME
- -
- - Afficher les disques et les partitions :
- -
- - lsblk
- -
- - Afficher l’espace de stockage disponible :
- -
- - df -h
- -
- - Afficher l’utilisation de la mémoire vive et de la mémoire d’échange :
- -
- - free -h
- -
- - Afficher les processus en cours :
- -
- - top
- -
- - Afficher un gestionnaire de processus plus lisible lorsque htop est installé :
- -
- - htop
- -
- - Installer htop :
- -
- - sudo apt install htop
- -
- - Afficher la température du processeur du Raspberry Pi :
- -
- - vcgencmd measure_temp
- -
- - Afficher l’adresse IP :
- -
- - hostname -I
- -
- - Afficher les informations détaillées du réseau :
- -
- - ip address
- -
- - Afficher le nom actuel de l’appareil :
- -
- - hostname
- -
- - Afficher la version actuelle de l’OS :
- -
- - cat /etc/os-release
- -
- - Afficher la version de Debian :
- -
- - cat /etc/debian_version
- -
- - Afficher les services en échec :
- -
- - systemctl --failed
- -
- - Afficher les erreurs importantes du démarrage actuel :
- -
- - journalctl -p 3 -xb
- -
- --
- -
- - WI-FI, BLUETOOTH ET RÉSEAU
- -
- - Afficher les interfaces réseau :
- -
- - ip link
- -
- - Afficher la connexion Wi-Fi actuelle :
- -
- - iwgetid
- -
- - Redémarrer NetworkManager :
- -
- - sudo systemctl restart NetworkManager
- -
- - Vérifier l’état du service Bluetooth :
- -
- - systemctl status bluetooth
- -
- - Redémarrer Bluetooth :
- -
- - sudo systemctl restart bluetooth
- -
- - Vérifier la connexion à Internet :
- -
- - ping -c 4 raspberrypi.com
- -
- - L’option « -c 4 » arrête automatiquement la commande après quatre requêtes.
- -
- --
- -
- - ACCÈS DISTANT SSH
- -
- - La méthode la plus simple est :
- -
- - sudo raspi-config
- -
- - Ouvre ensuite :
- -
- - Interface Options > SSH
- -
- - Vérifier le service SSH :
- -
- - systemctl status ssh
- -
- - Démarrer SSH immédiatement :
- -
- - sudo systemctl start ssh
- -
- - Démarrer SSH automatiquement à chaque démarrage :
- -
- - sudo systemctl enable ssh
- -
- - Activer et démarrer SSH en une seule commande :
- -
- - sudo systemctl enable --now ssh
- -
- - Trouver l’adresse IP du Raspberry Pi :
- -
- - hostname -I
- -
- - Depuis un autre ordinateur Linux, macOS ou Windows Terminal :
- -
- - ssh NOM_UTILISATEUR@ADRESSE_IP
- -
- - Exemple :
- -
- - ssh [email protected]
- -
- --
- -
- - COMMANDES DE BASE POUR LES FICHIERS ET DOSSIERS
- -
- - Afficher le dossier actuel :
- -
- - pwd
- -
- - Afficher les fichiers :
- -
- - ls
- -
- - Afficher les fichiers avec les détails et les fichiers cachés :
- -
- - ls -la
- -
- - Entrer dans un dossier :
- -
- - cd DOSSIER
- -
- - Revenir au dossier personnel :
- -
- - cd ~
- -
- - Créer un dossier :
- -
- - mkdir DOSSIER
- -
- - Copier un fichier :
- -
- - cp SOURCE DESTINATION
- -
- - Copier un dossier complet :
- -
- - cp -r DOSSIER_SOURCE DESTINATION
- -
- - Déplacer ou renommer un fichier :
- -
- - mv SOURCE DESTINATION
- -
- - Supprimer un fichier :
- -
- - rm FICHIER
- -
- - Supprimer un dossier vide :
- -
- - rmdir DOSSIER
- -
- - AVERTISSEMENT :
- -
- - La commande rm supprime normalement les fichiers directement, sans utiliser de corbeille.
- -
- - Vérifie le chemin complet avant de supprimer quoi que ce soit avec sudo.
- -
- --
- -
- - COMMANDE SIMPLE DE SAUVEGARDE
- -
- - Copier le dossier Documents vers un disque USB monté :
- -
- - cp -r ~/Documents /media/$USER/NOM_DU_DISQUE_USB/
- -
- - Une copie synchronisée plus fiable peut être réalisée avec rsync :
- -
- - rsync -avh ~/Documents/ /media/$USER/NOM_DU_DISQUE_USB/Documents/
- -
- - Remplace NOM_DU_DISQUE_USB par le nom réel du disque monté.
- -
- --
- -
- - ENTRETIEN SIMPLE POUR DÉBUTANT
- -
- - Une fois par semaine ou régulièrement :
- -
- - sudo apt update
- -
- - sudo apt full-upgrade
- -
- - sudo apt autoremove
- -
- - Vérifier l’espace de stockage :
- -
- - df -h
- -
- - Vérifier la température :
- -
- - vcgencmd measure_temp
- -
- - Redémarrer lorsqu’une mise à jour du noyau ou du micrologiciel le demande :
- -
- - sudo reboot
- -
- --
- -
- - RÈGLES DE SÉCURITÉ IMPORTANTES
- -
- - - Sauvegarde les fichiers importants avant de réinstaller l’OS ou de modifier les partitions.
- - - Utilise une alimentation adaptée.
- - - Éteins correctement le Raspberry Pi avant de couper l’alimentation.
- - - Ne retire pas la carte microSD pendant le fonctionnement.
- - - Télécharge les images et les logiciels depuis des sources officielles ou fiables.
- - - Lis une commande avant de l’exécuter avec sudo.
- - - N’utilise pas rpi-update pour les mises à jour normales.
- - - N’interromps pas les mises à jour du micrologiciel ou de l’EEPROM.
- - - N’effectue pas une mise à niveau majeure de Bookworm vers Trixie en modifiant simplement les dépôts.
- - - Utilise Raspberry Pi Imager et une nouvelle image pour passer à une nouvelle version majeure de Raspberry Pi OS.
- -
- --
- -
- - RÉSUMÉ RAPIDE DES COMMANDES
- -
- - Mise à jour :
- - sudo apt update && sudo apt full-upgrade
- -
- - Installation :
- - sudo apt install PAQUET
- -
- - Suppression :
- - sudo apt remove PAQUET
- -
- - Suppression complète :
- - sudo apt purge PAQUET
- -
- - Nettoyer le cache des paquets :
- - sudo apt clean
- -
- - Configurer le Raspberry Pi :
- - sudo raspi-config
- -
- - Vérifier le stockage :
- - df -h
- -
- - Vérifier la mémoire vive :
- - free -h
- -
- - Vérifier la température :
- - vcgencmd measure_temp
- -
- - Afficher l’adresse IP :
- - hostname -I
- -
- - Redémarrer :
- - sudo reboot
- -
- - Éteindre :
- - sudo poweroff
- -
- --
- -
- Raspberry Pi
Advertisement
Add Comment
Please, Sign In to add comment