1. Installing the required packages
1.1. Check whether vnc-server package is installed.rpm -q vnc-server
1.2. Install vnc-server using yum
#> yum -y install vnc-server
1.3. Install Window Manager
Install the "Gnome Desktop Environment" to get a full-featured GUI desktop. Other popular desktop environments are "KDE" and "XFCE-4.4".
- in CentOS 6
#> yum -y groupinstall Desktop
- in CentOS 5
#> yum -y groupinstall "GNOME Desktop Environment"
1.4. Install VNC Server
- in CentOS 6
#> yum -y install tigervnc-server
- in CentOS 5
#> yum -y install vnc-server
<!> If you are running CentOS 6, the server is: v not: vnc-server
2. Configuring VNC-Server
2.1. Configure server
#> vi /etc/sysconfig/vncserversVNCSERVERS="1:root 2:dorbae"
VNCSERVERARGS[1]="-geometry 800x600"
VNCSERVERARGS[2]="-geometry 800x600"
2.2. Set VNC Password
#> su - dorbae
$> vncpasswd
(set password)
$> cd ~/.vnc
$> ls passwd
3. Start/Stop VNC-Server
#> service vncserver start#> service vncserver stop
#> chkconfig vncserver on
No comments:
Post a Comment