-
Notifications
You must be signed in to change notification settings - Fork 658
Install on Raspbian Buster
starbasessd edited this page Nov 8, 2021
·
1 revision
- Read the general Installation page first.
- These instructions apply only to an up-to-date Raspbian Bullseye.
- All commands require root; use
sudo
before each command or become root usingsudo -i
. - If you want to use the CSI camera module for the Raspberry PI, make sure you have enabled it in
raspi-config
. - Installation instructions confirmed on RaspberryPiOS 20211030 Lite, on 8 Nov 2021
- Installation instructions confirmed on RaspberryPiOS 20211030 Full Desktop, on 8 Nov 2021
-
Install
ffmpeg
and othermotion
dependencies:apt-get install ffmpeg libmariadb3 libpq5 libmicrohttpd12 -y
-
Install
motion
:wget https://github.com/Motion-Project/motion/releases/download/release-4.3.2/pi_buster_motion_4.3.2-1_armhf.deb dpkg -i pi_buster_motion_4.3.2-1_armhf.deb
Disable motion service, motionEye controls motion
systemctl stop motion systemctl disable motion
-
Install the dependencies from the repositories: (copy/paste as single lines, not as a block)
apt-get install python2 python-dev-is-python2 -y curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py python2 get-pip.py apt-get install libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev -y
-
Install
motioneye
, which will automatically pull Python dependencies (tornado
,jinja2
,pillow
andpycurl
):pip install motioneye
note: If
pillow
installation fails (hangs and ends at 99%),
you can install it from official repos using
apt-get install python-pil -y
and rerun
pip install motioneye
. -
Prepare the configuration directory:
mkdir -p /etc/motioneye cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
-
Prepare the media directory:
mkdir -p /var/lib/motioneye
-
Add an init script, configure it to run at startup and start the
motionEye
server:cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service systemctl daemon-reload systemctl enable motioneye systemctl start motioneye
-
To upgrade to the newest version of motionEye, just issue:
pip install motioneye --upgrade systemctl restart motioneye
home | installation | faq