How to change the Keyboard layout on Solaris

Pablo Herrero picture Pablo Herrero · Jan 14, 2009 · Viewed 23.2k times · Source

I am running a machine with SunOS and NO graphical enviroment. Does someone know how to change the keyboard layout from the console??

Thanks

Answer

Morgan picture Morgan · Jan 25, 2017

Select your layout

Type the following command to select your layout from a list:

kbd -s

If your language isn't in the list, have a look at this blog post on how to create your own layout. You might have to take a look at this if you have a non-standard (e.g. Apple) layout.

Reload your keymap

Reload your keyboard translation table with the following command:

loadkeys

The change should persist through reboots, unless you're using an in-memory OS like SmartOS