<?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>Server Monkey &#187; Time</title>
	<atom:link href="http://server-monkey.com/category/time/feed/" rel="self" type="application/rss+xml" />
	<link>http://server-monkey.com</link>
	<description></description>
	<lastBuildDate>Sat, 22 Jan 2011 18:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Keep your clocks in sync</title>
		<link>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/</link>
		<comments>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:13:32 +0000</pubDate>
		<dc:creator>Thor Erik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=59</guid>
		<description><![CDATA[An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230; Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol. Setting it up is easy: on RHEL/Fedora/CentOS: centos ~ # yum install ntp on Debian and debian based distributions: debian ~ [...]]]></description>
			<content:encoded><![CDATA[<p>An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230;</p>
<p>Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol.</p>
<p>Setting it up is easy:</p>
<p>on RHEL/Fedora/CentOS:</p>
<p>centos ~ # <em>yum install ntp</em></p>
<p>on Debian and debian based distributions:</p>
<p>debian ~ # <em>apt-get install ntp</em></p>
<p>(everything is root of course)</p>
<p>on debian you are done now, NTPD should be started, of course if you want to specify your own NTP server or NTP pool, you just edit /etc/ntp.conf</p>
<p>on RHEL it&#8217;s just a few more steps:</p>
<p><em>chkconfig ntpd on</em></p>
<p><em>ntpdate pool.ntp.org</em></p>
<p><em>/etc/init.d/ntpd start</em></p>
<p>and that should be it, please do know that if it&#8217;s a VPS forget about NTP, the system time is inherited from the host, unless you run it on a windows host(ex. Windows 2008 or in my debian server&#8217;s case, Windows 2008 R2 and using Hyper-V)</p>
<p>The error you get will be something like this:</p>
<p><em>ntpdate[18411]: step-systime: Operation not permitted</em></p>
<p>after trying to run <em>ntpdate pool.ntp.org</em></p>
<p>On Windows it&#8217;s all a hell lot easier(in gui that is)</p>
<p>Right click on the clock and choose Adjust time and date</p>
<p>go to the Internet time tab.</p>
<p>then click the button saying Change settings.</p>
<p>make sure the checkbox is checked, and if you prefer a different ntp server, change it from time.microsoft.com (but it&#8217;s good as well, NTP takes latency into account when setting clock)</p>
<p>Windows does not support ntp pools, so please define a proper NTP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

