LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-28-2003, 09:41 AM   #1
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Rep: Reputation: 15
Timesync


Hi guys,

This may turn out to be a real simple one, but a quick search in LQ hasn't given me anything yet...

Is there an easy way to get my Slack box to timesync with a box that I have that serves NTP? If so, how do I set it up, and how do I set polling intervals etc?

Thanks!!
 
Old 07-28-2003, 10:22 AM   #2
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
Have a loot at /etc/rc.inet1 and /etc/rc.inet2, if there is a NTP line in there. If not, try downloading/compiling/installing on the free NTP client available out there. There is one available at the University of Michigan:
http://www.umich.edu/~rsug/services/ntp.html
 
Old 07-28-2003, 10:36 AM   #3
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
Couldn't find any refernces in those files (unless I'm really not looking hard enough! I'll give download that client and give it a go... Kinda thought linux would have a built-in NTP client, though..
 
Old 07-28-2003, 10:41 AM   #4
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
Ooooops... Now that I think about it...

Have you tried "apropos NTP" or "apropos time" ?

Also, take a look at /etc/rc.d/rc.modules and check if there is a module for NTP... You never know...

[Sorry, I can't be more specific as I am not in front of my Slack machines right now...]
 
Old 07-28-2003, 11:05 AM   #5
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
apropos NTP just gives loads of stuff about NNTP!! managed to find some ntp fils around under /usr/sbin/ so will have a look at those tomorrow. Sure there's gotta be a simple answer somewhere....!!

Cheers.
 
Old 07-28-2003, 11:12 AM   #6
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
"apropos NTP | grep time" should be helpful here...
 
Old 07-28-2003, 11:12 AM   #7
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
and maybe I should rtfm. Having a look through the /usr/doc/ntp-4.1.1a directory should give me a few pointers (hopefully!)...
 
Old 07-28-2003, 11:13 AM   #8
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
RTFM is *always* a good idea, under any UNIX, and especially under Slackware. This is the distro with probably the best information and the best man pages.
 
Old 07-28-2003, 11:15 AM   #9
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
Yep, and that's why I'm kicking myself for not looking there first!! Will get back to ya tomorrow once I've had a look through and tried some stuff...
 
Old 07-28-2003, 08:02 PM   #10
mfirth
LQ Newbie
 
Registered: Jul 2003
Location: Ipswich, UK
Distribution: Slackware 7.1 and 9.0
Posts: 4

Rep: Reputation: 0
The basic procedure you need to follow is to create a configuration file as /etc/ntp.conf, and start ntpd (this may be called xntpd if you are running an old version of Slackware)

This program will decide on its own update period, and you can list one or more servers for it to get its time from.

Before running ntpd its a good idea to jump your time close to right by running 'ntpdate' against an NTP server.

The basic lines I have in my ntp.conf file are:

'server <ip address>' - One or more of these lines to nominate NTP servers.

'restrict default notrust nomodify' - Prevent any random host from changing the time.

'restrict <ip address> nomodify' - One of these for each 'server' line, to indicate that the time from that IP address can be trusted.

Hope this helps

Michael
 
Old 07-29-2003, 03:14 AM   #11
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
Sweet!
Thanks a lot - nice & easy like I thought it would be!!
Thanks for the help, guys....
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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