admin adventure

the ongoing struggle: man vs machine

Update Alerts via Email in Debian Squeeze (apticron)

 

We all know life is busy for us system administrators. Keeping servers updated is generally a good security practice, but is often overlooked due to more pressing concerns. This can often be especially true for the trusty linux servers that sit in the corner and never cause a problem.

This short tutorial will guide you through setting up the apticron tool to alert you when updates are available for debian.

It relies on the server being able to send emails, so ensure that this is possible through exim, postfix or sendmail first.

 

1. Open terminal as root

image

image

2. run command apt-get install apticron

image

3. Edit the configuration file with nano.

nano /etc/apticron/apticron.conf

 

image

 

4. Change EMAIL=”root” to a valid email address. Note that quotes must remain around the email address.

image

image

5. Press CTRL-O to save, then CTRL-X to quit nano.

 

All done. You will now receive a daily email with the required updates.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: