If you want you can change your Linux hostname. This will work on almost all Linux distributions. In case it doesn’t check the documentation that comes with your distro or contact someone on the support forums. Here are the instructions to do so:
Instructions
1) Open a terminal or go to the shell and type “sudo” without the brackets. You will be prompted to enter the root password. Enter the root password and you will be become the superuser.
2) Using the text editor of your choice edit /etc/hostname and replace the old hostname with the new hostname. I prefer to use vi, you may use emacs or pico or some other text editor. Once you have replaced the old hostname, save the file and exit.
Alternatively, you can also type “hostname -F /etc/hostname” to change the hostname. However, this command may differ depending on your distro.
You can also rename your hostname by typing “sudo hostname newname”. Replace “newname” with your desired hostname.
3) Restart your computer and check if your new hostname is visible of not. If it is not visible, try the instructions again. You might have gone wrong somewhere!
Warnings and Precautions
# Be careful when doing anything as superuser. You can delete system files as a superuser and so be very careful. If you delete system files, you system may become unbootable.
# Logout of superuser mode when you are done. You can do this by typing “exit” at the command prompt.
