-
Notifications
You must be signed in to change notification settings - Fork 662
(Install On Ubuntu (20.04 or Newer)
starbasessd edited this page Mar 3, 2021
·
12 revisions
- Read the general Installation page first.
- These instructions apply to Ubuntu distributions. They may work for other Ubuntu derivatives (such as Linux Mint) but they haven't been tested.
- All commands require root; use
sudo
before each command or become root usingsudo -i
. - Install instructions confirmed as of 3/3/2021.
-
Update and Upgrade fresh install of Ubuntu 20.04 or newer.
apt update && sudo apt upgrade -y
-
Install
ssh
,curl',
motion,
ffmpegand
v4l-utils`:apt-get install ssh curl motion ffmpeg v4l-utils -y reboot
-
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/2.7/get-pip.py --output get-pip.py python2 get-pip.py
-
Install all prerequisites: (enter as separate lines, do not copy/paste as a group)
apt-get install libffi-dev libzbar-dev libzbar0 -y apt-get install python2-dev libssl-dev libcurl4-openssl-dev libjpeg-dev -y apt-get install python-pil -y
-
Install
motioneye
, which will automatically pull Python dependencies (tornado
,jinja2
,pillow
andpycurl
):pip2 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:-
Ubuntu 15.04 or later, 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, just issue:
pip2 install motioneye --upgrade systemctl restart motioneye
home | installation | faq