Thursday, 26 April 2012


How to configure timezone in a linux box.

1.Preserve current configuration file if required.
   ***************************************************
# cp  /etc/localtime   /etc/localtime.org

2.Create a link to IST timezone file (/usr/share/zoneinfo/Asia/Calcutta) or copy /usr/share/zoneinfo/Asia/Calcutta  as /etc/localtime.
   ******************************************************************************************************************
# ln  -s   /usr/share/zoneinfo/Asia/Calcutta   /etc/localtime


Test our new configuration.
*******************************
[linuxbox~]$ date
Tue Feb 28 12:07:38 IST 2012

No comments:

Post a Comment

Kubernetes cluster setup on Ubuntu 26.04 using Kubeadm

Step1: Disable swap memory: Kubernetes requires swap to be disabled for the kubelet to function correctly # swapoff -a # sudo sed -i '/...