Can't run GUI while installing Oracle in Linux from a jar file

9,881

Solution 1

These lines (as root) solved my problem:

xhost +
su - oracle

Solution 2

You may also solve this problem installing libXtst.i686. In my case, it solves the problem (Oracle Linux x64).

Solution 3

You are probably logged in as root in the GUI, right? The installer doesn't have access to launch XWindows applications as Oracle into a GUI process owned/running by root. Login to the GUI as the oracle software owner.

Share:
9,881

Related videos on Youtube

Óscar López
Author by

Óscar López

Software engineer, architect and teacher passionate about programming languages and algorithms. Twitter: @oscar_lopez LinkedIn: óscar-andrés-lópez

Updated on September 17, 2022

Comments

  • Óscar López
    Óscar López over 1 year

    I'm trying to install an oracle product in Linux using a jar. When I run the command "java -jar installer.jar" using the root user, the installer's GUI shows up without problems.

    But if I try to run the same command using the oracle user, I get "Unable to instantiate GUI, defaulting to console mode" and the installer proceeds in the console. What permissions must be assigned to the oracle user, so it can run the installer under the GUI? I created the oracle user with these commands:

    groupadd -g 500 oinstall
    groupadd -g 501 admin
    mkdir -p /apps/oracle
    mkdir -p /var/opt/oracle
    useradd -u 500 -d /home/oracle -g oinstall -G admin -s /bin/bash oracle
    chown oracle:admin /apps/oracle /var/opt/oracle
    passwd oracle
    
  • Michael Hampton
    Michael Hampton almost 12 years
    Yes, and they gave the entire world access to your desktop.