Re: CentOS 6: hostname and timezone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



For changing the hostname without restart use the hostname command:
hostname newhost.domain.com

To keep the new hostname between restarts edit /etc/sysconfig/network, and
change the hostname there.

Also its a good idea to check /etc/hosts, it can contain the old hostname,
change/delete it.
 John Kennedy



On Tue, Oct 4, 2011 at 15:18, Alexander Farber
<alexander.farber@xxxxxxxxx>wrote:

> Hello,
>
> I've purchased a new dedicated CentOS 6.0 / 64 bit server
> and have 2 minor problems please:
>
> 1) The "hostname" is reported as CentOS-60-64-minimal at CLI -
>     eventhough I've edited /etc/hosts and changed the 2nd line:
>
> 127.0.0.1 localhost
> 176.9.123.123  preferans
>
> 2) Why is /etc/localtime a regular file? Should I maybe
>
> rm /etc/localtime
> ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
>
>   Why isn't it done by the CentOS 6.0 install?
>
> Thank you
> Alex
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux