Unix Technical Forum

Setting time in Slackware

This is a discussion on Setting time in Slackware within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I need to set the time on my Slackware system (9.1) and wonder how we do it. What I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:01 PM
Ted Gervais
 
Posts: n/a
Default Setting time in Slackware


I need to set the time on my Slackware system (9.1) and wonder how we do
it.

What I had been doing was using an alias as follows:

alias netdate='netdate 132.163.135.130'

This no longer works. Maybe a new site would be helpful.
Or is there a better way?

Anyone please..


---
Here about the young Chinese woman who just won the lottery?
One fortunate cookie...

Ted Gervais
Coldbrook Nova Scotia
Canada B4R1A7
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 08:01 PM
Jan-Ove Jansson
 
Posts: n/a
Default Re: Setting time in Slackware

On 2003-12-10, Ted Gervais <ve1drg@av.eastlink.ca> wrote:
>
> I need to set the time on my Slackware system (9.1) and wonder how we do
> it.
>
> What I had been doing was using an alias as follows:
>
> alias netdate='netdate 132.163.135.130'
>
> This no longer works. Maybe a new site would be helpful.
> Or is there a better way?
>
> Anyone please..
>
>
> ---
> Here about the young Chinese woman who just won the lottery?
> One fortunate cookie...
>
> Ted Gervais
> Coldbrook Nova Scotia
> Canada B4R1A7

Try to change netdate to ntpdate
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 08:01 PM
Jim
 
Posts: n/a
Default Re: Setting time in Slackware

On Wed, 10 Dec 2003 10:08:04 -0400, Ted Gervais wrote:

> I need to set the time on my Slackware system (9.1) and wonder how we do
> it.
>
> What I had been doing was using an alias as follows:
>
> alias netdate='netdate 132.163.135.130'
>
> This no longer works. Maybe a new site would be helpful.
> Or is there a better way?
>
> Anyone please..


I generally use: ntpdate <insert time site>

where a time site is one of listed on
http://www.eecis.udel.edu/~mills/ntp/servers.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 08:01 PM
del
 
Posts: n/a
Default Re: Setting time in Slackware

On Wednesday 10 December 2003 14:08 Ted Gervais, ve1drg@av.eastlink.ca,
wrote:

> I need to set the time on my Slackware system (9.1) and wonder how we
> do it.
>
> What I had been doing was using an alias as follows:
>
> alias netdate='netdate 132.163.135.130'
>
> This no longer works.**Maybe*a*new*site*would*be*helpful.
> Or is there a better way?
>
> Anyone please..


As root,
date && ntpdate -s atime.server && date
The date commands will display the time so you can see the difference.
Will only work if ntpd isn't running!
--
del 8-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 08:01 PM
Thomas Ronayne
 
Posts: n/a
Default Re: Setting time in Slackware



Ted Gervais wrote:
> I need to set the time on my Slackware system (9.1) and wonder how we do
> it.
>


If you just want to set it every so ofter, use

/usr/sbin/ntpdate -v 140.221.9.6 198.147.38.140

(Those servers are stratum 2 servers you ought to be able to get to.)

Better, set up NTP if you're connected all the time, say with DSL, T1,
T10, etc.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-18-2008, 08:02 PM
Ted Gervais
 
Posts: n/a
Default Re: Setting time in Slackware

Thanks everyone for your input on this time issue. I am on line all the
time so maybe I should set up something to run through CRON or something
like that.
But for now - I just needed to know how to get the time set up correctly. I
did it with the help of the other two who responded. I will look further
into NTP maybe to see if this will help.

Thanks again everyone for your help and patience..




"Thomas Ronayne" <tronaREMOVETHIS@ameritech.net> wrote in message
news:G%FBb.15340$P%1.14210014@newssvr28.news.prodi gy.com...
>
>
> Ted Gervais wrote:
> > I need to set the time on my Slackware system (9.1) and wonder how we do
> > it.
> >

