LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-07-2008, 05:47 AM   #16
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492

Precisely.
 
Old 04-07-2008, 06:12 AM   #17
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
Ok, now please tell me what I have to do because Im still confused. So when I create the /etc/inet/ntp.conf, I have to insert the following?

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org


And also, after I make the /etc/ntp directory, what shall I put in there???
 
Old 04-07-2008, 06:18 AM   #18
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by as400 View Post
So when I create the /etc/inet/ntp.conf, I have to insert the following?

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
You are missing the
Code:
 driftfile /etc/ntp/ntp.drift
line
Quote:
And also, after I make the /etc/ntp directory, what shall I put in there???
Nothing.
 
Old 04-07-2008, 06:54 AM   #19
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
So when I create the /etc/inet/ntp.conf directory in Gedit, is this correct below:

driftfile /etc/ntp/ntp.drift
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

And then after that I would create the /etc/ntp.

Then...enable NTP as this:

svcadm enable ntp....and thats it??

When Saving this in GEDIT, I should name it as NTP.Conf ???
 
Old 04-07-2008, 07:13 AM   #20
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by as400 View Post
So when I create the /etc/inet/ntp.conf directory
No.
/etc/inet is a directory
ntp.conf is the file you need to create inside this directory.
 
Old 04-07-2008, 07:24 AM   #21
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
OK, so when I create the ntp/conf file using Gedit, the following entries will be added...

driftfile /etc/ntp/ntp.drift
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

THen, next is to mk /etc/ntp (with no lines added)

Then...I would enable the NTP service.

Hope I got this correct this time.
 
Old 04-07-2008, 07:58 AM   #22
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
It is roughly correct outside a couple of typos.

It's not "ntp/conf" but "ntp.conf"

It's not "mk /etc/ntp" but "mkdir /etc/ntp"
 
Old 04-07-2008, 08:02 AM   #23
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
Ok...Ok Ok..I know...
Besides not knowing Solaris....Im also a bad typer....

Thanks...I will give it a try.

Can you please confirm if this is all correct then?

Last edited by as400; 04-07-2008 at 08:03 AM.
 
Old 04-07-2008, 08:15 AM   #24
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I already did.
 
Old 04-07-2008, 12:27 PM   #25
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
Its done. Now would I know it works?
 
Old 04-07-2008, 02:17 PM   #26
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Code:
dmesg|grep ntp
should tell you.
 
Old 04-07-2008, 03:31 PM   #27
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
Quote:
Originally Posted by jlliagre View Post
Code:
dmesg|grep ntp
should tell you.
Or just use ntptrace - it will tell you what server you are getting the time from by tracing it back to the source - I use it all the time it even tells you what stratum they are

Last edited by ADxD_7; 04-07-2008 at 03:32 PM.
 
Old 04-08-2008, 05:52 AM   #28
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
To make sure NTP is working correctly I check it with:

1st type: ntpq

Then at the prompt > type:
peer

Works like a charm.
man ntpq for more info.
 
  


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
Are there any linux distros with cde, or any way to install cde? woms14 Linux - General 5 01-15-2010 09:08 PM
ntp is only syncing with local clock. slackamp Linux - Server 2 11-07-2007 03:12 PM
clock/ntp problems mandriva "one" install gub Mandriva 6 03-30-2007 11:51 AM
Changing the clock in CDE? as400 Solaris / OpenSolaris 109 04-24-2006 12:48 AM
ntp hell: System clock runs twice as fast as it should do jimieee Linux - Software 0 01-23-2004 05:17 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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