motioneye install on debian

442 views
Skip to first unread message

macdr...@gmail.com

unread,
Apr 30, 2023, 3:03:37 PM4/30/23
to motioneye
In an effort to see if a more beefy machine runs better, I am attempting to follow the instructions here: https://github.com/motioneye-project/motioneye/wiki/Install-on-Debian-11-(Bullseye)

When I get to step 5, there is no /usr/local/share/motioneye directory to copy from.

So, the following fails:
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf

I retraced the steps...what am I missing?

StarbaseSSD

unread,
May 1, 2023, 4:32:33 PM5/1/23
to motioneye
building a deb-11 server, will get back here shortly.

StarbaseSSD

unread,
May 1, 2023, 5:52:43 PM5/1/23
to motioneye
Build process:
- - -
sudo apt update && sudo apt upgrade -y
su -
apt-get install motion ffmpeg v4l-utils -y
systemctl stop motion
systemctl disable motion
apt-get install python2 curl -y
python2 get-pip.py
apt-get install python-dev-is-python2 python-setuptools libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev libffi-dev libzbar-dev libzbar0 -y
pip install motioneye
mkdir -p /etc/motioneye
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
mkdir -p /var/lib/motioneye
cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye
systemctl start motioneye
- - -
Loads correctly, copies files to correct places from correct places. Working here.
I would check commands:
> python --version
Should show
> Python 2.7.18
and
> pip --version
should show
> pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
If not, then Python 2.7 or pip2 are not installed correctly, which would affect if the sample files were placed correctly.

macdr...@gmail.com

unread,
May 2, 2023, 2:23:49 PM5/2/23
to motioneye
Apparently the default python needs to be configured to be 2.7, not just have Python2 installed on the system.

Once that was right it installed ok.

StarbaseSSD

unread,
May 2, 2023, 2:37:50 PM5/2/23
to motioneye
When you run:

> apt-get install python-dev-is-python2 python-setuptools libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev libffi-dev libzbar-dev libzbar0 -y

it sets the default python to be 2.7 unless you manually had preset python 3.x to be python. I ran on a clean install of Debian 11 and it acted as expected.

You can also run 'python2' and 'pip2' instead of 'python' and 'pip' and get the expected results.

From my clean install: (after the above apt install line)

pi@deb11-mstr-server:~$ python --version
Python 2.7.18
pi@deb11-mstr-server:~$ python2 --version
Python 2.7.18
pi@deb11-mstr-server:~$ python3 --version
Python 3.9.2
pi@deb11-mstr-server:~$ pip --version

pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
pi@deb11-mstr-server:~$ pip2 --version

pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
pi@deb11-mstr-server:~$ pip3 --version
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

macdr...@gmail.com

unread,
May 2, 2023, 2:41:19 PM5/2/23
to motioneye
I too ran a fresh debian install. There was no python installed at all. And I installed only 2.7.
I had to set the default by hand.
The line you refer to did not set it.

StarbaseSSD

unread,
May 2, 2023, 2:48:07 PM5/2/23
to motioneye
And the line:

> apt-get install python2 curl -y

didn't install and set python2 to be default with no other python installed? I'd consider it a broken setup then.
Reply all
Reply to author
Forward
0 new messages