#!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS # Start XFCE desktop startxfce4 & # Turn clipboard on vncconfig -nowin & # 2018-06-27 ORIGINAL xstartup file: # 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 & # x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & # x-window-manager & # 2018-06-27 Copied from older xstartup files: # Use GNOME desktop (may not work) # export XKL_XMODMAP_DISABLE=1 # gnome-session --session=gnome-fallback & # gnome-panel & # gnome-settings-daemon & # metacity & # nautilus & # Note: One can also start vncserver with the command: # env -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS vncserver