vgijssel / setup

Workstation and server setup
MIT License
8 stars 0 forks source link

Setup Raspberry PI with Ubuntu and SSH #170

Closed mvgijssel closed 1 year ago

mvgijssel commented 1 year ago

Install Raspberry Pi Imager https://www.raspberrypi.com/software/

mvgijssel commented 1 year ago

Select Ubuntu Server 22.10 64-bit and flash to sd card.

mvgijssel commented 1 year ago

Figure out IP using Unifi UI: 192.168.1.132

mvgijssel commented 1 year ago

Change password and store in 1Password

mvgijssel commented 1 year ago

Add SSH - Provisioner Ed25519 SSH Key to 1Password and store in private Vault.

mvgijssel commented 1 year ago

Copy the ssh key to provisioner using

ssh-copy-id ubuntu@192.168.1.132

Afterwards login to the machine and ensure only the right authorized key is kept

ssh ubuntu@192.168.1.132
vim ~/.ssh/authorized_keys
mvgijssel commented 1 year ago

First apply the network changes only

bazel run //provisioner:provision -- --data install_network=True
mvgijssel commented 1 year ago

Use the Raspberry Pi Imager to set parts of the configuration already

image

mvgijssel commented 1 year ago

Update the hostname (and optionally the ip) in Unifi to provisioner and start the first provision run. After the first bootstrap settings should be configured with pyinfra.