Ocenite etot tekst:






Katalog fajlov s opisaniyami vremennyh zon
  /usr/share/zoneinfo/
Spisok kratkih opisanij dostupnyh vremennyh zon
  /usr/share/zoneinfo/zone.tab

Kompilyator vremennyh zon
  zic  filename
Dekompilyator vremennyh zon otsutstvuet

Vremennaya zona zapisana v  /etc/timezone
  echo Europe/Moscow >  /etc/timezone
i odnovremenno zalinkovana na  /etc/localtime
  ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime



date 082816452003        # MMDDhhmm[YYYY]
hwclock -w               # propisat' tekushchee vremya v HW-clock

FILES
       /etc/adjtime    /usr/lib/zoneinfo/    /dev/rtc



/etc/ntp.conf

server	127.127.1.0	# local clock
fudge	127.127.1.0 stratum 10

driftfile /etc/ntp/drift
broadcastdelay	0.008

# prava dostupa: vsem - nichego, localhost - vse, klientam - readonly
restrict default ignore
restrict 127.0.0.1
restrict 195.0.0.0 mask 255.255.255.0 notrust nomodify notrap



1 variant: berem vremya neskol'ko raz v den', s zapuskom cherez crontab:

1 1/4 * * * ntpdate -b ntp.server1.name ntp.server2.name

2 variant: berem vremya iz brodkastov

/etc/ntp.conf :

broadcast yes
driftfile /etc/ntp/drift

3 variant: berem vremya s servera, cherez XNTPD

/etc/ntp.conf :

server	ntp.server.name
driftfile /etc/ntp/drift

# Prosledit', chtob pri nachal'noj zagruzke zapuskalsya xntpd

Last-modified: Sat, 22 Nov 2003 09:01:41 GMT
Ocenite etot tekst: