Clock And Timezone Setup

Clock and timezone set up

Change timezone permanently

cat /etc/sysconfig/clock
dateconfig
mv /etc/localtime /etc/localtime`date +%d%m%g`
ln -s /usr/share/zoneinfo/Europe/Madrid /etc/localtime

ntp setup:

yum install ntp
chkconfig —levels 235 ntpd on
ntpdate 0.pool.ntp.org
/etc/init.d/ntpd start

reboot to check.
Add to the calendar the relevant DST (summer/winter time changes) to be aware of them and be able to forecast processes that need to be changed with enough time.

see http://www.vanemery.com/Linux/RH-Linux-Time.html

In redhat there is a console tool to configure most services and parameters, although I prefer to do things manually. This tool is invoked by the command

config

System clock - hardware clock

NTP manual

back to Linux Documents

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License