Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-25-2005, 08:24 AM   #1
LQ Newbie
Registered: Jul 2005
Posts: 12

Rep: Reputation: 0
Network Time protocol

Hello all !
I am now sudying about Network Time Protocol (NTP) . Any on ehelp me about how to get the time form time servers?

If anybody have example , send it to me....
Old 10-25-2005, 09:11 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
you would use an ntp client like ntpdate
Old 10-26-2005, 06:24 AM   #3
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
A quick google found the ntp homepage.. Lots of descriptions about how the protocol works etc
Old 10-26-2005, 03:58 PM   #4
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
It depends largely on what you want. I run an ntp server for the pool. Originally installed for my webserver but I have spare bandwidth so decided to "volunteer" my server to If you wish to maintain a reasonably accurate time then install the ntp server package. The ntp.conf is normally installed in /etc . Edit the ntp.conf file and add the following lines to the file;

driftfile /var/lib/ntp/ntp.drift


The drift file allows your system to calculate the error of your system time chip and then apply a correction. The links to the pool servers will allow your system to compare its time to a fairly accurate server and thereby keep an accurate time. Using 3 different servers allows the system to connect to one with the best time and ignore those issuing a bad time (known as a false ticker).


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
Network Time protocol ssg14j Programming 1 10-25-2005 09:11 AM
How to specify Network Time Protocol Server in Kickstart script? EStester Linux - Enterprise 3 03-26-2005 01:46 PM
Network Time Protocol (NTP): Are you sure it's working? mchirico Member Success Stories 0 06-12-2004 06:00 PM
A network protocol like Samba??? Zappa Linux - Networking 8 02-11-2004 09:00 AM
Network Time Protocol (NTP) for RH 7.3 LinuxQuest01 Linux - General 1 01-15-2003 03:48 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:47 PM.

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