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

installationjavalinuxoraclepermissions

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

Best Answer

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