2010.11.10 10:21
Put your following line in a file called ~/.Xmodmap :
keycode 112 = Home
keycode 117 = End
keycode 110 = Prior
keycode 115 = Next
Under the default Gnome environment in Ubuntu 10.04, the next time you log in, you will be prompted as to whether to load ~/.Xmodmap. Load it, and tick “don't ask me again”. Then your .Xmodmap will be applied after the default settings.
to go back to the "don't ask me again" dialog,
launch gconf-editor, browse to/desktop/gnome/peripherals/keyboard/general, and edit the known_file_list entry to remove.Xmodmap.
reference: http://superuser.com/questions/185345/why-wont-my-xmodmap-command-run-on-startup-login
쉘에서 실행 시 커맨드는:
xmodmap -e "keycode 112 = Home"
xmodmap -e "keycode 117 = End"
xmodmap -e "keycode 110 = Prior"
xmodmap -e "keycode 115 = Next"