Suse Linux Change Hostname (computer name) without yast

https://w‮w‬w.lautturi.com
Suse Linux Change Hostname (computer name) without yast

To change the hostname of your Suse Linux system without using the YaST utility, you can follow these steps:

  1. Open a terminal window.

  2. Use the hostnamectl command to set the new hostname. For example:

sudo hostnamectl set-hostname newhostname
  1. Edit the /etc/hosts file and update the hostname entry. For example:
127.0.0.1 localhost newhostname
  1. Edit the /etc/HOSTNAME file and update the hostname. For example:
newhostname
  1. Reboot your system to apply the changes.

Note: The steps above assume that you have root access to your system. If you do not have root access, you will not be able to make these changes.

Created Time:2017-10-30 14:27:21  Author:lautturi