centOS5.5-64内置xvnc连接失败问题解决: 改端口5902
2011-09-08 15:33
751 查看
一。启动vnc服务:跟32位CentOs不同,需要手工改动(如下),并使用5902端口连接,成功:
Step 1
You need to modify /etc/sysconfig/vncservers
Here you would put the desktop number and name. The name is a user on
the system.
VNCSERVERS="2:someuser"
不要uncomment下边那行:vncserverARGS
Step 2 run chkconfig and make sure vncserver is enabled and on the
levels you wanted it to run on.
Step 3
As root
su - someuser
Run vncpasswd and generate a vnc password
Step 4
Start vnc
service vncserver start
来自: http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-03/0545.html
过程:上述4步后、vnc启动成功;但还是连不上,提示failed to connect..开始以为看 /var/log/messages可以搞定,但完全没用,其他log目录下的内容也看了,一样没用;再后来:ps -ef|grep vncserver,得到了一行信息,其中有 port=5902字样,马上在viewer上ip地址后增加5902,搞定!、
二。开始vnc连到的桌面极其简陋,需要调整xmanager:
You might prefer the VNC desktop session to look and behave the same as the login session you would normally see. To do that, edit the file
from the beginning of the two lines that follow the line reading "
这里的/home/username,可用~ 代替。
摘自:http://www.redhat.com/magazine/006apr05/features/vnc/
Step 1
You need to modify /etc/sysconfig/vncservers
Here you would put the desktop number and name. The name is a user on
the system.
VNCSERVERS="2:someuser"
不要uncomment下边那行:vncserverARGS
Step 2 run chkconfig and make sure vncserver is enabled and on the
levels you wanted it to run on.
Step 3
As root
su - someuser
Run vncpasswd and generate a vnc password
Step 4
Start vnc
service vncserver start
来自: http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-03/0545.html
过程:上述4步后、vnc启动成功;但还是连不上,提示failed to connect..开始以为看 /var/log/messages可以搞定,但完全没用,其他log目录下的内容也看了,一样没用;再后来:ps -ef|grep vncserver,得到了一行信息,其中有 port=5902字样,马上在viewer上ip地址后增加5902,搞定!、
二。开始vnc连到的桌面极其简陋,需要调整xmanager:
You might prefer the VNC desktop session to look and behave the same as the login session you would normally see. To do that, edit the file
/home/username/.vnc/xstartupand remove the
#
from the beginning of the two lines that follow the line reading "
Uncomment the following two lines for normal desktop."
这里的/home/username,可用~ 代替。
摘自:http://www.redhat.com/magazine/006apr05/features/vnc/
相关文章推荐
- Centos下mysql允许远程连接后本地登陆失败问题(已解决)
- 解决 CentOS5.5连接Ubuntu10.10 NFS服务器的问题
- Telnet 1521端口连接失败问题,经过四天的努力终于解决!
- 解决VS内置IIS Express 连接Oracle失败问题
- 虚拟机下centos复制导致network连接失败问题解决方法
- SqlServer问题:sqlserver.jdbc.SQLServerException: 通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。错误:“Connectio
- linux上svn连接visual svn server时ssl鉴权失败,问题解决
- stm32串口下载出现端口搜索不到或者一直处于连接状态的问题解决办法
- (待解决问题)springMVC连接数据库失败
- php Sql Server连接失败问题及解决办法
- 解决LINUX(CENTOS)下SSH连接超时自动断开的问题
- kafka java中发送数据、连接失败问题解决
- kafka java中发送数据、连接失败问题解决
- CentOS6.4下安装NS3下的NetAnim模块失败的问题解决
- Android SDK Manager解决谷歌服务器连接失败导致下载失败的问题
- SecureCRT 连接ubuntu操作系统(解决Ubuntu密钥交换失败的问题)
- sudo apt-get update连接失败问题解决
- 管家婆常、连结失败、211端口等常见问题解决办法
- 解决centos 5.5 yum 源比较旧的问题