First Steps: MotionEye on PiZeroW – Raspbian Squeeze Lite

Download and install zipped image to sd card:

unzip -p | sudo dd of=/dev/the_device bs=4M conv=fsync

To allow you to use the pi headless, make sure you copy the ‘wpa_supplicant.conf’ & empty ‘ssh’ into the boot partition. Then boot the pi.

sudo adduser username
sudo usermod -a -G adm username
sudo usermod -a -G sudo username
sudo nano /etc/sudoers.d/010_pi-nopasswd
sudo nano /etc/hosts
sudo nano /etc/hostname
sudo deluser --remove-all-files pi

List members of a specific group.

getent group | grep "example_group"

List users group membership.

groups example_user
id example_user

List users.

cat /etc/passwd

Find files owned by the user ‘pi’.

 sudo find / -user pi

MotionEye Install on Pi Zero W – Raspbian Squeeze

Installation issue with MotionEye on Pi Zero W – With fresh install of  Raspbian Squeeze Lite on 8gb card

  • Python Version:  2.7.13
  • Motion Version:  4.11
  • MotionEye Version:  motioneye-0.39.3
  • OS Version:  Raspbian 9.8

The error occurs when following the MotionEye install instructions and running the following command:

sudo pip install motioneye

The install breaks when installing the pillow package.

How to fix?  I installed pillow first using:

sudo pip --no-cache-dir install pillow

I then went ahead and re-run the MotionEye install which completed without issue.

Once Installed:
Make sure the camera is enabled.

sudo raspi-config

Access the web interface on port 8765.
Default login is admin with no password.

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/", line 215, in main
status =, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/", line 353, in run
File "/usr/lib/python2.7/dist-packages/pip/", line 749, in build
File "/usr/lib/python2.7/dist-packages/pip/req/", line 380, in prepare_files
File "/usr/lib/python2.7/dist-packages/pip/req/", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/dist-packages/pip/", line 821, in unpack_url
File "/usr/lib/python2.7/dist-packages/pip/", line 659, in unpack_http_url
File "/usr/lib/python2.7/dist-packages/pip/", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/usr/lib/python2.7/dist-packages/pip/", line 603, in _download_url
File "/usr/lib/python2.7/dist-packages/pip/utils/", line 46, in check_against_chunks
for chunk in chunks:
File "/usr/lib/python2.7/dist-packages/pip/", line 571, in written_chunks
for chunk in chunks:
File "/usr/lib/python2.7/dist-packages/pip/utils/", line 139, in iter
for x in it:
File "/usr/lib/python2.7/dist-packages/pip/", line 560, in resp_read
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/", line 432, in stream
data =, decode_content=decode_content)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/", line 380, in read
data =
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/", line 63, in read
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/", line 50, in _close
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/", line 275, in cache_response
self.serializer.dumps(request, response, body=body),
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/", line 87, in dumps