Skip to content

Instantly share code, notes, and snippets.

@kmpm
Last active May 18, 2020 15:47
Show Gist options
  • Save kmpm/66ed928a5148138f6dfb4ac4912a35ab to your computer and use it in GitHub Desktop.
Save kmpm/66ed928a5148138f6dfb4ac4912a35ab to your computer and use it in GitHub Desktop.
MotionEye and Motion on Raspbian Buster

MotionEye and Motion on Raspian Buster

This will use python2 even though it's deprecated since MotionEye still does not work with python3

sudo apt install motion ffmpeg v4l-utils python libcurl4-openssl-dev libssl-dev \
  python-pip \
  virtualenv \
  python-libtiff \
  libtiff-dev \
  libjpeg-dev \
  libz-dev
  

mkdir /opt/motioneye
cd /opt/motioneye

python3 -m venv venv
. venv/bin/activate

pip install motioneye

cp venv/share/motioneye/extra/motioneye.conf.sample .
mv motioneye.conf.sample motioneye.conf


sed -i 's/\/etc\/motioneye/\/opt\/motioneye/g' motioneye.conf

sudo meyectl startserver -c /opt/motioneye/motioneye.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment