Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Guide on how to use preinstalled Openframe images for Raspberry Pi and on how to create those images.

These are working Openframe images for Raspberry Pi.

Using this image

  1. Download:
    For Raspberry Pi 4 or for all other Pis
    based on 2019-07-10-raspbian-buster
  2. Use balenaEtcher to write the image to an SD card.
  3. Optional – Remove and return the SD card into your PC to edit/add to the boot partition of the SD card to do the following:
  • Add Wifi: edit this file accordingly (country code, wifi name and password) and add it
  • Enable SSH: add this file (yes, it's an empty file named ssh)
  • Increase GPU memory even further: edit config.txt and change gpu_mem=256 to gpu_mem=512. Read more on this here.
  1. Boot the Pi and run sudo raspi-config --expand-rootfs && sudo reboot which will expand the file system and reboot the Pi

How to create an Openframe image from scratch?

Create Image

  1. Download latest Raspbian Buster with desktop
  2. Use balenaEtcher to write the image to an SD card
  3. Place this SSH file on the boot partition
  4. Boot the Pi with ethernet cable plugged in (don’t use wifi as your credentials will remain stored on the image)
  5. SSH into the Pi ssh pi@raspberrypi or ssh pi@raspberrypi.local or use an IP address, e.g. ssh pi@192.168.0.20 password = raspberry
  6. Run: bash -c "$(curl https://gist.githubusercontent.com/jvolker/7d61d2550261f838c473ea6f3111c458/raw/80ac162ffcb6806028e813a4bb25ea26d0abb7b4/create-openframe-image.sh)"
  7. Do Backup with ApplePi-Baker with "Partition resize” enabled

It does the following:

  • Changes hostname to: OpenframeRaspi
  • Changes password to: openframe
  • Changes boot mode to command line
  • Updates all packages
  • Sets GPU memory to 256MB to make shaders and image extension work
  • Installs Openframe and default extensions
  • Disables SSH

Note: You can call the script with the following argument to skip updating the packages:

bash -c "$(curl https://gist.githubusercontent.com/jvolker/7d61d2550261f838c473ea6f3111c458/raw/80ac162ffcb6806028e813a4bb25ea26d0abb7b4/create-openframe-image.sh)" --skipUpdatePackages

Test

Use balenaEtcher to write the backed up image to an SD card. Actually, it might be okay to use continue with what’s already on the SD card.

  1. Boot the Pi and run sudo raspi-config --expand-rootfs && sudo reboot which will expand the file system and reboot the Pi
  2. Run openframe, enter your Openframe credentials and test all default extensions.

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.