PortableBalanceLab / PBL

Learn how to create your own balance lab using python and a Raspberry Pi
4 stars 1 forks source link

Write guide for flashing a raspberry pi (zero) from scratch incl. VNC etc. #21

Closed adamkewley closed 1 year ago

adamkewley commented 1 year ago

Ensure all Pi Zeros are:

Userspace Software

(copied from PortableBalanceLab/PBL4teachers#1 )

adamkewley commented 1 year ago

In S0 the Pi is set with:

(flashing can sort this out)

Flashing cannot necessarily handle setting up the WiFi connection, because that will require collaboration from TUD's IT department.

The trick for WiFi that we can arrange as part of flashing is to enable SSHd on the Pi, along with arranging the default user+password, and then use something like Bonjour or IP over USB to:

The students will then receive an already-networked Pi Zero. They can then skip the (potentially time-consuming and error-prone) step of network setup and go straight to VNCing into the device.

adamkewley commented 1 year ago

S0 also sets up Mu and Thonny: both should be installed by the pre-flash

adamkewley commented 1 year ago

L3 requires users to clone their own code:

git clone https://github.com/Morrious/hx711-multi.git
adamkewley commented 1 year ago

This isn't an issue from a student PoV, so I'll move this issue to PBL4Teachers.

Effectively, I'm working on a guide for setting up a brand-new Pi Zero such that is has everything already set up (e.g. VNC, libraries, etc.)

adamkewley commented 1 year ago

Related: 0b4f151

adamkewley commented 1 year ago

This guide has now been written, and included directly in PBL (rather, PBLstaging) as X0_SoftwareSetup. The reason why is because there's no (clear) disadvantage to students knowing exactly how the Pi was setup.

The longer-term ambition with this is that all code in PBL will eventually be python scripts that students can freely read, parse, modify, etc. to see the entire stack.

adamkewley commented 1 year ago

Moving back to PBLstaging before closing because it was resolved there.