<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to install and configure NTP on Sabayon 5</title>
	<atom:link href="http://www.linuxbsdos.com/2009/11/02/how-to-install-and-configure-ntp-on-sabayon-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxbsdos.com/2009/11/02/how-to-install-and-configure-ntp-on-sabayon-5/</link>
	<description>Promoting Free Software</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:37:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: finid</title>
		<link>http://www.linuxbsdos.com/2009/11/02/how-to-install-and-configure-ntp-on-sabayon-5/comment-page-1/#comment-5707</link>
		<dc:creator>finid</dc:creator>
		<pubDate>Fri, 26 Nov 2010 21:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://linuxbsdos.com/?p=2763#comment-5707</guid>
		<description>Thank you. For something this detailed, perhaps you should post it in the &lt;a href=&quot;http://linuxbsdos.com/forum/forum-46.html&quot; rel=&quot;nofollow&quot;&gt;forum&lt;/a&gt;.

Btw, running NTP is not as involved on a Debian-based system. It just works.</description>
		<content:encoded><![CDATA[<p>Thank you. For something this detailed, perhaps you should post it in the <a href="http://linuxbsdos.com/forum/forum-46.html" rel="nofollow">forum</a>.</p>
<p>Btw, running NTP is not as involved on a Debian-based system. It just works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fitzcarraldo</title>
		<link>http://www.linuxbsdos.com/2009/11/02/how-to-install-and-configure-ntp-on-sabayon-5/comment-page-1/#comment-5706</link>
		<dc:creator>Fitzcarraldo</dc:creator>
		<pubDate>Fri, 26 Nov 2010 17:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://linuxbsdos.com/?p=2763#comment-5706</guid>
		<description>Having now configured a couple of PCs to sync their system clock by using NTP, I can answer my own question regarding ntp-client:

Although I have read on some sites that /etc/init.d/ntp-client should be added to the default runlevel in order to read the time from an NTP server (once-only, during start-up), this in fact does not work because usually the network connection is not up by the time the ntp-client initscript runs. Some solutions to this problem are given in the Sabayon Linux Forums thread http://forum.sabayon.org/viewtopic.php?f=59&amp;t=15119

If you are using NetworkManager on your PC, an elegant solution is to use NetworkManagerDispatcher to restart ntp-client in order to resync your system clock every time a network connection comes up. Another way is to create a cronjob to run the ntpdate command or the &quot;/etc/init.d/ntp-client restart&quot; command. Yet another way (a &#039;quick-and-dirty&#039; solution) is to delay running ntp-client until the network is up after boot by putting e.g. &quot;sleep 10s &amp;&amp; /etc/init.d/ntp-client restart&quot; in /etc/conf.d/local.

Regarding the NTP daemon, it is possible to set this to run at start-up from the command line rather than via a Desktop Environment GUI. The command:

# rc-update add ntpd default

will add the daemon&#039;s initscript to the default runlevel so that it is run automatically at next startup, and the command:

# /etc/init.d/ntpd start

will start the daemon running right now.

If you make clock_systohc=&quot;YES&quot; in the file /etc/conf.d/hwclock then the time in the system clock will be written to the BIOS (CMOS) clock (a.k.a. hardware clock) when you shut down your PC. Sabayon Linux has the file configured this way by default.

Note that, by default, the NTP daemon won&#039;t correct, all in one go, a time difference between your system clock and the remote NTP server if that difference is above a certain size. However, if you want to override the default behaviour, i.e. allow the NTP daemon to make a large first adjustment to the system clock, you can set the environment variable NTPD_OPTS in the /etc/conf.d/ntpd file as follows:

NTPD_OPTS=&quot;-g&quot;

This would mean that you would not need to run ntp-client before ntpd. However, if you run ntp-client automatically -- either once after start-up or periodically -- then that would be good enough for the typical desktop user and could be an alternative to having a continuously-running NTP daemon. Nothing stops you doing both if you want, of course.</description>
		<content:encoded><![CDATA[<p>Having now configured a couple of PCs to sync their system clock by using NTP, I can answer my own question regarding ntp-client:</p>
<p>Although I have read on some sites that /etc/init.d/ntp-client should be added to the default runlevel in order to read the time from an NTP server (once-only, during start-up), this in fact does not work because usually the network connection is not up by the time the ntp-client initscript runs. Some solutions to this problem are given in the Sabayon Linux Forums thread <a href="http://forum.sabayon.org/viewtopic.php?f=59&#038;t=15119" rel="nofollow">http://forum.sabayon.org/viewtopic.php?f=59&#038;t=15119</a></p>
<p>If you are using NetworkManager on your PC, an elegant solution is to use NetworkManagerDispatcher to restart ntp-client in order to resync your system clock every time a network connection comes up. Another way is to create a cronjob to run the ntpdate command or the &#8220;/etc/init.d/ntp-client restart&#8221; command. Yet another way (a &#8216;quick-and-dirty&#8217; solution) is to delay running ntp-client until the network is up after boot by putting e.g. &#8220;sleep 10s &amp;&amp; /etc/init.d/ntp-client restart&#8221; in /etc/conf.d/local.</p>
<p>Regarding the NTP daemon, it is possible to set this to run at start-up from the command line rather than via a Desktop Environment GUI. The command:</p>
<p># rc-update add ntpd default</p>
<p>will add the daemon&#8217;s initscript to the default runlevel so that it is run automatically at next startup, and the command:</p>
<p># /etc/init.d/ntpd start</p>
<p>will start the daemon running right now.</p>
<p>If you make clock_systohc=&#8221;YES&#8221; in the file /etc/conf.d/hwclock then the time in the system clock will be written to the BIOS (CMOS) clock (a.k.a. hardware clock) when you shut down your PC. Sabayon Linux has the file configured this way by default.</p>
<p>Note that, by default, the NTP daemon won&#8217;t correct, all in one go, a time difference between your system clock and the remote NTP server if that difference is above a certain size. However, if you want to override the default behaviour, i.e. allow the NTP daemon to make a large first adjustment to the system clock, you can set the environment variable NTPD_OPTS in the /etc/conf.d/ntpd file as follows:</p>
<p>NTPD_OPTS=&#8221;-g&#8221;</p>
<p>This would mean that you would not need to run ntp-client before ntpd. However, if you run ntp-client automatically &#8212; either once after start-up or periodically &#8212; then that would be good enough for the typical desktop user and could be an alternative to having a continuously-running NTP daemon. Nothing stops you doing both if you want, of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fitzcarraldo</title>
		<link>http://www.linuxbsdos.com/2009/11/02/how-to-install-and-configure-ntp-on-sabayon-5/comment-page-1/#comment-600</link>
		<dc:creator>Fitzcarraldo</dc:creator>
		<pubDate>Sun, 28 Feb 2010 10:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://linuxbsdos.com/?p=2763#comment-600</guid>
		<description>In this tutorial you start the ntp-client manually by using the command:

# /etc/init.d/ntp-client start

However that command would not cause ntp-client to be started automatically when you reboot; it only starts ntp-client for the current session.

Don&#039;t you also have to add net-client to the default runlevel so that it starts automatically when you next boot?:

# rc-update add ntp-client default

Or does using &#039;Kickoff &gt; Computer &gt; System Settings &gt; Date &amp; Time&#039; to configure KDE 4 to synchronise automatically with an NTP time server add ntp-client to the default runlevel for you?</description>
		<content:encoded><![CDATA[<p>In this tutorial you start the ntp-client manually by using the command:</p>
<p># /etc/init.d/ntp-client start</p>
<p>However that command would not cause ntp-client to be started automatically when you reboot; it only starts ntp-client for the current session.</p>
<p>Don&#8217;t you also have to add net-client to the default runlevel so that it starts automatically when you next boot?:</p>
<p># rc-update add ntp-client default</p>
<p>Or does using &#8216;Kickoff &gt; Computer &gt; System Settings &gt; Date &amp; Time&#8217; to configure KDE 4 to synchronise automatically with an NTP time server add ntp-client to the default runlevel for you?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

