vnc-server的安装配置
需要的软件:
tigervnc-1.1.0-5.el6.x86_64.rpm //linux安装
tigervnc-server-1.1.0-5.el6.x86_64.rpm //linux安装
xorg-x11-fonts-misc-7.2-9.1.el6.noarch.rpm //安装tigervnc-server依赖包
TigerVNC-1.1.0.exe //windows 远程连接服务端的工具
安装:
[root@localhost vnc-server]# rpm -ivh tigervnc-1.1.0-5.el6.x86_64.rpm
warning: tigervnc-1.1.0-5.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:tigervnc ########################################### [100%]
[root@localhost vnc-server]#
2,安装服务端
[root@localhost vnc-server]# rpm -ivh tigervnc-server-1.1.0-5.el6.x86_64.rpm
warning: tigervnc-server-1.1.0-5.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
xorg-x11-fonts-misc is needed by tigervnc-server-1.1.0-5.el6.x86_64
[root@localhost vnc-server]#
提示:缺少包:xorg-x11-fonts-misc
[root@localhost vnc-server]# rpm -ivh xorg-x11-fonts-misc-7.2-9.1.el6.noarch.rpm
warning: xorg-x11-fonts-misc-7.2-9.1.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:xorg-x11-fonts-misc ########################################### [100%]
再次安装服务端:
[root@localhost vnc-server]# rpm -ivh tigervnc-server-1.1.0-5.el6.x86_64.rpm
warning: tigervnc-server-1.1.0-5.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:tigervnc-server ########################################### [100%]
[root@localhost vnc-server]#
3,查看可视化连接设置:
[root@localhost vnc-server]# xhost +
access control disabled,clients can connect form any host
如果出现 display ""
[root@localhost vnc-server]#export DISPLAY=:0.0
[root@localhost vnc-server]#echo $DISPLAY
:0.0
然后再次查看:
[root@localhost vnc-server]# xhost +
access control disabled,clients can connect form any host
4,安装完成后,启动vnc,并设置密码(vncserver123)
[root@localhost Desktop]# vncserver :2
You will require a password to access your desktops.
Password:
Verify:
New 'localhost.localdomain:2 (root)' desktop is localhost.localdomain:2
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:2.log
5,在windows上安装客户端:
TigerVNC-1.1.0.exe
6,安装完成后启动:vncviewer.exe
7,输入要远程连接的地址和连接号:
点击ok 就可以远程监控linux服务器了
更多推荐
所有评论(0)