https://github.com/avipars/pi-starter-code
starter and sample code for the raspberry pi
https://github.com/avipars/pi-starter-code
bash bash-script pi python raspberry-pi shell
Last synced: about 2 months ago
JSON representation
starter and sample code for the raspberry pi
- Host: GitHub
- URL: https://github.com/avipars/pi-starter-code
- Owner: avipars
- Created: 2024-09-11T13:19:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T18:56:02.000Z (over 1 year ago)
- Last Synced: 2025-01-01T13:13:04.282Z (over 1 year ago)
- Topics: bash, bash-script, pi, python, raspberry-pi, shell
- Language: Shell
- Homepage:
- Size: 338 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pi-starter-code
Starter and sample code for the raspberry pi
Check out the wiki: https://github.com/avipars/pi-starter-code/wiki
## Configuration (even with headless)
* Use Raspberry Pi Imager (via their official site) to flash the SD card with Raspberry Pi OS. Pi Zero W needs a 32 bit OS, I advise going to the 'Raspberry Pi OS (other)' section and get Pi OS Lite (32 bit), this is headless mode. If you want a desktop mode, then go for a Legacy Pi OS version instead.
- Pi Zero 2 can use a 64-bit OS
* It is worthwhile to configure extra settings (After clicking NEXT), you can set up a user, wifi network, ssh credentials, etc.
* To utilize more channels for the built-in 2.4 ghz wifi, make sure to set the Region as IL too!
* After it writes and verifies the OS to the Micro-SD card, you can eject it and plug it into the Pi (the logo side should be facing up and visible partially when plugged in). Do not remove the micro sd card while the pi is on.
* Pi will boot up as soon as you plug it into a power source (5V, 2.5A recommended), POWER only port is on one end of the pi, the inner port can be used for data transfer, etc. It also can be (optionally) plugged into a computer and draws power from it.
* First boot will take a long time, wait till the LED stops blinking and stays solid which means it completed booting.
* Via some network utility tool, you can see if it joined your wifi network and find the IP address of the pi.. then you can `ssh pi@` to connect to it. If you changed the username in Pi Imager, then use that username instead of `pi`.
[sudo raspi-config](https://www.raspberrypi.com/documentation/computers/configuration.html)
* Use arrows, enter, esc keys to navigate
* Some settings require a reboot, some other settings may not work or be relevant in headless mode