I am trying to connect to a server and installed tightvnc server on it following these steps :
https://help.ubuntu.com/community/VNC/Servers#Customising_your_session
And hence my xstartup file looks like this:
cat .vnc/xstartup
#!/bin/sh
# Change "GNOME" to "KDE" for a KDE desktop, or "" for a generic desktop
MODE="GNOME"
#Uncommment this line if using Gnome and your keyboard mappings are incorrect.
#export XKL_XMODMAP_DISABLE=1
# Load X resources (if any)
if [ -e "$HOME/.Xresources" ]
then
xrdb "$HOME/.Xresources"
fi
# Try a GNOME session, or fall back to KDE
if [ "GNOME" = "$MODE" ]
then
if which gnome-session >/dev/null
then
gnome-session --session=ubuntu-2d &
else
MODE="KDE"
fi
fi
# Try a KDE session, or fall back to generic
if [ "KDE" = "$MODE" ]
then
if which startkde >/dev/null
then
startkde &
else
MODE=""
fi
fi
# Run a generic session
if [ -z "$MODE" ]
then
xsetroot -solid "#DAB082"
x-terminal-emulator -geometry "80x24+10+10" -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
fi
And when I try to connect to the server it shows brown screen like this :
Permissions on xstartup are :
-rwxr-xr-x 1 user user 943 May 19 06:35 xstartup*
I am using Ubuntu 16.04 on both the systems . Could you please help me out
Install Desktop in Ubuntu:
There are different Desktop present.
Unity:
KDE:
MATE:
Gnome:
XFCE(XUBUNTU):
Reboot that System, and try again.