配置远端VNC访问
配置OS yum源
1 FTP iso To Server (/tools)
2 mkdir /mnt/isorh68
3 mount -o loop /tools/rhel-server-6.8-x86_64.iso /mnt/isorh68
4 cd /etc/yum.repo.d
5 vi Redhat_Media.repo
在Redhat_Media . repo文末添加
[ rhel68iso ]
name = rhel68iso
baseurl = file: / / / mnt / isorh68
gpgcheck = 0
安裝 tigervnc
yum install tigervnc-server
或者
rpm -ivh / mnt / isorh68 / Packages / tigervnc-server- 1.1 .0 - 18. el6 . x86_64 . rpm
此时 , 虽然tigervnc工具安裝OK了 , 但还需要两步设置
1. 运行vncserver命令 , 设置vnc密码
2. 编辑etc / sysconfig / vncservers
vncservers文件的文末 , 添加如下兩行
VNCSERVERS = "1:root"
VNCSERVERARGS [ 1 ] = "-geometry 1024x768"
如果不设置密码 , 当运行service vncserver start时 , 会报:
You will require a password to access your desktops .
如果不编辑 / etc / sysconfig / vncservers , 当运行行service vncserver start时 , 会报:
Starting VNC server: no displays configured [ FAILED ]