Installing MotionEYE on OrangePi Zero

Hi guys.

I’m trying to install motioeye on dietpi zero. After many attempts to install and always getting this message on the step 13:

1 su root

2 apt-get update
3 apt-get upgrade
4 apt-get install

5 wget https://github.com/ccrisan/motioneye/wiki/precompiled/ffmpeg_3.1.1-1_armhf.deb
6 dpkg -i ffmpeg_3.1.1-1_armhf.deb

7 apt-get remove libavcodec-extra-56 libavformat56 libavresample2 libavutil54

8 apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56

libmysqlclient18 libswscale3 libpq5

9 wget https://github.com/Motion-Project/motion/releases/download/release-4.0.1/pi_jessie_motion_4.0.1-1_armhf.deb
10 dpkg -i pi_jessie_motion_4.0.1-1_armhf.deb

11 pip install motioneye

12 mkdir -p /etc/motioneye
13 cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf

14 mkdir -p /var/lib/motioneye

15 cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
16 systemctl daemon-reload
17 systemctl enable motioneye
18 systemctl start motioneye

19 sudo modprobe gc2035
20 sudo modprobe vfe_v4l2

21 systemctl restart motioneye

cp: cannot stat ‘/usr/local/share/motioneye/extra/motioneye.conf.sample’: No such file or directory

Why do i cant see MOTIONEYE on the dietpi-software list?

Board: OrangePi Zero 256mb
System: Dietpi Zero : http://dietpi.com/downloads/images/DietPi_OrangePiZero-armv7-(Jessie).7z
Version: v156

Your command in the 13th place can’t find the file “motioneye.conf.sample”. Is there a file “motioneye.conf”?
If it exists, there is no need for this command. Maybe editing the conf file a little bit.
On my BPI there is also no Motioneye. I assume this is only visible on THE RaspPI :wink:

Thanks for helping.

There’s no motioneye.conf…maybe an issue in the instalation progress but no error message are displayed.

I have done these steps mysqlf. No error.

Here is the motioneye.conf from step 13

# path to the configuration directory (must be writable by motionEye)
conf_path /etc/motioneye

# path to the directory where pid files go (must be writable by motionEye)
run_path /var/run

# path to the directory where log files go (must be writable by motionEye)
log_path /var/log

# default output path for media files (must be writable by motionEye)
media_path /var/lib/motioneye

# the log level (use quiet, error, warning, info or debug)
log_level info

# the IP address to listen on
# (0.0.0.0 for all interfaces, 127.0.0.1 for localhost)
listen 0.0.0.0

# the TCP port to listen on
port 8765

# path to the motion binary to use (automatically detected if commented)
#motion_binary /usr/bin/motion

# whether motion HTTP control interface listens on
# localhost or on all interfaces
motion_control_localhost true

# the TCP port that motion HTTP control interface listens on
motion_control_port 7999

# interval in seconds at which motionEye checks if motion is running
motion_check_interval 10

# whether to restart the motion daemon when an error occurs while communicating with it
motion_restart_on_errors false

# interval in seconds at which motionEye checks the SMB mounts
mount_check_interval 300

# interval in seconds at which the janitor is called
# to remove old pictures and movies
cleanup_interval 43200

# timeout in seconds to wait for response from a remote motionEye server
remote_request_timeout 10

# timeout in seconds to wait for mjpg data from the motion daemon
mjpg_client_timeout 10

# timeout in seconds after which an idle mjpg client is removed
# (set to 0 to disable)
mjpg_client_idle_timeout 10

# enable SMB shares (requires motionEye to run as root) 
smb_shares false

# the directory where the SMB mount points will be created
smb_mount_root /media

# path to the wpa_supplicant.conf file
# (enable this to configure wifi settings from the UI)
#wpa_supplicant_conf /etc/wpa_supplicant.conf

# path to the localtime file
# (enable this to configure the system time zone from the UI)
#local_time_file /etc/localtime

# enables shutdown and rebooting after changing system settings
# (such as wifi settings or time zone)
enable_reboot false

# timeout in seconds to use when talking to the SMTP server
smtp_timeout 60

# timeout in seconds to wait for media files list
list_media_timeout 120

