Kezdőlap › Fórumok › Gentoo linux › Gentoo Linux haladó › ntp gond
- This topic has 30 hozzászólás, 5 résztvevő, and was last updated 17 years, 8 months telt el by
gendelider.
-
SzerzőBejegyzés
-
2007-09-30-19:37 #2134849
De miért nincs vmi példa abba a fájlba.. Az ntpd –help -nél nem látok számomra semmi hasznosat, a webes doksi meg számomra már tulzás én csak egy sort akarok amit beirok a konfigfájlba és féloránként szinkronizál, most ezért olvassak végig oldalakat, amit ráadásul alig értek. Miért nincs egy konfig példafájl. 🙁
2007-09-30-19:37 #2134850De miért nincs vmi példa abba a fájlba.. Az ntpd –help -nél nem látok számomra semmi hasznosat, a webes doksi meg számomra már tulzás én csak egy sort akarok amit beirok a konfigfájlba és féloránként szinkronizál, most ezért olvassak végig oldalakat, amit ráadásul alig értek. Miért nincs egy konfig példafájl. 🙁
2007-09-30-20:06 #2134851Code:# /etc/conf.d/ntpd# Options to pass to the ntpd process
# Most people should leave this line alone …
# however, if you know what you’re doing, feel free to tweak
NTPD_OPTS=”-u ntp:ntp”Code:# /etc/conf.d/ntp-client# Command to run to set the clock initially
# Most people should just leave this line alone …
# however, if you know what you’re doing, and you
# want to use ntpd to set the clock, change this to ‘ntpd’
NTPCLIENT_CMD=”ntpdate”# Options to pass to the above command
# This default setting should work fine but you should
# change the default ‘pool.ntp.org’ to something closer
# to your machine. See http://www.pool.ntp.org/ or
# try running `netselect -s 3 pool.ntp.org`.
#NTPCLIENT_OPTS=” -b -u hu.pool.ntp.org”
NTPCLIENT_OPTS=” -b -u time.kfki.hu”# How long to wait (in seconds) before giving up.
# Useful for when you boot and DNS/internet isn’t
# really available but you have your net interface
# come up with say a static IP.
NTPCLIENT_TIMEOUT=30Ez a két néhai config fájlom, nekem így műxött gentoo alatt.
/etc/ntp.conf fájlt most nem találom. 🙁2007-09-30-20:06 #2134852Code:# /etc/conf.d/ntpd# Options to pass to the ntpd process
# Most people should leave this line alone …
# however, if you know what you’re doing, feel free to tweak
NTPD_OPTS=”-u ntp:ntp”Code:# /etc/conf.d/ntp-client# Command to run to set the clock initially
# Most people should just leave this line alone …
# however, if you know what you’re doing, and you
# want to use ntpd to set the clock, change this to ‘ntpd’
NTPCLIENT_CMD=”ntpdate”# Options to pass to the above command
# This default setting should work fine but you should
# change the default ‘pool.ntp.org’ to something closer
# to your machine. See http://www.pool.ntp.org/ or
# try running `netselect -s 3 pool.ntp.org`.
#NTPCLIENT_OPTS=” -b -u hu.pool.ntp.org”
NTPCLIENT_OPTS=” -b -u time.kfki.hu”# How long to wait (in seconds) before giving up.
# Useful for when you boot and DNS/internet isn’t
# really available but you have your net interface
# come up with say a static IP.
NTPCLIENT_TIMEOUT=30Ez a két néhai config fájlom, nekem így műxött gentoo alatt.
/etc/ntp.conf fájlt most nem találom. 🙁2007-09-30-20:16 #2134853Nekem is ugyanezek. De ebbe hol van olyan aminek köze van ahoz h mennyi idönként szinkronizálja?
2007-09-30-20:16 #2134854Nekem is ugyanezek. De ebbe hol van olyan aminek köze van ahoz h mennyi idönként szinkronizálja?
2007-10-12-20:03 #2134855Esetleg vki ötlet h miért nem szinkronizálja magátol folyamatosan? :O
2007-10-12-20:03 #2134856Esetleg vki ötlet h miért nem szinkronizálja magátol folyamatosan? :O
2007-10-15-14:48 #2134857Sajnos csak „debianul” tudok válaszolni: ez a két fájl, ami nálam ubi alatt müködik: (cég, a belsö szerverünk nevét átírtam; szerintem ha beírod a hu.pool.ntp.org-ot a a.mi.ntp.szerverünk helyére, lehet, hogy helyből megy)
/etc/default/ntpdate
# servers to check. (Separate multiple servers with spaces.)
#NTPSERVERS=”pool.ntp.org”
NTPSERVERS=”a.mi.ntp.szerverünk„
#
# additional options for ntpdate
#NTPOPTIONS=”-v”
NTPOPTIONS=”-u”/etc/ntp.conf
# /etc/ntp.conf, configuration for ntpd
# ntpd will use syslog() if logfile is not defined
#logfile /var/log/ntpddriftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example# pool.ntp.org maps to more than 100 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** ***
#server pool.ntp.org# … and use the local system clock as a reference if all else fails
# NOTE: in a local network, set the local stratum of *one* stable server
# to 10; otherwise your clocks will drift apart if you lose connectivity.
server 127.127.1.0
fudge 127.127.1.0 stratum 13# By default, exchange time with everybody, but don’t allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
restrict default kod notrap nomodify nopeer noquery# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1 nomodify# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclientserver ez.a.mi.szerverünk
A szerintem lényeges különbségeket a te fájloddal szemben bejelöltem.
Még valami: itt az „ntp-simple” csomagot installáltuk, ami tkp. egy egy konfig fájl, és behúzza az „ntp-server” csomagot, mást nem, tehát semmi ntp cliens…
2007-10-15-14:48 #2134858Sajnos csak „debianul” tudok válaszolni: ez a két fájl, ami nálam ubi alatt müködik: (cég, a belsö szerverünk nevét átírtam; szerintem ha beírod a hu.pool.ntp.org-ot a a.mi.ntp.szerverünk helyére, lehet, hogy helyből megy)
/etc/default/ntpdate
# servers to check. (Separate multiple servers with spaces.)
#NTPSERVERS=”pool.ntp.org”
NTPSERVERS=”a.mi.ntp.szerverünk„
#
# additional options for ntpdate
#NTPOPTIONS=”-v”
NTPOPTIONS=”-u”/etc/ntp.conf
# /etc/ntp.conf, configuration for ntpd
# ntpd will use syslog() if logfile is not defined
#logfile /var/log/ntpddriftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example# pool.ntp.org maps to more than 100 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** ***
#server pool.ntp.org# … and use the local system clock as a reference if all else fails
# NOTE: in a local network, set the local stratum of *one* stable server
# to 10; otherwise your clocks will drift apart if you lose connectivity.
server 127.127.1.0
fudge 127.127.1.0 stratum 13# By default, exchange time with everybody, but don’t allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
restrict default kod notrap nomodify nopeer noquery# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1 nomodify# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclientserver ez.a.mi.szerverünk
A szerintem lényeges különbségeket a te fájloddal szemben bejelöltem.
Még valami: itt az „ntp-simple” csomagot installáltuk, ami tkp. egy egy konfig fájl, és behúzza az „ntp-server” csomagot, mást nem, tehát semmi ntp cliens…
-
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.
legutóbbi hsz