How to start vnc session with gnome desktop in linux

2
If there is any issue at setup or connection contact [email protected] Overview of Unix Activity Guide 12 [Edition 1] [Last Update 130815] For any issues/help contact : [email protected]

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

Page 1: How to start vnc session with gnome desktop  in linux

If there is any issue at setup or connection contact [email protected]

Overview of Unix

Activity Guide 12

[Edition 1]

[Last Update 130815]

For any issues/help contact : [email protected]

Page 2: How to start vnc session with gnome desktop  in linux

If there is any issue at setup or connection contact [email protected]

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========