1. backup the /etc/hosts and /etc/hostname.interface files.
2. add the hostname entry in the /etc/hosts file.
3. mv the old /etc/hostname.interface to /etc/new_hostname.interface
4. on the command line hostname hostname
exit from the terminal and login back. You should see the new hostname now.
Change the PS1 value for the login prompt:
PS1="\u@\h: \W $ "
No comments:
Post a Comment