sudo apt-get install subversion libjpeg8-dev imagemagick libv4l-dev
sudo rm /usr/include/linux/videodev.h
sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h
svn checkout svn://svn.code.sf.net/p/mjpg-streamer/code/ mjpg-streamer-code
cd mjpg-streamer-code/mjpg-streamer
make mjpg_streamer input_uvc.so output_http.so

