Score:0

Headless "Re-config" WiFi Ubuntu 22.04 Server Image For Distribution

im flag

I have created a Raspberry Pi image - "ROS2 Humble on Ubuntu 22.04 Server Jammy For GoPiGo3 Robots", and used "sudo PiShrink -p -v -z 32GB.img Distro2G.img" to shrink the image for distribution.

Using Raspberry Pi Imager v1.7.3 to write my image (using the setup option to set WiFi SSID/Password, userid/pswd, enable ssh, hostname, and local) creates a working system but while cloud-init does copy the new SSID/passwd to /etc/netplan/50-cloud-init.yaml the content of the file does not seem to be used to configure the WiFi on the first boot.

Only the second or third boot seems to use the newly configured netplan.

I tried

  • sudo cloud-init clean --logs
  • removing /etc/netplan/50-cloud-init.yaml
  • setting system-boot/network-config to:
ethernets:
  eth0:
    optional: true
    dhcp4: true
wifis:  
  wlan0:  
    dhcp4: true  
    optional: true   
    access-points:  
      "your_SSID":  
        password: "your_netpswd"

before I shutdown the original image for shrinking.

Any tips on making a redistributable headless configurable Ubuntu 22.04 Server image?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.