LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-30-2004, 06:11 AM   #1
icedude
Member
 
Registered: Nov 2004
Location: South Africa
Posts: 43
Blog Entries: 1

Rep: Reputation: 15
Question Network Time Server


Hi

I'm trying to setup a network time server. I got ntp-4.2.0-2 downloaded, but I'm not sure how to install it. I tryed ./configure, my screen was full of things happenig.Was this all I'm supose to do? I'm not sure how to enter my info in the ntp.conf file. We are using a proxy server and I dont know where to enter that so that it will synchronize with one of the time servers on the net.

Please help me??
Thanks
 
Old 12-30-2004, 06:55 AM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
you are not done compiling it.

.config creates a makefile according to your machine's archetecture.

Now run make and then when that is done, run
make install
 
Old 01-02-2005, 04:02 AM   #3
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Rep: Reputation: 24
How to tell if it's running

I'll assume the last post told you how to install.
(Different distros have different install procedures).

I use Debian (apt-get ... which would save you needing
to compile)
Red-Hat (rpm -- which also doesn't require compilation)
and
Gentoo (emerge).

Don't know what you're using.

Once you think you have ntp, simply try (as root)
ntpd.

It uses file /etc/ntp.conf (And you need to put some
time-servers into ntp.conf, for you, you want the lines
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

Then read up and find some servers in Africa. (The defaults are all over the globe)

Once it's working, do
ntpq -p. You'll get the following:

remote refid st t when poll reach delay offset
jitter
==============================================================================
*63.247.194.250 132.163.4.102 2 u 52 64 377 29.358 623564. 3.074
+cisco1-mhk.kans 128.252.19.1 2 u 47 64 377 97.555 623573. 4.563
+dewey.lib.ci.ph 129.7.1.66 2 u 53 64 377 31.825 623564. 2.189
LOCAL(0) LOCAL(0) 13 l 49 64 377 0.000 0.000 0.001

* Means current favorite + means computer thinks server is OK.
refid -- Source of where that server is getting time (could read GPS).
st -- Stratum (Tier 2 is good)
poll -- How many seconds between polls. Increases over time as accuracy
improves.
delay -- Time in seconds to get an answer
offset -- Error in time (in millisec ... thus 623564 is 623.564 seconds).


For good docs on NTP, try http://tldp.org/HOWTO/TimePrecision-HOWTO/ntp.html
 
Old 01-03-2005, 12:59 AM   #4
icedude
Member
 
Registered: Nov 2004
Location: South Africa
Posts: 43

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Thanks I'll try it. I'm using Fedora Core 2.
 
Old 01-03-2005, 01:48 AM   #5
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Rep: Reputation: 24
rpm's for install

I don't know how much of a newbie you are.

Perhaps you don't know about rpm's yet? (stand's for "RedHat Package Manager").

rpm's are an attempt to make Linux apps as easy to install as Windows apps. (And they work.)

You find an rpm for your machine and Distro (rpmfind.net), then rpm -i to install it.
That's it. No compiling, no makefiles. It just works. (Of course you have to run rpm
as root.).

rpm's are unique to RedHat and Fedora Core, which you are using.

So if you still have install problems with ntpd, find an ntpd.rpm out on the net.
 
Old 01-21-2005, 12:58 PM   #6
wiseNoob
LQ Newbie
 
Registered: Nov 2004
Location: 40° 46' N, 73° 54' W
Distribution: Fedora Core 3, OSX 10.3.7
Posts: 15

Rep: Reputation: 0
I know I am coming into this conversation a little late, but...

I have a question about ntpq -p. I am on FC2 with all the latest updates, and all that does is return "Name or service not known" - I know that ntpd is running. service ntpd restart yields a restart with no errors.

am I missing something?
 
Old 01-21-2005, 05:42 PM   #7
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Quote:
Originally posted by wiseNoob
I know I am coming into this conversation a little late, but...

I have a question about ntpq -p. I am on FC2 with all the latest updates, and all that does is return "Name or service not known" - I know that ntpd is running. service ntpd restart yields a restart with no errors.

am I missing something?
Did you set up /etc/ntp.conf? That is where you add the time servers names.
 
Old 01-21-2005, 09:56 PM   #8
wiseNoob
LQ Newbie
 
Registered: Nov 2004
Location: 40° 46' N, 73° 54' W
Distribution: Fedora Core 3, OSX 10.3.7
Posts: 15

Rep: Reputation: 0
Quote:
Originally posted by wisenoob
service ntpd restart yields a restart with no errors.
ntp.conf is set up. I need to know why ntpq does not return any data.
 
  


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
how to set and sync system time with time server?? servnov Linux - Newbie 6 12-03-2013 07:55 PM
Mandrake 9.2 network locks up from time to time Mugatu Mandriva 9 12-23-2006 04:18 PM
Server network connection degrades over time mindseye1 Linux - Networking 24 10-26-2005 04:23 PM
How to specify Network Time Protocol Server in Kickstart script? EStester Linux - Enterprise 3 03-26-2005 01:46 PM
How to syncronize my system time by public time server? hakansun Linux - Networking 1 09-10-2004 05:10 AM

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

All times are GMT -5. The time now is 09:12 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