LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-10-2004, 11:53 PM   #1
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
Question Howto use ntpd time synchronization???


Hello everybody,

I have installed the ntp package, but don't yet know how to make it set my desktopclock to the right time.
Read the manuals, but holy <beep> what a lot of techtalk! I get lost in a jungle of technical details, and my "dummy-feeling" becomes stronger after each line of the man-pages.
Does anybody have experience with this? I will be very glad with some practical advice.
Thnx in advance!

Schmurff
 
Old 03-11-2004, 12:20 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
What you need to do is setup and ntp.conf file

here is mine:
Code:
restrict 127.0.0.1
fudge 127.127.1.0 stratum 3
server <serveraddress/ip>
server <serveraddress/ip>
server <serveraddress/ip>
server <serveraddress/ip>
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
1. Runs only for the local machine (ntpd can be used to run a time server for others as well).
2. Sets up the servers to use
3. What that does is sets /var/lib/ntp/ntp.drift as the drift file (don't worry about it, just make sure you choose a place that ntpd can write to).
4. Tells it to log to ntp.log in /var/log

I removed the server addresses I use, please look up addresses here: http://www.eecis.udel.edu/~mills/ntp/clock2a.html

Now that file should go in /etc
Run ntpd with a command line like ntpd -u ntp:ntp
This requires you have a user/group called ntp and will run the server under that user or group. It is safer then running it as root.
 
  


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
Linux real-time file replication/synchronization bretticus Linux - Networking 12 10-18-2007 03:53 AM
time synchronization on HPUX11 ntoughe Other *NIX 2 10-25-2005 11:46 AM
ntpd time server problem MGrosskopf Linux - Networking 0 02-06-2005 09:57 AM
Time Synchronization mykrob SUSE / openSUSE 4 10-23-2004 05:09 PM
NTP synchronization, slewing for large period of time ? trubi Solaris / OpenSolaris 1 10-18-2004 06:26 AM


All times are GMT -5. The time now is 08:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration