SOHO : Small Office Home Office
Freeware - Opensource software tips, tricks, tweaks & fixes for managing, securing, improving the performance of SOHO Desktop, Laptop, Networks

Saturday, March 31, 2012

Set Linux local timezone for VPS


This guide describes how to set the Linux local timezone.


ls /usr/share/zoneinfo/  and note the region where you reside 
ls /usr/share/zoneinfo/<YOUR_REGION> (where <YOUR_REGION> is your local region) and note the timezone which corresponds to your location 

For Ubuntu
ln -sf /usr/share/zoneinfo/<YOUR_REGION>/<YOUR_TIMEZONE> /etc/localtime 

For Debian
ln -sf /usr/share/zoneinfo/<YOUR_REGION>/<YOUR_TIMEZONE localtime 

Use date command to verify that your timezone has change.

No comments:

Post a Comment