I tried to monitor my flat using old phone as web camera (should be replaced with IP camera). It's quite simple using one of many Android apps (IP Webcam by Pavel Khlebovich in my case).
Since I do not have public IP I had to use OpenVPN to my home network:
|
My phone/camera has address 192.168.1.11 (Home LAN network). To have access to it from Internet, I had to add this to cameras.conf file (in /etc/httpd/conf.d directory):
Now I can see what is happening typing http://cameras.jaqb.gda.pl/cam1 in web browser.
What is worse anyone can see. To protect my own privacy I've added authentication, so whole file looks like this:
Now only user jakub (me ;-) can have access.
My ESP8266 devices are generating huge amount of logs so after some time LogAnalyzer database had over 5M records.
I've decided to delete old data, but before run purge script I want to backup these records.
The solution was quite simple:
where Syslog is database, and SystemEvents is table.
You can also export to CSV (TSV) format if You prefer:
After this I could delete whole year, instead of using script:
Now I've only about 600k records ;-)
To allow backuppc user to send emails I've to change permissions to /etc/msmtprc file:
Now I can send email as backuppc, but there is a problem with logging:
(after "this is a test") you have to press Ctrl-D (end of file).
For identifying admin-permissions issues in desktop applications, ie. when everybody says to disable User Account Control (UAC), you can use LUA Buglight.

Add comment