sasaplus1 / setup-raspberry-pi

setup scripts for Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup-raspberry-pi

test

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:

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.

About

setup scripts for Raspberry Pi

License:MIT License


Languages

Language:Shell 92.3%Language:Dockerfile 7.7%