Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| generic_pi_setup [2024/10/29 15:59] – jade | generic_pi_setup [2024/10/29 22:25] (current) – [Appendix] Clean up code file names mattcen | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| * Computer with MicroSD Card slot, or an external MicroSD Card reader. | * Computer with MicroSD Card slot, or an external MicroSD Card reader. | ||
| - | * Software: Raspberry Pi Imager. | + | * Software: Raspberry Pi Imager. [[https:// |
| ===== Steps ===== | ===== Steps ===== | ||
| Line 21: | Line 21: | ||
| In the Raspberry Pi Imager software, flash the Pi with the following settings: | In the Raspberry Pi Imager software, flash the Pi with the following settings: | ||
| - | * Raspberry Pi Device: Be sure to choose the correct device, eg " | + | |
| - | * Operating System: From the "Other general-purpose OS" section, choose Ubuntu, then choose the version matching [[Preferred Server OS]]. | + | |
| + | * **OS Customization**: | ||
| + | * GENERAL Tab | ||
| + | * **username**: | ||
| + | * **password**: | ||
| + | * wireless LAN: Optionally add your wireless SSID and password here. If you are creating a generic SSD for other volunteers this can be set later. | ||
| + | * **Wireless LAN Country**: AU | ||
| + | * **Locale Setting**: Australia/ | ||
| + | * SERVICES Tab | ||
| + | * Enable SSH (ticked) | ||
| + | * Use password authentication (selected) | ||
| + | * OPTIONS Tab | ||
| + | * Enabled telemetry (un-ticked) | ||
| + | ==== Step 2: Boot Pi ==== | ||
| + | |||
| + | Put the MicroSD card in the Raspberry Pi, and plug it into a power supply to boot it up, wait for a minute or so. | ||
| + | |||
| + | ==== Step 3: Verify Success ==== | ||
| + | |||
| + | You should be able to see the Pi on the local netowrk using its expected hostname. For example, if it's hostname is '' | ||
| + | |||
| + | To verify this, try '' | ||
| + | |||
| + | If so, try logging in using '' | ||
| + | |||
| + | ==== Troubleshooting ==== | ||
| + | |||
| + | If you can't find the Pi on the local network once it has booted, it's probably best to connect it to a screen. Use a micro-HDMI to HDMI adapter to connect it to a monitor, and plug in a keyboard and mouse via USB. You should see a command prompt and be able to log in with the chosen username and password. | ||
| + | |||
| + | ===== Appendix ===== | ||
| + | |||
| + | Cloud-init files (generated by "OS Customization" | ||
| + | |||
| + | <file yaml user-data> | ||
| + | chpasswd: | ||
| + | expire: true | ||
| + | users: | ||
| + | - name: ubuntu | ||
| + | password: ubuntu | ||
| + | type: text | ||
| + | hostname: raspberrypi | ||
| + | manage_etc_hosts: | ||
| + | keyboard: | ||
| + | model: pc105 | ||
| + | layout: us | ||
| + | ssh_pwauth: true | ||
| + | users: | ||
| + | - name: pi | ||
| + | groups: users, | ||
| + | shell: /bin/bash | ||
| + | lock_passwd: | ||
| + | passwd: mbt | ||
| + | packages: | ||
| + | - avahi-daemon | ||
| + | - auto-apt-proxy | ||
| + | apt: | ||
| + | conf: | | ||
| + | Acquire { | ||
| + | Check-Date " | ||
| + | }; | ||
| + | runcmd: | ||
| + | - setupcon -k --force || true | ||
| + | timezone: Australia/ | ||
| + | </ | ||
| + | |||
| + | <file yaml network-config> | ||
| + | network: | ||
| + | version: 2 | ||
| + | ethernets: | ||
| + | eth0: | ||
| + | dhcp4: true | ||
| + | optional: true | ||
| + | wifis: | ||
| + | renderer: networkd | ||
| + | wlan0: | ||
| + | dhcp4: true | ||
| + | optional: true | ||
| + | access-points: | ||
| + | " | ||
| + | | ||
| + | regulatory-domain: | ||
| + | </ | ||
| + | |||
| + | <file yaml meta-data> | ||
| + | dsmode: local | ||
| + | instance_id: | ||
| + | </ | ||
