Skip to main content

How can I have new ~/.vnc/xtartupxstartup files be configured for normal desktop by default?

Source Link
Belmin Fernandez
  • 9.9k
  • 16
  • 51
  • 52

How can I have new ~/.vnc/xtartup files be configured for normal desktop by default?

When a user first runs vncserver, the following ~/.vnc/xstartup file gets created:

#!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm & 

I want to modify the default file so that the following lines are uncommented:

unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc 

How should I go about this?