Friday, May 9, 2014

change hostname in solaris 10 after fresh install.

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: