パッケージ構成
/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.
LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://github.com/lfs-book/blocaled/releases/download/v0.5/blocaled-0.5.tar.xz
ダウンロード MD5 sum: 04d9833d0dfbf3609b0d8f6d276812ff
ダウンロードサイズ: 262 KB
必要ディスク容量: 4.2 MB (with tests)
概算ビルド時間: less than 0.1 SBU (with tests)
以下のコマンドを実行して blocaled をビルドします。
./configure --prefix=/usr --sysconfdir=/etc && make
ビルド結果をテストする場合は make check を実行します。
root
ユーザーになって以下を実行します。
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
.