We all are tired and irritated with the default UI shown by VNC client and would love to have UI showing more menu's and user friendly UI when connected through VNC client. Here are the simple steps which will show you user friendly Gnome desktop when connected through VNC.
Few basic assumptions:
Few basic assumptions:
- VNC server is already installed on the machine
- User can find xstartup file of VNC in /root/.vnc folder on Redhat Linux boxes. User needs to find corresponding folder for other operating systems.
Steps to change the Desktop
- Go to .vnc folder
- Edit xstartup file using editors like vi
- Initial xstartup file will look something like:
#!/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 & - Change it to below to start gnome desktop
#!/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 &
exec gnome-session & - Change it to below to start KDE desktop
#!/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 &
startkde & - Kill all the VNC server sessions which are running using command
vncserver -kill :1 - Start VNC server