| Author |
Message |
caker
Joined: 15 Apr 2003
Posts: 2371
Location: Galloway, NJ
|
| Posted: Tue Oct 05, 2004 5:22 pm Post subject: Set the correct timezone on your Linode |
|
|
While the hosts keep good time for the Linodes using ntp, it is important that you set the correct timezone for your Linode. Here's how:
The timezone under Linux is set by a symbolic link from /etc/localtime to a file in the /usr/share/zoneinfo directory that corresponds with what timezone you are in.
Code: # ls /usr/share/zoneinfo/
Africa Cuba GMT0 Japan Poland UCT
America EET GMT-0 Kwajalein Portugal Universal
Antarctica Egypt GMT+0 Libya posix US
Arctic Eire Greenwich MET posixrules UTC
Asia EST Hongkong Mexico PRC WET
Atlantic EST5EDT HST Mideast PST8PDT W-SU
Australia Etc Iceland MST right zone.tab
Brazil Europe Indian MST7MDT ROC Zulu
Canada Factory Iran Navajo ROK
CET GB iso3166.tab NZ Singapore
Chile GB-Eire Israel NZ-CHAT SystemV
CST6CDT GMT Jamaica Pacific Turkey
Code: # ls /usr/share/zoneinfo/US/
Alaska Arizona Eastern Hawaii Michigan Pacific
Aleutian Central East-Indiana Indiana-Starke Mountain Samoa
For example, I want to set my Linux install to use US/Central timezone, so I would execute the following:
Code: ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
By default, the distros are set up for US/Eastern (I believe). Setting your correct timezone helps spread out the load when all the cron jobs fire off in the early mornings. Please do this. ;)
Code: ln -sf /usr/share/zoneinfo/your/zone /etc/localtime
Thanks,
-Chris |
|
| Back to top |
|
peterhoeg
Joined: 10 Jun 2005
Posts: 5
Location: Denmark
|
| Posted: Fri Jul 01, 2005 4:09 am Post subject: Re: Set the correct timezone on your Linode |
|
|
The friendly way to do this (at least under Debian - not sure if it works the same way in other dists):
Code: # tzconfig
Your current time zone is set to Europe/Copenhagen
Do you want to change that? [n]:
Press "y" and then simply answer the questions. |
|
| Back to top |
|
kr4z
Joined: 14 Aug 2006
Posts: 7
|
| Posted: Mon Aug 14, 2006 6:41 am Post subject: |
|
|
tzconfig also works for Ubuntu (not suprisingly)
Also, "timeconfig" serves the same purpose in slackware. |
|
| Back to top |
|
NeonNero
Joined: 04 Jan 2005
Posts: 117
Location: Ålesund, Norway
|
| Posted: Mon Aug 14, 2006 6:52 am Post subject: |
|
|
| Since this has been bumped up, I thought I'd mention that Gentoo has a similar utility called tzselect. Just run it and answer the questions (contintent, country, and if asked, city). I'm not sure which other distros this one is available on, though. |
|
| Back to top |
|
rjp
Joined: 15 Aug 2003
Posts: 102
|
| Posted: Mon Aug 14, 2006 7:23 pm Post subject: |
|
|
| Maybe I'm a bit of a contrarian here, but I run my Linode on UTC. This completely eliminates any ambiguity (e.g. daylight savings). |
|
| Back to top |
|
| |