SCIENTIFIC-LINUX-USERS Archives

February 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Troy Dawson <[log in to unmask]>
Reply To:
Troy Dawson <[log in to unmask]>
Date:
Mon, 28 Feb 2011 15:28:54 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
On 02/28/2011 02:40 PM, Kai Heide wrote:
> Hi all,
>
> my hostname won't be set and I don't know why!
>
>
> [root@localhost ~]# cat /proc/cmdline
> ro root=/dev/mapper/vg_justice4all-lv_root
> rd_LUKS_UUID=luks-d830f8fe-41d4-4fc7-837a-7a2c1520bbe8
> rd_LVM_LV=vg_justice4all/lv_root rd_LVM_LV=vg_justice4all/lv_swap
> rd_NO_MD rd_NO_DM LANG=de_DE.UTF-8 SYSFONT=latarcyrheb-sun16
> KEYBOARDTYPE=pc KEYTABLE=de-latin1-nodeadkeys rhgb quiet
> hostname=justice
>
> [root@localhost ~]# cat /etc/hosts
> 192.168.2.112	noname	# Added by NetworkManager
> 127.0.0.1	localhost.localdomain	localhost
> ::1	noname	localhost6.localdomain6	localhost6
>

If you edit

/etc/sysconfig/network

and edit the HOSTNAME to be what you want the hostname to be.

That's what I always do.  but then, with SL6, I also edit /etc/hosts as 
well.
I haven't gone through RedHat's documentation on what the official way 
is nowdays.
Troy
-- 
__________________________________________________
Troy Dawson  [log in to unmask]  (630)840-6468
Fermilab  ComputingDivision/SCF/FEF/SLSMS Group
__________________________________________________

ATOM RSS1 RSS2