Close

Custom OS image to make install/setup easier?

A project log for Off-Grid Garden Watering System

Solar powered watering system controlled with a Raspberry Pi to deliver an exact metered water volume to your garden plot, on schedule

scott-feldmanScott Feldman 08/31/2022 at 22:535 Comments

Thinking about building a custom Raspberry Pi OS image with the garden system software already installed and configured.  Once installed, the Raspberry Pi would boot up as an access point and the garden system will be running.  This would make the installation of the system much quicker and easier.

Need to figure out how to pass configuration of system in the install image.  Kind of like how other files like wpa_supplicant.conf are placed in the /boot dir of the image to connect to WiFi.

Things that need to be configured:

Discussions

Scott Feldman wrote 09/01/2022 at 19:48 point

Creating custom images is do-able but hosting said images for download is a problem, due to the size of the image.

So new approach:

1) have user install stock Rapsberry Pi Lite image on SD card

2) boot raspberry pi on Lite image

3) wget a deploy script from github and run script

System is ready to reboot and deploy.  The AP is setup with SSID='garder', and system is available at 10.0.0.1 from a web browser.

  Are you sure? yes | no

Scott Feldman wrote 09/01/2022 at 02:23 point

I did find pi-gen...trying it out now to see if I can build RPi OS Lite image...

  Are you sure? yes | no

Ken Yap wrote 08/31/2022 at 23:54 point

You might like to look into a cut down OS like DietPi that I used for #An NTP server using GNSS for time I didn't make a custom image as I only had one instance but I'm sure DietPi has the means to do that.

I just looked and there's even a YT tute for that: https://www.youtube.com/watch?v=vlMpn9u0Y4o

  Are you sure? yes | no

Scott Feldman wrote 09/01/2022 at 02:22 point

Thank you for the pointer to DietPi.  A smaller image for the user to download would be a plus.  But sticking to RPi OS Lite for now due to Challenge #4 deadline. 

  Are you sure? yes | no

Ken Yap wrote 09/01/2022 at 02:33 point

👍 Good luck with the challenge. Fortunately deadline is an 8 letter word I don't have to deal with these days. 😜

  Are you sure? yes | no