setup-raspberry-pi
setup scripts for Raspberry Pi
How to setup
Install and setup Raspberry Pi OS Lite to Raspberry Pi Zero WH:
Download image
Download Raspberry Pi OS Lite image from official site:
https://www.raspberrypi.org/software/operating-systems/
or other mirror:
http://ftp.jaist.ac.jp/pub/raspberrypi/raspios_lite_armhf/images/
Extract file
Unzip archive:
$ shasum -c 2020-12-02-raspios-buster-armhf-lite.zip.sha256
2020-12-02-raspios-buster-armhf-lite.zip: OK
$ unzip 2020-12-02-raspios-buster-armhf-lite.zip
Archive: 2020-12-02-raspios-buster-armhf-lite.zip
inflating: 2020-12-02-raspios-buster-armhf-lite.img
Install OS
Install Raspberry Pi OS Lite to SD card, setup Wifi and enabling SSH:
- Installing operating system images
- Copying an operating system image to an SD card using Mac OS
- Setting up a Raspberry Pi headless
- SSH (Secure Shell)
- see
3. Enable SSH on a headless Raspberry Pi (add file to SD card on another machine)
section
- see
wpa_supplicant
and wpa_passphrase
are useful for create wpa_supplicant.conf
:
$ ./wpa_supplicant
$ ./wpa_passphrase SSID PASSPHRASE >> ./wpa_supplicant.conf
$ cp ./wpa_supplicant.conf /Volumes/boot
Create empty ssh
file:
$ touch /Volumes/boot/ssh
Access to Raspberry Pi
Find Raspberry Pi's IP address:
$ arp -a | grep -i 'b8:27:eb'
Setup Raspberry Pi:
$ ssh -t pi@xxx.xxx.xxx.xxx 'curl -L https://git.io/sasaplus1-setup-raspberry-pi | bash'
Try SSH login:
$ ssh pi@xxx.xxx.xxx.xxx
Initial password is raspberry
.
License
The MIT license.