gitbls / sdm

Raspberry Pi SD Card Image Manager
MIT License
471 stars 48 forks source link

Enable autologin + boot to console #261

Closed mvsoom closed 1 month ago

mvsoom commented 1 month ago

Hi,

This tool looks amazing, but a bit daunting for first use. I just have a quick question before I delve into this.

I am starting from the standard Raspberry Pi OS (64-bit, full desktop) because I cannot get Chromium to work with three.js accelerated code.

So starting from this image, I would like to:

  1. Set hostname "raspberrypi.local"
  2. Enable SSH
  3. Copy locale from my local computer
  4. Make a user "pi" with password "XYZ" (placeholder)
  5. Enable autologin + boot to console
  6. Execute a single script after first full boot to setup environment

I couldn't find how to do option 5. Could you help?

Thank you!

gitbls commented 1 month ago

A few comments, and then the answer to your specific question:

As far as question 5, this should do it: --plugin raspiconfig:"boot_behavior=B2" or alternatively, if you're using a pluglist raspiconfig:boot_behavior=B2

Lastly, I'd suggest starting with ezsdm, which is available here and discussed here, and uses a pluglist. This is SO much easier because you don't need to futz around with all those double quotes.

mvsoom commented 1 month ago

Alright, I've skimmed the whole repo and docs and I understand better now. I've not managed to get my script working yet, but might post some additional questions after I'm back from holiday.