Hardware:SDHC card
SDHC card reader
Host computer
0

Disk images for complex Raspberry Pi projects

So, a Raspbery Pi application is ready to be shared. One difficulty in sharing Raspberry Pi projects is making sure the target system is in the same configuration. Distributing a virtual environment with the code or building a Python package does not help with the configuration of the Raspberry Pi, e.g. enabling the camera.
Alternatively, a disk image needs no configuration for being run on another machine of the same type. But, an unzipped disk image is as big as the original SD, so sharing a disk image requires a lot of bandwidth.

Create a custom image

  • Plug the SDHC card with the application into your host computer
  • Boot your computer into the (Linux)-Desktop, open the terminal and type gnome-disks
  • Select the SDHC card on the left
  • Click onto the gear in the top right
  • Select Create disc image and choose an appropriate location for your image
  • Safely eject the SDHC card afterwards

If the image needs to be shrunk in the process, use this tutorial instead.

Restore the image
Just burn the image onto a SD card again.

Links
Virtual environment tutorial: http://www.knight-of-pi.org/virtual-environments-simplify-project-management/
Python packages with setup.py: http://www.knight-of-pi.org/creating-own-python-packages-with-setup-py/
Shrink SD card images: http://www.knight-of-pi.org/how-to-shrink-raspberry-pi-sd-card-images-with-gparted-and-dd/
Tutorial: Burn a disk image to a SD card: http://www.knight-of-pi.org/installation/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.

Comment

Time limit is exhausted. Please reload CAPTCHA.