Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Sunday, June 07, 2020

Raspberry Pi Zero setup for Motion Eye



First off, I'd like to say thanks to  Calin Crisan for his work on Motion eye. He's posted a few how to's on his Github page. This page is a modified version of his page. I've found the following method to work a bit more smoothly for me. Your Millage May vary. Before you go further, this post assumes that you know about installing Raspbian on your SD card, and have access to your Pi Zero via SSH.

I'm installing Motion eye on a Raspberry Pi Zero W.

In this example Raspbian Buster Lite is already installed on it.  I used 2020-02-13-raspbian-buster-lite.zip for my install. It also needs to be setup headlessly to use SSH.  I wrote a little post about that here. 


 Before Proceeding

    Read Calin Crisan's general Installation page first.

These instructions are intended for an up-to-date Raspbian Buster install, but they should work for Raspbian Stretch as well.

    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.  Also don't forget to run Apt Update and Apt Upgrade if doing this on a fresh install of buster.



Instructions

Install ffmpeg and other motion dependencies:

apt install ffmpeg libmariadb3 libpq5 libmicrohttpd12

I still needed to run apt update --fix-missing to get all the packages to install when I used this method. Lately, I have not had to. 

Install the dependencies from the repositories including "python-pil instead" of python-pillow, and selecting 'zlib1g-dev' instead of 'libz-dev'. 

apt install python-pip python-dev libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev python-pil


Once all of the packages for ffmpeg and motion dependencies are install, proceed to install Motion.

 Install  motion:


wget https://github.com/Motion-Project/motion/releases/download/release-4.2.2/pi_buster_motion_4.2.2-1_armhf.deb
dpkg -i pi_buster_motion_4.2.2-1_armhf.deb
Install motioneye, which will automatically pull Python dependencies (tornado, jinja2, pillow and pycurl):
pip install motioneye
Prepare the configuration directory:
mkdir -p /etc/motioneye
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf

Prepare the media directory:
mkdir -p /var/lib/motioneye

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

To upgrade to the newest version of motionEye, just issue:
pip install motioneye --upgrade
systemctl restart motioneye



These instructions were modified from the original found here:

https://github.com/ccrisan/motioneye/wiki/Install-On-Raspbian

https://github.com/ccrisan/motioneye/wiki/Installation

Saturday, April 04, 2009

Sidux 2009-01 Xfce4

So, Here I am. A Geek, and awake at 7am on a Saturday morning. I don't want to go back to bed, as I'll probably have to get up at 3am tomorrow, and that would just screw up my sleeping pattern even more. Having entered the Linux world just a little over 2 years ago, I found Ubuntu to be very friendly, and usable. Very well designed for the noob. Any Kind of Noob. :) I figured it was time to look into another Distro, in depth, to see how it did things.


I had installed Sidux, the XFCE (complete list ) version on my hard drive a few weeks ago, and hadn't given it much of a go, as while it was Debian based, they're doing things different from the folks over at Canonical.


I've found myself with Ubuntu Gnome as my primary main machine. It's ease of use and support make it such a joy to learn Linux with. Another one of the nice things about Linux is that one can have as many distro's on their box as they desire. So, I decided that I wanted to to take a little more in depth look into Sidux, XFCE. I figured maybe it'll make it simple to boot into it, and run a full backup on the Ubuntu side while I'm fiddling around on the Sidux side. That Means, that I want a browser, and all of it's trimmings. IE Java, Flash, (yea, freedom hatin' me) and my Google tool-bar.


One of the first things I notice with Sidux is that it uses Iceweasel, not Firefox. That's cool. But my Google Tool bar doesn't know what Iceweasel is, or how to install to it. So I need to use the About: command and change the identity of Iceweasel. I feel like I'm committing some kind of identity theft, but meh, it's only my browser lying to Google, and lord knows they already know enough truth about me. It's just that Iceweasel won't get the credit for being used as a browser. Sigh.


OK, got that done. Wow. Where' s my Add-Remove program? Not in here. Ok so I look at their manual and find that I need. Debian Package Search. Cool, something different. A bit more lightweight, but it looks usable.


I've got Debian Package Search installed, yea, it wasn't part of thier distro packaging.


Just flashed on the screen and showed very little info, when I tried to install Java. A Little bouncing around in the menus in Debian Package Search I notice that I had the ability to copy a and paste command into the terminal window. When I did copy it into the terminal. I got:


/usr/bin/apt-get install sun-java6-jre

But it should have read

apt-get install sun-java6-jre


Not sure what that happened, or if I messed up or missed something but eh, small glitch either way.

Now that I have Java installed. I want test it. I go to JuicedPenguin.com to see if I can get the ogg file to play in a pop-up window. Nope. Iceweasel wants more plug-ins. Another Search with Debian Package Search and I find the Sun-Java6-Plugin, to add Java support for Iceweasle Or any Mozilla Browser, and install it, and now I'm able to listen to that fine Ogg Media via a dandy pop up, if I so desire.


Oh! Also missing, from the "out of box" experience, was a spell checker with AbiWord.


I've yet to get around to playing around with a backup scheme for the system... I'll have to come up with a second part for that. But so far. Yea, I do like it. For some reason this XFCE experience seems a little more fluid then when I'm using Xubuntu, and I'm not sure exactly why. Or it could be that I've become more accustomed to XFCE?


And with that, my fee time is no more, and I need to get out the door.


Bottom line. I like it. Not sure that it would be my first choice to recommend for a newcomer to the Linux scene, but it would have to be a consideration if weak hardware were a concern.


Issues with Linux Mint (or Debian Linux) and Xsane

#notetoself So, today, I was playing around with a new PC setup. And of course there was an issue with the HP Scanner. - I generally use Xsa...