Sometimes, the size of / (root) mount is limited and in result some processes requiring large /tmp may fail. This can be solved by setting environmental variable TMPDIR:
mkdir -p /home/$USER/tmp
TMPDIR=$(mktemp -d /home/$USER/tmp/XXXX)
export TMPDIR TMP TEMP
More info on serverfault.
I wanted to send email reports from my computers. For that, the easiest is to create additional Gmail account (so your private email is safe) and set-up SSMTP:
sudo apt-get install ssmtp mailutils mpack
Configure SSMTP: comment all lines in /etc/ssmtp/ssmtp.conf and add at the end (replacing HOSTNAME/USER/PASSWORD with your info):
Then, allow access from less secure apps to created Gmail account. It’s strongly recommended not to use your private account for that purpose!
And send emails:
echo "email body" | mail -s "Test email from "`hostname` SOMEUSER@gmail.com
Note, this works perfectly fine in Ubuntu, as well as in Raspberry Pi.
sudo apt-get install fortune-mod cowsay
fortune | cowsay
/ Don't let your mind wander -- it's too \
\ little to be let out alone. /