我有一个意大利键盘,我想在GRUB中设置正确的 布局。
我在网上发现了许多使用grub-kbdcomp或grub-mklayout的教程,但是这些命令在我的发行版上不起作用。
如何设置正确的布局?
发布于 2019-05-02 04:35:44
grub-kbdcomp只是一个shell脚本,它是Debian ckbcomp实用程序和grub-mklayout的包装器。并不存在用于ckbcomp的Sabayon Linux熵包,尽管有一个Gentoo Por蒂奇包可以安装在Sabayon linux中,并使用如下所示。
ckbcomp没有熵包,所以请通过Portage安装它。1.1安装Gentoo的Por蒂奇覆盖管理器。
# equo install git
# equo install layman1.2同步Gentoo Por蒂奇包ebuild树。
# emerge --sync # Do not update portage if told to do so.1.3同步Sabayon发行版的Gentoo Portage包ebuild树。
# layman -S1.4添加Sabayon发行版的Gentoo Portage覆盖。
# layman -a sabayon-distro1.5同步Sabayon发行版的Gentoo Portage包ebuild树。
# layman -S1.6通过波特安装sys-apps/ckbcomp,因为没有熵包。
# emerge -1v ckbcomp # Ignore any Gentoo news items.1.7告诉熵你通过波蒂奇做了什么。
# equo rescue spmsync/usr/share/X11/xkb/symbols/it才能使其工作。# ckbcomp它没有死键\gub2-mk布局-o /boot/grub/layout/it.gkb未知键盘扫描代码0x54未知键盘扫描代码0x65未知键盘扫描代码0x7fGRUB_TERMINAL_INPUT=at_keyboard中添加/etc/default/grub。# nano /etc/default/grub # -n 1 /etc/default/grub GRUB_TERMINAL_INPUT=at_keyboardinsmod和keymap行,如下所示。# nano /etc/grub.d/40_定制# -n 2/etc/grub.d/40_定制不平滑的键盘布局密钥映射$前缀/布局/it.gkb/etc/default/sabayon-grub,如下所示。在GRUB_CMDLINE_LINUX中保留其他条目(如果有的话)。# nano /etc/default/sabayon-grub # grep locale /etc/locale=it_IT/sabayon-grub-grub“locale=it_IT dolvm rd.lvm.lv=sabayon_sabayon/交换rd.lvm.lv=sabayon_sabayon/root简历=/dev/mapper/sabayon_sabayon-locale=it_IT vconsole.keymap=it rd.vconsole.keymap=it静默”grub.cfg文件。# grub2-mkconfig -o /boot/grub/grub.cfggrub.cfg:# grep terminal_input / terminal_input /grub/grub.cfg terminal_input at_keyboard # grep gkb /boot/grub/grub.cfg密钥映射$前缀/ layouts /it.kb# grep布局/boot/grub/grub.cfg insmod密钥映射$前缀/layouts/it.gkbit密钥映射。# systemctl重新启动https://unix.stackexchange.com/questions/464398
复制相似问题