一、xhosts报错
安装好vncserver,本地pc笔记本能通过vnc viewer远程连接oracle服务器,但是在执行xhost+报错,尝试过localhost,尝试过127.0.0.1,也试过本机ip地址,都是unable toopen displa,如下所示
[root@orcltest ~]# export display=localhost:1 [root@orcltest ~]# xhost xhost: unable to open display "localhost:1" [root@orcltest ~]# [root@orcltest ~]# export display=127.0.0.1:1 [root@orcltest ~]# xhost xhost: unable to open display "127.0.0.1:1" [root@orcltest ~]# xhost + xhost: unable to open display "127.0.0.1:1" [root@orcltest ~]# xhost + 192.51.3.12 xhost: unable to open display "192.51.3.12:1"
二、去查看后台的vnc日志信息,日志信息,看到vnc日志信息正常,没有啥异常信息
[root@orcltest ~]# vim /root/.vnc/orcltest:1.log xvnc tigervnc 1.1.0 - built may 11 2016 13:01:55 copyright (c) 1999-2011 tigervnc team and many others (see readme.txt) see http://www.tigervnc.org for information on tigervnc. underlying x server release 11704000, the x.org foundation tue mar 14 03:23:26 2017 vncext: vnc extension running! vncext: listening for vnc connections on all interface(s), port 5901 vncext: created vnc server for screen 0 gnome_keyring_socket=/tmp/keyring-jrupix/socket ssh_auth_sock=/tmp/keyring-jrupix/socket.ssh gnome_keyring_pid=7358 cleaned 21 files 7 still live failed to play sound: not available (polkit-gnome-authentication-agent-1:7380): glib-gobject-warning **: cannot register existing type `_polkiterror' (polkit-gnome-authentication-agent-1:7380): glib-critical **: g_once_init_leave: assertion `initialization_value != 0' failed ** (gnome-user-share:7381): warning **: gnome-user-share cannot be started as root for security reasons. initializing nautilus-gdu extension ** (gnome-panel:7372): warning **: panel-applet-frame.c:1288: failed to load applet oafiid:gnoteapplet: (null) ** (gnome-panel:7372): warning **: panel-applet-frame.c:1288: failed to load applet oafiid:gnome_fastuserswitchapplet: (null)
三、试试xdyinfo
google到了一些资料,有准备安装xdyinfo成功的,这里也试试看,先安装xdpyinfo
[root@orcltest ~]# xdpyinfo -bash: xdpyinfo: command not found [root@orcltest ~]# yum install -y xdpyinfo loaded plugins: refresh-packagekit, security setting up install process resolving dependencies --> running transaction check ---> package xorg-x11-utils.x86_64 0:7.5-14.el6 will be installed --> processing dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-14.el6.x86_64 --> processing dependency: libxxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-14.el6.x86_64 --> running transaction check ---> package libxxf86dga.x86_64 0:1.1.4-2.1.el6 will be installed ---> package libdmx.x86_64 0:1.1.3-3.el6 will be installed --> finished dependency resolution dependencies resolved =============================================================================================================================================================================================================================================================================== package arch version repository size =============================================================================================================================================================================================================================================================================== installing: xorg-x11-utils x86_64 7.5-14.el6 base 101 k installing for dependencies: libxxf86dga x86_64 1.1.4-2.1.el6 base 18 k libdmx x86_64 1.1.3-3.el6 base 15 k transaction summary =============================================================================================================================================================================================================================================================================== install 3 package(s) total download size: 133 k installed size: 270 k downloading packages: (1/3): libxxf86dga-1.1.4-2.1.el6.x86_64.rpm | 18 kb 00:00 (2/3): libdmx-1.1.3-3.el6.x86_64.rpm | 15 kb 00:00 (3/3): xorg-x11-utils-7.5-14.el6.x86_64.rpm | 101 kb 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- total 252 kb/s | 133 kb 00:00 running rpm_check_debug running transaction test transaction test succeeded running transaction installing : libxxf86dga-1.1.4-2.1.el6.x86_64 1/3 installing : libdmx-1.1.3-3.el6.x86_64 2/3 installing : xorg-x11-utils-7.5-14.el6.x86_64 3/3 verifying : libdmx-1.1.3-3.el6.x86_64 1/3 verifying : xorg-x11-utils-7.5-14.el6.x86_64 2/3 verifying : libxxf86dga-1.1.4-2.1.el6.x86_64 3/3 installed: xorg-x11-utils.x86_64 0:7.5-14.el6 dependency installed: libxxf86dga.x86_64 0:1.1.4-2.1.el6 libdmx.x86_64 0:1.1.3-3.el6 complete! [root@orcltest ~]#
之后再执行xdpyinfo,可以xhsot +成功,如下所示,就可以启动./runinstaller安装oracle了。
[root@orcltest ~]# xdpyinfo xdpyinfo: unable to open display "localhost:1". [root@orcltest ~]# xhost + 192.51.3.12 xhost: unable to open display "localhost:1" [root@orcltest ~]# export display=:1.0 [root@orcltest ~]# xhost + access control disabled, clients can connect from any host [root@orcltest ~]#
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流,谢谢大家对www.887551.com的支持。