1834800 Members
2845 Online
110070 Solutions
New Discussion

Re: how to run SAM

 
SOLVED
Go to solution
Ben Li
Advisor

how to run SAM

I login as my own user ID and use su to change to root. Then run SAM, it comes with
following error message:
#sam
Xlib: connection to ":0.0" refused by server
...

It seems I need to setup DISPLAY viriable. Can any one tell me how to solve the problem?

Thanks
4 REPLIES 4
CHRIS_ANORUO
Honored Contributor

Re: how to run SAM

You can do 2 things
a: Do su - root
b: In your .dtprofile, remove the hash(#) before DTSOURCEPROFILE=true
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Kofi ARTHIABAH
Honored Contributor

Re: how to run SAM

If you su to root, you loose your setting of the DISPLAY variable... and you should be able to run the non-x version of SAM- it appears that the DISPLAY variable is forced set by the root's .profile?

Anyways, what you can do is

export DISPLAY= ; sam

this should start the terminal version of SAM.

If you need to start the X version of SAM, you would need to set the DISPLAY variable to the host running the X server.. ie your PC.

nothing wrong with me that a few lines of code cannot fix!
Brian M. Fisher
Honored Contributor

Re: how to run SAM

What a lousy day typing I am having. Try:

xhost + `hostname`

Brian
<*(((>< er

Perception IS Reality
Brian M. Fisher
Honored Contributor
Solution

Re: how to run SAM

Before you do your su to root, type xhost `hostname` to allow X to be displayed by a different user.

Brian
<*(((>< er
Perception IS Reality