From e00b2febe78afb538fae1d528846e1a8eb67d92a Mon Sep 17 00:00:00 2001 From: Peter Lilley Date: Sat, 30 Jan 2021 09:49:51 +1100 Subject: [PATCH] Adjust block levels --- .../ROOT/pages/_partials/proc_changing-the-hostname.adoc | 9 +++++---- modules/ROOT/pages/changing-hostname.adoc | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc b/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc index fa8df42..2fef2ea 100644 --- a/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc +++ b/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc @@ -15,6 +15,7 @@ You can replace the value in the Device name field with the name of your choosin * If you enter a name that is more descriptive, contains mixed-case and other types of characters, this will set the pretty name, and a static name will be derived from that automatically. You can see the effect of the change by running the `hostnamectl status` command again: + ``` Static hostname: emilys-2nd-dev-laptop Pretty hostname: Emily's 2nd dev laptop @@ -26,13 +27,13 @@ You can see the effect of the change by running the `hostnamectl status` command CPE OS Name: cpe:/o:fedoraproject:fedora:33 Kernel: Linux 5.10.10-200.fc33.x86_64 Architecture: x86-64 -```` +``` + In the above example, "Emily's 2nd dev laptop" was entered via the Settings app, and the static hostname "emilys-2nd-dev-laptop" was set automatically. -The hostnames can also be set via the `hostnamectl` command. For example: +Hostnames can also be set at the command line with the `hostnamectl set-hostname` command. For example: + ``` sudo hostnamectl set-hostname --pretty "Emily's 2nd dev laptop" sudo hostnamectl set-hostname --static emily-dev-2 ``` - - diff --git a/modules/ROOT/pages/changing-hostname.adoc b/modules/ROOT/pages/changing-hostname.adoc index 61338c5..cf18e88 100644 --- a/modules/ROOT/pages/changing-hostname.adoc +++ b/modules/ROOT/pages/changing-hostname.adoc @@ -12,9 +12,9 @@ There are three variations of a hostname in a Fedora system: . An optional **pretty** name can be longer and more descriptive, like "Emily's 2nd dev laptop". . A **transient** name is assigned by the network. It is probably going to be the same as the static name, unless there are multiple hosts with the same static name on the local network. For example, if there are two hosts both with static name `localhost`, one machine may be assigned a transient name of `localhost-1`. -include::{partialsdir}/proc_displaying-current-hostname.adoc[leveloffset=+1] +include::{partialsdir}/proc_displaying-current-hostname.adoc[leveloffset=0] -include::{partialsdir}/proc_changing-the-hostname.adoc[leveloffset=+1] +include::{partialsdir}/proc_changing-the-hostname.adoc[leveloffset=0] ifdef::parent-context[:context: {parent-context}] ifndef::parent-context[:!context:]