Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-12-2007, 10:44 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 11

Rep: Reputation: 0
NTP SERVER Configuration

Hello my friends,

I have been trying to configure my server's clock to be synchronized with another NTP Server but i have two questions and i know you will have good answers for this:

1)I am located in El Salvador Central America and i have been trying to find out a good public NTP you know of someone?

2)I want that my server synchronize with the NTP Server every day at for example 4:00 a.m. so i configured that on the crontab but for some reason it did not work out.

I was logged in as root but eventhough i did it i could not schedule it.

Thanks in advance for your help.

Old 03-12-2007, 11:50 AM   #2
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67

1) out of the list debian ntpd installed on my machine, this one comes closest to you:
it't located in Queretaro/Mexico (says the file )

2) do you use ntpdate or ntpd ? With the latter one you don't need any cronjob. If you use ntpdate you should specify more detailed what exactly you did and what went wrong.
You could just put a script into /etc/cron.daily or put the commands into rc.local to sync at startup. This should all should work fine.
Old 03-12-2007, 04:48 PM   #3
LQ Newbie
Registered: Feb 2007
Posts: 11

Original Poster
Rep: Reputation: 0

Thanks for the fast reply.

I was able to configure the ntp.conf file using ntpdate. I have one doubts regarding the ntpdate application:

At what time does the server tries to synchronize with the NTP Server configured on the ntp.conf file?
Can i set that the server look for that synchronization every day at for example at 4:00 a.m. but without using the cronjobs and just the ntp.conf file?

Thanks in advance again!

Old 03-13-2007, 06:13 AM   #4
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
ntpdate is not a server, it's a client that updates your system time once when it's called. You will need a cronjob or a startscript if you wanna use that. For a cronjob you can make an entry in /etc/crontabs or use the directories cron.daily, cron.hourly ... if your cron is configured that way.

ntpd is a server as well as a client, you won't need any cronjob for it as it will permanently sync with the server(s) you configured.

if you use ntpdate and your cronjob fails, then give more detail on what you did and how you determined that it doesn't work. Also check your syslog, if cron reports any errors.
Old 03-13-2007, 06:33 AM   #5
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
1)I am located in El Salvador Central America and i have been trying to find out a good public NTP you know of someone?
If you don't need to have extreme precision in your time (which most users don't) then consider using one of the pool servers. If you check the North and South America links, you'll find that Mexico and Brazil each run a set of servers, and one of those is likely to work for you. Using the pool servers means that the load is spread around, and no one server gets hammered by all the users.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP Server Accuracy? ftekiner Linux - Networking 4 08-05-2013 04:50 AM
NTP Local Server Configuration saqis Red Hat 1 10-16-2006 04:45 AM
Configuration of NTP srikz SUSE / openSUSE 1 01-18-2005 02:04 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM
Ntp Server Configuration rodel Linux - Software 1 10-20-2003 03:10 PM

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration