Skip to main content

How to configure vnc session with gnome desktop in Cent OS



How to configure vnc session with gnome desktop in Cent OS

Step 1

Install vncserver
#yum install vncserver

Step 2

Install gnome-desktop in linux

#yum groupinstall -y "GNOME Desktop"

Step 3

Start vncserver

#/etc/init.d/vncserver start

Step 4

Create some users in order to configure multiple vnc sessions,
#adduser vnc1
#passwd vnc1                    “give a suitable password for the user”
#adduser vnc2
#passwd vnc12                 “give a suitable password for the user”

Step  5

In order to get elevated privilege for the above users we have to add them to the sudoer’s file as shown below, before that please change the file permission to 440(#chmod /etc/sysconfig/sudoers)
#visudo and add the below details to the file as shown below,

## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
thinkpalm ALL=(ALL) ALL
vnc1 ALL=(ALL) ALL
vnc2 ALL=(ALL) ALL

Step 6

Edit /etc/sysconfig/vncserver file add the below details,
VNCSERVERS="2:vnc1 3:vnc2 4:vnc3"

Step 7

Restart vnc server and as a result it will create sessions like,
“ip address”:2
“ip address”:3
“ip address”:4

Step 8

The above step will not give the gnome desktop while logging in using vnc viewer,  in order to get the gnome environment we have to edit the xstartup file located on each users home directory (ie, /home/username/.vnc/xstartup) and the highlighted value,


# 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 &





Comments

Popular posts from this blog

Bridging Ethernet Connections - Ubuntu/Fedora

Installing bridge-utils Adept Search for bridge-utils and choose the drop-down arrow on the left. Choose "request install". Konsole: Enter this into Konsole: sudo apt-get update sudo apt-get install bridge-utils If you use sudo -i and enter your password, then you will not have to use sudo before each command. It may also save you some typing in the future. Setting up the Bridge Ensure that both (or all) of your interfaces are installed and enabled. If they are then you may proceed at this point. For a few moments, if your computer is connected to the internet then it will be disconnected until a certain point is reached. Open Konsole and use the following commands. Note that when interfaces are referenced, they refer to device names assigned by linux such as "eth0" and "eth1". Also note that myBridge is the name of the bridge that you wish to have. This can be anything, but a simple name like bridge0 or bridge1 is s...

What are the few major differences between 2003,2008 & 2012

2003-IIS 6.0 2008- IIS 7.0 2008R2- IIS-7.5 2012-IIS 8 ---------------------- 2003-32 AND 64 BIT AVAILABLE 2008-32AND 64BIT AVAILABLE 2008R2- ONLY 64BIT AVAILABLE 2012 - ONLY 64 BIT AVAILABLE ------------------------------------------ 2003 KERNAL VER. -5.2 2008 KERNEL-6.0 2008 R2-6.1 2012-6.2 ------------------------------------------ 2003- IE VERSION 6.0 2008- IE VERSION 7.0 2008 R2 IE VERSION 8.0 2012 IE VERSION 10.0 2012 R2 IE VERSION 11.0 ----------------------- 2003- AD ADMINISTRATIVE CENTER NOT AVAILABLE 2008- NOT AVAILABLE 2008 R2- AVAILABLE 2012- AVAILABLE -------------------------------------

Microsoft Active Directory

> What Intrasite and Intersite Replication? Intrasite is the replication within the same site & intersite the replication between sites. > What is lost & found folder in ADS? It’s the folder where you can find the objects missed due to conflict. Ex: you created a user in OU which is deleted in other DC & when replication happed ADS didn’t find the OU then it will put that in Lost & Found Folder. > What is Garbage collection? Garbage collection is the process of the online defragmentation of active directory. It happens every 12 Hours. > What System State data contains? Contains Startup files, Registry Com + Registration Database Memory Page file System files AD information Cluster Service information SYSVOL Folder >What is the difference between Windows 2000 Active Directory and Windows 2003 Active Directory? Is there any difference in 2000 Group Polices and 2003 Group Polices? What is meant by ADS and ADS ser...