User Tools

This is an old revision of the document!


Generic Pi Setup

The default setup of a new Raspberry Pi at Merri-bek Tech. This is used to Setup Manager Pi.

Parts & Tools

Parts

  • 1 Raspberry Pi 5 (or 4)
  • USB-C Power Supply
  • Micro SD Card (recommended at least 32GB)

Tools

  • Computer with MicroSD Card slot, or an external MicroSD Card reader.
  • Software: Raspberry Pi Imager. Install instructions

Steps

Step 1: Flash SD Card with Ubuntu

In the Raspberry Pi Imager software, flash the Pi with the following settings:

  • Raspberry Pi Device: Be sure to choose the correct device, eg “RASPBERRY PI 5”
  • Operating System: From the “Other general-purpose OS” section, choose Ubuntu, then choose the version matching Preferred Server OS, ensuring that you pick a version that is Server only, 64-bit, and compatible with your model of Raspberry Pi.
  • OS Customization: Edit the settings, and chose the following:
    • GENERAL Tab
      • username: pi
      • password: mbt
      • 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/Melbourne
    • 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 mbt then it should be accessible to another device on the same wifi network using mbt.local.

To verify this, try ping mbt.local to see if it is present and responding to pings.

If so, try logging in using ssh pi@mbt.local .

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” in RPi Imager):

user-data:

chpasswd:
  expire: true
  users:
  - name: ubuntu
    password: ubuntu
    type: text
hostname: raspberrypi
manage_etc_hosts: true
keyboard:
  model: pc105
  layout: us
ssh_pwauth: true
users:
  - name: pi
    groups: users,adm,dialout,audio,netdev,video,plugdev,cdrom,games,input,gpio,spi,i2c,render,sudo
    shell: /bin/bash
    lock_passwd: false
    passwd: mbt
packages:
- avahi-daemon
- auto-apt-proxy
apt:
  conf: |
    Acquire {
      Check-Date "false";
    };
runcmd:
- setupcon -k --force || true
timezone: Australia/Melbourne

network-config

network:
  version: 2
  ethernets:
    eth0:
      dhcp4: true
      optional: true
  wifis:
    renderer: networkd
    wlan0:
      dhcp4: true
      optional: true
      access-points:
         "Sussex WiFi":
           password: "REDACTED"
      regulatory-domain: AU

meta-data

dsmode: local
instance_id: cloud-image

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information