I'm setting up a vncserver (tightvncserver) from start. After run vncserver :1 first time, it creates file "~/.vnc/xstartup" with content:
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
Then from client, I run command "vncviewer :1" but I just see the grey screen. I did many search and see that I can fix the problem if I change the line " export XKL_XMODMAP_DISABLE=1" to " export XKL_XMODMAP_DISABLE=0" . -> I want to ask how can I make this line is right at start when I call "vncserver :1"? (I don't want to edit the file xstartup)