LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-02-2008, 05:51 AM   #1
Buddhike G
Member
 
Registered: Jun 2007
Distribution: RHEL, CentOS, Solaris
Posts: 63

Rep: Reputation: 16
syncronize clocks of two computers


I want to syncronize the system time of two PCs with pricision upto a second. NTP too can do time syncronization as far as I know it dont syncronize them with a precision of a second.

does anybody knows a metod to overcome the problem ?

Thanx in advance !
Buddhike G
 
Old 01-02-2008, 06:04 AM   #2
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
I thought if you use NTP using one of the servers as a time source it will sync them to the 1 second level. At least that is what I would try first. Have you tried this and seen more than a 1 second variance?
 
Old 01-02-2008, 06:51 AM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
NTP does sync to the second or better; if you want extreme or laboratory-level precision, you need a GPS or "radio" clock to use as a time source (and those babies run into the hundreds and up to the thousands of dollars). If you set NTP up to use three or so pool servers, it will sync to the "best" one on its own (if you generate the log you can see how things are going) and that may be good enough for your purposes; otherwise, radio is the way to go.
 
Old 01-02-2008, 07:13 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
According to the NTP project... when syncing of a time source on a LAN the typical accuracy is less then a millisecond... over a WAN they claim a "few milliseconds" is typical. Ether-way, it is certainly the industry standard for accurate time sync and it should do well better then 1 second precision. As the other posters have said.. for critical applications I would recommend getting a GPS timesource that supports NTP and sync to that.
 
Old 01-02-2008, 09:30 PM   #5
Buddhike G
Member
 
Registered: Jun 2007
Distribution: RHEL, CentOS, Solaris
Posts: 63

Original Poster
Rep: Reputation: 16
Oh ! I'm sorry, I was wrong about the NTP server, anyway now what i want to do is sync 2 PCs without any external reference. where one PCs system time as the NTP server and the other PC as client. Is it possible ?
Thanx for any help !
Buddhike G
 
Old 01-03-2008, 05:46 AM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Yes, that will work as well. You can sync your server to NTP, if it cannot sync because you are lacking a connection it does not sync. You client machine however will sync to your server anyway.

jlinkels
 
  


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
Two-way syncronize on fat32 directories over network Koppie Linux - Networking 2 01-19-2007 01:11 PM
Can syncronize PDA to Linux? Vegetarian Smoker Linux - Software 2 06-29-2006 04:20 AM
How to syncronize a Philips Velo with Evolution? oryan_dunn Linux - Hardware 1 09-23-2005 10:09 PM
Syncronize Clocks newuser455 Linux - Newbie 2 07-15-2005 08:23 PM
Syncronize directories between server and laptop Yalla-One Linux - Software 1 03-29-2005 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration