Saturday, November 6, 2010

Knoppix 6.2.1 - setting system date and time

Installing the correct system date and time
In a terminal window, run as root:
dpkg-reconfigure tzdata

and search for your region and city. Mine is Asia/Manila.

Open the autoconfig file as follows:
sudo nano /etc/init.d/knoppix-autoconfig

Go to line 355 - ctrl+w, then ctrl-t - to the entry KTZ="$(getbootparam tz)" and change that to:
KTZ='Asia/Manila'

substituting your own region and city. Save the file - ctrl+x.

In the terminal window, again:
sudo apt-get install ntpdate

If apt generates an error, try updating the repositories first, like:
sudo apt-get update

then try to get the ntpdate package again.

After ntpdate package is installed, edit the ntpdate config file:
sudo nano /etc/default/ntpdate

The changes I did on my configuration:
NTPDATE_USE_NTP_CONF=no
NTPSERVER="0.asia.pool.ntp.org 1.asia.pool.ntp.org 2.asia.pool.ntp.org 3.asia.pool.ntp.org"

substituting your own ntp.org servers in that line. You may google your ntp server by googling something like sydney ntp server, for example.

Then save the file. Done!

My reference is this Knoppix forum thread.

3 comments:

  1. It should be

    NTPSERVERS="nist.server.com next.server.com etc.com"

    then run

    ntpdate-debian

    ReplyDelete
  2. Thank you it works, changing KTZ="$(getbootparam tz)
    line 357 on gedit

    ReplyDelete