Re: command line/script to setup ntpd

From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 12/01/04


Date: Wed, 01 Dec 2004 04:33:46 GMT

On Wed, 01 Dec 2004 04:28:56 GMT, Bit Twister wrote:
> On 30 Nov 2004 20:17:55 -0800, joshua wrote:
>> Dear folks,
>> I know I can setup date/time in Fedora2/3 by system-config-date
>> interface.
>> Now if I want to set it up using command line for script (for
>> example, in kickstart's postinstall), what should I do? How to enable
>> ntpd and syncing to the server say, stdtime.mydomain and guarantee
>> that it sync with the server for some interval?
>>
>> ....
>> ( ???? )
>> chkconfig --level 35 ntpd on
>
> Usually you add the links with
> chkconfig --add ntpd
>
> that gets/sets Start/Kill levels from /etc/init.d/ntpd
>
> On Mandrake there is a /etc/ntp directory with drift, keys and step-tickers
>
>
> step-tickers contains the FQDN or ip address of the time server(s)
> after awhile, a day?, the drift file will settle down on the offset.
>
>
> To check on it
> grep ntpd /var/log/messages # snippet
>
> 22:14:08 ntpd: ntpd startup succeeded
> 22:14:08 ntpd[2952]: precision = 1.000 usec
> 22:14:08 ntpd[2952]: kernel time sync status 0040
> 22:14:08 ntpd[2952]: frequency initialized -25.253 PPM from /etc/ntp/drift
> 22:17:22 ntpd[2952]: synchronized to LOCAL(0), stratum=10
> 22:17:22 ntpd[2952]: kernel time sync disabled 0041
> 22:18:26 ntpd[2952]: kernel time sync enabled 0001
> 22:22:46 ntpd[2952]: synchronized to 192.168.2.1, stratum=4

forgot to add /etc/ntp.conf
which will also need your time server FQDN or ip addy.



Relevant Pages

  • Re: Static IP does not "stick" on TCP/IP Properties
    ... netsh> interface ... and maybe> run the command: "netsh int ip reset c:\resetlog.txt" and examine the log> for anything that might have been removed or added to the registry. ... >> I have a Windows 2000 server setup as file server and domain controller. ...
    (microsoft.public.windows.server.setup)
  • Re: Static IP does not "stick" on TCP/IP Properties
    ... netsh> interface ... and maybe> run the command: "netsh int ip reset c:\resetlog.txt" and examine the log> for anything that might have been removed or added to the registry. ... >> I have a Windows 2000 server setup as file server and domain controller. ...
    (microsoft.public.windows.server.networking)
  • Re: Question about ssh
    ... This command works fine except for one little thing. ... the server have multiple IP addresses on the same interface, ... in ~/.ssh/config on the system you are executing the ssh command on. ...
    (comp.unix.shell)
  • Re: bittorrent clients -- command line?
    ... interface or something because the server is tucked away in the ... Give the torrent file to it by URL or uploading, the server will handle it well. ... Its worth a mention that Torrentflux is just a web based front end for the command line torrent program "Bit Tornado". ...
    (comp.unix.bsd.freebsd.misc)
  • How do I install KDE / Gnome GUI.. from command line? - NewBie!!
    ... I installed Ubuntu 9.04 Server and when done the interface is a shell ... I am a newbie to the command and stuff. ...
    (Fedora)