LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   X connection from another user over sudo (https://www.linuxquestions.org/questions/linux-newbie-8/x-connection-from-another-user-over-sudo-735464/)

m1n 06-25-2009 01:15 AM

X connection from another user over sudo
 
Hi all. I am the newbiest newbie ever been in linux history. Plese help me. I am unable to run a program from user oracle.

How can i grant newbie to run X from user oracle?

[newbie@server]sudo -s
[root@server]su - oracle
[oracle@server]cd /home/oracle/distr/afg_mk/
[oracle@server]./runInstaller

Got this :

X connection to localhost:11.0 broken (explicit kill or server shutdown).


P.S. I don't know root and oracle password. But have unlimited sudo:)

m1n 06-25-2009 02:21 AM

help needed...

ajcaruana 06-25-2009 06:11 AM

you need to set the DISPLAY environment variable. Do something like this:

[newbie@server]echo $DISPLAY

This should give an output like:
localhost:0.0

Then change the following line
[oracle@server]./runInstaller

to the following:
[oracle@server]DISPLAY=localhost:0.0 ./runInstaller

make sure that if your DISPLAY variable is different to what I wrote above, you enter the correct value instead of "localhost:0.0"

Cheers


All times are GMT -5. The time now is 11:49 AM.