April 19, 2009

Set the time / timezone on centos/Redhat

Alright… I know this is a trival matter, but you would be surprised how often I read, hear, got asked this question

so here it is …

1) get ntp

yum install ntp

2) start ntp at boot

chkconfig ntp on

3) sync to the ntp server

ntpdate ntp.pool.org

4) start ntp

service ntpd start

5) set your timezone

ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

6) verify it is all correct

date

— enjoy!

Cheers,

Ali