post image :date_long | 2 min Read

Install Raspberry Pi OS (Raspberry Pi 3)

https://www.raspberrypi.org/documentation/installation/installing-images/linux.md

Check SD card presence at your laptop

lsblk -p
NAME                      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
/dev/sda                    8:0    0     1G  0 disk  /var/lib/kubelet/pods/d6fe24f2-3dc7-4291-90f5-8c7dbb4e8382/volu
/dev/mmcblk0              179:0    0  14.8G  0 disk
├─/dev/mmcblk0p1          179:1    0   256M  0 part
└─/dev/mmcblk0p2          179:2    0  14.6G  0 part
/dev/nvme0n1              259:0    0 476.9G  0 disk
├─/dev/nvme0n1p1          259:1    0   360M  0 part  /boot/efi
├─/dev/nvme0n1p2          259:2    0 237.8G  0 part
├─/dev/nvme0n1p3          259:3    0 237.8G  0 part
│ └─/dev/mapper/archlinux 254:0    0 237.8G  0 crypt /
└─/dev/nvme0n1p6          259:4    0     1G  0 part  /boot

Install Raspbia at Raspberry Pi 3

unzip -p ~/Downloads/2020-08-20-raspios-buster-armhf-lite-correct.zip| sudo dd of=/dev/mmcblk0 bs=4M conv=fsync status=progress

WPA supplicant Raspberry Pi OS

https://www.raspberrypi.org/documentation/configuration/wireless/headless.md

**wpa_supplicant.conf'' file example:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert 2 letter ISO 3166-1 country code here>

network={
 ssid="<Name of your wireless LAN>"
 psk="<Password for your wireless LAN>"
}
lsblk -p
NAME                      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
/dev/sda                    8:0    0     1G  0 disk  /var/lib/kubelet/pods/d6fe24f2-3dc7-4291-90f5-8c7dbb4e8382/volu
/dev/mmcblk0              179:0    0  14.8G  0 disk
├─/dev/mmcblk0p1          179:1    0   256M  0 part  /run/media/jantoth/boot
└─/dev/mmcblk0p2          179:2    0   1.5G  0 part
/dev/nvme0n1              259:0    0 476.9G  0 disk
├─/dev/nvme0n1p1          259:1    0   360M  0 part  /boot/efi
├─/dev/nvme0n1p2          259:2    0 237.8G  0 part
├─/dev/nvme0n1p3          259:3    0 237.8G  0 part
│ └─/dev/mapper/archlinux 254:0    0 237.8G  0 crypt /
└─/dev/nvme0n1p6          259:4    0     1G  0 part  /boot

Create an empty ssh file

touch /run/media/jantoth/boot/ssh

vim /run/media/jantoth/boot/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=SK

network={
 ssid="ASUS"
 psk="potrubie"
}
author image

Jan Toth

I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …

comments powered by Disqus