Skip to content

Install On Other Distributions

Calin Crisan edited this page Jan 24, 2017 · 7 revisions

Before Proceeding

  • 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 using sudo -i or su.

Instructions

  1. Unless you configure your machine for a remote cameras-only hub, make sure you have motion, ffmpeg and v4l-utils installed on your system. This step depends on the distro you're using.

  2. Make sure you have Installed a python 2.7 interpreter, pip, libcurl and libjpeg.

  3. Install motioneye, which will automatically pull Python dependencies (tornado, jinja2, pillow and pycurl):

     pip install motioneye
    

    note: If your distro defaults to Python3, use pip2.

  4. 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.

  5. Prepare the media directory:

     mkdir -p /var/lib/motioneye
    
  6. 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 the motioneye.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
      
  7. To upgrade to the newest version of motionEye, just issue:

     pip install motioneye --upgrade