May 25, 2011

set time zone on Ubuntu

Modify time zone on Ubuntu 10.04.

$ sudo tzselect

$ sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

$ sudo ntpdate cn.pool.ntp.org

# disable UTC
$ sudo sed -i 's/^UTC=yes/UTC=no/' /etc/rcS

No comments:

Post a Comment

您的评论将使我blog更有动力~