Install On Arch - lukdz/motioneye GitHub Wiki
Before Proceeding
- Read the general Installation page first.
- These instructions apply to Arch Linux. They may work for other Arch-based distributions but the procedure hasn't been tested.
- All commands require root; use
sudobefore each command or become root usingsudo -i. - On a Raspberry Pi, you might need to add
/opt/vc/binto yourPATH, in e.g./etc/environment.
Instructions
-
Install
ffmpegandv4l-utils:pacman -S motion ffmpeg v4l-utils lsb-release -
Install the dependencies from the repositories:
pacman -S python2-pip base-devel mime-types curl -
Install
motionfrom AUR:git clone https://aur.archlinux.org/motion.git cd motion && makepkg -is -
Install
motioneye, which will automatically pull Python dependencies (tornado,jinja2,pillowandpycurl):pip2 install motioneye -
Prepare the configuration directory:
mkdir -p /etc/motioneye cp /usr/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:cp /usr/share/motioneye/extra/motioneye.systemd-unit /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