motionという動体検知ソフトを使って監視カメラを構築 apacheとmotionをインストール $ sudo apt-get install apache2 motion 設定 $ sudo vi /etc/motion/motion.conf daemon off process_id_file /var/run/motion/motion.pid setup_mode off videodevice /dev/video0 ←ウェブカメラのデバイスファイル v4l2_palette 8 ; tunerdevice /dev/tuner0 input 8 norm 0 frequency 0 rotate 0 width 640 ←横幅 height 480 ←縦幅 framerate 10 ←フレームレート minimum_frame_time 0 ; netcam_url
![Ubuntuで監視カメラ](https://cdn-ak-scissors.b.st-hatena.com/image/square/3179183b366225b439b9a4c318b3d04b109a3f08/height=288;version=1;width=512/https%3A%2F%2Fblog-imgs-88.fc2.com%2Fp%2Fh%2Fa%2Fphantom37383%2F1453701409240s.jpg)