LeGamerInfini

‼️ RASPBERRY PI OS (LEGACY) FULL: BEGINNER GUIDE AND ESSENTIAL COMMANDS ‼️Thank You‼️

Jul 23rd, 2026
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.84 KB | Software | 0 0
  1. ‼️‼️ https://pastebin.com/u/LeGamerInfini
  2. ‼️‼️ LAST UPDATE 2026 07 23
  3. ‼️‼️ THANK YOU VERY MUCH.
  4. ---------------------------------
  5. ---------------------------------
  6. -
  7. ‼️ RASPBERRY PI OS (LEGACY) FULL: BEGINNER GUIDE AND ESSENTIAL COMMANDS ‼️Thank You‼️
  8. -
  9. ---------------------------------
  10. ---------------------------------
  11. -
  12. --
  13. -
  14. - ENGLISH VERSION
  15. -
  16. - RASPBERRY PI OS (LEGACY) FULL: BEGINNER GUIDE AND ESSENTIAL COMMANDS
  17. -
  18. - OFFICIAL DESCRIPTION:
  19. -
  20. - Raspberry Pi OS (Legacy) Full is a Raspberry Pi edition based on Debian 12 Bookworm.
  21. -
  22. - It includes:
  23. -
  24. - - security updates;
  25. - - the Raspberry Pi desktop;
  26. - - recommended applications;
  27. - - web browsers;
  28. - - VLC Media Player;
  29. - - programming tools;
  30. - - LibreOffice;
  31. - - Scratch;
  32. - - KiCad;
  33. - - many other educational and productivity applications.
  34. -
  35. - Official Raspberry Pi OS download page:
  36. - https://www.raspberrypi.com/software/operating-systems/
  37. -
  38. - Raspberry Pi Imager:
  39. - https://www.raspberrypi.com/software/
  40. -
  41. - IMPORTANT CURRENT INFORMATION:
  42. -
  43. - - Raspberry Pi OS Legacy Full remains based on Debian 12 Bookworm.
  44. - - The current main Raspberry Pi OS branch is based on Debian 13 Trixie.
  45. - - Use the Legacy Bookworm edition when you need compatibility with older software, accessories, drivers, or projects.
  46. - - For a future move from Bookworm to Trixie, Raspberry Pi recommends a clean installation instead of an in-place major upgrade.
  47. - - Back up all important files before replacing or reinstalling the OS.
  48. -
  49. - WHICH VERSION SHOULD YOU CHOOSE?
  50. -
  51. - Raspberry Pi OS Legacy Full 64-bit:
  52. -
  53. - - recommended for Raspberry Pi 3, 4 and 5;
  54. - - recommended for Raspberry Pi 400 and Raspberry Pi 500;
  55. - - suitable for newer 64-bit Raspberry Pi models;
  56. - - can use more than 4 GB of RAM efficiently.
  57. -
  58. - Raspberry Pi OS Legacy Full 32-bit:
  59. -
  60. - - intended mainly for older Raspberry Pi models;
  61. - - useful when older software requires a 32-bit environment;
  62. - - not the normal choice for Raspberry Pi 5 or Raspberry Pi 500.
  63. -
  64. - 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.
  65. -
  66. --
  67. -
  68. - VERY BASIC INSTALLATION TUTORIAL
  69. -
  70. - 1. PREPARE THE EQUIPMENT
  71. -
  72. - You need:
  73. -
  74. - - a compatible Raspberry Pi;
  75. - - an official or suitable power supply;
  76. - - a microSD card or compatible USB storage device;
  77. - - a keyboard and mouse;
  78. - - a display and HDMI cable;
  79. - - another computer for writing the image.
  80. -
  81. - 2. INSTALL RASPBERRY PI IMAGER
  82. -
  83. - Download Raspberry Pi Imager:
  84. - https://www.raspberrypi.com/software/
  85. -
  86. - Install and open it on Windows, Linux, or macOS.
  87. -
  88. - 3. CHOOSE THE RASPBERRY PI MODEL
  89. -
  90. - Select your Raspberry Pi model in Raspberry Pi Imager.
  91. -
  92. - 4. CHOOSE THE OS
  93. -
  94. - Open the OS selection menu and find:
  95. -
  96. - - Raspberry Pi OS (other);
  97. - - Raspberry Pi OS (Legacy);
  98. - - Raspberry Pi OS (Legacy) Full.
  99. -
  100. - Choose the 64-bit or 32-bit version that matches your Raspberry Pi.
  101. -
  102. - 5. CHOOSE THE STORAGE DEVICE
  103. -
  104. - Select the correct microSD card or USB drive.
  105. -
  106. - WARNING:
  107. -
  108. - Everything on the selected storage device will be erased.
  109. -
  110. - 6. CONFIGURE THE BASIC SETTINGS
  111. -
  112. - Raspberry Pi Imager can configure:
  113. -
  114. - - username;
  115. - - password;
  116. - - Wi-Fi network;
  117. - - Wi-Fi password;
  118. - - keyboard layout;
  119. - - time zone;
  120. - - hostname;
  121. - - SSH remote access.
  122. -
  123. - 7. WRITE THE IMAGE
  124. -
  125. - Start the writing process and wait for writing and verification to finish.
  126. -
  127. - Safely eject the storage device.
  128. -
  129. - 8. START THE RASPBERRY PI
  130. -
  131. - Insert the microSD card or connect the USB storage device.
  132. -
  133. - Connect the display, keyboard, mouse, network, and power supply.
  134. -
  135. - Follow the first-start configuration screens.
  136. -
  137. - 9. UPDATE THE SYSTEM
  138. -
  139. - Open Terminal and run:
  140. -
  141. - sudo apt update
  142. -
  143. - sudo apt full-upgrade
  144. -
  145. - Restart after important kernel or firmware updates:
  146. -
  147. - sudo reboot
  148. -
  149. - 10. CONFIGURE THE RASPBERRY PI
  150. -
  151. - Open the graphical Raspberry Pi configuration utility from the desktop preferences.
  152. -
  153. - The Terminal configuration utility is:
  154. -
  155. - sudo raspi-config
  156. -
  157. - Use it to configure options such as:
  158. -
  159. - - hostname;
  160. - - boot behaviour;
  161. - - display;
  162. - - interfaces;
  163. - - SSH;
  164. - - camera support;
  165. - - serial port;
  166. - - localisation;
  167. - - keyboard;
  168. - - time zone.
  169. -
  170. --
  171. -
  172. - ESSENTIAL UPDATE COMMANDS
  173. -
  174. - Refresh the list of available packages:
  175. -
  176. - sudo apt update
  177. -
  178. - Install all normal updates, including dependency changes:
  179. -
  180. - sudo apt full-upgrade
  181. -
  182. - Recommended complete update command:
  183. -
  184. - sudo apt update && sudo apt full-upgrade
  185. -
  186. - Check available storage before a large update:
  187. -
  188. - df -h
  189. -
  190. - Remove downloaded package files from the APT cache:
  191. -
  192. - sudo apt clean
  193. -
  194. - Remove dependencies that are no longer required:
  195. -
  196. - sudo apt autoremove
  197. -
  198. - Restart the Raspberry Pi:
  199. -
  200. - sudo reboot
  201. -
  202. - Shut down safely:
  203. -
  204. - sudo poweroff
  205. -
  206. --
  207. -
  208. - INSTALLING AND REMOVING APPLICATIONS
  209. -
  210. - Search for an application:
  211. -
  212. - apt-cache search KEYWORD
  213. -
  214. - Example:
  215. -
  216. - apt-cache search image editor
  217. -
  218. - Display information about a package:
  219. -
  220. - apt-cache show PACKAGE
  221. -
  222. - Install an application:
  223. -
  224. - sudo apt install PACKAGE
  225. -
  226. - Example:
  227. -
  228. - sudo apt install gimp
  229. -
  230. - Install several applications at the same time:
  231. -
  232. - sudo apt install gimp inkscape git curl wget htop
  233. -
  234. - Remove an application while keeping its configuration files:
  235. -
  236. - sudo apt remove PACKAGE
  237. -
  238. - Completely remove an application and its system configuration:
  239. -
  240. - sudo apt purge PACKAGE
  241. -
  242. - Graphical method:
  243. -
  244. - Open the Raspberry Pi menu and select:
  245. -
  246. - Preferences > Add / Remove Software
  247. -
  248. - Raspberry Pi OS Full already contains many recommended applications, so verify that an application is not already installed before adding it.
  249. -
  250. --
  251. -
  252. - DRIVERS, KERNEL, AND STABLE FIRMWARE
  253. -
  254. - On Raspberry Pi OS, most hardware drivers are included in the Linux kernel and official Raspberry Pi packages.
  255. -
  256. - Routine driver, kernel, and stable firmware updates are installed with:
  257. -
  258. - sudo apt update
  259. -
  260. - sudo apt full-upgrade
  261. -
  262. - Do not download random driver installers or scripts from unknown websites.
  263. -
  264. - Display the current kernel and architecture:
  265. -
  266. - uname -a
  267. -
  268. - Display the Raspberry Pi model:
  269. -
  270. - cat /proc/device-tree/model
  271. -
  272. - Display loaded kernel modules:
  273. -
  274. - lsmod
  275. -
  276. - Display USB devices:
  277. -
  278. - lsusb
  279. -
  280. - Display PCI devices and their active kernel drivers:
  281. -
  282. - lspci -k
  283. -
  284. - Display recent kernel messages:
  285. -
  286. - dmesg | less
  287. -
  288. - Search the kernel messages for errors:
  289. -
  290. - dmesg --level=err,warn
  291. -
  292. - Reinstall the officially supported stable Raspberry Pi firmware package only when repairing a damaged or experimental firmware installation:
  293. -
  294. - sudo apt update
  295. -
  296. - sudo apt install --reinstall raspi-firmware
  297. -
  298. - sudo reboot
  299. -
  300. - IMPORTANT WARNING ABOUT RPI-UPDATE:
  301. -
  302. - Do not use this command for normal updates:
  303. -
  304. - sudo rpi-update
  305. -
  306. - It installs experimental or pre-release kernel and firmware files and may make the Raspberry Pi unstable or unable to start.
  307. -
  308. - Use rpi-update only when a Raspberry Pi engineer or official troubleshooting instruction specifically requests it.
  309. -
  310. --
  311. -
  312. - RASPBERRY PI 4, 5, 400, AND 500 BOOTLOADER
  313. -
  314. - Check the EEPROM bootloader status:
  315. -
  316. - sudo rpi-eeprom-update
  317. -
  318. - Normal Raspberry Pi OS updates usually provide the supported bootloader files automatically.
  319. -
  320. - Install a pending supported EEPROM update only when necessary:
  321. -
  322. - sudo rpi-eeprom-update -a
  323. -
  324. - sudo reboot
  325. -
  326. - Do not interrupt power during a bootloader or firmware update.
  327. -
  328. --
  329. -
  330. - ESSENTIAL HARDWARE AND SYSTEM COMMANDS
  331. -
  332. - Show disk devices and partitions:
  333. -
  334. - lsblk
  335. -
  336. - Show available storage:
  337. -
  338. - df -h
  339. -
  340. - Show RAM and swap usage:
  341. -
  342. - free -h
  343. -
  344. - Show running processes:
  345. -
  346. - top
  347. -
  348. - Show a more readable process monitor when htop is installed:
  349. -
  350. - htop
  351. -
  352. - Install htop:
  353. -
  354. - sudo apt install htop
  355. -
  356. - Show the Raspberry Pi processor temperature:
  357. -
  358. - vcgencmd measure_temp
  359. -
  360. - Show the IP address:
  361. -
  362. - hostname -I
  363. -
  364. - Show detailed network information:
  365. -
  366. - ip address
  367. -
  368. - Show the current hostname:
  369. -
  370. - hostname
  371. -
  372. - Show the current OS version:
  373. -
  374. - cat /etc/os-release
  375. -
  376. - Show the Debian version:
  377. -
  378. - cat /etc/debian_version
  379. -
  380. - Show failed services:
  381. -
  382. - systemctl --failed
  383. -
  384. - Show important errors from the current boot:
  385. -
  386. - journalctl -p 3 -xb
  387. -
  388. --
  389. -
  390. - WI-FI, BLUETOOTH, AND NETWORK
  391. -
  392. - Show network interfaces:
  393. -
  394. - ip link
  395. -
  396. - Show the current Wi-Fi connection:
  397. -
  398. - iwgetid
  399. -
  400. - Restart NetworkManager:
  401. -
  402. - sudo systemctl restart NetworkManager
  403. -
  404. - Check Bluetooth service status:
  405. -
  406. - systemctl status bluetooth
  407. -
  408. - Restart Bluetooth:
  409. -
  410. - sudo systemctl restart bluetooth
  411. -
  412. - Verify Internet connectivity:
  413. -
  414. - ping -c 4 raspberrypi.com
  415. -
  416. - Stop the ping command automatically after four requests:
  417. -
  418. - The option “-c 4” sends only four requests.
  419. -
  420. --
  421. -
  422. - SSH REMOTE ACCESS
  423. -
  424. - The easiest method is:
  425. -
  426. - sudo raspi-config
  427. -
  428. - Then open:
  429. -
  430. - Interface Options > SSH
  431. -
  432. - Check the SSH service:
  433. -
  434. - systemctl status ssh
  435. -
  436. - Start SSH immediately:
  437. -
  438. - sudo systemctl start ssh
  439. -
  440. - Start SSH automatically at every boot:
  441. -
  442. - sudo systemctl enable ssh
  443. -
  444. - Enable and start SSH with one command:
  445. -
  446. - sudo systemctl enable --now ssh
  447. -
  448. - Find the Raspberry Pi IP address:
  449. -
  450. - hostname -I
  451. -
  452. - From another Linux, macOS, or Windows Terminal computer:
  453. -
  454. - ssh USERNAME@IP_ADDRESS
  455. -
  456. - Example:
  457. -
  458. -
  459. --
  460. -
  461. - BASIC FILE AND DIRECTORY COMMANDS
  462. -
  463. - Show the current directory:
  464. -
  465. - pwd
  466. -
  467. - List files:
  468. -
  469. - ls
  470. -
  471. - List files with details and hidden files:
  472. -
  473. - ls -la
  474. -
  475. - Enter a directory:
  476. -
  477. - cd DIRECTORY
  478. -
  479. - Return to the home directory:
  480. -
  481. - cd ~
  482. -
  483. - Create a directory:
  484. -
  485. - mkdir DIRECTORY
  486. -
  487. - Copy a file:
  488. -
  489. - cp SOURCE DESTINATION
  490. -
  491. - Copy a complete directory:
  492. -
  493. - cp -r SOURCE_DIRECTORY DESTINATION
  494. -
  495. - Move or rename a file:
  496. -
  497. - mv SOURCE DESTINATION
  498. -
  499. - Delete a file:
  500. -
  501. - rm FILE
  502. -
  503. - Delete an empty directory:
  504. -
  505. - rmdir DIRECTORY
  506. -
  507. - WARNING:
  508. -
  509. - The rm command normally deletes files directly without using a recycle bin.
  510. -
  511. - Verify the complete path before deleting anything with sudo.
  512. -
  513. --
  514. -
  515. - SIMPLE BACKUP COMMAND
  516. -
  517. - Copy the Documents directory to a mounted USB drive:
  518. -
  519. - cp -r ~/Documents /media/$USER/USB_DRIVE_NAME/
  520. -
  521. - A more reliable synchronized copy can be performed with rsync:
  522. -
  523. - rsync -avh ~/Documents/ /media/$USER/USB_DRIVE_NAME/Documents/
  524. -
  525. - Replace USB_DRIVE_NAME with the actual name of the mounted drive.
  526. -
  527. --
  528. -
  529. - BEGINNER MAINTENANCE ROUTINE
  530. -
  531. - Once a week or regularly:
  532. -
  533. - sudo apt update
  534. -
  535. - sudo apt full-upgrade
  536. -
  537. - sudo apt autoremove
  538. -
  539. - Check storage:
  540. -
  541. - df -h
  542. -
  543. - Check temperature:
  544. -
  545. - vcgencmd measure_temp
  546. -
  547. - Restart when a kernel or firmware update requires it:
  548. -
  549. - sudo reboot
  550. -
  551. --
  552. -
  553. - IMPORTANT SAFETY RULES
  554. -
  555. - - Back up important files before reinstalling the OS or changing partitions.
  556. - - Use an appropriate power supply.
  557. - - Shut down the Raspberry Pi before disconnecting power.
  558. - - Do not remove the microSD card while the Raspberry Pi is running.
  559. - - Download images and software from official or trusted sources.
  560. - - Read a command before using sudo.
  561. - - Do not use rpi-update for routine updates.
  562. - - Do not interrupt firmware or EEPROM updates.
  563. - - Do not perform a direct Bookworm-to-Trixie major upgrade by simply changing repository names.
  564. - - Use Raspberry Pi Imager and a clean image when moving to a new major Raspberry Pi OS version.
  565. -
  566. --
  567. -
  568. - QUICK COMMAND SUMMARY
  569. -
  570. - Update:
  571. - sudo apt update && sudo apt full-upgrade
  572. -
  573. - Install:
  574. - sudo apt install PACKAGE
  575. -
  576. - Remove:
  577. - sudo apt remove PACKAGE
  578. -
  579. - Completely remove:
  580. - sudo apt purge PACKAGE
  581. -
  582. - Clean the package cache:
  583. - sudo apt clean
  584. -
  585. - Configure Raspberry Pi:
  586. - sudo raspi-config
  587. -
  588. - Check storage:
  589. - df -h
  590. -
  591. - Check RAM:
  592. - free -h
  593. -
  594. - Check temperature:
  595. - vcgencmd measure_temp
  596. -
  597. - Show IP address:
  598. - hostname -I
  599. -
  600. - Restart:
  601. - sudo reboot
  602. -
  603. - Shut down:
  604. - sudo poweroff
  605. -
  606. --
  607. -
  608. - VERSION FRANÇAISE
  609. -
  610. - RASPBERRY PI OS (LEGACY) FULL : GUIDE POUR DÉBUTANTS ET COMMANDES ESSENTIELLES
  611. -
  612. - DESCRIPTION OFFICIELLE :
  613. -
  614. - Raspberry Pi OS (Legacy) Full est une édition pour Raspberry Pi basée sur Debian 12 Bookworm.
  615. -
  616. - Elle comprend :
  617. -
  618. - - les mises à jour de sécurité ;
  619. - - le bureau Raspberry Pi ;
  620. - - les applications recommandées ;
  621. - - des navigateurs Internet ;
  622. - - VLC Media Player ;
  623. - - des outils de programmation ;
  624. - - LibreOffice ;
  625. - - Scratch ;
  626. - - KiCad ;
  627. - - de nombreuses autres applications éducatives et bureautiques.
  628. -
  629. - Page officielle de téléchargement de Raspberry Pi OS :
  630. - https://www.raspberrypi.com/software/operating-systems/
  631. -
  632. - Raspberry Pi Imager :
  633. - https://www.raspberrypi.com/software/
  634. -
  635. - INFORMATION ACTUELLE IMPORTANTE :
  636. -
  637. - - Raspberry Pi OS Legacy Full reste basé sur Debian 12 Bookworm.
  638. - - La branche principale actuelle de Raspberry Pi OS est basée sur Debian 13 Trixie.
  639. - - Utilise l’édition Legacy Bookworm lorsque tu as besoin d’une compatibilité avec d’anciens logiciels, accessoires, pilotes ou projets.
  640. - - Pour passer ultérieurement de Bookworm à Trixie, Raspberry Pi recommande une installation propre plutôt qu’une mise à niveau majeure directe.
  641. - - Sauvegarde tous les fichiers importants avant de remplacer ou de réinstaller l’OS.
  642. -
  643. - QUELLE VERSION CHOISIR ?
  644. -
  645. - Raspberry Pi OS Legacy Full 64 bits :
  646. -
  647. - - recommandé pour les Raspberry Pi 3, 4 et 5 ;
  648. - - recommandé pour les Raspberry Pi 400 et Raspberry Pi 500 ;
  649. - - adapté aux modèles Raspberry Pi récents équipés d’un processeur 64 bits ;
  650. - - peut utiliser efficacement plus de 4 Go de mémoire vive.
  651. -
  652. - Raspberry Pi OS Legacy Full 32 bits :
  653. -
  654. - - principalement destiné aux anciens modèles de Raspberry Pi ;
  655. - - utile lorsqu’un ancien logiciel nécessite un environnement 32 bits ;
  656. - - ce n’est pas le choix normal pour un Raspberry Pi 5 ou Raspberry Pi 500.
  657. -
  658. - 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.
  659. -
  660. --
  661. -
  662. - PETIT TUTORIEL D’INSTALLATION TRÈS SIMPLE
  663. -
  664. - 1. PRÉPARE LE MATÉRIEL
  665. -
  666. - Tu as besoin :
  667. -
  668. - - d’un Raspberry Pi compatible ;
  669. - - d’une alimentation officielle ou adaptée ;
  670. - - d’une carte microSD ou d’un périphérique USB compatible ;
  671. - - d’un clavier et d’une souris ;
  672. - - d’un écran et d’un câble HDMI ;
  673. - - d’un autre ordinateur pour écrire l’image.
  674. -
  675. - 2. INSTALLE RASPBERRY PI IMAGER
  676. -
  677. - Télécharge Raspberry Pi Imager :
  678. - https://www.raspberrypi.com/software/
  679. -
  680. - Installe-le et ouvre-le sous Windows, Linux ou macOS.
  681. -
  682. - 3. CHOISIS LE MODÈLE DE RASPBERRY PI
  683. -
  684. - Sélectionne ton modèle de Raspberry Pi dans Raspberry Pi Imager.
  685. -
  686. - 4. CHOISIS L’OS
  687. -
  688. - Ouvre le menu de sélection des OS et recherche :
  689. -
  690. - - Raspberry Pi OS (other) ;
  691. - - Raspberry Pi OS (Legacy) ;
  692. - - Raspberry Pi OS (Legacy) Full.
  693. -
  694. - Choisis la version 64 bits ou 32 bits correspondant à ton Raspberry Pi.
  695. -
  696. - 5. CHOISIS LE PÉRIPHÉRIQUE DE STOCKAGE
  697. -
  698. - Sélectionne la bonne carte microSD ou le bon disque USB.
  699. -
  700. - AVERTISSEMENT :
  701. -
  702. - Toutes les données du périphérique sélectionné seront effacées.
  703. -
  704. - 6. CONFIGURE LES RÉGLAGES DE BASE
  705. -
  706. - Raspberry Pi Imager peut configurer :
  707. -
  708. - - le nom d’utilisateur ;
  709. - - le mot de passe ;
  710. - - le réseau Wi-Fi ;
  711. - - le mot de passe Wi-Fi ;
  712. - - la disposition du clavier ;
  713. - - le fuseau horaire ;
  714. - - le nom de l’appareil ;
  715. - - l’accès distant SSH.
  716. -
  717. - 7. ÉCRIS L’IMAGE
  718. -
  719. - Lance l’écriture et attends la fin de l’écriture et de la vérification.
  720. -
  721. - Éjecte ensuite correctement le périphérique.
  722. -
  723. - 8. DÉMARRE LE RASPBERRY PI
  724. -
  725. - Insère la carte microSD ou connecte le périphérique USB.
  726. -
  727. - Connecte l’écran, le clavier, la souris, le réseau et l’alimentation.
  728. -
  729. - Suis les écrans de configuration du premier démarrage.
  730. -
  731. - 9. METS LE SYSTÈME À JOUR
  732. -
  733. - Ouvre le Terminal et exécute :
  734. -
  735. - sudo apt update
  736. -
  737. - sudo apt full-upgrade
  738. -
  739. - Redémarre après une mise à jour importante du noyau ou du micrologiciel :
  740. -
  741. - sudo reboot
  742. -
  743. - 10. CONFIGURE LE RASPBERRY PI
  744. -
  745. - Ouvre l’utilitaire graphique de configuration Raspberry Pi depuis les préférences du bureau.
  746. -
  747. - L’utilitaire de configuration dans le Terminal est :
  748. -
  749. - sudo raspi-config
  750. -
  751. - Il permet notamment de configurer :
  752. -
  753. - - le nom de l’appareil ;
  754. - - le comportement au démarrage ;
  755. - - l’affichage ;
  756. - - les interfaces ;
  757. - - SSH ;
  758. - - la caméra ;
  759. - - le port série ;
  760. - - la langue et la région ;
  761. - - le clavier ;
  762. - - le fuseau horaire.
  763. -
  764. --
  765. -
  766. - COMMANDES ESSENTIELLES DE MISE À JOUR
  767. -
  768. - Actualiser la liste des paquets disponibles :
  769. -
  770. - sudo apt update
  771. -
  772. - Installer toutes les mises à jour, y compris les changements de dépendances :
  773. -
  774. - sudo apt full-upgrade
  775. -
  776. - Commande complète recommandée :
  777. -
  778. - sudo apt update && sudo apt full-upgrade
  779. -
  780. - Vérifier l’espace disponible avant une mise à jour importante :
  781. -
  782. - df -h
  783. -
  784. - Supprimer les anciens fichiers téléchargés dans le cache d’APT :
  785. -
  786. - sudo apt clean
  787. -
  788. - Supprimer les dépendances devenues inutiles :
  789. -
  790. - sudo apt autoremove
  791. -
  792. - Redémarrer le Raspberry Pi :
  793. -
  794. - sudo reboot
  795. -
  796. - Éteindre correctement :
  797. -
  798. - sudo poweroff
  799. -
  800. --
  801. -
  802. - INSTALLER ET SUPPRIMER DES APPLICATIONS
  803. -
  804. - Rechercher une application :
  805. -
  806. - apt-cache search MOT_CLÉ
  807. -
  808. - Exemple :
  809. -
  810. - apt-cache search image editor
  811. -
  812. - Afficher les informations d’un paquet :
  813. -
  814. - apt-cache show PAQUET
  815. -
  816. - Installer une application :
  817. -
  818. - sudo apt install PAQUET
  819. -
  820. - Exemple :
  821. -
  822. - sudo apt install gimp
  823. -
  824. - Installer plusieurs applications en une seule fois :
  825. -
  826. - sudo apt install gimp inkscape git curl wget htop
  827. -
  828. - Supprimer une application tout en conservant ses fichiers de configuration :
  829. -
  830. - sudo apt remove PAQUET
  831. -
  832. - Supprimer complètement une application et sa configuration système :
  833. -
  834. - sudo apt purge PAQUET
  835. -
  836. - Méthode graphique :
  837. -
  838. - Ouvre le menu Raspberry Pi et sélectionne :
  839. -
  840. - Preferences > Add / Remove Software
  841. -
  842. - 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.
  843. -
  844. --
  845. -
  846. - PILOTES, NOYAU ET MICROLOGICIEL STABLE
  847. -
  848. - Sous Raspberry Pi OS, la plupart des pilotes matériels sont inclus dans le noyau Linux et dans les paquets officiels Raspberry Pi.
  849. -
  850. - Les mises à jour normales des pilotes, du noyau et du micrologiciel stable sont installées avec :
  851. -
  852. - sudo apt update
  853. -
  854. - sudo apt full-upgrade
  855. -
  856. - Ne télécharge pas d’installateurs de pilotes ou de scripts provenant de sites inconnus.
  857. -
  858. - Afficher le noyau et l’architecture :
  859. -
  860. - uname -a
  861. -
  862. - Afficher le modèle du Raspberry Pi :
  863. -
  864. - cat /proc/device-tree/model
  865. -
  866. - Afficher les modules du noyau chargés :
  867. -
  868. - lsmod
  869. -
  870. - Afficher les périphériques USB :
  871. -
  872. - lsusb
  873. -
  874. - Afficher les périphériques PCI et leurs pilotes actifs :
  875. -
  876. - lspci -k
  877. -
  878. - Afficher les messages récents du noyau :
  879. -
  880. - dmesg | less
  881. -
  882. - Rechercher les erreurs et avertissements du noyau :
  883. -
  884. - dmesg --level=err,warn
  885. -
  886. - Réinstaller le paquet officiel du micrologiciel stable uniquement pour réparer une installation endommagée ou expérimentale :
  887. -
  888. - sudo apt update
  889. -
  890. - sudo apt install --reinstall raspi-firmware
  891. -
  892. - sudo reboot
  893. -
  894. - AVERTISSEMENT IMPORTANT CONCERNANT RPI-UPDATE :
  895. -
  896. - N’utilise pas cette commande pour les mises à jour normales :
  897. -
  898. - sudo rpi-update
  899. -
  900. - 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.
  901. -
  902. - Utilise rpi-update uniquement lorsqu’un ingénieur Raspberry Pi ou une procédure officielle de dépannage le demande précisément.
  903. -
  904. --
  905. -
  906. - CHARGEUR DE DÉMARRAGE DES RASPBERRY PI 4, 5, 400 ET 500
  907. -
  908. - Vérifier l’état du chargeur de démarrage EEPROM :
  909. -
  910. - sudo rpi-eeprom-update
  911. -
  912. - Les mises à jour normales de Raspberry Pi OS fournissent généralement automatiquement les fichiers officiels du chargeur de démarrage.
  913. -
  914. - Installer une mise à jour EEPROM en attente uniquement lorsque cela est nécessaire :
  915. -
  916. - sudo rpi-eeprom-update -a
  917. -
  918. - sudo reboot
  919. -
  920. - Ne coupe pas l’alimentation pendant une mise à jour du chargeur de démarrage ou du micrologiciel.
  921. -
  922. --
  923. -
  924. - COMMANDES ESSENTIELLES POUR LE MATÉRIEL ET LE SYSTÈME
  925. -
  926. - Afficher les disques et les partitions :
  927. -
  928. - lsblk
  929. -
  930. - Afficher l’espace de stockage disponible :
  931. -
  932. - df -h
  933. -
  934. - Afficher l’utilisation de la mémoire vive et de la mémoire d’échange :
  935. -
  936. - free -h
  937. -
  938. - Afficher les processus en cours :
  939. -
  940. - top
  941. -
  942. - Afficher un gestionnaire de processus plus lisible lorsque htop est installé :
  943. -
  944. - htop
  945. -
  946. - Installer htop :
  947. -
  948. - sudo apt install htop
  949. -
  950. - Afficher la température du processeur du Raspberry Pi :
  951. -
  952. - vcgencmd measure_temp
  953. -
  954. - Afficher l’adresse IP :
  955. -
  956. - hostname -I
  957. -
  958. - Afficher les informations détaillées du réseau :
  959. -
  960. - ip address
  961. -
  962. - Afficher le nom actuel de l’appareil :
  963. -
  964. - hostname
  965. -
  966. - Afficher la version actuelle de l’OS :
  967. -
  968. - cat /etc/os-release
  969. -
  970. - Afficher la version de Debian :
  971. -
  972. - cat /etc/debian_version
  973. -
  974. - Afficher les services en échec :
  975. -
  976. - systemctl --failed
  977. -
  978. - Afficher les erreurs importantes du démarrage actuel :
  979. -
  980. - journalctl -p 3 -xb
  981. -
  982. --
  983. -
  984. - WI-FI, BLUETOOTH ET RÉSEAU
  985. -
  986. - Afficher les interfaces réseau :
  987. -
  988. - ip link
  989. -
  990. - Afficher la connexion Wi-Fi actuelle :
  991. -
  992. - iwgetid
  993. -
  994. - Redémarrer NetworkManager :
  995. -
  996. - sudo systemctl restart NetworkManager
  997. -
  998. - Vérifier l’état du service Bluetooth :
  999. -
  1000. - systemctl status bluetooth
  1001. -
  1002. - Redémarrer Bluetooth :
  1003. -
  1004. - sudo systemctl restart bluetooth
  1005. -
  1006. - Vérifier la connexion à Internet :
  1007. -
  1008. - ping -c 4 raspberrypi.com
  1009. -
  1010. - L’option « -c 4 » arrête automatiquement la commande après quatre requêtes.
  1011. -
  1012. --
  1013. -
  1014. - ACCÈS DISTANT SSH
  1015. -
  1016. - La méthode la plus simple est :
  1017. -
  1018. - sudo raspi-config
  1019. -
  1020. - Ouvre ensuite :
  1021. -
  1022. - Interface Options > SSH
  1023. -
  1024. - Vérifier le service SSH :
  1025. -
  1026. - systemctl status ssh
  1027. -
  1028. - Démarrer SSH immédiatement :
  1029. -
  1030. - sudo systemctl start ssh
  1031. -
  1032. - Démarrer SSH automatiquement à chaque démarrage :
  1033. -
  1034. - sudo systemctl enable ssh
  1035. -
  1036. - Activer et démarrer SSH en une seule commande :
  1037. -
  1038. - sudo systemctl enable --now ssh
  1039. -
  1040. - Trouver l’adresse IP du Raspberry Pi :
  1041. -
  1042. - hostname -I
  1043. -
  1044. - Depuis un autre ordinateur Linux, macOS ou Windows Terminal :
  1045. -
  1046. - ssh NOM_UTILISATEUR@ADRESSE_IP
  1047. -
  1048. - Exemple :
  1049. -
  1050. -
  1051. --
  1052. -
  1053. - COMMANDES DE BASE POUR LES FICHIERS ET DOSSIERS
  1054. -
  1055. - Afficher le dossier actuel :
  1056. -
  1057. - pwd
  1058. -
  1059. - Afficher les fichiers :
  1060. -
  1061. - ls
  1062. -
  1063. - Afficher les fichiers avec les détails et les fichiers cachés :
  1064. -
  1065. - ls -la
  1066. -
  1067. - Entrer dans un dossier :
  1068. -
  1069. - cd DOSSIER
  1070. -
  1071. - Revenir au dossier personnel :
  1072. -
  1073. - cd ~
  1074. -
  1075. - Créer un dossier :
  1076. -
  1077. - mkdir DOSSIER
  1078. -
  1079. - Copier un fichier :
  1080. -
  1081. - cp SOURCE DESTINATION
  1082. -
  1083. - Copier un dossier complet :
  1084. -
  1085. - cp -r DOSSIER_SOURCE DESTINATION
  1086. -
  1087. - Déplacer ou renommer un fichier :
  1088. -
  1089. - mv SOURCE DESTINATION
  1090. -
  1091. - Supprimer un fichier :
  1092. -
  1093. - rm FICHIER
  1094. -
  1095. - Supprimer un dossier vide :
  1096. -
  1097. - rmdir DOSSIER
  1098. -
  1099. - AVERTISSEMENT :
  1100. -
  1101. - La commande rm supprime normalement les fichiers directement, sans utiliser de corbeille.
  1102. -
  1103. - Vérifie le chemin complet avant de supprimer quoi que ce soit avec sudo.
  1104. -
  1105. --
  1106. -
  1107. - COMMANDE SIMPLE DE SAUVEGARDE
  1108. -
  1109. - Copier le dossier Documents vers un disque USB monté :
  1110. -
  1111. - cp -r ~/Documents /media/$USER/NOM_DU_DISQUE_USB/
  1112. -
  1113. - Une copie synchronisée plus fiable peut être réalisée avec rsync :
  1114. -
  1115. - rsync -avh ~/Documents/ /media/$USER/NOM_DU_DISQUE_USB/Documents/
  1116. -
  1117. - Remplace NOM_DU_DISQUE_USB par le nom réel du disque monté.
  1118. -
  1119. --
  1120. -
  1121. - ENTRETIEN SIMPLE POUR DÉBUTANT
  1122. -
  1123. - Une fois par semaine ou régulièrement :
  1124. -
  1125. - sudo apt update
  1126. -
  1127. - sudo apt full-upgrade
  1128. -
  1129. - sudo apt autoremove
  1130. -
  1131. - Vérifier l’espace de stockage :
  1132. -
  1133. - df -h
  1134. -
  1135. - Vérifier la température :
  1136. -
  1137. - vcgencmd measure_temp
  1138. -
  1139. - Redémarrer lorsqu’une mise à jour du noyau ou du micrologiciel le demande :
  1140. -
  1141. - sudo reboot
  1142. -
  1143. --
  1144. -
  1145. - RÈGLES DE SÉCURITÉ IMPORTANTES
  1146. -
  1147. - - Sauvegarde les fichiers importants avant de réinstaller l’OS ou de modifier les partitions.
  1148. - - Utilise une alimentation adaptée.
  1149. - - Éteins correctement le Raspberry Pi avant de couper l’alimentation.
  1150. - - Ne retire pas la carte microSD pendant le fonctionnement.
  1151. - - Télécharge les images et les logiciels depuis des sources officielles ou fiables.
  1152. - - Lis une commande avant de l’exécuter avec sudo.
  1153. - - N’utilise pas rpi-update pour les mises à jour normales.
  1154. - - N’interromps pas les mises à jour du micrologiciel ou de l’EEPROM.
  1155. - - N’effectue pas une mise à niveau majeure de Bookworm vers Trixie en modifiant simplement les dépôts.
  1156. - - Utilise Raspberry Pi Imager et une nouvelle image pour passer à une nouvelle version majeure de Raspberry Pi OS.
  1157. -
  1158. --
  1159. -
  1160. - RÉSUMÉ RAPIDE DES COMMANDES
  1161. -
  1162. - Mise à jour :
  1163. - sudo apt update && sudo apt full-upgrade
  1164. -
  1165. - Installation :
  1166. - sudo apt install PAQUET
  1167. -
  1168. - Suppression :
  1169. - sudo apt remove PAQUET
  1170. -
  1171. - Suppression complète :
  1172. - sudo apt purge PAQUET
  1173. -
  1174. - Nettoyer le cache des paquets :
  1175. - sudo apt clean
  1176. -
  1177. - Configurer le Raspberry Pi :
  1178. - sudo raspi-config
  1179. -
  1180. - Vérifier le stockage :
  1181. - df -h
  1182. -
  1183. - Vérifier la mémoire vive :
  1184. - free -h
  1185. -
  1186. - Vérifier la température :
  1187. - vcgencmd measure_temp
  1188. -
  1189. - Afficher l’adresse IP :
  1190. - hostname -I
  1191. -
  1192. - Redémarrer :
  1193. - sudo reboot
  1194. -
  1195. - Éteindre :
  1196. - sudo poweroff
  1197. -
  1198. --
  1199. -
  1200. Raspberry Pi
  1201.  
  1202.  
Tags: Raspberry Pi
Advertisement
Add Comment
Please, Sign In to add comment