There are several ways to have a linux box email you when someone logs in to it. Most of these use a script in either the local profile files (for individual users) or the system-wide profile (and/or in sshrc). Another nice way is to use the pam authentication system to do the job. A setup is given at:
http://blog.stalkr.net/2010/11/login-notifications-pamexec-scripting.html
Brief setup
Assuming Debian here.
Make sure the system is set up to talk to an email server and has some way of sending emails from the command line. The script here assumes the mailx package is installed.
Read more...
Ubuntu 13.10 (and possibly 13.04) seem to have a problem with self-signed certificates when authenticating to wireless radius servers (i.e. the GUPHYSICS wifi). This is discussed in a variety of places:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1104476
The problem seems to be that the Network Manager setup is adding the line:
system-ca-certs=true
to
/etc/NetworkManager/system-connections/GUPHYSICS
even if you tick ignore when the system asks about certs the first time. Changing the value of the setting to false seems to fix this, although there is a possibility that it might get changed back by NM. (or delete the setting entirely, which seems to have happened on this laptop. Hmmm)
Read more...
The array_multisort function in php allows you to sort several arrays at the same time. How it works is:
- Sort first array by key value (depending on arguments)
- If there are any identical keys in the first array, sort these by the keys in the second array (assuming it is specified)
- etc.
The documentation for this isn’t particularly clear.
(Copied from https://www.dokuwiki.org/plugin:mathjax)
NOTE that the default configuration uses $ (dollar signs) to delimit TeX formulas. This may cause trouble if you have $ characters in any pages. The default configuration also lets you escape the dollar signs, however, by changing them to ”$”. This should correct any problems you might have.
Once the plugin is installed, you can write TeX formulas in your wiki with the following syntax (by default — all delimiters are configurable):
Read more...
After properly configuring postfix on the Proxmox hosts to send email, emails to root were noticed daily:
/etc/cron.daily/mlocate:
/usr/bin/updatedb.mlocate: `/var/lib/mlocate/mlocate.db' is locked (probably by an earlier updatedb)
run-parts: /etc/cron.daily/mlocate exited with return code 1
After logging on to one of the boxes, killing (-9) the updatedb process and running it with verbose on:
The output indicated it was hanging on one of the /mnt directories. Looking at the output of mount a couple of old nfs shares were noticed, that should have been deleted (and didn’t appear in the GUI). Unmounting these shares made updatedb run happily.
Read more...