time (Blog)http://www.turnkeylinux.org/blog/term/684/0
enConfiguring the timezone on TurnKey Linuxhttp://www.turnkeylinux.org/blog/configuring-timezone
<p>For some TurnKey appliances, it&#39;s important to set the date and time of the server before starting to use the application.</p>
<p>Examples:</p>
<ul>
<li>
We&#39;re installing a <a href="http://www.turnkeylinux.org/wordpress" rel="nofollow">blog</a> or <a href="http://www.turnkeylinux.org/phpbb" rel="nofollow">forum</a> application, and we want to know the exact date and hour a blog post was made.</li>
<li>
We&#39;re installing an <a href="http://www.turnkeylinux.org/redmine" rel="nofollow">issue tracker</a>, and we need to to know the exact date and time when an issue was created or closed.</li>
<li>
We&#39;re installing a <a href="http://www.turnkeylinux.org/postgresql" rel="nofollow">database</a>, and it&#39;s important for us to be able to audit the database. The date and time should be correctly configured and reflected on the database logs.&nbsp;</li>
</ul>
<p>When you deploy a TurnKey appliance, it comes with <a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time" rel="nofollow">UTC timezone</a> configured by default, from which the rest of timezones are calculated. To configure our own timezone, you use one of two methods.</p>
<h2>
1) Setting timezone using Web interface (webmin)</h2>
<p>By default, Turnkeylinux doesn&#39;t come with webmin&#39;s system time module. Here is how you can install it and use it to change your timezone:</p>
<p>1. Access webmin using your prefered browser at <a href="https://your-appliance-ip:12321" title="https://your-appliance-ip:12321" rel="nofollow">https://your-appliance-ip:12321</a> and login as root with the password you stablished at installation time.</p>
<p><img alt="turnkey-login" src="/files/images/blog/timezone/turnkey-login.png" /></p>
<p>2. Navigate from the main menu to System-&gt;Software Packages, and in the section Install a New Package, we select Package from APT and write &quot;webmin-time&quot; as the name of the package. Click on the install button.</p>
<p><img alt="tkl-softwarepackages" src="/files/images/blog/timezone/tkl-softwarepackages.png" /></p>
<p>3. Once the module is installed correctly, we follow the &quot;Return to module index&quot; link. Now, we&#39;ll have available the System Time option in the System menu.</p>
<p><img alt="tkl-installpackage" src="/files/images/blog/timezone/tkl-installpackage.png" /></p>
<p>4. Access the System Time option, and select Change Timezone. There you&#39;ll be able to select your timezone and apply it, and the server will change the time and date to correspond with your setting.&nbsp;</p>
<p><img alt="tkl-systemtime-1" src="/files/images/blog/timezone/tkl-systemtime-1.png" /></p>
<p><img alt="tkl-systemtime-2" src="/files/images/blog/timezone/tkl-systemtime-2.png" /></p>
<h2>
2) Changing timezone via Command Line Interface</h2>
<p>If you are confortable working at the CLI level, follow this procedure:</p>
<p>1. SSH to your server as root, using the password you stablished at installation time.</p>
<p>2. Run the command &quot;dpkg-reconfigure tzdata&quot;. You&#39;ll be able to select your timezone and the system will configure time and date accordly.</p>
<p><img alt="console-tzdata" src="/files/images/blog/timezone/console-tzdata.png" /></p>
<p>That&#39;s all, now you will have your server ready for use, with the correct time and date reflected!</p>
<p>&nbsp;</p>
<p><span class="Apple-style-span">You can check this post in spanish&nbsp;</span><span class="Apple-style-span"><a href="http://adrianmoya.com/2011/08/estableciendo-la-zona-horaria-en-turnkeylinux/" rel="nofollow" rel="nofollow">here</a></span><span class="Apple-style-span">.&nbsp;</span></p>http://www.turnkeylinux.org/blog/configuring-timezone#commentsdatedatetimeguesttimetimezonetipsThu, 29 Sep 2011 05:00:05 +0000Adrian Moya2558 at http://www.turnkeylinux.org