source: general/sysutils/blocaled.xml@ 0110dbd

12.2 trunk
Last change on this file since 0110dbd was 56b0b0b, checked in by Bruce Dubbs <bdubbs@…>, 4 weeks ago

Tak the rest of Chapters 11 and 12.

  • Property mode set to 100644
File size: 7.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY blocaled-download-http "https://github.com/lfs-book/blocaled/releases/download/v&blocaled-version;/blocaled-&blocaled-version;.tar.xz">
8 <!ENTITY blocaled-download-ftp " ">
9 <!ENTITY blocaled-md5sum "b85e436aee3612879b9948a0cc96ce00">
10 <!ENTITY blocaled-size "160 KB">
11 <!ENTITY blocaled-buildsize "5.3 MB (with tests)">
12 <!ENTITY blocaled-time "less than 0.1 SBU (with tests)">
13]>
14
15<sect1 id="blocaled" revision="sysv" xreflabel="blocaled-&blocaled-version;">
16 <?dbhtml filename="blocaled.html"?>
17
18
19 <title>blocaled-&blocaled-version;</title>
20
21 <indexterm zone="blocaled">
22 <primary sortas="a-blocaled">blocaled</primary>
23 </indexterm>
24
25 <!--Required section-->
26 <sect2 role="package">
27 <title>Introduction to blocaled</title>
28
29 <para>
30 <application>blocaled</application> is an implementation of the
31 <emphasis>org.freedesktop.locale1</emphasis> D-Bus protocol,
32 which normally comes with <application>systemd</application>. It is
33 needed by the <application>GNOME</application> desktop.
34 </para>
35
36 &lfs122_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&blocaled-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&blocaled-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &blocaled-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &blocaled-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &blocaled-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &blocaled-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">blocaled Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <xref linkend="polkit"/> and
77 <xref linkend="libdaemon"/>
78 </para>
79
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of blocaled</title>
84
85 <para>
86 Install <application>blocaled</application> by running the following
87 commands:
88 </para>
89
90<screen><userinput>autoreconf -fiv &amp;&amp;
91./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
92make</userinput></screen>
93
94 <para>
95 To test the results, issue: <command>make check</command>.
96 </para>
97
98 <para>
99 Now, as the <systemitem class="username">root</systemitem> user:
100 </para>
101
102<screen role="root"><userinput>make install</userinput></screen>
103 </sect2>
104
105 <sect2 role="configuration">
106 <title>Configuring blocaled</title>
107
108 <sect3 id="blocaled-config">
109 <title>Config Files</title>
110 <para>
111 <filename>/etc/blocaled.conf</filename>
112 </para>
113
114 <indexterm zone="blocaled blocaled-config">
115 <primary
116 sortas="e-etc-blocaled.conf">/etc/blocaled.conf</primary>
117 </indexterm>
118 </sect3>
119
120 <sect3><title>Configuration Information</title>
121
122 <para>
123 <filename>/etc/blocaled.conf</filename> contains the location of
124 the settings files used by <application>blocaled</application>. The
125 defaults are suitable for BLFS. Information about the entries is
126 available as comments in the file.
127 </para>
128
129 <para>
130 The <emphasis>org.freedesktop.locale1</emphasis> protocol is
131 unable to export locale variables. Locale settings are stored
132 by default in <filename>/etc/locale.conf</filename>. We need to
133 retrieve them in the bash profile. As the <systemitem class="username">
134 root</systemitem> user, issue:
135 </para>
136
137<screen role="root"><userinput>cat &gt; /etc/profile.d/i18n.sh &lt;&lt; "EOF"
138<literal># Begin /etc/profile.d/i18n.sh
139
140if [ -r /etc/locale.conf ]; then source /etc/locale.conf; fi
141
142if [ -n "$LANG" ]; then export LANG; fi
143if [ -n "$LC_TYPE" ]; then export LC_TYPE; fi
144if [ -n "$LC_NUMERIC" ]; then export LC_NUMERIC; fi
145if [ -n "$LC_TIME" ]; then export LC_TIME; fi
146if [ -n "$LC_COLLATE" ]; then export LC_COLLATE; fi
147if [ -n "$LC_MONETARY" ]; then export LC_MONETARY; fi
148if [ -n "$LC_MESSAGES" ]; then export LC_MESSAGES; fi
149if [ -n "$LC_PAPER" ]; then export LC_PAPER; fi
150if [ -n "$LC_NAME" ]; then export LC_NAME; fi
151if [ -n "$LC_ADDRESS" ]; then export LC_ADDRESS; fi
152if [ -n "$LC_TELEPHONE" ]; then export LC_TELEPHONE; fi
153if [ -n "$LC_MEASUREMENT" ]; then export LC_MEASUREMENT; fi
154if [ -n "$LC_IDENTIFICATION" ]; then export LC_IDENTIFICATION; fi
155
156# End /etc/profile.d/i18n.sh</literal>
157EOF</userinput></screen>
158
159 <para>
160 Then the <filename>/etc/locale</filename> file should be generated,
161 as the <systemitem class="username">root</systemitem> user:
162 </para>
163
164<screen role="root"><userinput>cat &gt; /etc/locale.conf &lt;&lt; EOF
165<literal># Begin /etc/locale.conf
166
167LANG=$LANG
168
169# End /etc/locale.conf</literal>
170EOF</userinput></screen>
171
172 <para>
173 If you plan to run an X (or Wayland) Window system, you may want to
174 set up your X keyboard. The best way to do it is to retrieve the
175 settings from <filename>/etc/sysconfig/console</filename>, and feed
176 them to the <application>blocaled</application> daemon. As the
177 <systemitem class="username">root</systemitem> user:
178 </para>
179
180<screen role="root"><userinput>source /etc/sysconfig/console &amp;&amp;
181KEYMAP=${KEYMAP:-us} &amp;&amp;
182
183gdbus call --system \
184 --dest org.freedesktop.locale1 \
185 --object-path /org/freedesktop/locale1 \
186 --method org.freedesktop.locale1.SetVConsoleKeyboard \
187 "$KEYMAP" "$KEYMAP_CORRECTIONS" true true</userinput></screen>
188
189 <para>
190 This should create or modify the Xorg configuration file (default is
191 <filename>/etc/X11/xorg.conf.d/30-keyboard.conf</filename>) to match
192 the keyboard settings set in <envar>KEYMAP</envar>.
193 </para>
194
195 </sect3>
196
197 </sect2>
198
199 <sect2 role="content">
200 <title>Contents</title>
201
202 <segmentedlist>
203 <segtitle>Installed Program</segtitle>
204 <segtitle>Installed Library</segtitle>
205 <segtitle>Installed Directory</segtitle>
206
207 <seglistitem>
208 <seg>
209 blocaled (in <filename class="directory">/usr/libexec</filename>)
210 </seg>
211 <seg>
212 None
213 </seg>
214 <seg>
215 /usr/share/blocaled
216 </seg>
217 </seglistitem>
218 </segmentedlist>
219
220 <variablelist>
221 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
222 <?dbfo list-presentation="list"?>
223 <?dbhtml list-presentation="table"?>
224
225 <varlistentry id="blocaled-prog">
226 <term><command>blocaled</command></term>
227 <listitem>
228 <para>
229 is the daemon implementing the
230 <emphasis>org.freedesktop.locale1</emphasis> D-Bus protocol
231 </para>
232 <indexterm zone="blocaled blocaled-prog">
233 <primary sortas="b-blocaled">blocaled</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237 </variablelist>
238 </sect2>
239
240</sect1>
Note: See TracBrowser for help on using the repository browser.