[lug] Using hostname
steve at badcheese.com
steve at badcheese.com
Wed Mar 28 08:07:17 MDT 2007
To do it in Fedora, just change /etc/sysconfig/network (HOSTNAME) and then
run the "hostname" command - or reboot.
- Steve
On Tue, 27 Mar 2007, Bill Thoen wrote:
> Date: Tue, 27 Mar 2007 17:37:53 -0600
> From: Bill Thoen <bthoen at gisnet.com>
> Reply-To: "Boulder (Colorado) Linux Users Group -- General Mailing List"
> <lug at lug.boulder.co.us>
> To: "Boulder (Colorado) Linux Users Group -- General Mailing List"
> <lug at lug.boulder.co.us>
> Subject: Re: [lug] Using hostname
>
> Michael J. Hammel wrote:
>> Hostname changes require a network restart. It may require a reboot,
>> but I'm not positive of that. Also, assuming a reboot is not necessary,
>> you need to logout of your GNOME session and then log back in. The
>> current session has probably cached the hostname in your terminal prompt
>> based on the original GDM login. New terminal windows inherit that
>> setting and don't actually query the system for it.
>>
> That was it. Hostname doesn't require a reboot, but I had to log out of my
> gnome session and log back in again. Then I could get a terminal window
> sporting my new hostname in the prompt. I also added the new name to
> /etc/hosts in front of localhost.localdomain. Them to make it permanent, I
> edited /etc/sysconfig/network and changed the HOSTNAME variable there to the
> same thing and rebooted. Everything came up smelling like roses!
>
> Thanks, folks!
> - Bill Thoen
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>
--
EMAIL: (h) steve at badcheese.com WEB: http://badcheese.com/~steve
More information about the LUG
mailing list