SvenVD / rpisurv

Raspberry Pi surveillance
https://community.rpisurv.net
GNU General Public License v2.0
621 stars 101 forks source link

Works! #4

Closed goodtimeclub closed 8 years ago

goodtimeclub commented 8 years ago

Great stuff here @SvenVD - got it going eventually but ran into some funny issues along the way, namely permissions on running install.sh. /usr/local/bin/rpisurv never got created, neither did /home/pi/surveillance

Ended up copying the contents of surveillance/conf into /usr/local/bin/rpisurv & everything fell into place.

Curious if you know of a way to stream an mjpeg stream in this way(autonomous, service-monitoring, stable fps). I'm using https://github.com/ccrisan/motioneyeos for the camera side but am looking to setup a chromeless/fullscreen monitor to stream the images to.

SvenVD commented 8 years ago

Hi,

Thanks for testing out! Did you run ./install.sh as the root user/sudo?

I do not know any software that does the same for mjpeg streams and runs on the pi.

goodtimeclub commented 8 years ago

ran sudo sh ~/rpisurv/install.sh after a fresh install of Raspbian Jessie (2016-02-09) on a Pi2 B. I'll run through all the same steps next week again & report back ;)

re: mjpeg monitor, I'm using a modified version of a omxplayer start/stop/repair script somebody made - still hunting for the holy grail of "IP Camera capture/serve & IP Camera monitor" on 2 separate Pi

SvenVD commented 8 years ago

Ok thanks! A suggestion is to run the script with sudo sh -x ~/rpisurv/install.sh. And paste the output here.

goodtimeclub commented 8 years ago

Ok, starting from scratch today: Raspbian Jessie on a Pi2 Model B.

  1. sudo apt-get update && sudo apt-get upgrade
  2. got Git running by adding an ssh key by following https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
  3. git clone git@github.com:SvenVD/rpisurv.git
  4. sudo sh -x ~/rpisurv/install.sh output: rpisurv-install-log.txt

Some poking around shows the files didn't get copied properly:

pi@raspberrypi:~ $ ls /etc/rpisurv /etc/rpisurv pi@raspberrypi:~ $ ls -la /etc/rpisurv lrwxrwxrwx 1 root root 44 Mar 3 15:50 /etc/rpisurv -> /usr/local/bin/rpisurv/conf/surveillance.yml pi@raspberrypi:~ $ cat /etc/rpisurv cat: /etc/rpisurv: No such file or directory

Hope this helps!

SvenVD commented 8 years ago

Hi, thanks for reporting back!

After some digging I found out that /bin/sh links to the dash shell instead of to the bash shell ( /bin/sh -> dash ).

So while sh ~/rpisurv/install.sh does not work, bash ~/rpisurv/install.sh or ~/rpisurv/install.sh does work. However I added an extra check in the installer script to check for bash script in this commit: https://github.com/SvenVD/rpisurv/commit/b9869aba9c4d20e4f225a1a11d20d837abe26ffa

goodtimeclub commented 8 years ago

gotcha ;)

drthanwho commented 7 years ago

I simply run sudo /home/pi/rpisurv/install.sh and it worked for me. Hopefully I didn't do it wrong