sudo dpkg-reconfigure keyboard-configuration
Doorfietsen in dat verhaal: met de Tab-toets activeer je de OK-toets. Daarna op Enter drukken.
locale
cat /etc/default/locale
cat /etc/default/keyboard
cat ~/.dmrc
➜ ~ locale LANG=nl_NL.UTF-8LANGUAGE=nl_NLLC_CTYPE="nl_NL.UTF-8"LC_NUMERIC="nl_NL.UTF-8"LC_TIME="nl_NL.UTF-8"LC_COLLATE="nl_NL.UTF-8"LC_MONETARY="nl_NL.UTF-8"LC_MESSAGES="nl_NL.UTF-8"LC_PAPER="nl_NL.UTF-8"LC_NAME="nl_NL.UTF-8"LC_ADDRESS="nl_NL.UTF-8"LC_TELEPHONE="nl_NL.UTF-8"LC_MEASUREMENT="nl_NL.UTF-8"LC_IDENTIFICATION="nl_NL.UTF-8"LC_ALL=nl_NL.UTF-8
➜ ~ cat /etc/default/localeLANG=nl_NL.UTF-8LANGUAGE=nl_NL
➜ ~ cat /etc/default/keyboardXKBLAYOUT=usXKBVARIANT=intl
cat ~/.dmrc[Desktop]Session=ubuntu
Je systeembrede instellingen zijn goed.... Controleer je gebruikersinstellingen eens.
#!/bin/bash# Simpel menugestuurd bash scriptje# -- Voor selecteren toetsenbord-uiterlijk## Menu weergevenmenu() { echo -e "\nKies een menu optie:\n a) VS-internationaal\n b) VS\n x) Afsluiten\n" read input case $input in x) exit 0;; a) vs-internationaal;; b) vs;; *) unknown_option;; esac showmenu}showmenu() { read -p "== Druk op ENTER om terug te keren naar het menu ==" menu}## Onbekende optieunknown_option() { echo -e "\nDeze keuze bevindt zich niet in het menu.\n"}## VS-internationaal toetsenbordvs-internationaal() {setxkbmap -model pc105 -layout us_intlxmessage us_intl -center -timeout 1 echo -e "\nToetsenbord VS-internationaal.\n"}## VS-toetsenbordvs() {setxkbmap -model pc105 -layout usxmessage us -center -timeout 1 echo -e "\nToetsenbord VS.\n"}echo -e "\nKlein voorbeeldje van een simpel menugestuurd bash scriptje\n -- Voor netwerkkaartjes"## Controleer machtigingif [ `whoami` != "root" ]then echo -e "\nOeps! Je hebt rootrechten nodig voor dit programma.\n"; exit 0fimenuexit 0
#!/bin/shsetxkbmap -model pc105 -layout us_intlxmessage us_intl -center -timeout 1