Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

xhost: unable to open display ""

Quanwen ZhaoSep 12 2018 — edited Sep 20 2018

Hello, experts

Yesterday I installed Oracle Linux 7.5 on VirtualBox 5.2.18, during this period I used the "Minimal Install" for OL, and then I want to use VNC to connect to the GUI, so I installed this RPM package - VNCpilot (you can download it from here, and some related DOCS from here, ).

Unfortunately after I configure VNCpilot, and I always don't login to GUI via vncviewer, the following are my some operation steps,

[root@Oracle18c software]# rpm -ivh vncpilot-1.0-1.el7.x86_64.rpm

error: Failed dependencies:

    dejavu-fonts-common is needed by vncpilot-1.0-1.el7.x86\_64

    dejavu-sans-fonts is needed by vncpilot-1.0-1.el7.x86\_64

    dejavu-sans-mono-fonts is needed by vncpilot-1.0-1.el7.x86\_64

    dejavu-serif-fonts is needed by vncpilot-1.0-1.el7.x86\_64

    gnome-terminal is needed by vncpilot-1.0-1.el7.x86\_64

    metacity is needed by vncpilot-1.0-1.el7.x86\_64

    tigervnc-server is needed by vncpilot-1.0-1.el7.x86\_64

    xorg-x11-apps is needed by vncpilot-1.0-1.el7.x86\_64

    xorg-x11-utils is needed by vncpilot-1.0-1.el7.x86\_64

[root@Oracle18c software]# yum install -y dejavu-fonts-common

[root@Oracle18c software]# yum install -y dejavu-sans-fonts

[root@Oracle18c software]# yum install -y dejavu-sans-mono-fonts

[root@Oracle18c software]# yum install -y dejavu-serif-fonts

[root@Oracle18c software]# yum install -y gnome-terminal

[root@Oracle18c software]# yum install -y metacity

[root@Oracle18c software]# yum install -y tigervnc-server

[root@Oracle18c software]# yum install -y xorg-x11-apps

[root@Oracle18c software]# yum install -y xorg-x11-utils

[root@Oracle18c ~]# rpm -ivh /software/vncpilot-1.0-1.el7.x86_64.rpm

Preparing... ################################# [100%]

Updating / installing...

1:vncpilot-1.0-1.el7 ################################# [100%]

[root@Oracle18c ~]# vncpilot --create -shared -size=1280x800

VNCpilot 1.0. Copyright (c) 2018 Dude! @ Oracle Community.

Free under the GNU General Public License. See vncpilot --help for info.

Service Summary:

VNC service unit: /etc/systemd/system/vncserver@:95.service

VNC attributes: alwaysshared, 1280x800x16, localhost, vncauth

Service status: enabled, active

TCP/IP address | TCP port | Port status | Username | Password

192.168.210.10 | 5995 | listening | vnc-89D | EeB-7XT-Mbn

Note: 1. Use SSH on a PC running the VNC viewer to forward a local TCP

        port (5901) to the remote TCP port of the VNC service (5995):  

        $ ssh -L 5901:localhost:5995 vnc-89D@192.168.210.10

     2. Connect the VNC viewer to localhost (127.0.0.1):

        $ vncviewer localhost:5901

For help: <https://community.oracle.com/docs/DOC-1024831>

[root@Oracle18c ~]# vncpilot -s

VNCpilot 1.0. Copyright (c) 2018 Dude! @ Oracle Community.

Free under the GNU General Public License. See vncpilot --help for info.

Service Summary:

VNC service unit: /etc/systemd/system/vncserver@:95.service

VNC attributes: alwaysshared, 1280x800x16, localhost, vncauth

Service status: enabled, active

   TCP/IP address  | TCP port | Port status | Username

   192.168.210.10  |   5995   |  listening  | vnc-89D

You can take a look at two screenshots as follows (BTW I have run this icon of "Xmanager - Passive" on taskbar),

1.png

2.png

Could you help me to solve it? Thanks a lot.

Best Regards

Quanwen Zhao

This post has been answered by Dude! on Sep 13 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2018
Added on Sep 12 2018
22 comments
13,111 views