Posted By

jerryvig on 12/16/11


Tagged

server vnc xstartup vncserver


Versions (?)

VNC Xstartup


 / Published in: Bash
 

this is a script for loading the gnome desktop enivronment to run inside of vncserver. this script does in the .vnc directory of your home path and it is executed every time you start a new vncserver process on linux.

  1. #!/bin/sh
  2.  
  3. # Uncomment the following two lines for normal desktop:
  4. unset SESSION_MANAGER
  5. exec /etc/X11/xinit/xinitrc
  6.  
  7. [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
  8. [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
  9. xsetroot -solid grey
  10. vncconfig -iconic &
  11. xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
  12. twm &
  13.  
  14. startx &

Report this snippet  

You need to login to post a comment.