1847304 Members
3113 Online
110264 Solutions
New Discussion

Re: Problem to start SAM

 
SOLVED
Go to solution
Andrianto Tjandra
Occasional Advisor

Problem to start SAM

If I login as regular user, then change to superuser, afterwards try to start SAM then I will get following message lines, why?
NOTE: If I login directly as root there is no problem.

cam01 21:
cam01 22: su
Password:
# sam
Xlib: connection to "cam01:0.0" refused by server
Xlib: Client is not authorized to connect to Server

The DISPLAY environment variable is set to "cam01:0.0", but
the current configuration won't allow sam to run on that display.

The DISPLAY environment variable may be incorrect, or, if you are
running sam remotely, you may need to allow the remote system
to access your local X server by typing

/usr/bin/X11/xhost +cam01

on your local machine.

Do you want to proceed using the terminal version of sam?
(yes or no) [yes] n
# echo $DISPLAY
cam01:0.0
# /usr/bin/X11/xhost +
Xlib: connection to "cam01:0.0" refused by server
Xlib: Client is not authorized to connect to Server
/usr/bin/X11/xhost: unable to open display "cam01:0.0"
6 REPLIES 6
Peter Godron
Honored Contributor

Re: Problem to start SAM

Hi,
the xhost command authenticates connections onto your terminal.
You may get around this my login on as root and doing
xhost +cam01
sam -display cam01
Regards
Eric Antunes
Honored Contributor
Solution

Re: Problem to start SAM

Hi,

Check Robert-Jan's solution for a similar issue here:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=736562

Kindest Regards,

Eric Antunes
Each and every day is a good day to learn.
Henk Geurts
Esteemed Contributor

Re: Problem to start SAM

hi Andrianto.

the su to root is the problem.

use "su - root " to change for user to root
this reads the root profile and environment settings.
then it must work

let me now...

regards
Henk
bhavin asokan
Honored Contributor

Re: Problem to start SAM

hi,

instead of su root try su - root

su - root executes the profile of root.


regds,
Andrianto Tjandra
Occasional Advisor

Re: Problem to start SAM

Suggestion from Eric Antunes solved the problem.
Andrianto Tjandra
Occasional Advisor

Re: Problem to start SAM

Suggestion from Eric Antunes solved the problem