是否可以脚本dpkg-reconfigure keyboard-configuration
实际上做什么?
我总是做出同样的select,所以这将是非常好的,如果我能做到这一点,没有任何用户交互。
使用debconf
对选项进行种子处理并运行DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration
。
man debconf-set-selections(1) :
NAME debconf-set-selections - insert new default values into the debconf database SYNOPSIS debconf-set-selections file debconf-get-selections | ssh newhost debconf-set-selections
这显示您当前的设置:
$ debconf-show keyboard-configuration keyboard-configuration/modelcode: pc105 keyboard-configuration/unsupported_config_options: true keyboard-configuration/unsupported_config_layout: true keyboard-configuration/toggle: No toggling ....