How to Change Device Name in Ubuntu Settings

When you install Ubuntu, the installer prompts you to assign a hostname to your machine. Over time, as hardware changes, laptops are reassigned, or network configurations evolve, having a generic name like “ubuntu-desktop” or an outdated label can make identifying your device difficult across local Wi-Fi networks, router client lists, and Bluetooth discovery menus.

While Linux server administrators frequently edit /etc/hostname from the terminal, desktop users can change their computer’s public name in seconds using Ubuntu’s graphical interface. Here is how to change your device name in Ubuntu Settings.


Step-by-Step: Changing Device Name in Ubuntu GUI

  1. Open the Settings application from your Ubuntu dock or press the Super key (Windows key) and type “Settings”.
  2. In the left-hand navigation sidebar, scroll down to the bottom and click on System (or About in older Ubuntu versions).
  3. Click on About to view your system specifications and identity.
  4. Locate the Device Name field at the top of the About card.
  5. Click directly into the text field (or click the small pencil edit icon next to the current name).
  6. Type your new desired computer name (for example, Office-ThinkPad or Home-Ubuntu-PC).
  7. Click Rename or press Enter to confirm.

Ubuntu updates your system hostname immediately. Your new device name is instantly visible to network routers, network shares, and Bluetooth pairings without needing a system reboot.


Rules for Choosing a Valid Linux Hostname

To prevent conflicts with local domain name resolution (mDNS) and network protocols, follow standard naming conventions when choosing a device name:

  • Use letters (a-z, A-Z), numbers (0-9), and hyphens (-).
  • Avoid spaces, punctuation, underscores, or special characters.
  • Do not begin or end the name with a hyphen.
  • Keep the name under 63 characters for broad network compatibility.

Verifying the Change in the Terminal (Optional)

If you occasionally use the command line and want to verify that the underlying system files were updated synchronously by the GNOME interface:

  1. Press Ctrl + Alt + T to open the Terminal.
  2. Run the following command:
    hostnamectl
  3. Review the output. The Static hostname and Pretty hostname will reflect your newly chosen device name.

Frequently Asked Questions

Will changing my device name break installed software or personal files?

No. Personal documents, application data, user accounts, and home directories remain entirely unaffected by a hostname change.

Does renaming my device change my username?

No. Your login username, user account directory (/home/username), and password remain completely separate and unchanged.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.