source: chapter07/setclock.xml@ 6a0e6f3

Last change on this file since 6a0e6f3 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 19 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xmlns:xlink="http://www.w3.org/1999/xlink"
8 xml:id="ch-scripts-setclock">
9<title>Configuring the setclock script</title>
10<?dbhtml filename="setclock.html"?>
11
12<indexterm zone="ch-scripts-setclock">
13<primary sortas="d-setclock">setclock</primary>
14<secondary>configuring</secondary></indexterm>
15
16<para>This <command>setclock</command> script reads the time from your hardware clock, also
17known as BIOS or CMOS (Complementry Metal-Oxide Semiconductor) clock, and either converts that time to localtime
18using the <filename>/etc/localtime</filename> file (if the hardware clock
19is set to GMT) or not (if the hardware clock is already set to localtime).
20There is no way to auto-detect whether the hardware clock is set to GMT or
21not, so we need to configure that here ourselves.</para>
22
23<para>Change the value of the <emphasis>UTC</emphasis> variable below to a
24<parameter>0</parameter> (zero) if your hardware clock is not set to GMT
25time.</para>
26
27<para>Create a new file <filename>/etc/sysconfig/clock</filename> by running
28the following:</para>
29
30<screen><userinput>cat &gt; /etc/sysconfig/clock &lt;&lt; "EOF"
31# Begin /etc/sysconfig/clock
32
33UTC=1
34
35# End /etc/sysconfig/clock
36EOF</userinput></screen>
37
38<para>Now, you may want to take a look at a very good hint explaining how we
39deal with time on LFS at <uri xlink:href="&hints-root;time.txt"/>.
40It explains issues such as time zones, UTC, and the TZ environment
41variable.</para>
42
43</section>
Note: See TracBrowser for help on using the repository browser.