Tested on:Raspberry Pi 2; Python 2.7; Ubuntu Linux
Prerequisites:Installation of Ubuntu on a Raspberry Pi

Installing the Camera Module for Ubuntu

The Ubuntu distribution for the Raspberry Pi does not come with raspi-config; in order to use the camera, for example as psychedelic CCTV, the camera needs to be installed manually.

Setup the camera
First, connect the Raspberry Pi with the camera and boot it. The camera module needs these two packages:

Then, open config.txt with sudo nano /boot/firmware/config.txt and add the lines

at the end of the file. Save, then reboot the Raspberry Pi with

Test the installation
Open Python and enter

If this produced an image named image1.jpg in the current directory, all is fine.

DeepDream psycedelic CCTV: http://www.knight-of-pi.org/psycam-a-raspberry-pi-deepdream-surveilance-camera/
camera module tutorial: http://www.knight-of-pi.org/raspberry-pi-camera-and-night-vision-with-pinoir

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.


Time limit is exhausted. Please reload CAPTCHA.