ubuntu 12.04 vnc startup script for fallback mode

#!/bin/sh

DISPLAY=:1 xmodmap -e 'keysym Alt_L = Alt_L'
DISPLAY=:1  xmodmap -e 'keysym Alt_R = Alt_R'
DISPLAY=:1 xmodmap -e 'keycode 255 = Meta_L'
DISPLAY=:1  xmodmap -e 'keycode 254 = Meta_R'
DISPLAY=:1  xmodmap -e 'keycode 253 = Super_L'
DISPLAY=:1  xmodmap -e 'keycode 252 = Super_R'
DISPLAY=:1  xmodmap -e 'add mod3 = Super_L Super_R'
DISPLAY=:1  xmodmap -e 'add mod4 = Meta_L Meta_R'

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

Leave a Reply

Your email address will not be published. Required fields are marked *