Chinaunix

标题: redhat VNC server 问题 [打印本页]

作者: pppash    时间: 2008-11-17 15:09
标题: redhat VNC server 问题
我用的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

等半天没起来!
是什么问题??
作者: wyulnnhtg    时间: 2008-11-17 16:57
先把原来的vncserver停掉,删除。然后再装新的vncserver。
作者: pppash    时间: 2008-11-17 17:38
怎么停?
作者: lasama    时间: 2008-11-17 18:05
原帖由 pppash 于 2008-11-17 17:38 发表
怎么停?


vncserver -kill :1
作者: kns1024wh    时间: 2008-11-17 21:23
标题: 回复 #1 pppash 的帖子
首先ps 看看vnc的进程是那个
作者: nntp    时间: 2008-11-17 23:48
呵呵....蛮有意思的.

顶楼你不知道有一个命令叫做which么?另外还有一个命令叫做 rpm -qfi
作者: pppash    时间: 2008-11-18 09:47
谢谢!

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

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

[ 本帖最后由 pppash 于 2008-11-18 09:50 编辑 ]




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2