>
> If you just want to set it every so ofter, use
>
> /usr/sbin/ntpdate -v 140.221.9.6 198.147.38.140
>
> (Those servers are stratum 2 servers you ought to be able to get to.)
>
> Better, set up NTP if you're connected all the time, say with DSL, T1,
> T10, etc.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-18-2008, 08:02 PM
William Park
 
Posts: n/a
Default Re: Setting time in Slackware

Ted Gervais <ve1drg@av.eastlink.ca> wrote:
> Thanks everyone for your input on this time issue. I am on line all the
> time so maybe I should set up something to run through CRON or something
> like that.
> But for now - I just needed to know how to get the time set up correctly. I
> did it with the help of the other two who responded. I will look further
> into NTP maybe to see if this will help.
>
> Thanks again everyone for your help and patience..


You should be aware that using NIST (stratum 1) is frowned upon. You
should use stratum 2 or 3.

--
William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
Linux solution for data management and processing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-18-2008, 08:02 PM
RayzrShrp
 
Posts: n/a
Default Re: Setting time in Slackware

Thomas Ronayne <tronaREMOVETHIS@ameritech.net> wrote in message news:<G%FBb.15340$P%1.14210014@newssvr28.news.prod igy.com>...
> Ted Gervais wrote:
> > I need to set the time on my Slackware system (9.1) and wonder how we do
> > it.
> >

>
> If you just want to set it every so ofter, use
>
> /usr/sbin/ntpdate -v 140.221.9.6 198.147.38.140
>
> (Those servers are stratum 2 servers you ought to be able to get to.)
>
> Better, set up NTP if you're connected all the time, say with DSL, T1,
> T10, etc.


Setting up a time server client under slackware looks from the above
post simple enough but is there really any reason for it on a home
computer? I do have a small network and it would be nice to sync all
my boxs with the same time. I'm sure slackware is capable to do this
so would I just direct my windows boxs at my linux box for the time
server and voila??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-18-2008, 08:03 PM
Thomas Ronayne
 
Posts: n/a
Default Re: Setting time in Slackware

>
> Setting up a time server client under slackware looks from the above
> post simple enough but is there really any reason for it on a home
> computer? I do have a small network and it would be nice to sync all
> my boxs with the same time. I'm sure slackware is capable to do this
> so would I just direct my windows boxs at my linux box for the time
> server and voila.


Yes, it is easy -- you set one of them up to the outside world (with
NTP) going to a stratum 2 time server (or group of stratum 2 servers),
and you set the others up to use your outside world connected machine
(which magically became a stratum 3 server).

The line,

/usr/sbin/ntpdate -v server_address

is only to set the time on boot, you should not use it in any kind of a
loop -- that's what ntpd is for.

It takes a little reading in the HOWTO; you need to understand what to
put in your ntp.conf file for both your outside world machine (so it
will serve time to your other machines) and the ntp.conf file(s) on your
inside world machines.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-18-2008, 08:03 PM
William Park
 
Posts: n/a
Default Re: Setting time in Slackware

Thomas Ronayne <tronaREMOVETHIS@ameritech.net> wrote:
> Yes, it is easy -- you set one of them up to the outside world (with
> NTP) going to a stratum 2 time server (or group of stratum 2 servers),
> and you set the others up to use your outside world connected machine
> (which magically became a stratum 3 server).
>
> The line,
>
> /usr/sbin/ntpdate -v server_address
>
> is only to set the time on boot, you should not use it in any kind of a
> loop -- that's what ntpd is for.
>
> It takes a little reading in the HOWTO; you need to understand what to
> put in your ntp.conf file for both your outside world machine (so it
> will serve time to your other machines) and the ntp.conf file(s) on your
> inside world machines.


For home situation, it's much easier to set time using 'netdate' or
'ntpdate' on one machine, and have all other machines set from that
machine using 'netdate' (port 37, Time).

--
William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
Linux solution for data management and processing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com