I am using Ubuntu 10.10 within a Virtualbox VM, and one of the annoying things is having to right click and selecting paste to get copied text into the terminal. I finally found the solution to the “macs don’t have insert keys” issue. Using
xmodmap I was able to convert the F12 key on the keyboard to be the insert key, which allows me to paste copied text via
now shift+F12) in gnome’s terminal.
The process involved launching xev and hitting they F12 key, which I wanted to remap. Among the sea of text that is blasted to the terminal, I found:
KeyRelease event, serial 35, synthetic NO, window 0x6600001,
root 0x109, subw 0x0, time 36168750, (155,-15), root:(160,39),
state 0x11, keycode 96 (keysym 0xff63, Insert), same_screen YES,
XKeysymToKeycode returns keycode: 23
XLookupString gives 0 bytes:
XFilterEvent returns: False
Then using xmodmap I remapped the key like so:
xmodmap -e "keycode 96 = Insert"