Wrong Keyboard US<->UK Solaris install
Thursday Nov 01, 2007
I appreciate the new look and improved common sense defaults behind the new installer that appeared in Solaris Nevada build 70. But it isn't yet foolproof. Because I often switch between a laptop with a U.K. keyboard, a Sun Ray with a U.S. keyboard and my home P.C. with a U.K. keyboard, I often go too fast through the "Default layout?" choice in the installer and choose U.K. when I should choose U.S. or vice versa. I'm left with a system which almost works perfectly except that the " and @ are swapped, sometimes #, $ and / aren't where they belong and | is nowhere to be found.
At first I thought it was an X11 problem, but when I logged into console mode to create a default x.org file with /usr/bin/X11 -configure and found that the console keyboard layout was also wrong.
There are several ways to fix this. I could reinstall and enter the correct choice, but this is the dumb and slow solution. I could edit /boot/solaris/bootenv.rc and add setprop kbd-type 'US-English' in place of whatever keyboard layout I have there. Or I could edit /etc/defaults/kbd, change the layout to: LAYOUT=US-English and reboot. I chose this third option and am happy to report that my keyboard behaves as it should.











Brian,
"Take your time, life is definitely to...