linux6.5+5.4 vncserver Configuration
Hang the disc.
Command: MOUNT/DEV/CDROM/MNT
Configure Yum
Command: cd/etc/yum.repos.d/
MV Rhel-source.repo Rhel-source.repo.bak
Yum-config-manager--add file:///mnt
Vim/etc/yum.conf
Gpgcheck=0
Yum Clean All
Yum Repolist
Install packages
Rpm-qa | grep VNC
Yum-y Install tigervnc*
[Email protected]/]# Rpm-qa | grep VNC
Tigervnc-server-1.1.0-5.el6_4.1.x86_64
Libvncserver-0.9.7-4.el6.x86_64
Tigervnc-1.1.0-5.el6_4.1.x86_64
Configuring the master configuration file
[Email protected]/]# vim/etc/sysconfig/vncservers
vncservers= "1:root"/User and Access window
serverargs[1]= "-geometry 800x600"
Vncservers= "10:vnc"
serverargs[10]= "-geometry 800x600"
[Email protected]/]# VNCPASSWD
Password:
Verify:
[Email protected]/]# Su-vnc
[Email protected] ~]$ VNCPASSWD
Password:
Verify:
Start the service
[Email protected] ~]# service Vncserver restart
[[Email protected] ~]# service Vncserver status
XVNC (PID 9843 6858) is running ...
View ports
[Email protected] ~]# Netstat-anput | grep VNC
TCP 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 6858/xvnc
TCP 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 6858/xvnc
TCP 0 0 0.0.0.0:5910 0.0.0.0:* LISTEN 9843/xvnc
TCP 0 0 0.0.0.0:6010 0.0.0.0:* LISTEN 9843/xvnc
TCP 0 0::: 6001:::* LISTEN 6858/xvnc
TCP 0 0::: 6010:::* LISTEN 9843/xvnc
Test Login
[Email protected] yum.repos.d]# Vncviewer 192.168.1.3:1
[Email protected] yum.repos.d]# Vncviewer 192.168.1.3:10
This article is from the "9081423" blog, please be sure to keep this source http://9091423.blog.51cto.com/9081423/1882248
linux6.5+5.4 vncserver Configuration