I am in the process of setting up a virtual server and need to know how to switch the servers keyboard layout to Programmers Dvorak since that is what I am use to.
I am currently using
sudo loadkeys dvorak
Cheers, Matt
I am in the process of setting up a virtual server and need to know how to switch the servers keyboard layout to Programmers Dvorak since that is what I am use to.
I am currently using
sudo loadkeys dvorak
Cheers, Matt
On
Your command:
sudo loadkeys dvorak
Gives a standard dvorak layout. If You want the Programmer Dvorak layout you have 2 options:
Persistent:
Set /etc/default/console-setup to
XKBLAYOUT="us"
XKBVARIANT="dvp"
XKBOPTIONS="compose:102,numpad:shift3,kpdl:semi,keypad:atm,caps:shift"
Until next login:
setxkbmap -layout us -variant dvp -option compose:102 -option numpad:shift3 -option kpdl:semi -option keypad:atm -option caps:shift
I've never had to switch layouts myself, probably because the few Linux installs I've done I went with the option that lets you pick the system layout during the setup (maybe server doesn't have that option?). Still, the way you are doing it is probably the best way for temporarily switching. If you are looking to change it system-wide, I would suggest you try using this method (detailed here).
You need to edit
/etc/default/keyboard. After that, runsudo dpkg-reconfigure console-setupto commit your settings.When you run console-setup, it compiles in the keyboard layout listed in that file, which is why console-data’s changes were not kept. In the file are four lines:
To get the Dvorak layout, add
dvorakas the XKBVARIANT value before running console-setup.