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