I read somewhere that its possible to take unattended screen shots (scrot) and mail it (heirloom-mailx) every one hour (/etc/cron.hourly). It was not easy particularly the mailing part because configuring any mail program to send mail from terminal to the outside world seemed a herculean task. The steps ..
$ sudo apt-get install scrot
$ sudo apt-get install heirloom-mailx
# to install certutil in enlightenement
$ sudo apt-get install libss3-tools
# Create a certificate directory$ mkdir .certs# Create a new database in the certs dir$ certutil -N -d .certs# Fetch the certificate from Gmail, saving in the text file GMAILCERTecho -n | openssl s_client -connect smtp.gmail.com:465 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > GMAILCERT# Import the new cert file into the new database in the new dir. enter password when prompted
$ certutil -A -n “Google Internet Authority” -t “C,,” -d .certs -i GMAILCERT# Double Check$ certutil -L -d .certs
Certificate Nickname Trust AttributesSSL,S/MIME,JAR/XPIGoogle Internet Authority C,,edit ~/..mailrc fileaccount gmail {set smtp-use-starttlsset ssl-verify=ignoreset nss-config-dir=~/.certsset smtp=smtp://smtp.gmail.com:587set smtp-auth=yourusername@gmail.comset smtp-auth-user=you@gmail.comset smtp-auth-password=your_gmail_passwsordset from=”you@gmail.com“}Testing mail Config
echo “Test Email” | mailx -v -A gmail -s “test” testing@example.com
1 Comment