How can I add support for Swiss German input in 18.04? There was no option during installation

Solution 1:

During the installation

After choosing the language: On the left tab : Switzerland on the right tab : Switzerland - German (Switzerland, no dead keys).

After installation, for the console

sudo dpkg-reconfigure keyboard-configuration

Then

  • Generic 105-key (Intl) PC
  • Switzerland
  • Switzerland - German (Switzerland, eliminate dead keys)
  • The default for the keyboard layout
  • No compose key

Then reboot (or type setupcon in every console).

After the installation for the GUI (ubuntu - gnome-shell)

Activities > Settings > Region & Language > Input Sources > + > German (Switzerland) > Add

Then move up your language input or remove the others you don't want.

After the installation for the GUI (xbubuntu - xfce)

Settings > Keyboard > Layout, un-check Use system default, Add, German (Switzerland).

Solution 2:

Here is what I did (and it worked):

  • Run

     sudo dpkg-reconfigure locales
    
  • Select de_CH.UTF-8

  • Go to keyboard layout

  • Select swiss german