
range Pi
用户手册
深圳市迅龙软件有限公司版权所有
74
root@orangepi:~#
apt update
root@orangepi:~#
apt install motion
6) Modify the configuration of
/etc/default/motion
, change start_motion_daemon=no to
start_motion_daemon=yes
root@orangepi:~#
sed -i "s/start_motion_daemon=no/start_motion_daemon=yes/" \
/etc/default/motion
7) Modify the configuration of /etc/motion/motion.conf and set the resolution to 640x480
(other resolutions are not currently supported)
root@orangepi:~#
sed -i "s/width 320/width 640/" /etc/motion/motion.conf
root@orangepi:~#
sed -i "s/height 240/height 480/" /etc/motion/motion.conf
root@orangepi:~#
sed -i "s/stream_localhost on/stream_localhost off/" \
/etc/motion/motion.conf
8) Then restart the motion service
root@orangepi:~#
/etc/init.d/motion restart
[ ok ] Restarting motion (via systemctl): motion.service.
root@orangepi:~#
9) Before using motion, please make sure that the Orange Pi development board can
connect to the network normally, and then obtain the IP address of the development board
through the ifconfig command
10) Then enter the [IP address of the development board: 8081] in the Firefox browser to
see the image output by the ov5640