是否可以编写dpkg-reconfigure keyboard-configuration实际操作的脚本?
我总是做出相同的选择,所以如果我可以在没有任何用户交互的情况下做到这一点,那就太好了。
使用 播种您的选项并debconf运行DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration。
人 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
Run Code Online (Sandbox Code Playgroud)
这显示了您当前的设置:
$ 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
....
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2654 次 |
| 最近记录: |