Benutzer-Werkzeuge

Webseiten-Werkzeuge


zeitserver

Zeit

debian

sudo dpkg-reconfigure tzdata -> /etc/timezone <- Europe/Vienna
sudo nano /etc/ntp.conf
server 0.at.pool.ntp.org
server 1.at.pool.ntp.org
server 2.at.pool.ntp.org
server 3.at.pool.ntp.org
sudo service ntp restart

Knoppix

sudo service ntp restart 

Server (Feynman)

  • Firewallport: 123 TCP und UDP
  • /etc/ntp.conf
##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
##
#servers pool.ntp.org

server ptbtime1.ptb.de
#server 0.de.pool.ntp.org
server 127.127.1.0              # local clock (LCL)
fudge  127.127.1.0 stratum 10   # LCL is unsynchronized

##
## Add external Servers using
## # rcntp addserver <yourserver>
## 

##
## Miscellaneous stuff
##

driftfile /var/lib/ntp/drift/ntp.drift # path for drift file

logfile   /var/log/ntp          # alternate log file
# logconfig =syncstatus + sysevents
# logconfig =all

# statsdir /tmp/                # directory for statistics files
# filegen peerstats  file peerstats  type day enable
# filegen loopstats  file loopstats  type day enable
# filegen clockstats file clockstats type day enable

#
# Authentication stuff
#
keys /etc/ntp.keys              # path for keys file
trustedkey 1                    # define trusted keys
requestkey 1                    # key (7) for accessing server variables
# controlkey 15                 # key (6) for accessing server variables
rcntp start
rcntp status

Client

  • NTP-Client deaktivieren
yast timezone
  • [x] Rechnerzeit ist auf UTC eingestellt
  • [Ändern]
    • (x) Manuell
  • /etc/init.d/zeit
#!/bin/sh
case "$1" in
start)
    echo "Sync Time ..."
    /usr/sbin/sntp -P no -r 10.67.0.2
#    hwclock -w // nicht bei virtuellen XEN Maschinen
    ;;
*)
    echo "Usage: 'zeit' {start}" >&2
    exit 64
    ;;
esac
exit 0
chmod + /etc/init.d/zeit
cd /etc/init.d/rc3.d
ln -sf ../zeit S15zeit
/etc/init.d/zeit start
zeitserver.txt · Zuletzt geändert: 2014/10/05 21:22 von admin