User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
generic_pi_setup [2024/10/29 21:38] – Minor tidying mattcengeneric_pi_setup [2024/10/29 22:25] (current) – [Appendix] Clean up code file names mattcen
Line 51: Line 51:
  
 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. 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):
 +
 +<file yaml 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
 +</file>
 +
 +<file yaml 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
 +</file>
 +
 +<file yaml meta-data>
 +dsmode: local
 +instance_id: cloud-image
 +</file>

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