raspberry pi2にmotionインストール

監視カメラとか植物観察とかで使うあれです

環境

[code lang=text] astel@raspberrypi:~ $ uname -a Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux astel@raspberrypi:~ $ cat /etc/debian_version 8.0 [/code]

カメラをusbに刺して確認

[code lang=text] astel@raspberrypi:~ $ lsusb Bus 001 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270 Bus 001 Device 004: ID 413c:2003 Dell Computer Corp. Keyboard Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [/code]

インストール

[code lang=text] astel@raspberrypi:~ $ sudo apt-get install motion Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: libavcodec56 libavformat56 libavresample2 libavutil54 libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libelf1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgsm1 libjpeg8 libllvm3.7 libmp3lame0 libmysqlclient18 libogg0 libopenjpeg5 libopus0 liborc-0.4-0 libschroedinger-1.0-0 libspeex1 libtheora0 libtxc-dxtn-s2tc0 libva1 libvdpau1 libvorbis0a libvorbisenc2 libvpx1 libx11-xcb1 libx264-142 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxdamage1 libxfixes3 libxshmfence1 libxvidcore4 libxxf86vm1 mysql-common va-driver-all vdpau-va-driver Suggested packages: opus-tools speex vdpau-driver mysql-client postgresql-client Recommended packages: ffmpeg The following NEW packages will be installed: libavcodec56 libavformat56 libavresample2 libavutil54 libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libelf1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgsm1 libjpeg8 libllvm3.7 libmp3lame0 libmysqlclient18 libogg0 libopenjpeg5 libopus0 liborc-0.4-0 libschroedinger-1.0-0 libspeex1 libtheora0 libtxc-dxtn-s2tc0 libva1 libvdpau1 libvorbis0a libvorbisenc2 libvpx1 libx11-xcb1 libx264-142 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxdamage1 libxfixes3 libxshmfence1 libxvidcore4 libxxf86vm1 motion mysql-common va-driver-all vdpau-va-driver 0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded. Need to get 21.4 MB of archives. After this operation, 78.4 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://archive.raspberrypi.org/debian/ jessie/main liborc-0.4-0 armhf 1:0.4.22-1rpi1rpi1g [123 kB] Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavutil54 armhf 6:11.6-1~deb8u1+rpi1 [160 kB] Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavresample2 armhf 6:11.6-1~deb8u1+rpi1 [96.7 kB] (ry

update-alternatives: using /usr/lib/arm-linux-gnueabihf/libtxc_dxtn_s2tc.so.0 to provide /usr/lib/arm-linux-gnueabihf/libtxc_dxtn.so (libtxc-dxtn-arm-linux-gnueabihf) in auto mode Setting up motion (3.2.12+git20140228-4+b2) ... Adding group motion' (GID 113) ... Done. Warning: The home dir /var/lib/motion you specified already exists. Adding system usermotion' (UID 109) ... Adding new user motion' (UID 109) with groupmotion' ... The home directory /var/lib/motion' already exists. Not copying from/etc/skel'. adduser: Warning: The home directory /var/lib/motion' does not belong to the user you are currently creating. Adding usermotion' to group `video' ... Adding user motion to group video Done. Setting up va-driver-all:armhf (1.4.1-1) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... Processing triggers for systemd (215-17+deb8u3) ... astel@raspberrypi:~ $ [/code]