Archive for security

avoiding disaster during a power cut

To avoid a disaster and/or data loss during a power cut it is necessary to use an uninterruptible power supply (UPS).
A UPS is basically a battery which holds a charge big enough to power your computer system in the event of power loss as a result of a power cut.
UPS’s come in various sizes. The [...]

Read more

osx terminal lsbom command

lsbom can be used to examine the contents of a Mac OS X installer (.pkg)
It will give you a very detailed view of all the files a package intends to install on your Mac.
From the osx terminal just type
lsbom .pkg/Contents/Archive.bom> | more
If your installer came as a disk image then you can copy the .dmg [...]

Read more

get notified instantly when someone logs into your server as root

It’s best to use an email address not hosted on the server your sending the alert from.
1. Login into your server via ssh and su to root (or log in as root – not advisable)
2. cd /root
next edit .bashrc with your preferred editor, Im going to use vi
3. vi .bashrc
4. add the following to the [...]

Read more