Skip to content

Instantly share code, notes, and snippets.

@ompugao
Created September 6, 2012 14:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ompugao/3656646 to your computer and use it in GitHub Desktop.
Save ompugao/3656646 to your computer and use it in GitHub Desktop.
ubuntu vncserver xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
/bin/sh /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
exec gnome-session &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment