Below are the steps using which you can easily Enable GUI on the UNIX servers without using or installing VNC server. You can use below method to install various products like Oracle Weblogic, DB Client, OIM, OAM, OHS etc.
Step 1: Download the MobaXterm server on your local machine. From this software, we will be doing SSH to the respective Unix servers.
Step 2: Login to the respective server by Entering the required credentials and Run this command: xauth list
Below is the sample output:
$ xauth list
usunix008/unix:10 MIT-MAGIC-COOKIE-1 5219231743afa9beee286uu6t0946s
usunix009/unix:11 MIT-MAGIC-COOKIE-1 64197278197yti7kke997ur8i0865rty
Step 3: Then Run below command to echo the default Display:
$ echo $DISPLAY
localhost:10.0
Step 4: Now switch to the respective user like sudo -iu oracle
Step 5: Now take one entry as input from the output of Step 2 and format it like below:
xauth add usunix008/unix:10 MIT-MAGIC-COOKIE-1 5219231743afa9beee286uu6t0946s
Step 6: Export the Display by running below command:
export DISPLAY=localhost:10.0
That’s it. You are all Set.
Now you can test the Display or GUI functionality by running one of the below commands:
- xclock
- xeyes
- xhost
Note: If the above mentioned command doesn’t work then simply launch the Installer and Proceed with the Product Installation.
Sample Image of Oracle Weblogic Installer:
Hope it helps. Cheers!!!