Ubuntu/22

From Omnia
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