Saturday, February 12, 2011

Changing Time Zone in Slackware 13.1

Travelling to different countries makes you experience different timezone, it can some hours ahead or after of your country timezone. Sometimes I experience this!, at the first time I was ignoring the time difference in my laptop. But this time not.

So below is the steps to change your timezone configuration in Slackware 13.1, you should do these steps as root.

  1. Change time zone links in /etc: "/etc/localtime-copied-from" to your current timezone in /usr/share/zoneinfo/xxx/xxx (xxx is depends on your timezone area)
    # ln -sf /usr/share/zoneinfo/xxx/xxx /etc/localtime-copied-from
  2. Replace your "/etc/localtime" with your current "/etc/localtime-copied-from"
    # cp -rf /usr/share/zoneinfo/xxx/xxx /etc/localtime
  3. Update your time using ntp server (
  4. # ntpdate
    # hwclock -w

Isn't it simple? In my opinion this's simple, but sometime we can't do the simplest thing.