cancel
Showing results for 
Search instead for 
Did you mean: 

X-window problem with SAPGUI

Former Member
0 Kudos

Hi,

I'm trying to configure the SAP GUI correctly. I have it installed at /opt/SAPClients on Fedora 4. I can login as root (/opt/SAPClients/SAPGUI6.40rev4/bin/guilogon) and it starts just fine-- but then under Add New Connection, only (none) is displayed in the System dropdown box. How do I get it to recognize the system? I started the other stuff fine using sapstart nw4host.

When I su to nw4adm or kevin (a local account), the GUI will not even start, and I get the following error:

Xlib: connection to ":0.0" refused by server

Xlib: No protocol specified

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

I think this is a conflict in X-windows-- does anyone know how to resolve this?

thanks,

Kevin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved. The problem is that you should give permission to other users (i.e. the

superuser) to use your open graphical X console. To do that, use the "xhost"

command. Once you log into the X environment, just open a text console and

type:

xhost +

This give permission to any user on any machine to use your graphic terminal.

Then, you can do "su" and run ethereal as root. When you log-out, the access

permission is unset.

Please, note that the previous command give permission to ANY user in ANY host

to send windows to your grahical console. If you prefer to restrict the

access only to users in the local host or to given users, please refer to the

"xhost" command manual.

Former Member
0 Kudos

hi kevin,

i have some problem with the diplay exactly what tou faced..

in mycase when i tried to login with superuser and i gave the environment variables for display like..

setenv DISPLAY ipaddress:0.0

after this when i tried to give xclock

i am getting the same error what u got

can u please help me in this

i tried with xhost + also

thanks in advance,

chaitanya

Former Member
0 Kudos

hi, i have read you chat and it has been very helpful, cos i had the same problem, but i could not get the window to work properly. i found somewhere i dont remember i couple of lines that have fixed my problem:

export PLATIN_JAVA='<path where your java stuff resides on>/j2re.1.4.2_12/bin/java'

export PLATIN_JAVA_VER='1.4.2'

I had to execute every time i wanted to run java sapgui, so i just have added it into a script

hope this helps