CentOS下搭建VNC報錯:connection refused(10061)

來源: http://hi.baidu.com/birdyard/item/7c511cc1880eec2ea0b50af0

1,check if had been installed

[root@TKE3 home]# rpm -qa|grep vnc-server
[root@TKE3 home]#
[root@TKE3 home]# yum install vnc-server
Loaded plugins: fastestmirror

.... install info here

Complete!
[root@TKE3 home]# rpm -qa|grep vnc-server
vnc-server-4.1.2-14.el5_6.6
[root@TKE3 home]#

2,create vnc user and add it in vnc config file

[root@TKE3 home]# useradd vncuser
[root@TKE3 home]# passwd vncuser
Changing password for user vncuser.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retypenew UNIX password:
passwd: all authentication tokens updated successfully.
[root@TKE3 home]#
[root@TKE3 home]#

[root@TKE3 home]# vi /etc/sysconfig/vncservers

modify last two lines like:

VNCSERVERS="2:vncuser"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"


other details in http://hi.baidu.com/birdyard/item/7c511cc1880eec2ea0b50af0


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章