, , , , , , , , ,

Yesterday, my Debian desktop was crash (gnome-shell) so i intend to install minimal desktop environment such as Fluxbox. I’m just using terminal to access servers everyday, so actually i don’t need GUI, i need GUI just for internet browsing, cause console-based browser such elinks or w3m couldn’t display an image, hahaha


I’d like to ‘suspend to disk’ (formerly: hibernate) my machine, instead completely or really shutdown the machine. One day i realized that my clock doesn’t display a correct time!!


$ date

Mon Feb 13 10:37:33 PST 2012


$ date -R

Mon, 13 Feb 2012 10:36:10 -0800


In fact, my host ‘live’ on different time zone (GMT +7, WIT)
So here it’s a little HOW-TO in full CLI method, very useful for server 🙂

Backup current timezone (file)

# mv /etc/localtime /etc/localtime-old


Change this file to appropriate timezone, (take a look at /usr/share/zoneinfo/*)
Create a symbolic link between them


# ln -sf /usr/share/Asia/Jakarta /etc/localtime-old

(nb: in my case i live in West Indonesia Time(WIT))
Now update current time to Time Server

# rdate -s time-a.nist.gov

or using ntpdate if rdate not currently installed on your system

# ntpdate time-a.nist.gov

Finally check again our time, is it in correct timezone or not?

$ date

Mon Feb 13 10:49:35 WIT 2012


$ date -R

Mon, 13 Feb 2012 10:49:32 +0700

Hope it helps 🙂