motioneye installation instructions for Bullseye

1,862 views
Skip to first unread message

Rolf Pedersen

unread,
Nov 27, 2021, 4:23:12 PM11/27/21
to motioneye

Howdy,
I'm back to beating my head against the Pi02W and have got to the point of Bullseye installed, working normally, early days.  Looks like github is down/ddos and I can't get to Crisan's instructions, there.  I thought maybe someone on the list had a pdf or some such.
Thanks,
Rolf

StarbaseSSD

unread,
Nov 27, 2021, 4:31:18 PM11/27/21
to motioneye
Should be pretty curent:
### Before Proceeding
* Read the general [[Installation|Installation]] page first.
* These instructions apply only to an up-to-date Raspbian Bullseye.
* All commands require *root*; use `sudo` before each command or become root using `sudo -i`.
* If you want to use the CSI camera module for the Raspberry PI, make sure you have enabled it in `raspi-config`.
* Installation instructions confirmed on RaspberryPiOS 20211030 Lite, on 8 Nov 2021 (Bullseye)
* Installation instructions confirmed on RaspberryPiOS 20211030 Full Desktop, on 8 Nov 2021 (Bullseye)

### Instructions

1. Install `ffmpeg` and other `motion` dependencies:

        apt-get install ffmpeg libmariadb3 libpq5 libmicrohttpd12 -y

2. Install `motion`:

        wget https://github.com/Motion-Project/motion/releases/download/release-4.3.2/pi_buster_motion_4.3.2-1_armhf.deb`
        dpkg -i pi_buster_motion_4.3.2-1_armhf.deb

    Disable motion service, motionEye controls motion
      
        systemctl stop motion
        systemctl disable motion

3. Install the dependencies from the repositories: (do NOT copy as a block, copy/paste as single lines)

        apt-get install python2 python-dev-is-python2 -y

        curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
 
        python2 get-pip.py

        apt-get install libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev -y

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

        pip install motioneye

    ****note:** If `pillow` installation fails (hangs and ends at 99%), <br>     you can install it from official repos using <br>     `apt-get install python-pil -y` <br>     and rerun <br>      `pip install motioneye`.**

5. Prepare the configuration directory:

        mkdir -p /etc/motioneye
        cp /usr/local/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/local/share/motioneye/extra/motioneye.systemd-unit-local /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:

        pip install motioneye --upgrade
        systemctl restart motioneye

StarbaseSSD

unread,
Nov 27, 2021, 4:33:54 PM11/27/21
to motioneye
Note:
* If you want to use the CSI camera module for the Raspberry PI, make sure you have enabled it in `raspi-config`.
is invalid. raspivid/raspistill/picamera are broken / non-existant. There may be issues with missing python modules, but I was able to get nework (IP) cameras to work.

Rolf Pedersen

unread,
Nov 27, 2021, 5:04:01 PM11/27/21
to moti...@googlegroups.com

Thanks for the info.  In case it helps, I was able to get to github and grabbed a pdf of the page, attached.

--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/3678fcb9-35e6-482e-97ce-0b76bd20365bn%40googlegroups.com.
Install_on_Raspbian_Bullseye_ccrisan_motioneye_Wiki_GitHub.pdf

StarbaseSSD

unread,
Nov 27, 2021, 5:07:17 PM11/27/21
to motioneye
Thanks. Don't know why I don't have them all in PDF, but who expects github to go down? Who'd they tick off? <sigh>

Rolf Pedersen

unread,
Nov 27, 2021, 5:11:20 PM11/27/21
to moti...@googlegroups.com

I just noticed copy/paste from that pdf seems to insert some terminal-confounding line breaks that working from the page or, it looks like, your email rendition would not.  Caveat emptor!

StarbaseSSD

unread,
Nov 27, 2021, 5:17:23 PM11/27/21
to motioneye
I hate markdown (.md) files, period... But it's what the originals are written in, and I haven't had time to re-write everything... And I don't think I'm gonna, either...
Reply all
Reply to author
Forward
0 new messages