Orange Pi PC2 User Manual page 30

Table of Contents

Advertisement

Orange Pi Manual
sudo apt-get install motion
iii Modify configuration
sudo nano /etc/motion/motion.conf
stream_localhost off
iv Create folder for images saving
mkdir ~/motion
v Modify permission
chmod 777 motion
vi Continue modifying configuration
sudo nano /etc/default/motion
start_motion_daemon=yes
vii Boot the server
Sudo /etc/init.d/motion start
Enter the following in browser: localhost:8081
You could check image output from camera.
Besides, you could also refer to this link:
http://www.cnx-software.com/2015/09/26/how-to-use-orange-pi-camera-in-l
inux-with-motion/
9) eth0 and wlan0 static mac address setting
a. If the system do not use systemd, you could modify rc.local directory
and add the following:
$ vim /etc/rc.local
MAC=00:e0:4c:a1:2b:d4
ifconfig wlan0 down
ifconfig wlan0 hw ether $MAC
ifconfig wlan0 up
dhclient &
After rebooting, you could use ifconfig to check whether mac address has
changed.
b. If the system used systemd, you also need to add the following besides
the above steps:
$ cd /etc/systemd/system/
$ vim change_mac_address.service (You could name the server, format
just like the following)
[unit]
Description=Change OrangePi Wifi mac address
www.orangepi.org
Copy right by Shenzhen Xunlong Software Co., Ltd
28
www.xunlong.tv

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents