sudo apt-get update sudo apt-get upgrade sudo raspi-config raspistill -o test.jpeg raspivid -o test.h264 -t 30000 raspistill | less raspivid | less call (["raspistill -o test.jpeg"], shell=True) call (["raspivid -o test.h264 -t 30000"], shell=True) sudo apt-get install python-setuptools easy_install --user picamera import time import picamera camera = picamera.PiCamera() try: camera.start_preview() time.sleep(10) camera.stop_preview() finally: camera.close() raspistill -o test_%03d.jpeg -tl 10000 -t 3600000 sudo apt-get install mencoder ls *.jpeg > timelapse.txt mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 U -o timelapse.avi -mf type=jpeg:fps=24 mf://@timelapse.txt sudo apt-get update sudo apt-get upgrade sudo apt-get install -y libjpeg62 libjpeg62-dev libavformat53 libavformat-dev libavcodec53 libavcodec-dev libavutil51 libavutil-dev libc6-dev zlib1g-dev libmysqlclient18 libmysqlclient-dev libpq5 libpq-dev wget https://www.dropbox.com/s/xdfcxm5hu71s97d/motion-mmal.tar.gz mkdir motion-files mv motion-mmal.tar.gz ./motion-files cd motion-files tar zxvf motion-mmal.tar.gz mkdir motion-output nano motion-mmalcam.conf width 352 height 288 target_dir /home/pi/motion-files/motion-output stream_auth_method 2 stream_authentication username:password nano startmotion #!/bin/sh nohup /home/pi/motion-files/motion -n -c /home/pi/motion-files/motion-mmalcam.conf 1>/dev/null 2>&1 /dev/null 2>&1 0 1 5 10 * /path/to/script.sh >/dev/null 2>&1