CentOS Linux install and configure NTP to synchronize the system clock

Posted by Jiltin     18 November, 2008    4,208 views   

You can easily install NTP (Network Time Protocol, a means of transmitting time signals over a computer network) using yum command under Redhat or CentOS/Fedora core Linux.

Login as the root user

Type the following command to install ntp

# yum install ntp

Turn on service

# chkconfig ntpd on

Synchronize the system clock with 0.pool.ntp.org server:

# ntpdate pool.ntp.org

Start the NTP:

# /etc/init.d/ntpd start

Note: If you are using VPS (anything other than dedicated server), you will see this issue repeatedly.In such case, it is better to use ntpupdate with crontab utility instead of nptd service – which may fail to work sometimes. I am writing as many users are having the same issue.

Here is how to implement:

Stop the ntpd processes

# chkconfig ntpd off
# /etc/init.d/ntpd stop

Create a shell script like this
>vi synctime

#!/bin/bash
/usr/sbin/ntpdate ntp.xs4all.nl

Add an entry in cron job
>crontab -e

#min hour day_of_month month day_of_week  user   command
*/05 * * * * /home/work/scripts/crons/synctime > /dev/null 2>&1

It runs every five minutes and you are done!

Following Google Searches Lead To This Post: ntp rhel5
set ntp server RHEL5
centos setting up system clock
simple ntp server setup
setting up system clock centos issues
script to sync your time centos
fedora 11 configure as ntp server
ntp, centos, +crontab
adding ntp servers centos
configure linux to sync to windows ntp server
installing ntp on oracle linux
how to stop updating in linux centos
centos yum ntpdate
centos 5 ntp client
rhel5 sync time
centos time synchronization
ntp client rhel
how to make ntp work on centos
set centos to use ntp server
configure clock auto sync rhel
ntpdate centos
centos comment configurer serveur ntp
fedora ntp time sync startup
xntp centos
centos enable ntp cron.daily
centos time server for internal network
centos 5 ntp on boot
centos xen ntp
ntp startup jam
Bash shell script for ntp time synch
linux ntp crontab
centos how to configure system clock
configuring Red Hat Linux Fedora Core 2 for NTP
centos timserver
centos synchronize time yum
how to set clock on centos 5
cofigure ntp server redhat
how to install cron centos
how to configure date centos with shell
rhel to windows ntp
centos sync time server
howto install xclock linux redhat
how do i install ntp on redhat linux
ntpdate centos xen
centos xntpd
centos ntp start boot
centOS, xclock
centos ntp commands
configure centos date
Linux scripts for syncing time
centos ntpdate
crontab synx ntp
ntpdate at boot centos
synchronize ntp linux
centos ntpd client
setting up an local ntp server centos
howto sync REHL with ntp
rhel sync time with windows
ntpd centos howto
rhel sync time windows server
instalar cliente ntp centos
shell on startup centos
xntp for rhel
how to configure ntp client with xen
centos how to stop ntp
centos how to keep clock synced with ntp
how configure time automatic centos
how to time synchronization set in cent os server
how to set up ntp server centod
centos как обновить через ntp
global ntp client for centos 5
linux ntp настройка centos
xntpd for rhel 5
Setting up a standalone NTP server linux
yum install system clock
yum install clock centos setup
how to install cron on centos
clock server in centos
how to install ntp on centos 5
configuring centos startup
sync centos system clock off by 1 hour
ntp function in rhel5
fedora 11 crontab ntpdate
change ntp server centos
oracle linux ntp
linux yum install crontab
crontab ntp
configure centos ntp server
howto cron ntp
how to synchronize time using a NTP server on centos
como configurar ntpd
sync time centos
configure ntp unix
centos ntpdate -u -q -p 2
companies to install NTP server
centos time
how to install ntpdate in linux
centos link to ntp server
centos ntp crontab
linux fedora 11 ntp to windows server
ntpdate rpm centos
linux NTP set RHEL
centos ntpdate on boot
network time protocol centos
how to configure ntpdate in linux from windows
script to update ntpd cron
how to configure ntp in centos
centos change system locale
linux rhel ntp
xclock -display :0 fedora 11 live install
server configure ntp centos
Enable NTP service centos
set clock ssh centos
How to set NTP update time auto
configurar NTP linux centos
centos auto syncronise the time
xen centos systemtime minutes behind
CentOS 5 ntpdate
centos system clock
concept of cronjob in rhel5.1
update ntp + crontab
enable ntpd service in linux 10
how to install offline ntp on fedora 11
rhel5 ntpd rpm
rhel Synchronizing timeserver
centos time sync
centos change time yum install ntp
configure ntp service on redhat 5
centos add ntp chkconfig
ntp boot startup Red Hat Enterprise Linux Server
stop ntp client centos
fedora ntp server
Oracle Enterprise Linux 4 NTP install
linux date update ntp centos
ntpdate centos localtime
ntpdate centos 1 hour off
linux ntp pool “set clock”
linux ntp autosync
rhel5 ntpd not sync
centos ntpdate rpm
linux sync time ntp crontab
install ntp on centos
how+to+install+ntp+on+xen
configure ntpd fedora 11
add ntp to startup centos
ntp command for cron redhat
centos ntp install
red hat linux 4 install ntp client+
crontab + configuracion
centos ntpd is stopped
ntpdate crontab notwork centos
linux clock set ntpd
centos sync time with timeserver
rhel ntpdate rpm
centos xen ntpdate clock
centos synchronize clock
centos set system locale
rhel time sync
linux fedora sync time
ntp centos
RHEL 4 install ntp
“redhat” and “configure ntp client”
impact of ntpdate on linux
configure ntp centos
centos synchronize time
ntpdate in crontab example linux
implement ntp server on redhat5
ntp linux config hp
konfig centos ntp
centos set clock
ntpd configure to synchronize on boot
configure ntpdate on linux
how to install cron job on centos
centos xen time sync
install crontab centos
how to setup ssh client programs on centos
configure ntpd xen
cento ntp commands
auto sync clock with linux using shell
“/home/scripts/synctime > /dev/null 2>&1)”
centos startup job
comment to NTP server-rhel5
linux pool.ntp.org
setup ntp client fedora 11
centos set clock date
instalar cron en centos
ntp automatic centos
setting ntp di redhat
centos time sync command
centos sync time
centos crontab email settings
centos system time
time synchronization centos
set up ntp client linux red hat
configure NTP in bash
synchronize time centos
centos ntpdate start
rpm ntpdate rhel5
linux ntpdate autoupdate
centosntp time server set up
change date time linux centos
ntp update command in linux
“RHEL” “ntpd” “sync” “time” “every”
linux – ntp client configuration in rhel5
rhel5 ntpd hotwo
ntpd rhel config
how to install ntp server on centos
setup auto ntpdate +centos
internal ntp server centos
configure fedora 11 use ntp
clock synchronization linux stop
centos set country time
linux update datetime centos
CentOS ntp
ntp fedora 11 configure
redhat 3 install ntpclient
config ntp centos 3
cron sync linux clock
centos ntpdate india
how to change CentOS time ntp
ntp linux centos
synchronize time on centos configure ntp
rhel ntpdate
centos system clock commands
sync time with centos xen
update time from ntp centos command
“install xclock” redhat yum
how to add entry in cron job centos
linux vps server configuracion
setup ntp centos
ntp rhel ntp date
autoupdate clock linux centos
ntpdate +centos
setting up ntp centos
setting up ntp on rhel 5
redhat network time sync 1 hour
how to turn off clock synchronization linux
centos server auto synchronize time
how to set ntp redhat bash
centos pst time hour off
syncing centos date
ntpdate startup centos
ntp centos setup commands
fedora stop ntp set date
centos 5 install ntpd
instalar cron centos
sync time auto centos
linux live clock in shell
centos 5 sync time server
auto update clock on linux
crontab time server centos
ntp centos disable startup
ntpdate at boot Redhat fedora
ntpd centos windows
centos how to configure ntp client
centos windows ntpd
yum install crontab
centos sync using ntp
linux keep system clock updated ntp
time sync centos
configure ntp server centps
synchronize time redhat at startup
hot to change clock setting centos
instalar cron en un centos
configure ntp client in centos
how to install ntpd on centos
instalar crontab para centos
change centos cmd hour
crontab ntp linux
oracle cron fails on centos
adding ntp server to centos via ssh
linux ntpdate sync local systems
linux auto synch clock
ntp rhel 4
linux how to install ntpdate
network time protocol centos windows
command line to change time on centos india
network time protocol client centos
sinhronization to ntp on rhel
configurar cron en centos
centos big clock
centos configurare ntp client
* * * * * ntpdate crontab
CentOS 5 update time by ntp example
centos script ntpdate
crontab centos
how to synchronize ntp
ntp clock linux auto sync
ntp server stopping automatically in centos
ntpdate centos 5
redhat 5 ntp server time stop
red hat enterprise linux 5 ntp date time synchronization
centos ntp windows
ntpdate установка на centos
ntpd centos
linux cron date auto sync
configurar ntp en red hat
configuring centos 5 time server
rhel5 ntpd patch
redhat configure ntpclient in cron.daily
centos5 ntpdate example
ntpd sync before service startup oracle enterprise linux
ntpdate rhel5
fedora ntpdate required ntp
centos reconfigure locales
centos ntpd fail xen
centos setting up time sync
“how to do auto time update on centos?”
centos time server internal network
set date+linux+ntp+centos
ntp crontab centos
update time usting centos ntpd
set clock CentOS
how to sync time centos using cron script
centos clock off 6 hours
setup NTP local server in centos
centos auto update date time
centos clock sync
rhel ntpd by cron
syncing centos time server mil
rh5 ntp sync clock
centos sync system clock NTP
rhel ntp ntpdate cron
fedora11 sync time ntpdate
how to make ntp server in rhel5
crontab ntp centos
+redhat +yum +ntpdate
instalar centos live
local server yum configure in centos
ntp centos xen
centos ntpd xen
fedora 11 set system clock date ntp
centOS disable synchronize time
centos ntp service
centos ntpd synchronizing with time server
how to clock auto synchron linux
how to clock auto synchron linux console
To install and configure NTP on CentOS
yum install ntp centos
how to add ntp service on startup centos
howto ntp server centos
how to configure centos server for windows

Post to Twitter  Post to Delicious  Post to Digg    Post to StumbleUpon

Categories : Scripts Unix Tags : , , , , ,

Comments

No comments yet.


Leave a comment

(required)

(required)