[CentOS] hostname on centos 7.1

Tue Apr 21 13:22:04 UTC 2015
Johnny Hughes <johnny at centos.org>

On 04/21/2015 07:43 AM, Jerry Geis wrote:
> I have a file /etc/sysconfig/network and in the file is
> 
> cat  /etc/sysconfig/network
> # Created by anaconda
> HOSTNAME=zotac_c7.msgnet.com
> [root at localhost ~]#
> 
> I rebooted and the prompt is still localhost ?
> 
> What is the new thing in CentOS 7 to set the host name
> such that then the prompt is correct also?

Jerry,

That only works if you use the network  service and not if you use
NetworkManager.

How to set the host name in Network Manager:
http://www.itzgeek.com/how-tos/linux/centos-how-tos/change-hostname-in-centos-7-rhel-7.html

I know, you don't like it .. neither do I.  It is what it is, however.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20150421/6291e6b1/attachment-0004.sig>