Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
Actually it is working now, thank you all! [root@preferans afarber]# cat /etc/sysconfig/clock ZONE="Europe/Berlin" [root@preferans afarber]# /etc/init.d/ntpd status ntpd (pid 1365) is running... [root@preferans afarber]# /sbin/hwclock Tue 04 Oct 2011 07:10:06 PM CEST -0.797338 seconds [root@pref

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread ken
On 10/04/2011 10:33 AM Alexander Farber wrote: > And also, which /etc/localtime do I have now? > > ... Please run these commands and copy-paste them w/ output back to me: cat /etc/sysconfig/clock /etc/init.d/ntpd status /sbin/hwclock date ___ CentOS m

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread lhecking
Alexander Farber writes: > Actually I already seem to have the correct timezone file, > but why is the time wrong? > > > afarber@CentOS-60-64-minimal:~> sudo diff > /usr/share/zoneinfo/Europe/Berlin /etc/localtime > > afarber@CentOS-60-64-minimal:~> date > Wed Oct 5 00:35:39 CEST 2011 > > Shou

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
Actually I already seem to have the correct timezone file, but why is the time wrong? afarber@CentOS-60-64-minimal:~> sudo diff /usr/share/zoneinfo/Europe/Berlin /etc/localtime afarber@CentOS-60-64-minimal:~> date Wed Oct 5 00:35:39 CEST 2011 Should I: chkconfig ntp on service ntp start

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
And also, which /etc/localtime do I have now? Is there a way to find out besides running "diff"? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
Thank you all, On Tue, Oct 4, 2011 at 4:26 PM, lists-centos wrote: >  2 - you can do the symbolic link, but i believe that RH moved >     away from that approach for some reason. the appropriate >     TZ file is copied to /etc/localtime when the TZ is selected >     on install or changed. is the

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread John Kennedy
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

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread John Kennedy
On Tue, Oct 4, 2011 at 15:22, John Kennedy wrote: > 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/

[CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread Alexander Farber
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/localtim