From 1c50a1346ac7bed7b5c88febe605532b5e908f6c Mon Sep 17 00:00:00 2001 From: Connor Lim Date: Jan 29 2021 08:38:42 +0000 Subject: Technical review securing system by keeping it up-to-date --- diff --git a/modules/ROOT/assets/images/software-updates.png b/modules/ROOT/assets/images/software-updates.png index 3e0c3b2..e5cc6ab 100644 Binary files a/modules/ROOT/assets/images/software-updates.png and b/modules/ROOT/assets/images/software-updates.png differ diff --git a/modules/ROOT/pages/_partials/proc_manual-updating-using-cli.adoc b/modules/ROOT/pages/_partials/proc_manual-updating-using-cli.adoc index 3d05d1f..d4b9837 100644 --- a/modules/ROOT/pages/_partials/proc_manual-updating-using-cli.adoc +++ b/modules/ROOT/pages/_partials/proc_manual-updating-using-cli.adoc @@ -8,12 +8,10 @@ package manager. [discrete] == Procedure -Use the following commands as the `root` user or under the `sudo` utility. - * Upgrade the system: + ---- -# dnf upgrade +sudo dnf upgrade ---- + Confirm to download the available packages. diff --git a/modules/ROOT/pages/_partials/proc_manual-updating-using-gui.adoc b/modules/ROOT/pages/_partials/proc_manual-updating-using-gui.adoc index 0839ace..483be59 100644 --- a/modules/ROOT/pages/_partials/proc_manual-updating-using-gui.adoc +++ b/modules/ROOT/pages/_partials/proc_manual-updating-using-gui.adoc @@ -8,8 +8,10 @@ This section describes how to manually download and install new updates by using . Hover the cursor over the upper-left corner of the screen and type "Software" and select the Software application to open it. -. Click the btn:[Updates] button. +. Click the btn:[Updates] button to view the available updates. -. After the updates are downloaded click the btn:[Restart & Update] button. +. Click the btn:[Download] button to download new updates. + +. After the updates are downloaded click the btn:[Restart & Update] button. Your system will restart to perform the upgrade. image::software-updates.png[Updating by using the Software application] diff --git a/modules/ROOT/pages/_partials/proc_setting-automatic-updates.adoc b/modules/ROOT/pages/_partials/proc_setting-automatic-updates.adoc index a07cc8e..34c219b 100644 --- a/modules/ROOT/pages/_partials/proc_setting-automatic-updates.adoc +++ b/modules/ROOT/pages/_partials/proc_setting-automatic-updates.adoc @@ -10,12 +10,10 @@ This section describes how to use the DNF Automatic application to automatically [discrete] == Procedure -Use the following commands as the `root` user or under the `sudo` utility. - . Install the [package]_dnf-automatic_ package: + ---- -# dnf install dnf-automatic +sudo dnf install dnf-automatic ---- . Edit the [filename]`/etc/dnf/automatic.conf` configuration file as needed. See the http://dnf.readthedocs.io/en/latest/automatic.html[DNF Automatic] documentation for details. @@ -24,8 +22,7 @@ Use the following commands as the `root` user or under the `sudo` utility. + [literal,subs="+quotes,attributes"] ---- -# systemctl enable _timer_ -# systemctl start _timer_ +sudo systemctl enable --now _timer_ ---- + Replace `_timer_` with one of following ones depending on what action you want to do: @@ -33,33 +30,34 @@ Replace `_timer_` with one of following ones depending on what action you want t -- * `dnf-automatic-install.timer` to download and install packages * `dnf-automatic-download.timer` to only download packages -* `dnf-automatic-notifyonly.timer` to only get a notification using configured emitters in the [filename]`/etc/dnf/automatic.dnf` file. +* `dnf-automatic-notifyonly.timer` to only get a notification using configured emitters in the [filename]`/etc/dnf/automatic.conf` file. -- + For example: + ---- -# systemctl enable dnf-automatic-install.timer -Created symlink /etc/systemd/system/basic.target.wants/dnf-automatic-download.timer → /usr/lib/systemd/system/dnf-automatic-download.timer. -# systemctl start dnf-automatic-install.timer +sudo systemctl enable --now dnf-automatic-install.timer +Created symlink /etc/systemd/system/timers.target.wants/dnf-automatic-install.timer → /usr/lib/systemd/system/dnf-automatic-install.timer. ---- . Ensure that the timer has been successfully enabled and started: + [literal,subs="+quotes,attributes"] ---- -# systemctl status _timer_ +sudo systemctl status _timer_ ---- + Replace `_timer_` with the timer from the previous step, for example: + ---- -# systemctl status dnf-automatic-install.timer -● dnf-automatic-download.timer - dnf-automatic-download timer - Loaded: loaded (/usr/lib/systemd/system/dnf-automatic-download.timer; enabled; vendor preset: disabled) - Active: active (waiting) since Thu 2017-12-14 11:33:14 CET; 7s ago +sudo systemctl status dnf-automatic-install.timer +● dnf-automatic-install.timer - dnf-automatic-install timer + Loaded: loaded (/usr/lib/systemd/system/dnf-automatic-install.timer; enabled; vendor preset: disabled) + Active: active (waiting) since Fri 2021-01-29 14:50:22 +08; 1s ago + Trigger: Sat 2021-01-30 06:05:57 +08; 15h left + Triggers: ● dnf-automatic-install.service -Dec 14 11:33:14 mazlik systemd[1]: Started dnf-automatic-download timer. +Jan 29 14:50:22 localhost.localdomain systemd[1]: Started dnf-automatic-install timer. ---- [discrete] diff --git a/modules/ROOT/pages/securing-the-system-by-keeping-it-up-to-date.adoc b/modules/ROOT/pages/securing-the-system-by-keeping-it-up-to-date.adoc index 7aee569..614764b 100644 --- a/modules/ROOT/pages/securing-the-system-by-keeping-it-up-to-date.adoc +++ b/modules/ROOT/pages/securing-the-system-by-keeping-it-up-to-date.adoc @@ -6,13 +6,11 @@ include::{partialsdir}/attributes.adoc[] [id='securing-the-system-by-keeping-it-up-to-date'] = Securing the system by keeping it up-to-date -include::{partialsdir}/unreviewed-message.adoc[] - This section explains: -* Why it is important to update your system regularly (xref:securing-the-system-by-keeping-it-up-to-date.adoc#why-it-is-important-to-keep-your-system-up-to-date[Why it is important to keep your system up-to-date]) -* How to apply updates manually by using GUI or CLI (xref:securing-the-system-by-keeping-it-up-to-date.adoc#manual-updating-using-cli[Manual updating using CLI]) -* How to enable automatic updates (xref:securing-the-system-by-keeping-it-up-to-date.adoc#setting-automatic-updates[Setting automatic updates]) +* xref:securing-the-system-by-keeping-it-up-to-date.adoc#why-it-is-important-to-keep-your-system-up-to-date[Why it is important to update your system regularly] +* How to apply updates manually by using the xref:securing-the-system-by-keeping-it-up-to-date.adoc#manual-updating-using-gui[GUI] or xref:securing-the-system-by-keeping-it-up-to-date.adoc#manual-updating-using-cli[CLI] +* xref:securing-the-system-by-keeping-it-up-to-date.adoc#setting-automatic-updates[How to enable automatic updates] include::{partialsdir}/con_why-it-is-important-keeping-your-system-up-to-date.adoc[leveloffset=+1]