-
Notifications
You must be signed in to change notification settings - Fork 662
Install On Other Distributions
- Read the general Installation page first.
- If your distribution is based on one of the "officially supported" distros listed in the Installation article, you should probably follow those instructions instead.
- All commands require root; use
sudo
before each command or become root usingsudo -i
orsu
.
-
Unless you configure your machine for a remote cameras-only hub, make sure you have
motion
,ffmpeg
andv4l-utils
installed on your system. This step depends on the distro you're using. -
Make sure you have Installed a
python 2.7
interpreter,pip
,libcurl
andlibjpeg
. -
Install
motioneye
, which will automatically pull Python dependencies (tornado
,jinja2
,pillow
andpycurl
):pip install motioneye
note: If your distro defaults to Python3, use
pip2
. -
Prepare the configuration directory:
mkdir -p /etc/motioneye cp /usr/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
note: The sample file path may differ. If the one above is wrong, you may try
/usr/local/share/motioneye/extra/motioneye.conf.sample
. -
Prepare the media directory:
mkdir -p /var/lib/motioneye
-
Add an init script, configure it to run at startup and start the
motionEye
server:-
sysvinit-based:
cp /usr/share/motioneye/extra/motioneye.init-debian /etc/init.d/motioneye chmod +x /etc/init.d/motioneye update-rc.d -f motioneye defaults /etc/init.d/motioneye start
note: If at step (4) you used the path starting with
/usr/local
, you'll probably need to adjust this one as well. -
systemd-based:
cp /usr/share/motioneye/extra/motioneye.systemd-unit /etc/systemd/system/motioneye.service systemctl daemon-reload systemctl enable motioneye systemctl start motioneye
note: If at step (4) you used the path starting with
/usr/local
, you'll probably need to adjust this one as well; also, use themotioneye.systemd-unit-local
instead. -
/etc/rc.local
or other simple startup script:Just make sure to run the following command:
meyectl startserver -b -c /etc/motioneye/motioneye.conf
-
-
To upgrade to the newest version of motionEye, just issue:
pip install motioneye --upgrade
home | installation | faq