How To Start VNC Session With Gnome Desktop
- Make sure VNC is installed in the system.
- Edit $HOME/.vnc/xstartup.
- Uncomment : unset SESSION_MANAGER
- Uncomment : exec /etc/X11/xinit/xinitrc
- Comment : xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
- Comment : twm &
- Add "gnome-session &" under the "exec /etc/X11/xinit/xinitrc" line.
- The Xstartup file should look like this (Red: added line, Blue: modified line) :
----------
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
gnome-session &
[ -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 &
---------- - Run "vncserver :1" to start the vnc session with the GNOME desktop loaded in.
- Connect to the machine and the VNC session will present the GNOME desktop.
Notes:
You can even run extra VNC session with desktop by executing
"vncserver:{session numbers that have not been taken yet}".
awesome it worked
ReplyDeletenot working for me , when i connect with vnc it shows blank screen
ReplyDelete