SUNScholar/Upgrading/Server Software/Step 3
Jump to navigation
Jump to search
Back to Upgrading Server
Contents
STEP 3 - Check automation
"apticron" setup
To setup emails alerts for required software security upgrades, type the following in a terminal after logging into the server:
sudo -i
apt-get install apticron
Edit the apticron config to specify the alert recipient:
nano /etc/apticron/apticron.conf
Modify the file to send email to the "root" account. See example below.
# apticron.conf # # set EMAIL to a space separated list of addresses which will be notified of # impending updates # EMAIL="root"
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
Email setup
Ensure that there is a "root" email alias in the "/etc/aliases" file.
nano /etc/aliases
See example below.
# See man 5 aliases for format postmaster: root root: hgibson@sun.ac.za clamav: root dspace: hgibson@sun.ac.za
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
To activate the new alias, type the following:
newaliases
Automatic software updates
You can setup automatic updates, however you do this at your own risk.