Skip to main content

Ubuntu v24 Host Setup

Setting the Host Name

Get the current hostname with this: 

hostnamectl

image.png

To set it, use this:

sudo hostnamectl set-hostname new-hostname (replace new-hostname)

Once set, confirm it with the previous command.

Now, you need to update the hostname in your hosts file, with this: 

sudo nano /etc/hosts

Save the hosts file after update.

Static IP Address

See this page to set a static IP address: Ubuntu: Setup Static IP Address