Using Sun Rays with non-standard keyboards
By PJShore on Aug 01, 2006
If you are planning to use a Sun Ray with a non-standard USB keyboard it should really return the country code according to the USB specs, however most likely it with be a cheap PC keyboard that doesn't follow them.
So what happens?
Well if you are using a US keyboard layout - nothing as the Sun Ray server will default to using the US layout if the country code isn't correctly sent.
But, if you are like me and don't live in the US you end up with the wrong keyboard mappings. Now the real techies amongst us will know how to type on their keyboards using the US country mapping, but that isn't a real fix for the ordinary users. So, what we need to do is modify the defaults files and change the entry for USB keyboards which don't return a country code.
For Solaris edit the following files, taking an appropriate backup first:
For Linux edit the following files, taking appropriate backups first:
For the keytable.map you are looking for a line starting "6 < tab > 0"
# grep '\^6.0' keytable.map 6 0 US6.kt
Change the third column of this line to match your required keyboard layout, in my case for the UK this would change to:
6 0 UK6.kt
For the xkbtable.map you are looking for a line starting "6 < tab > \*"
# grep '\^6.\\\*' xkbtable.map 6 \* sun/all(US6_usb) type6_usb us
Change the third, fourth and fifth columns of this line to match your required keyboard layout, in my case for the UK this would change to:
6 \* sun/all(UK6_usb) type6_euro_usb gb
Of course if you have a single Sun Ray server giving sessions to multiple countries you are going to have a problem using keyboards that don't correctly return the country code.