Run UBOS on Raspberry Pi Zero or 1¶
You can run UBOS on your Raspberry Pi by downloading an image, writing it to an SD card, and booting your Raspberry Pi with that card. (Alternatively you can keep running your existing Linux distro on your Raspberry Pi, and run UBOS in a Linux container. This is described here.)
The following Raspberry Pi models are supported out of the box:
- Raspberry Pi “Model A”
- Raspberry Pi “Model A Plus”
- Raspberry Pi “Model B”
- Raspberry Pi “Model B Plus”
- Raspberry Pi “Zero”
UBOS does require networking for most use cases, so it is recommended you use a Raspberry Pi with built-in networking, or a compatible networking adapter.
If you are not sure which model you have, consult this page.
If you have a Raspberry Pi 2 or Raspberry Pi 3, go to this page.
Download a UBOS boot image from depot.ubos.net. Beta images for the Raspberry Pi Zero or 1 are at http://depot.ubos.net/yellow/armv6h/images. Look for a file named ubos_yellow-rpi_LATEST.img.xz.
Optionally, you may now verify that your image downloaded correctly by following the instructions at Verify your downloaded UBOS image
Uncompress the downloaded file. This depends on your operating system, but might be as easy as double-clicking it, or executing
> xz -d ubos_yellow-rpi_LATEST.img.xz
on the command line.
Write this image file “raw” to an SD card appropriate for your Raspberry Pi. This operation depends on your operating system:
On first boot, it is recommended you have a monitor and keyboard connected to your Raspberry Pi. If this is impractical, create a UBOS staff so you can securely log in over the network without the need for monitor or keyboard.
Remove the SD card and insert it into your Raspberry Pi. If you created a UBOS staff, insert the staff into the USB port. Then, plug in the Raspberry Pi’s USB power.
When the boot process is finished, log in as user root from the attached keyboard and monitor. By default, there is no password on the console. If you used a UBOS staff, you can log in over the network instead as described here.
Now: wait. The Raspberry Pi is not a very fast computer, and UBOS needs to generate a few cryptographic keys before it is ready to use and initialize a few other things on the first boot. That might take 5 or 10 minutes. To determine whether UBOS ready, execute:
> systemctl is-system-running
Wait until the output has changed from starting to running. If it is anything else, consult troubleshooting.
If you have Ethernet plugged in, and your network has a DHCP server (most networks do), your computer should automatically acquire an IP address. You can check with:
> ip addr
Make sure you are connected to the internet before attempting to proceed.
Update UBOS to the latest and greatest:
> ubos-admin update
You are now ready to set up your first app and site.