Author Archives: L. Adelöw

About L. Adelöw

https://www.google.com/search?q=Leif+Adel%C3%B6w+CV

logger

Testing

To test if syslog has been set up correctly you can log an event to syslog using the logger command:

logger -t test "Here's an example log entry"

Next check your logs configured in Logentries to see if any events have been recorded.

pi&cam


#!/bin/bash
# quickly get pi cam stream to local pc display, from pc go:
# requires:{nc,mplayer,hostname}@local&{raspivid,nc}@remote
command -v nc >/dev/null 2>&1 || { echo >&2 "Bummer"; exit 1; }
command -v mplayer >/dev/null 2>&1 || { echo >&2 "Bummer"; exit 1; }
ip=$(hostname -I)
stty -echo;echo -n "Enter user @ raspberry: ";read usr;echo;stty echo
xterm -e 'nc -l 5001 | mplayer -fps 31 -cache 1024 -' &
ssh $usr@pi.local "raspivid -t 99999 -o - | nc $ip 5001"