-
Notifications
You must be signed in to change notification settings - Fork 700
Install on Debian 11 Bullseye
- Read the general Installation page first.
- These instructions apply to Debian and Debian-based distributions. For Ubuntu and Raspbian however, you should check out their specific instructions.
- All commands require root; use
sudobefore each command or become root usingsu -. - Install instructions confirmed as of 26 Sep 2021 on Debian 10 (Buster).
-
Install
motion,ffmpegandv4l-utils:apt-get install motion ffmpeg v4l-utils -y systemctl stop motion systemctl disable motionnote: Precompiled binaries of motion can be found here, if you're not happy with what you find in the official Debian repos.
-
Install the python 2.7 and pip2: (enter as separate lines, do not copy/paste as a group)
apt-get install python2 -y curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py python2 get-pip.py There will be a warning that python 2.7 and pip2 are outdated and will not be updated This is normal and to be expected, as Python 2.7 is beyond EOL, as is pip2. When motionEye is updated to Python3, these messages will go away. -
Install the dependencies from the repositories:
apt-get install python-dev-is-python2 python-setuptools curl libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev libffi-dev libzbar-dev libzbar0 -ynote: Python 2.7 is required.
-
Install
motioneye, which will automatically pull Python dependencies (tornado,jinja2,pillowandpycurl):pip install motioneyenote: If
pillowinstallation fails, you can try installing it from official repos usingapt-get install python-pillow. -
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
motionEyeserver:-
Debian 11 and newer, systemd-based:
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, after it has been released, just issue:
pip install motioneye --upgrade **note** that will update all the other required dependecies * Debian 8 or later: systemctl restart motioneye
home | installation | faq
Installation (deprecated)
- Install On Debian (deprecated)
- Install on Debian 11 (Bullseye) (deprecated)
- Install On Ubuntu (20.04 ‐ 21.10) (deprecated)
- Install On Raspbian Buster (deprecated)
- Install on Raspbian Bullseye (deprecated)
- Install On Fedora (deprecated)
- Install On Arch (deprecated)
- Install On Other Distros (deprecated)
- Install In Docker (deprecated)
- Manual Installation (deprecated)