Option 1: With Raspberry Pi Imager (Linux & Windows)
- Select
Raspberry Pi OS Lite
- Select your (Micro-) SD card
- Write
-
Download
Raspberry Pi OS Lite
from raspberrypi.org (images)wget -O ~/Downloads/raspios-buster-armhf-lite.zip "https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-lite.zip"
-
Unzip OS image:
unzip -p ~/Downloads/raspios-buster-armhf-lite.zip > ~/Downloads/raspios-buster-armhf-lite.img
-
Determine target device
lsblk
or as root before USB device (card reader or card) was plugged in:
sudo dmesg --follow
then plug in your USB device or card and check most recent messages (my card reader connected as
sda
):[261428.423017] sd 0:0:0:0: [sda] 30572544 512-byte logical blocks: (15.7 GB/14.6 GiB)
check size of device to be sure that you use correct target device.
Attention: If you select wrong target device, you will lose important data or destroy you local OS.
-
Write image to new/empty (Micro-) SD card as root:
if=
Source file [Raspberry OS image]of=
Target device [(Micro-) SD card]: /dev/"your target device"Attention: Wrong target device will result in data loss
sudo dd if=(readlink -f ~/Downloads/raspios-buster-armhf-lite.img) of=/dev/sda bs=4MB
Prepare Raspberry Pi OS to be used without Keyboard and weak power source like regular USB port.
Re-plug your (Micro-) SD card and open boot
partition (first partition with about 300 MB).
sudo mount /dev/sda1 /mnt
Provide Wi-Fi credentials with file wpa_supplicant.conf
to connect automatically on first boot:
<Country ISO code>
ISO/IEC alpha2 country code in which the device is operating
<SSID of your Wi-Fi>
SSID of your Wi-Fi
<Passwort of your Wi-Fi>
Password of your Wi-Fi
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Country ISO code, like 'DE'>
network={
ssid="<SSID of your Wi-Fi>"
psk="<Passwort of your Wi-Fi>"
}
Ex. create file via shell/bash from Linux command line:
cat <<EOF>/mnt/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
network={
ssid="MyWiFiNetwork"
psk="MyVerySecureWiFiPassword"
}
EOF
Create file "ssh.txt" with content "ssh" to automatically enable ssh server.
Ex. create file via shell/bash from Linux command line:
echo "ssh">/mnt/ssh.txt
- Disable Raspberry OS splash screen by adding this snippet to existing file
config.txt
(vi /mnt/config.txt
):# no color splash/test screen on boot disable_splash=1
Modify existing file config.txt
(vi /mnt/config.txt
):
framebuffer_depth=32
framebuffer_ignore_alpha=1
gpu_mem_256=96
gpu_mem_512=128
gpu_mem_1024=196
Modify existing file config.txt
(vi /mnt/config.txt
):
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
Modify existing file config.txt
(vi /mnt/config.txt
):
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2
Disable some less important features by adding following section to existing file config.txt
(vi /mnt/config.txt
)
(German pages: Power Saving notes,
Power Saving):
# Disable the ACT LED.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
# Disable the PWR LED.
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
# Disable Bluetooth
dtoverlay=pi3-disable-bt
-
Unmount
boot
partition:sudo umnount /mnt
-
Unplug your (Micro-) SD card
-
Plug (Micro-) SD card into your Raspberry Pi
-
Connect monitor to your Raspberry Pi
-
Connect Power Adapter or Connect Raspberry Pis power port to USB port of your monitor if available
-
After you can see
raspberrypi login:
prompt on monitor connected to Raspberry Pi, connect via ssh to IP shown few lines above with lineMy IP address is 192.168.[...]
:If you get an error message like
Too many authentication failures
you can try:ssh -o PubkeyAuthentication=no [email protected]
Hint: Default password
raspberry
-
Setup locales and Timezone:
- Run Raspberry Configuration tool: `sudo raspi-config
- Goto
Localisation Options
->Locale
- Select your locale like
de_DE.UTF-8
and pressOk
- Select default locale 'en_GB.UTF-8', or your previously selected locale
- Goto
Localisation Options
->Timezone
- Select your Timezone like
Europe
\Berlin
-
Install and setup some basic applications
- Install automated security updates and
vim
sudo apt update sudo apt -y full-upgrade sudo apt -y install vim unattended-upgrades
- Setup automated updates
- Install automated security updates and
-
Proceed with DigiFrame setup