Skip to content

Install On Arch

starbasessd edited this page Dec 27, 2021 · 19 revisions

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 sudo before each command or become root using su -i.
  • On a Raspberry Pi, you might need to add /opt/vc/bin to your PATH, in e.g. /etc/environment.
  • Tested with archlinux-2021.12.01-x86_64.iso install in VBox Guest (4CPU, 4GB, 48GB) 27 Dec 2021

Instructions

  1. Install ffmpeg and v4l-utils:

     pacman -S motion ffmpeg v4l-utils lsb-release python2 curl
    
  2. Install pip2:

     curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
    
     python2 get-pip.py
    
  3. Install the dependencies from the repositories:

     pacman -S base-devel mime-types
    
  4. Install motioneye, which will automatically pull Python dependencies (tornado, jinja2, pillow and pycurl):

     pip2 install motioneye
    
  5. Prepare the configuration directory:

     mkdir -p /etc/motioneye
     cp /usr/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
    
  6. Prepare the media directory:

     mkdir -p /var/lib/motioneye
    
  7. Add an init script, configure it to run at startup and start the motionEye server:

     cp /usr/share/motioneye/extra/motioneye.systemd-unit /etc/systemd/system/motioneye.service
     systemctl daemon-reload
     systemctl enable motioneye
     systemctl start motioneye
    
  8. To upgrade to the newest version of motionEye, just issue:

     pip2 install motioneye --upgrade
     systemctl restart motioneye