LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2008, 10:58 PM   #1
rizvi_iut
LQ Newbie
 
Registered: Oct 2008
Posts: 10

Rep: Reputation: 0
synchronize ntp client


Hi,
I have no NTP server in my LAN. Now, is it possible to synchronize my Linux PC's with a public NTP server? If possible then how ? Besides, is it possible for Windows PC's too ?


Thank You
 
Old 11-30-2008, 11:12 PM   #2
hans51
Member
 
Registered: Mar 2005
Location: Cambodia
Distribution: suse
Posts: 36
Blog Entries: 1

Rep: Reputation: 16
1.
you did NOT mention what linux dist you use
I have opensuse and time server synchronization is simply done 8sing YAST to configure.

earlier I made the same manually configuring /etc/ntp.conf
making sure that ntpd is started upon server boot automatically

get a time server either googling or from
http://www.pool.ntp.org/
chose one geographically nearest to the server

2.
windows
YES timeserver also can be used on your windows PC
just have a look at your system config - again you did NOT mention what windows you use ... hence search a little in your own WIN box >> time/date
I did it before and know it works

3.
for future questions PLEASE be precise and provide exact details on your OS / version and dist
 
Old 12-03-2008, 10:15 PM   #3
rizvi_iut
LQ Newbie
 
Registered: Oct 2008
Posts: 10

Original Poster
Rep: Reputation: 0
i use centos 5 and windows_xp in my LAN. after configuring /etc/ntp.conf how should i synchronize with the public server ?
 
Old 12-03-2008, 10:40 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Running your own server and syncing from that is cleaner, but you could just run ntpdate from each box from a cronjob each day. For example:
Code:
# crontab -l
# Synchronise the time at 5am every day
0 5 * * * /usr/sbin/ntpdate 165.86.4.100 &>/dev/null
 
Old 12-08-2008, 05:07 PM   #5
hans51
Member
 
Registered: Mar 2005
Location: Cambodia
Distribution: suse
Posts: 36
Blog Entries: 1

Rep: Reputation: 16
ntp has a daemon
ntpd !!
depending on details of YOUR linux there might be different ways to have ntpd started by default upon system boot - below a common way to do so:

there is NO cron job needed !!! the ntpd does that job for you.

everything configured in ntp.conf properly, you do

chkconfig ntpd on

now synchronize and then start your ntpd - belw lines in your shell / bash

ntpdate pool.ntp.org

/etc/init.d/ntpd start

check by using

/etc/init.d/ntpd status
 
Old 12-08-2008, 06:54 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The OP asked for methods for synchronising the time - ntpdate is often used on sites where ntpd is not wanted (like the one I'm working at now). Please put away your caps and exclamation marks...
 
Old 12-08-2008, 09:54 PM   #7
hans51
Member
 
Registered: Mar 2005
Location: Cambodia
Distribution: suse
Posts: 36
Blog Entries: 1

Rep: Reputation: 16
Quote:
Originally Posted by gilead View Post
The OP asked for methods for synchronising the time - ntpdate is often used on sites where ntpd is not wanted (like the one I'm working at now). Please put away your caps and exclamation marks...
much of global success is a matter of tolerance! ( with exclamation mark )

you as senior member use uppercase for your "op" and instead of exclamation marks you use ...

at the end of your post.
hence there is NO difference in our both.ways to help - we BOTH provide the most accurate info the fastest way to help (Linux) newbies to an instant success. isn't it ?

besides those minor points you gave no additional helpful info to the op !?

but

I am glad you are going to successfully finish this thread until the op has used his ntp.conf and ntpd successfully.

Merry Christmas

Last edited by hans51; 12-08-2008 at 09:57 PM.
 
  


Reply



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
how can i synchronize my NTP cheesewizz Linux - Server 4 11-07-2008 05:54 AM
ntp server/client problems procfs Linux - Newbie 7 12-27-2007 02:37 AM
Time Synchronize or NTP Management gurl4sh25 Linux - Software 5 06-04-2007 03:39 PM
Setting Up NTP Client/Server kaplan71 SUSE / openSUSE 2 05-31-2006 04:38 PM
NTP Client How to Sync automatically minil Programming 3 03-03-2005 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 PM.

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
Open Source Consulting | Domain Registration