<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog dot Melimato dot Com &#187; server</title>
	<atom:link href="http://blog.melimato.com/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.melimato.com</link>
	<description>Those things we do</description>
	<lastBuildDate>Thu, 24 Dec 2009 11:58:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to sync date/time in Ubuntu Intrepid</title>
		<link>http://blog.melimato.com/how-to-sync-datetime-in-ubuntu-intrepid/</link>
		<comments>http://blog.melimato.com/how-to-sync-datetime-in-ubuntu-intrepid/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 14:55:39 +0000</pubDate>
		<dc:creator>pablo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[chrony]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.melimato.com/blog/?p=9</guid>
		<description><![CDATA[In order to keep my servers always showing the correct date/time I use a little software called chrony and make sure I&#8217;m using the correct time zone. All the actions below need superuser privileges To install it simply use apt-get: $ apt-get install chrony Once you&#8217;ve installed chrony you need to select your current time [...]]]></description>
			<content:encoded><![CDATA[<p>In order to keep my servers always showing the correct date/time I use a little software called <a href="http://chrony.sunsite.dk/" title="chrony website">chrony</a> and make sure I&#8217;m using the correct time zone.</p>
<p><span id="more-9"></span></p>
<p><strong>All the actions below need superuser privileges</strong></p>
<p>To install it simply use apt-get:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> chrony</pre></div></div>

<p>Once you&#8217;ve installed chrony you need to select your current time zone:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ tzselect</pre></div></div>

<p>To make sure it is selected on every boot I just export the TZ environment variable in my /etc/rc.local</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local</pre></div></div>

<p>And add the following lines:<br />
# Export timezone<br />
TZ=&#8217;Europe/Brussels&#8217;; export TZ</p>
<p>I found doing the above was not enough, so I also edited my /etc/timezone file and added the correct time zone there:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Europe/Brussels&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>timezone</pre></div></div>

<p>And still it wasn&#8217;t enough, so I reconfigured the package tzdata</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ dpkg-reconfigure tzdata</pre></div></div>

<p>And finally that did it! To make sure it would still be correct on a future reboot I rebooted my machine:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ reboot</pre></div></div>

<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.melimato.com/how-to-sync-datetime-in-ubuntu-intrepid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
