Monday, February 11, 2013

How to Change Your Linux Hostname

You may want to change the name of your Linux box system from time to time. This should work on most, if not all Linux distributions.

Steps:
  1. Gain root access either through the sudo command or frontend of sudo, (e.g kdesudo, gksudo). You will need to run a text editor (console or desktop based).
  2. Edit /etc/hostname and replace it with a new hostname. Save the file.
  3. Run "hostname -F /etc/hostname" (without quotes) to change the hostname (this command may vary depending on the distribution you are using).
  4. Restart your computer if you do not see the effect, it will not be changed immediately in bash shells.
 (Source: www.wikihow.com)
 

No comments:

Post a Comment

please comments polite and hopefully useful for science...