1. Edit /etc/timezone, for example set to Hong Kong:
Asia/Hong_Kong
Or, run:
dpkg-reconfigure tzdata
2. Copy the zone files /usr/share/zoneinfo/Asia/Hong_Kong from the build-box.
If using the kernel 2.6.26-486-voyage, or 2.6.30-voyage and a ALIX board, the clock must be fixed.
1. add “clocksource=tsc” to kernel param:
kernel /vmlinuz root=LABEL=ROOT_FS console=ttyS0,38400n8 clocksource=tsc
2. get time when startup, add these in /etc/rc.local:
#get the clock right on startup, -b for set time immediately ntpdate -s -b <a time server close to you>
3. sync time periodically, using a cron job:
# -s for logging to syslog 29 * * * * root /usr/sbin/ntpdate -s stdtime.gov.hk
Compile a new kernel so that “clocksource=tsc” is not needed.