Difference between pages "Package:Chrony" and "Template:Subarch"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (update console templates & insert ebuild info)
 
 
Line 1: Line 1:
{{Ebuild
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
|Summary=Chrony is a pair of programs (chronyd and chronyc) which are used to maintain the accuracy of the system clock on a computer. chronyd has been specifically written to work well for systems which have only an intermittent (e.g. dial-up) connection to the network where the NTP servers are. It still works well in a "permanently connected" mode.
{{DISPLAYTITLE:Download - {{{title}}}}}
|CatPkg=net-misc/chrony
|
|Homepage=http://chrony.tuxfamily.org/
{{DISPLAYTITLE:Download - {{{subarch}}}}}
}}
}}'''This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].'''
 
=== Accurate System Time (NTP) ===
 
It's important that your Funtoo Linux system has an accurate clock. NTP (network time protocol) can ensure your clock is accurate at all time.
 
The recommended NTP client/server is '''{{Package|net-misc/chrony}}'''.
 
{{console|body=
###i## emerge chrony
###i## rc-update add chronyd default
}}
 
Use something like the following for your <code>/etc/chrony/chrony.conf</code>:
 
<pre>
server time.apple.com
maxupdateskew 100
driftfile /etc/chrony/chrony.drift
keyfile /etc/chrony/chrony.keys
commandkey 1
dumponexit
dumpdir /var/log/chrony
initstepslew 10 time.apple.com
logdir /var/log/chrony
log measurements statistics tracking
logchange 0.5
mailonchange me@emailprovider.com 0.5
rtcfile /etc/chrony/chrony.rtc
rtconutc
sched_priority 1
lock_all
</pre>
 
Chronyd can then be started immediately by running <code>rc</code> to start all new services:


{{console|body=
{{{Description|}}}
###i## rc
{{#seo:
|title={{#if:{{{title|}}}|Download - {{{title}}}|Download - {{{subarch}}}}}
|keywords=funtoo,linux,build,subarch,{{{subarch}}},{{{title}}}
|description=This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].
}}
}}
 
{{#set:CPU Family={{{CPU Family|}}}|subarch={{{subarch|}}}|CHOST={{{CHOST|}}}|CFLAGS={{{CFLAGS|}}}|USE={{{USE|}}}|CPU Features={{{CPU Features|}}}|Description={{{Description|}}}|title={{{title|}}}}}
Because Funtoo Linux starts network daemons without waiting for an Internet connection to become available, and because chrony will attempt to synchronize the clock over the Internet when it first starts, you must manually configure chronyd to be dependent on whatever method you use to enable your outbound network connectivity. For example, if using <code>dhcpcd</code>, add the following to <code>/etc/conf.d/chronyd</code>:
=== Optimizations ===
 
__NOTOC__
<pre>
{{TableStart}}
rc_need=dhcpcd
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
</pre>
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
 
<tr><td>USE (see [[CPU_FLAGS]] for more info)</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
You should notice a marked improvement in your system clock's accuracy. If your system time was off by a significant amount, <code>chronyd</code> will gradually correct your clock while the system runs.
{{TableEnd}}{{#vardefine:subarch|{{{subarch|}}}}}{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='{{{subarch|}}}']/@builds}}{{#vardefine:builds|{{#external_value:builds}}}}
 
=== Download ===
[[Category:System]]
{{#if:{{#var:builds}}|This section lists the Funtoo Linux builds currently available for download for '''{{{subarch}}}'''.  A full list of Funtoo Linux builds can be found on the [[Subarches]] page.
[[Category:Official Documentation]]
{{table|1=
 
<tr><th class="active">Build</th><th class="active">Variant</th><th class="active">Latest Build</th><th class="active">Download</th><th class="active">Browse Mirror</th></tr>{{#arraymaptemplate:{{#var:builds}}|DisplayBuilds|,|}}}}|No downloadable stage builds are currently available for this sub-architecture.}}
{{EbuildFooter}}
{{Important|Do you want a particular build of Funtoo Linux but do not see it here? Let us know what you need, and we will likely add it for you. [https://bugs.funtoo.org Create a bug report] requesting the build you need. To see what options there are, see our [[Corei7|Intel Core i7]] subarch page, which has a lot of builds listed.}}
[[Category:Subarches]]
__NOEDITSECTION__
=== Detailed Description ===
</includeonly>

Revision as of 00:03, March 29, 2015