From cc661a78b6fbd4f849b91d9b90c1f848746049d9 Mon Sep 17 00:00:00 2001 From: Peter Lilley Date: Sat, 30 Jan 2021 22:34:14 +1100 Subject: [PATCH] updated literal blocks --- .../ROOT/pages/_partials/proc_changing-the-hostname.adoc | 8 ++++---- .../pages/_partials/proc_displaying-current-hostname.adoc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc b/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc index 46810fe..5a746d2 100644 --- a/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc +++ b/modules/ROOT/pages/_partials/proc_changing-the-hostname.adoc @@ -17,7 +17,7 @@ You can replace the value in the Device name field with the name of your choosin 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 Icon name: computer-laptop @@ -28,13 +28,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. 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/_partials/proc_displaying-current-hostname.adoc b/modules/ROOT/pages/_partials/proc_displaying-current-hostname.adoc index 2ec4f22..cda80dd 100644 --- a/modules/ROOT/pages/_partials/proc_displaying-current-hostname.adoc +++ b/modules/ROOT/pages/_partials/proc_displaying-current-hostname.adoc @@ -12,9 +12,9 @@ image::displaying-current-hostname-1.png[GNOME Settings - About] To see the hostname from the command line, use the command `hostnamectl` with no options. The output below shows the static and pretty hostnames: -``` - Static hostname: emilys-2nd-dev-laptop - Pretty hostname: Emily's 2nd dev laptop +.... + Static hostname: localhost.localdomain +Transient hostname: fedora Icon name: computer-laptop Chassis: laptop Machine ID: 15fc9e69d007013025f31bc5272c4ed1 @@ -23,6 +23,6 @@ To see the hostname from the command line, use the command `hostnamectl` with no CPE OS Name: cpe:/o:fedoraproject:fedora:33 Kernel: Linux 5.10.10-200.fc33.x86_64 Architecture: x86-64 -``` +.... To see the current transient hostname, you can use the command `hostnamectl --transient`. In many cases this will simply be the static name, unless a naming collision with another host has forced a change.