How to start vnc session with gnome desktop in linux

Post on 22-Jan-2018

260 views 3 download

Transcript of How to start vnc session with gnome desktop in linux

If there is any issue at setup or connection contact support@k21technologies.com

Overview of Unix

Activity Guide 12

[Edition 1]

[Last Update 130815]

For any issues/help contact : support@k21technologies.com

If there is any issue at setup or connection contact support@k21technologies.com

How To Start VNC Session With Gnome Desktop

Ever wonder how to start an individual desktop session with VNC? Below are the steps on how to modify the VNC startup script to start the GNOME desktop prior to the login user who started the VCN server command. 1. Make sure VNC is installed in the system. 2. Edit $HOME/.vnc/xstartup. 3. Uncomment : unset SESSION_MANAGER 4. Uncomment : exec /etc/X11/xinit/xinitrc 5. Comment : xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOPDesktop" & 6. Comment : twm & 7. Add "gnome-session &" under the "exec /etc/X11/xinit/xinitrc" line. 8. 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 & ----------

9. Run "vncserver :1" to start the vnc session with the GNOME desktop loaded in. 10. Connect to the machine and the VNC session will present the GNOME desktop.

=============End of the Activity 12 Guide========