[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[2126b9e] | 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 |
|
---|
[44e3735] | 7 | <!ENTITY blocaled-download-http "https://github.com/lfs-book/blocaled/releases/download/v&blocaled-version;/blocaled-&blocaled-version;.tar.xz">
|
---|
[2126b9e] | 8 | <!ENTITY blocaled-download-ftp " ">
|
---|
[44e3735] | 9 | <!ENTITY blocaled-md5sum "b85e436aee3612879b9948a0cc96ce00">
|
---|
| 10 | <!ENTITY blocaled-size "160 KB">
|
---|
| 11 | <!ENTITY blocaled-buildsize "5.3 MB (with tests)">
|
---|
[0c2f05d7] | 12 | <!ENTITY blocaled-time "less than 0.1 SBU (with tests)">
|
---|
[2126b9e] | 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
|
---|
[4c24eb0a] | 31 | <emphasis>org.freedesktop.locale1</emphasis> D-Bus protocol,
|
---|
[2126b9e] | 32 | which normally comes with <application>systemd</application>. It is
|
---|
| 33 | needed by the <application>GNOME</application> desktop.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[868811b] | 36 | &lfs121_checked;
|
---|
[2126b9e] | 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 &&
|
---|
| 91 | make</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 > /etc/profile.d/i18n.sh << "EOF"
|
---|
| 137 | <literal># Begin /etc/profile.d/i18n.sh
|
---|
| 138 |
|
---|
| 139 | if [ -r /etc/locale.conf ]; then source /etc/locale.conf; fi
|
---|
| 140 |
|
---|
| 141 | if [ -n "$LANG" ]; then export LANG; fi
|
---|
| 142 | if [ -n "$LC_TYPE" ]; then export LC_TYPE; fi
|
---|
| 143 | if [ -n "$LC_NUMERIC" ]; then export LC_NUMERIC; fi
|
---|
| 144 | if [ -n "$LC_TIME" ]; then export LC_TIME; fi
|
---|
| 145 | if [ -n "$LC_COLLATE" ]; then export LC_COLLATE; fi
|
---|
| 146 | if [ -n "$LC_MONETARY" ]; then export LC_MONETARY; fi
|
---|
| 147 | if [ -n "$LC_MESSAGES" ]; then export LC_MESSAGES; fi
|
---|
| 148 | if [ -n "$LC_PAPER" ]; then export LC_PAPER; fi
|
---|
| 149 | if [ -n "$LC_NAME" ]; then export LC_NAME; fi
|
---|
| 150 | if [ -n "$LC_ADDRESS" ]; then export LC_ADDRESS; fi
|
---|
| 151 | if [ -n "$LC_TELEPHONE" ]; then export LC_TELEPHONE; fi
|
---|
| 152 | if [ -n "$LC_MEASUREMENT" ]; then export LC_MEASUREMENT; fi
|
---|
| 153 | if [ -n "$LC_IDENTIFICATION" ]; then export LC_IDENTIFICATION; fi
|
---|
| 154 |
|
---|
| 155 | # End /etc/profile.d/i18n.sh</literal>
|
---|
| 156 | EOF</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 > /etc/locale.conf << EOF
|
---|
| 164 | <literal># Begin /etc/locale.conf
|
---|
| 165 |
|
---|
| 166 | LANG=$LANG
|
---|
| 167 |
|
---|
| 168 | # End /etc/locale.conf</literal>
|
---|
| 169 | EOF</userinput></screen>
|
---|
| 170 |
|
---|
[4bd35815] | 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 &&
|
---|
| 180 | KEYMAP=${KEYMAP:-us} &&
|
---|
| 181 |
|
---|
| 182 | gdbus 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
|
---|
[625a764] | 190 | <filename>/etc/X11/xorg.conf.d/30-keyboard.conf</filename>) to match
|
---|
[4bd35815] | 191 | the keyboard settings set in <envar>KEYMAP</envar>.
|
---|
| 192 | </para>
|
---|
| 193 |
|
---|
[2126b9e] | 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
|
---|
[4c24eb0a] | 229 | <emphasis>org.freedesktop.locale1</emphasis> D-Bus protocol
|
---|
[2126b9e] | 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>
|
---|
[4c24eb0a] | 238 |
|
---|
[2126b9e] | 239 | </sect1>
|
---|