Browsing the blog archives for June, 2009.

ntpdate-debian

linux

Karena kebutuhan waktu yang harus terus menerus sinkron di server debian, maka dicoba untuk instalasi ntpdate.

Langkahnya sangat mudah :

1. Install ntpdate-debian

$ apt-get install ntpdate

2. Ubah isi konfigurasi ntpdate

$ vim /etc/default/ntpdate
# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.
# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=no
# List of NTP servers to use  (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"
# Additional options to pass to ntpdate
NTPOPTIONS=""

3. Jalankan ntpdate-debian

$ /usr/sbin/ntpdate-debian

4. Tambahkan pada crontab untuk dijalankan tiap tengah malam

$ 0 0 * * * /usr/sbin/ntpdate-debian

Referensi :

http://www.debian-administration.org/articles/25

http://wiki.zhekov.net/ntpdate_on_Debian

http://www.adminschoice.com/docs/crontab.htm

No Comments