-
Notifications
You must be signed in to change notification settings - Fork 702
Install On Ubuntu (19.10 or Earlier)
- 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
sudobefore each command or become root usingsudo -i.
-
Skip this step for Ubuntu 15.04 or newer. For older Ubuntu versions, you'll need to add a PPA to your apt sources, in order to install
ffmpeg:add-apt-repository -y ppa:kirillshkrogalev/ffmpeg-next apt-get update -
Install
motion,ffmpegandv4l-utils:apt-get install motion ffmpeg v4l-utilsnote: Precompiled binaries of motion can be found here.
-
Install the dependencies from the repositories:
apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev -
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:-
Ubuntu 14.10 or earlier, upstart-based:
cp /usr/local/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 -
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:
pip install motioneye --upgrade-
Ubuntu 14.10 or earlier:
service motioneye restart -
Ubuntu 15.04 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)