Specifications

Table Of Contents
VMware Server Virtual Machine Guide
228 VMware, Inc.
These!configuration!lines!can!be!added!to!the!individual!virtual!machine!configuration,!
to!your!personal!VMware!Server!configuration!(~/.vmware/config),!or!even!to!the!
hostwide!(/etc/vmware/config)!or!installationwide!(usually!
/usr/local/lib/vmware/config)!configuration.!
When!key!code!mapping!cannot!be!used!(or!is!disabled),!VMware!Server!maps!
keysyms!to!v
scan!codes.!It!does!this!using!one!of!the!tables!in!the!xkeymap!directory!in!
the!VMware!Server!installation!(usually!/usr/local/lib/vmware).
Which!table!you!should!use!depends!on!the!keyboard!layout.!The!normal!distribution!
includes!tables!for!PC!keyboards!for!the!United!States!and!a!number!of!European!
countries!and!languages.
!And!for!most!of!these,!there!are!both!the!101key!(or!102key)!
and!the!104key!(or!105key)!variants.!
VMware!Server!automatically!determines!which!table!to!use!by!examining!the!current!
X!keymap.!However,!its!decisionmaking!process!can!sometimes!fail.!In!addition,!each!
mapping!is!fixed!
and!might!not!be!completely!right!for!any!given!keyboard!and!X!key!
codetokeysym!mapping.!For!example,!a!user!might!have!swapped!Ctrl!and!Caps!
Lock!using!xmodmap.!This!means!the!keys!are!swapped!in!the!virtual!machine!when!
using!a!remote!server!(keysym!mapping)!but!unswapped!when!
using!a!local!server!
(key!code!mapping).!
Therefore,!keysym!mapping!is!necessarily!imperfect.!To!make!up!for!this!defect,!you!
can!change!most!of!the!behavior!using!configuration!settings:!
! xkeymap.language = <keyboard-type>
Use!this!if!VMware!Server!has!a!table!in!xkeymap!for!your!keyboard!but!can’t!detect!
it.!<keyboard-type>!must!be!one!of!the!tables!in!the!xkeymap!directory.!(See!above!
for!location.)!However,!the!failure!to!detect!the!keyboard!probably!means!the!table!
isn’t!completely!correct!for!you.!
! xkeymap.keysym.<sym> = <v-scan code>
If!you!use!keysym!mapping,!map!keysym!<sym>!to!<v-scan code>.!When!you!do,!
<sym>!must!be!an!X!keysym!name!and!<v-scan code>!should!be!a!Csyntax!
hexadecimal!number!(for! example,!0x001).!
The!easiest!way!to!find!the!keysym!name!for!a!key!is!to!run!xev!or!xmodmap -pk.
!
The!X!header!file!/usr/X11R6/include/X11/keysymdef.h!has!a!complete!list!of!
keysyms.!(The!name!of!a!keysym!is!the!same!as!its!C!constant!without!the!XK_!
prefix.)!Most!vscan!codes!are!in!the!“VScan!Code!Table!on!page 229.
The!xkeymap!tables!themselves!are!also!helpful.!Use!them!to!fix
!small!errors!in!an!
existing!mapping.!
! xkeymap.fileName = <file-path>
Use!the!keysym!mapping!table!in!<file-path>.!A!table!is!a!sequence!of!