
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.sabayonlinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Set_Clock&amp;feed=atom&amp;action=history</id>
		<title>HOWTO: Set Clock - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Set_Clock&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Set_Clock&amp;action=history"/>
		<updated>2013-05-19T06:36:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.4</generator>

	<entry>
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Set_Clock&amp;diff=16153&amp;oldid=prev</id>
		<title>Azerthoth: /* Setting your Clock */</title>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Set_Clock&amp;diff=16153&amp;oldid=prev"/>
				<updated>2012-10-06T06:23:11Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Setting your Clock&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Setting your Clock=&lt;br /&gt;
For the whole of this how-to you need to be root user. So you might as well `su` now&lt;br /&gt;
&lt;br /&gt;
==Adding NTP to your system==&lt;br /&gt;
&lt;br /&gt;
First off we are going to set up so that your computer will go out and find out what time it is on its own.&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# equo install net-misc/ntp &amp;lt;/pre&amp;gt;}}&lt;br /&gt;
The next two commands will update the time on your system and adjust the time for your hardware clock&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# ntpdate time-a.nist.gov&lt;br /&gt;
# hwclock --systohc &amp;lt;/pre&amp;gt;}}&lt;br /&gt;
Finally we are going to tell your computer that it needs to check the time when it boots up, and keep checking occasionally as long as it is booted up. Also we will set it up so that it will act as a time server for any other devices you might have on your network.&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt; # rc-update add ntpd default&lt;br /&gt;
# rc-update add ntp-client default &amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
==Setting System Time==&lt;br /&gt;
In our last step we set our hardware clock, now we are going to define our hardware clock.&lt;br /&gt;
In you favorite text editor, as root, you need to edit:&lt;br /&gt;
&amp;lt;pre&amp;gt; /etc/conf.d/hwclock &amp;lt;/pre&amp;gt;&lt;br /&gt;
You should see a line at the bottom of the top section that looks like&lt;br /&gt;
&amp;lt;pre&amp;gt;clock=&amp;quot;UTC&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If it says anything other than UTC edit it and make it just as that line is in the example. Save and exit.&lt;br /&gt;
&lt;br /&gt;
==Setting Local Time==&lt;br /&gt;
Finally we are going to tell the computer what time zone you are in.&lt;br /&gt;
&lt;br /&gt;
First things first, we remove the link that already exists&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt; # rm /etc/localtime &amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Now we are going to set a link to your actual timezone. The easiest way to drill down to this is using TAB complete, where you type a few letters and hit the tab key to complete the next little bit. If there are too many options it will show you your available options and then you keep typing. A pretty nifty trick.&lt;br /&gt;
{{Console|&amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt; # ln -s /usr/share/zoneinfo/USE_TAB_COMPLETE_HERE_TO_SELECT /etc/localtime&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
an example would be&lt;br /&gt;
&amp;lt;pre&amp;gt; ln -s /usr/share/zoneinfo/America/Adak /etc/localtime &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All done and thanks for playing&lt;br /&gt;
~Az&lt;/div&gt;</summary>
		<author><name>Azerthoth</name></author>	</entry>

	</feed>