How to Use Xming When You Use Sudo Command on Linux Server?
Posted on 2012-04-04
I am trying to run an installer program (Oracle Client Install)on a Linux server. I am using Xming for the X server and Putty.
If I use Putty and login as my personal Unix user account (jburch) onto the Linux server and make sure I have Xming Server running in the background on my local machine, when I execute the command to run the installer: ./runInstaller the graphical display works and the install wizard pops up successfully.
However, I need to run this Oracle install client install as the "oracle" user on the Llinux server. I don't have the password but the Unix admin said to just "sudo" to the oracle user.
I can run sudo to "root" or "oracle" with success. No problems.
However, as the oracle user, if i try to run the installer like i did as my personal user, it doesn't bring up the graphical install wizard like it did for my user. It gives error instead. See below.
Can someone help me to be able to sudo to oracle and still be able to get Xming to work to bring up the graphical display to install the Oracle client?
Again, this all works if I login as my personal user (jburch). so I know it works...I just need to get it to work for the oracle user.