# timeout in seconds to wait for media files list, when sending emails
list_media_timeout_email 10

# timeout in seconds to wait for zip file creation
zip_timeout 500

# timeout in seconds to wait for timelapse creation
timelapse_timeout 500

# enable adding and removing cameras from UI
add_remove_cameras true

# enables HTTP basic authentication scheme (in addition to, not instead of the signature mechanism)
http_basic_auth false

Are you sure every step was done successfully?
No internet connection hiccups etc. :smiley:

Yes. No internet hiccups…heehehe!!!

No erros until step 13.

Fourdee suggested force install by typing dietpi-software install 136 and i got this:

https://github.com/Fourdee/DietPi/issues/1192#issuecomment-336639537

Please set everyting from the terminal in a Code Tag. Its a pain to scroll the whole page :rofl:

It’s nagging that a paket is missing.
Install zlib1g and possibly zlib1g-dev too and try all over again :wink:

Sorry by scrooling…im too newbie!

Thanks for the help again…I’ll try it now!

Reference: https://github.com/Fourdee/DietPi/issues/1192#issuecomment-336644039

Did not work…

Follows:

apt-get install zlib1g
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt-get install zlib1g-dev
0 upgraded, 0 newly installed, 0 to remove and 0 not upgrade

What happens if you install those packages and try again :question:

apt-get install libssl-dev libcurl4-openssl-dev python-dev python-setuptools

What happens if you install those packages and try again > :question: >
CODE: SELECT ALL
apt-get install libssl-dev libcurl4-openssl-dev python-dev python-setuptools

0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

We’re at it again, i refuse to give up, something has to work, right? :rofl:

pip install -U setuptools

When there is an error again, upgrade your pip installer using this

python -m pip install --upgrade pip

Man…i have no words to thank you. Still not work but your determination moves me.

I’m restarting all the tutorial.

The same erros are found when processing:

pip install motioneye

Failed building wheel for pillow
Running setup.py clean for pillow
Running setup.py bdist_wheel for pycurl … error


Failed building wheel for pycurl
Running setup.py clean for pycurl
Failed to build pillow pycurl

Command “/usr/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-build-G6EOSi/pillow/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-ddw5lo-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-G6EOSi/pillow/

When i force install

(dietpi-software install 136)

This message are displayed:

DietPi-Software
─────────────────────────────────────────────────────
Mode: Automated install
Please wait…

[Info] 136: MotionEye is already installed
[Ok] No changes applied for: MotionEye

Do you need additional information?

But how to get launch it?

Motioneye is installed.
Remove first with

dietpi-software uninstall 136

Then reboot and try again installing.

reboot and try automated install?

Try with the command

dietpi-software install 136

Same errors…

all goes well until the installation of pip motioneye…

Feeling out of options here (my dietpi-VM is working, BPI also).

Have you updated the system?

apt-get update && apt-get dist-upgrade

When its updating try again. Uninstall and install.

When it’s not, let’s try 2 “different” ways.

First

easy_install pycurl

When this won’t install either try

apt-get install python-pycurl

and try again.


I’m trying to get the pycurl package elsewhere, that is failing in the whole installation.

easy_install pycurl

>

error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

> apt-get install python-pycurl
\
<br>
```text
root@DietPi:~# apt-get install python-pycurl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libcurl4-gnutls-dev python-pycurl-dbg python-pycurl-doc
The following NEW packages will be installed:
  python-pycurl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.8 kB of archives.
After this operation, 144 kB of additional disk space will be used.
Get:1 http://ftp.debian.org/debian/ jessie/main python-pycurl armhf 7.19.5-3 [48.8 kB]
Fetched 48.8 kB in 8s (5,873 B/s)
Selecting previously unselected package python-pycurl.
(Reading database ... 35842 files and directories currently installed.)
Preparing to unpack .../python-pycurl_7.19.5-3_armhf.deb ...
Unpacking python-pycurl (7.19.5-3) ...
Setting up python-pycurl (7.19.5-3) ...

Maybe there’s a problem with building wheel for pillow…

Please install the suggested packages also

apt-get install libcurl4-gnutls-dev python-pycurl-dbg python-pycurl-doc

maybe try again, after removing motioneye. I keep my fingers crossed and investigate further :smiley: