How to change computer name
Duane Attaway
dattaway at dattaway.org
Sat Feb 1 02:59:45 CST 2003
On Fri, 31 Jan 2003, Joe-Cho wrote:
> I thought changing compute name on Solaris is just changing /etc/hosts,
> but it is not simple.
It is simple! Just do it the way init scripts do it.
Your init scripts set the hostname of your computer with the contents in
/etc/hosts with the "hostname" command:
hostname this.is.my.domain.com
This changes the hostname for the computer; however, this does not
automatically change the HOSTNAME environment variable in each currently
opened shell. New shells will inherit the the new hostname, but
applications may still grab the old hostname from currently existing
terminals. Manually change this with:
export HOSTNAME=this.is.my.domain.com
...if you don't wish to restart your terminals.
--
Why drive a car when you can ride a bike?
http://dattaway.org http://counter.li.org user #142150
More information about the Kclug
mailing list