免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5953 | 回复: 6
打印 上一主题 下一主题

redhat VNC server 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-17 15:09 |只看该作者 |倒序浏览
我用的RH enterprise4, VNC是原来系统带的。最近要更新成real VNC。

[root@MPC9 .vnc]# rpm -qa vnc vncserver
[root@MPC9 .vnc]#

查找后未见有安装包。

运行命令可以打开端口:
[root@MPC9 ~]# vncserver

New 'MPC9:4 (root)' desktop is MPC9:4

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/MPC9:4.log

安装real VNC:
[root@MPC9 vnc-E4_4_1_r12183-x86_linux]# ./vncinstall
Copying Xvnc to /usr/bin
Copying Xvnc.man to /usr/share/man/man1/Xvnc.1
Copying vncviewer to /usr/bin
Copying vncviewer.man to /usr/share/man/man1/vncviewer.1
Copying vncpasswd to /usr/bin
Copying vncpasswd.man to /usr/share/man/man1/vncpasswd.1
Copying vncconfig to /usr/bin
Copying vncconfig.man to /usr/share/man/man1/vncconfig.1
Copying vnckeygen to /usr/bin
Copying vnckeygen.man to /usr/share/man/man1/vnckeygen.1
Copying vncserver to /usr/bin
Copying vncserver.man to /usr/share/man/man1/vncserver.1
Copying vnclicense to /usr/bin
Copying vnclicense.man to /usr/share/man/man1/vnclicense.1
Copying vncaddrbook to /usr/bin
Copying vncaddrbook.man to /usr/share/man/man1/vncaddrbook.1
Copying x0vncserver to /usr/bin
Copying x0vncserver.man to /usr/share/man/man1/x0vncserver.1
Copying vncinitconfig to /usr/bin
Copying vncinitconfig.man to /usr/share/man/man1/vncinitconfig.1
Copying vnc.so to /usr/X11R6/lib/modules/extensions
Updating /etc/pam.d/vncserver
Original config file "/etc/pam.d/vncserver.old" preserved
Original config file "/etc/vnc/xstartup.old" preserved
Looking for font path... unix/:7100 (from /etc/X11/xorg.conf).
Looking for RGB database... /usr/X11R6/lib/X11/rgb from /etc/X11/xorg.conf
Original config file "/etc/vnc/config.old" preserved
Checking for single sign-on support... Not found
areConfigKeysValid: exception Private key not found
Generating primes:
  p: .............................
  q: ..
filename=/root/.vnc/private.key
A new secure key has been generated and stored.

再运行vncserver,打开的还是老版本:
[root@MPC9 vnc-E4_4_1_r12183-x86_linux]# vncserver

New 'MPC9:8 (root)' desktop is MPC9:8

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/MPC9:8.log

查找 vncserver所在目录发现默认安转到/usr/bin下:
[root@MPC9 .vnc]# find / -name vncserver
/usr/local/bin/vncserver
/usr/bin/vncserver
/soft/VNC linux free/vnc-4_1_2-x86_linux/vncserver


执行/usr/local/bin/vncserver:

[root@MPC9 vnc-E4_4_1_r12183-x86_linux]# /usr/bin/vncserver
VNC Server Enterprise Edition E4.4.1 (r12183) - built May 12 2008 12:08:54
Copyright (C) 2002-2008 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.


[1]+  Stopped                 /usr/bin/vncserver

等半天没起来!
是什么问题??

论坛徽章:
0
2 [报告]
发表于 2008-11-17 16:57 |只看该作者
先把原来的vncserver停掉,删除。然后再装新的vncserver。

论坛徽章:
0
3 [报告]
发表于 2008-11-17 17:38 |只看该作者
怎么停?

论坛徽章:
0
4 [报告]
发表于 2008-11-17 18:05 |只看该作者
原帖由 pppash 于 2008-11-17 17:38 发表
怎么停?


vncserver -kill :1

论坛徽章:
0
5 [报告]
发表于 2008-11-17 21:23 |只看该作者

回复 #1 pppash 的帖子

首先ps 看看vnc的进程是那个

论坛徽章:
0
6 [报告]
发表于 2008-11-17 23:48 |只看该作者
呵呵....蛮有意思的.

顶楼你不知道有一个命令叫做which么?另外还有一个命令叫做 rpm -qfi

论坛徽章:
0
7 [报告]
发表于 2008-11-18 09:47 |只看该作者
谢谢!

回4,5楼,是不是说我把所有这样的进程kill掉,然后将/usr/local/bin下的vncsever删除就可以了?

7楼的前辈,这个命令怎么用?我刚学linux。

[ 本帖最后由 pppash 于 2008-11-18 09:50 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP