fmlist_scanner:setup_raspberry_pi
                Differences
This shows you the differences between two versions of the page.
| fmlist_scanner:setup_raspberry_pi [2025/10/30] – created hayati | fmlist_scanner:setup_raspberry_pi [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{indexmenu> | ||
| + | {{indexmenu_n> | ||
| + | |||
| + | ====== 2.1.1 Setup Operating System onto the Raspberry Pi ====== | ||
| + | |||
| + | ===== Download the image ===== | ||
| + | |||
| + | I would recommend a 64-bit system, as Raspberry Pi 3B, 3B+ and 4B are 64 bit hardware. | ||
| + | |||
| + | Raspberry Pi Foundation provides a suitable system at https:// | ||
| + | |||
| + | |||
| + | ===== Write to micro-SD card ===== | ||
| + | |||
| + | |||
| + | With this release, the default user //pi// was removed! \\ | ||
| + | I would suggest to setup the user //scanner// - see https:// | ||
| + | Also don't forget to activate SSH daemon for remote (headless) setup. | ||
| + | |||
| + | You might follow the setup instructions at https:// | ||
| + | |||
| + | |||
| + | ==== Details for writing from a Linux PC ==== | ||
| + | |||
| + | === check and verify your micro-SD cards' device name === | ||
| + | |||
| + | verify to have the correct device name for the (new) SD card\\  | ||
| + | for not overwriting and trashing your system\\  | ||
| + | or overwriting relevant data! | ||
| + | |||
| + |   * check for existing block devices with '' | ||
| + |   * on another terminal (SSH-session), | ||
| + |   * re-execute and compare output of '' | ||
| + | |||
| + | optionally, you might check existing contents by mounting - **replace** ''/ | ||
| + | but keep the digit after ''/ | ||
| + | |||
| + | |||
| + | < | ||
| + | sudo fdisk -l / | ||
| + | mkdir / | ||
| + | sudo mount /dev/sdb1 / | ||
| + | </ | ||
| + | |||
| + | check the contents, e.g. with '' | ||
| + | and then unmount each checked partition | ||
| + | |||
| + | < | ||
| + | sudo umount / | ||
| + | </ | ||
| + | |||
| + | |||
| + | === (over)write the micro-SD card === | ||
| + | |||
| + | don't forget to **replace** ''/ | ||
| + | |||
| + | < | ||
| + | xzcat 2022-04-04-raspios-bullseye-arm64-lite.img.xz | sudo dd bs=4M of=/dev/sdb | ||
| + | sync | ||
| + | </ | ||
| + | |||
| + | unplug / eject the micro-SD card with the adapter | ||
| + | |||
| + | |||
| + | === prepare auto-generating user and SSH activation === | ||
| + | |||
| + | re-insert micro-SD card and mount\\  | ||
| + | again: **replace** ''/ | ||
| + | |||
| + | < | ||
| + | sudo fdisk -l /dev/sdb | ||
| + | mkdir / | ||
| + | sudo mount /dev/sdb1 / | ||
| + | </ | ||
| + | |||
| + | we need an enctypted version for the password '' | ||
| + | |||
| + | < | ||
| + | echo ' | ||
| + | </ | ||
| + | |||
| + | there comes a huge alphanumeric string. copy it into your clipboard - or select for pasting with middle mouse button. | ||
| + | |||
| + | for later automatic generation of user '' | ||
| + | |||
| + | < | ||
| + | echo ' | ||
| + | </ | ||
| + | |||
| + | and for later activation of SSH-daemon | ||
| + | |||
| + | < | ||
| + | touch / | ||
| + | </ | ||
| + | |||
| + | you might setup / change other bootup options for the Raspberry Pi, e.g. display options, .. | ||
| + | |||
| + | when finished, unmount\\  | ||
| + | |||
| + | |||
| + | < | ||
| + | sudo umount / | ||
| + | </ | ||
| + | |||
| + | and unmount the micro-SD card from the PC | ||
| + | |||
| + | now, you are ready to insert the prepared SD card into the Pi and boot from it. | ||
| + | using Pi headless over Ethernet network, you might lookup the IP address; the default hostname is '' | ||
| + | |||
| + | |||
| + | ===== SSH Software hints ===== | ||
| + | |||
| + | On a Windows PC, you can use one of the following programs to establish an SSH connection | ||
| + | |||
| + |   * '' | ||
| + |   * '' | ||
| + | * //Windows Subsystem for Linux// (WSL/LXSS) with Windows 10 | ||
| + | |||
| + | for sure, there are other alternatives. i would recommend // | ||
| + | which has a builtin X-server, that would allow to run GUI programs. | ||
| + | |||
| + | if really necessary, i would suggest '' | ||
| + | |||
| + | |||
| + | ===== System Update & Configuration ===== | ||
| + | |||
| + | Please continue with [[fmlist_scanner: | ||
| + | |||
| + | afterwards, check other configuration options - special for Raspberry Pi, e.g. speaker output: | ||
| + | |||
| + | < | ||
| + | sudo raspi-config | ||
| + | </ | ||
| + | |||
