Contents
/usr/libexec
)
blocaled is an implementation of the org.freedesktop.locale1 D-Bus protocol, which normally comes with systemd. It is needed by the GNOME desktop.
This package is known to build and work properly using an LFS 12.2 platform.
Download (HTTP): https://github.com/lfs-book/blocaled/releases/download/v0.6/blocaled-0.6.tar.xz
Download MD5 sum: b85e436aee3612879b9948a0cc96ce00
Download size: 160 KB
Estimated disk space required: 5.3 MB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
Install blocaled by running the following commands:
autoreconf -fiv && ./configure --prefix=/usr --sysconfdir=/etc && make
To test the results, issue: make check.
Now, as the root
user:
make install
/etc/blocaled.conf
contains the
location of the settings files used by blocaled. The defaults are suitable for
BLFS. Information about the entries is available as comments in
the file.
The org.freedesktop.locale1 protocol is
unable to export locale variables. Locale settings are stored by
default in /etc/locale.conf
. We
need to retrieve them in the bash profile. As the root
user, issue:
cat > /etc/profile.d/i18n.sh << "EOF"
# Begin /etc/profile.d/i18n.sh
if [ -r /etc/locale.conf ]; then source /etc/locale.conf; fi
if [ -n "$LANG" ]; then export LANG; fi
if [ -n "$LC_TYPE" ]; then export LC_TYPE; fi
if [ -n "$LC_NUMERIC" ]; then export LC_NUMERIC; fi
if [ -n "$LC_TIME" ]; then export LC_TIME; fi
if [ -n "$LC_COLLATE" ]; then export LC_COLLATE; fi
if [ -n "$LC_MONETARY" ]; then export LC_MONETARY; fi
if [ -n "$LC_MESSAGES" ]; then export LC_MESSAGES; fi
if [ -n "$LC_PAPER" ]; then export LC_PAPER; fi
if [ -n "$LC_NAME" ]; then export LC_NAME; fi
if [ -n "$LC_ADDRESS" ]; then export LC_ADDRESS; fi
if [ -n "$LC_TELEPHONE" ]; then export LC_TELEPHONE; fi
if [ -n "$LC_MEASUREMENT" ]; then export LC_MEASUREMENT; fi
if [ -n "$LC_IDENTIFICATION" ]; then export LC_IDENTIFICATION; fi
# End /etc/profile.d/i18n.sh
EOF
Then the /etc/locale
file should be
generated, as the root
user:
cat > /etc/locale.conf << EOF
# Begin /etc/locale.conf
LANG=$LANG
# End /etc/locale.conf
EOF
If you plan to run an X (or Wayland) Window system, you may want
to set up your X keyboard. The best way to do it is to retrieve
the settings from /etc/sysconfig/console
, and feed them to the
blocaled daemon. As the
root
user:
source /etc/sysconfig/console && KEYMAP=${KEYMAP:-us} && gdbus call --system \ --dest org.freedesktop.locale1 \ --object-path /org/freedesktop/locale1 \ --method org.freedesktop.locale1.SetVConsoleKeyboard \ "$KEYMAP" "$KEYMAP_CORRECTIONS" true true
This should create or modify the Xorg configuration file (default
is /etc/X11/xorg.conf.d/30-keyboard.conf
) to match
the keyboard settings set in KEYMAP
.