Skip to content

Commit

Permalink
Added guide for server update
Browse files Browse the repository at this point in the history
  • Loading branch information
MichiBaum committed Oct 17, 2024
1 parent 34d695d commit 6aeeca1
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Never trust things you haven't done yourself.
- [java](./java/README.md)
- [spring](./java/spring/README.md)
- [it-sec](./it-sec/README.md)
- [git](./git/README.md)
- [programming](./programming/README.md)
- [server](./server/README.md)

## Collaborators

Expand Down
9 changes: 9 additions & 0 deletions server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Server


## Updates
- [Update](./update.md)
- [Automatic update](./atomatic_updates.md)

## Resources
- [Resources](./resources.md)
17 changes: 17 additions & 0 deletions server/atomatic_updates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Automatic server updates with cron-apt

## Install cron-apt

apt install cron-apt


## Configuration

All of the configuration files for cron-apt are located in the directory “/etc/cron-apt/” and the default crontab entry is located at “/etc/cron.d/cron-apt.” To change the frequency in which cron-apt checks for updates you will need to edit the crontab entry.
To configure cron-apt to send e-mail notifications, open the file “/etc/cron-apt/config” and adjust the following variables.

# Configuration for cron-apt. For further information about the possible
# configuration settings see /usr/share/doc/cron-apt/README.gz.

MAILON="always"
MAILTO="sysadmin@example.com"
33 changes: 33 additions & 0 deletions server/update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Update Server

Guide to update Debian-based server systems.

## Update package lists

sudo apt update

## Perform system upgrades

sudo apt upgrade
sudo apt dist-upgrade

## Reboot server

sudo reboot











## List all installed packages with versions

dpkg -l

dpkg -l | grep '^ii'

0 comments on commit 6aeeca1

Please sign in to comment.