log*_*off 17 xubuntu keyboard keyboard-layout 14.04
我有一个全新的 Xubuntu 14.04 Trusty Thar 安装(不是升级),每次启动时我都需要更改键盘布局。
这些是文件的内容/etc/default/keyboard
:
XKBMODEL="pc105"
XKBLAYOUT="es"
XKBVARIANT="cat"
XKBOPTIONS="terminate:ctrl_alt_bksp"
Run Code Online (Sandbox Code Playgroud)
对我来说似乎是正确的,但布局不遵循此文件。
每次启动时,我都会得到美式键盘布局。如果我做:
sudo dpkg-reconfigure keyboard-configuration
出现的所有选项都是所需的选项:
但是每次我启动机器时,我都会再次获得美国布局。
命令的输出是:
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.1) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-27-generic
Run Code Online (Sandbox Code Playgroud)
在我的Settings->Keyboard->Layout
我勾选了复选框Use system defaults
。如果更改此配置:
配置已应用,但当我重新启动时,我再次获得美国布局。此窗口中的设置是永久性的,但每次重新启动时键盘布局都是 US :-$
如何永久更改键盘布局?很烦人...
小智 0
示例如何永久更改为德语“de”语言:
apt-get install console-common
localectl set-x11-keymap de
localectl set-keymap de
reboot
Run Code Online (Sandbox Code Playgroud)