MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.89k stars 498 forks source link

Google Cloud Platform Integration #5797

Open nomadicGopher opened 2 years ago

nomadicGopher commented 2 years ago

Creating a feature request

Is your feature request related to a problem? Please describe:

Describe the solution you'd like:

MichaIng commented 2 years ago

Can you share a list of packages which are definitely required?

There is a dietpi.txt option to add an SSH key for the root user. We actually plan to remove the dietpi user as well, and instead allow to create a custom login user at first boot, which could then imply the option to add an SSH key for it. However, for first login, root is required anyway, and SSH should work with root user + password, isn't it?

The dietpi-installer is currently not designed or aimed to pre-configure an image, but to create a minimal system without any customisation. These are to be added via dietpi.txt or manually after first boot instead, which implies custom login users and the hostname. We could think of adding customisation options to dietpi-imager, but that's an entirely different and large topic, to be handled correctly as well by first boot scripts etc. For now I'd concentrate on adding everything that DietPi can boot on GCP until the default local + SSH login abilities, leaving SSH key and hostname to be done via dietpi.txt as it is now.

And of course we can create images for GCP so that it's not required to flash Debian first and run dietpi-installer 🙂.

nomadicGopher commented 2 years ago

A Custom Image appears to be their recommended method. Below are the relevant packages that i see after a fresh install.


Google-Cloud-SDK

Required Packages

Questionable Packages

APT Sources


*I found Packer that if i can find the time would like to attempt bootstrapping a GCP Image.