LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-12-2007, 11:44 AM   #1
jmmo1981
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 Server....do 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.

Jorge
 
Old 03-12-2007, 12:50 PM   #2
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
Hi,

1) out of the list debian ntpd installed on my machine, this one comes closest to you:
cronos.cenam.mx
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, 05:48 PM   #3
jmmo1981
LQ Newbie
 
Registered: Feb 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Hello!

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!

Jorge
 
Old 03-13-2007, 07:13 AM   #4
almatic
Member
 
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, 07:33 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Quote:
1)I am located in El Salvador Central America and i have been trying to find out a good public NTP Server....do 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.
 
  


Reply


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 05:50 AM
NTP Local Server Configuration saqis Red Hat 1 10-16-2006 05:45 AM
Configuration of NTP srikz Suse/Novell 1 01-18-2005 03:04 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 03:22 PM
Ntp Server Configuration rodel Linux - Software 1 10-20-2003 04:10 PM


All times are GMT -5. The time now is 01:06 AM.

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