Ubuntu/22

From Omnia
Revision as of 17:10, 26 September 2024 by Kenneth (talk | contribs) (Created page with "== Display == hostnamectl == Change == hostnamectl set-hostname example.net hostnamectl set-hostname "example production server" --pretty apt install cloud-init vim /etc/cloud/cloud.cfg preserve_hostname: true ref: https://wiki.crowncloud.net/?How_to_Change_Hostname_on_Ubuntu_22_04")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Display

hostnamectl

Change

hostnamectl set-hostname example.net
hostnamectl set-hostname "example production server" --pretty
apt install cloud-init
vim /etc/cloud/cloud.cfg
 preserve_hostname: true

ref: https://wiki.crowncloud.net/?How_to_Change_Hostname_on_Ubuntu_22_04