Issue
I'd like to do a bash script that lets change the language of a debian based system by typing a number for each language. Sadly I'm not familiar with debconf.
How can I change the keyboard-layout and the language of the console permanently with debconf-selections
Thanks for your help.
Solution
The following might work:
- Install
console-data
- Configure it to your liking via
dpkg-reconfigure console-data
- Save the values via
debconf-get-selections | grep console-data > FILENAME
- Load these values from your script via
debconf-set-selections < FILENAME
I guess there is a pattern to the console-data
configuration debconf file, so after a few dpkg-reconfigure
you might be able to construct your own.
Answered By - TeTeT