On Mon, 10 Feb 2003, Jameson C. Burt wrote:

> Curiously, since I already run ntpd on my main computer 
> ("server" serving DHCP and NFS to my LTS machine, 
> and that "server" accomodates time according to 3 internet ntp-computers),
> the "ntpdate" solution works well, but the seemingly simpler 
> "rdate" approach would probably require installing many more files 
> on my LTSP machine.
> 
> With "ntpd" already running on my server, here are the changes I made to
> my LTSP machine.
> I added
>    /opt/ltsp/i386/usr/sbin/ntpdate
>    /opt/ltsp/i386/lib/libreadline.so.4          #a link
>    /opt/ltsp/i386/lib/libreadline.so.4.2
> And I added the following line to   /opt/ltsp/i386/etc/rc.webcam,
>    /usr/sbin/ntpdate    `grep server /etc/hosts  |sed 's/ .*//'`
> On my LTS machine, this just runs
>    ntpdate  192.168.1.1
> 
> Because a basic LTS keeps no "localtime" ("zoneinfo" like "US/Eastern"), 
> the above will probably set your time to Greenwich Mean Time (UTC).
> Because basic LTSP cannot access DNS to get IP addresses, 
> we must set any IP addresses directly, including "server"

We probably should add the concept of localtime to LTSP.  we could
specify it in the lts.conf file.  Shouldn't be too tough.


> [curiously, ntpdate seems to ignore /etc/hosts, going directly to DNS
> servers].

I'm guessing that ntpdate is fine, it's the missing resolver libraries
that are installed as part of the ltsp_local_apps package that you
probably haven't installed.

The libs will be packaged differently in LTSP-4, so that the basic
ltsp_core package contains the right libs for doing dns resolution.


> 
> I just tried ntpdate with several internet time servers, 
> without adding more files accomodating DNS for LTSP 
> and without using ntpd on my "server".
> I tried using the following actual IP addresses
> in the second line below,
>    ntpdate  chrivh40.cch.com ntp-0.cso.uiuc.edu ntp-1.mcs.anl.gov
>    ntpdate 198.147.37.140 130.126.24.53 216.204.156.2 140.221.9.20
> This works!
> One small glitch would be that IP addresses aren't as stable as
> domainnames, so rather than using the suggested 3 domainnames,
> you might use 5 IP addresses.

See my comments above for the DNS problem.


Jim McQuillan
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to