-
Notifications
You must be signed in to change notification settings - Fork 0
Configure MotionPlus Environment and Install MotionPlus from GitHub Source
Fyzel edited this page Aug 18, 2024
·
3 revisions
NOTE: This instruction assumes the installation is performed on a installed version of Raspberry Pi OS.
Install prerequisite packages on Raspberry Pi OS
sudo apt update -y && sudo apt upgrade -y && sudo apt-get install ffmpeg autoconf automake autopoint build-essential pkgconf libtool libzip-dev libjpeg-dev git libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev libopencv-dev libwebp-dev gettext libmicrohttpd-dev libmariadb-dev libcamera-dev libcamera-tools libcamera-v4l2 libasound2-dev libpulse-dev libfftw3-dev libpq-dev libsqlite3-dev mariadb-server mariadb-client
sudo addgroup --system motion
sudo adduser --system --shell /usr/sbin/nologin --home /var/lib/motion --ingroup motion --no-create-home motion
sudo mkdir -p /home/motion && sudo chown motion:motion /home/motion/ && sudo chmod g+w /home/motion/
ln -s /home/motion /home/pi/Videos/cctv
Step 4 - Add motion
and pi
users to the motion
group. Add the motion
user to the video
group to access the camera hardware.
sudo usermod -a -G motion pi
sudo usermod -a -G video motion
sudo usermod -a -G motion motion
groups pi
groups motion
sudo mkdir -p /etc/motionplus
sudo mkdir /var/log/motionplus
sudo chown motion:root /var/log/motionplus
Go to the build instructions to clone a local copy of the MotionPlus GitHub repository.
mkdir ~/src
cd ~/src
git clone https://github.com/Motion-Project/motionplus.git
cd motionplus
autoreconf -fiv
./configure
make
sudo make install
Next Step: Configure MotionPlus
- Hardware Used
- Secure mariadb and Configure
- Configure MotionPlus Environment and Install MotionPlus from GitHub Source
- Configure MotionPlus
- Configure Camera
- Determine Audio Hardware Information and Configure (optional)
- Testing MotionPlus
- Configure MotionPlus as a System Service
- Configure Automated File Cleanup (optional)