source: general/sysutils/blocaled.xml

trunk
Last change on this file was 868811b, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Many tags.
genutils
sysutils
netlibs
netprogs
netutils
editors
filesystems
shells

  • 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 "04d9833d0dfbf3609b0d8f6d276812ff">
10 <!ENTITY blocaled-size "262 KB">
11 <!ENTITY blocaled-buildsize "4.2 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 &lfs121_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>./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
91make</userinput></screen>
92
93 <para>
94 To test the results, issue: <command>make check</command>.
95 </para>
96
97 <para>
98 Now, as the <systemitem class="username">root</systemitem> user:
99 </para>
100
101<screen role="root"><userinput>make install</userinput></screen>
102 </sect2>
103
104 <sect2 role="configuration">
105 <title>Configuring blocaled</title>
106
107 <sect3 id="blocaled-config">
108 <title>Config Files</title>
109 <para>
110 <filename>/etc/blocaled.conf</filename>
111 </para>
112
113 <indexterm zone="blocaled blocaled-config">
114 <primary
115 sortas="e-etc-blocaled.conf">/etc/blocaled.conf</primary>
116 </indexterm>
117 </sect3>
118
119 <sect3><title>Configuration Information</title>
120
121 <para>
122 <filename>/etc/blocaled.conf</filename> contains the location of
123 the settings files used by <application>blocaled</application>. The
124 defaults are suitable for BLFS. Information about the entries is
125 available as comments in the file.
126 </para>
127
128 <para>
129 The <emphasis>org.freedesktop.locale1</emphasis> protocol is
130 unable to export locale variables. Locale settings are stored
131 by default in <filename>/etc/locale.conf</filename>. We need to
132 retrieve them in the bash profile. As the <systemitem class="username">
133 root</systemitem> user, issue:
134 </para>
135
136<screen role="root"><userinput>cat &gt; /etc/profile.d/i18n.sh &lt;&lt; "EOF"
137<literal># Begin /etc/profile.d/i18n.sh
138
139if [ -r /etc/locale.conf ]; then source /etc/locale.conf; fi
140
141if [ -n "$LANG" ]; then export LANG; fi
142if [ -n "$LC_TYPE" ]; then export LC_TYPE; fi
143if [ -n "$LC_NUMERIC" ]; then export LC_NUMERIC; fi
144if [ -n "$LC_TIME" ]; then export LC_TIME; fi
145if [ -n "$LC_COLLATE" ]; then export LC_COLLATE; fi
146if [ -n "$LC_MONETARY" ]; then export LC_MONETARY; fi
147if [ -n "$LC_MESSAGES" ]; then export LC_MESSAGES; fi
148if [ -n "$LC_PAPER" ]; then export LC_PAPER; fi
149if [ -n "$LC_NAME" ]; then export LC_NAME; fi
150if [ -n "$LC_ADDRESS" ]; then export LC_ADDRESS; fi
151if [ -n "$LC_TELEPHONE" ]; then export LC_TELEPHONE; fi
152if [ -n "$LC_MEASUREMENT" ]; then export LC_MEASUREMENT; fi
153if [ -n "$LC_IDENTIFICATION" ]; then export LC_IDENTIFICATION; fi
154
155# End /etc/profile.d/i18n.sh</literal>
156EOF</userinput></screen>
157
158 <para>
159 Then the <filename>/etc/locale</filename> file should be generated,
160 as the <systemitem class="username">root</systemitem> user:
161 </para>
162
163<screen role="root"><userinput>cat &gt; /etc/locale.conf &lt;&lt; EOF
164<literal># Begin /etc/locale.conf
165
166LANG=$LANG
167
168# End /etc/locale.conf</literal>
169EOF</userinput></screen>
170
171 <para>
172 If you plan to run an X (or Wayland) Window system, you may want to
173 set up your X keyboard. The best way to do it is to retrieve the
174 settings from <filename>/etc/sysconfig/console</filename>, and feed
175 them to the <application>blocaled</application> daemon. As the
176 <systemitem class="username">root</systemitem> user:
177 </para>
178
179<screen role="root"><userinput>source /etc/sysconfig/console &amp;&amp;
180KEYMAP=${KEYMAP:-us} &amp;&amp;
181
182gdbus call --system \
183 --dest org.freedesktop.locale1 \
184 --object-path /org/freedesktop/locale1 \
185 --method org.freedesktop.locale1.SetVConsoleKeyboard \
186 "$KEYMAP" "$KEYMAP_CORRECTIONS" true true</userinput></screen>
187
188 <para>
189 This should create or modify the Xorg configuration file (default is
190 <filename>/etc/X11/xorg.conf.d/30-keyboard.conf</filename>) to match
191 the keyboard settings set in <envar>KEYMAP</envar>.
192 </para>
193
194 </sect3>
195
196 </sect2>
197
198 <sect2 role="content">
199 <title>Contents</title>
200
201 <segmentedlist>
202 <segtitle>Installed Program</segtitle>
203 <segtitle>Installed Library</segtitle>
204 <segtitle>Installed Directory</segtitle>
205
206 <seglistitem>
207 <seg>
208 blocaled (in <filename class="directory">/usr/libexec</filename>)
209 </seg>
210 <seg>
211 None
212 </seg>
213 <seg>
214 /usr/share/blocaled
215 </seg>
216 </seglistitem>
217 </segmentedlist>
218
219 <variablelist>
220 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
221 <?dbfo list-presentation="list"?>
222 <?dbhtml list-presentation="table"?>
223
224 <varlistentry id="blocaled-prog">
225 <term><command>blocaled</command></term>
226 <listitem>
227 <para>
228 is the daemon implementing the
229 <emphasis>org.freedesktop.locale1</emphasis> D-Bus protocol
230 </para>
231 <indexterm zone="blocaled blocaled-prog">
232 <primary sortas="b-blocaled">blocaled</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236 </variablelist>
237 </sect2>
238
239</sect1>
Note: See TracBrowser for help on using the repository browser.