I'm creating a Vagrant Box with Ubuntu Desktop 16.04. The Box requires to have a German Keyboard Layout. How do I create this "German Text Entry Settings" during the provisioning phase in non-interactive mode and set it as standard? (I'm talking about the Icon/Settings in the Menu Bar Top-Left with shows usually "EN" only)
The following things didn't work for me.
locale-gen --purge de_DE de_DE.UTF-8
&dpkg-reconfigure locales -f noninteractive
- modifying
/etc/default/keyboard
&dpkg-reconfigure keyboard-configuration -f noninteractive
echo -e 'LANG="de_DE.UTF-8"\nLANGUAGE="de_DE:de"\n' > /etc/default/locale
loadkeys de