1820256 Members
2610 Online
109622 Solutions
New Discussion юеВ

Re: xlock problem

 
sheevm
Regular Advisor

xlock problem

Hi,

I am trying to help this guy who has exceed installed in hid laptop.

On the Unix server

I set export DISPLAY=pc ip:0.0

xhost +
xclock

I get the error message FOR BOTH COMMANDS

XLIB: COnnection to PC IP:0.0 is refused by the server
XLIB: NO PROTOCOL SPECIFIED
UNABLE TO OPEN DISPLAY PCIP:0.0

xclock with exceed is working from my laptop same server

xlock worked for the same user with exceed couple of days ago

Raji
be good and do good
3 REPLIES 3
AIMC
Frequent Advisor

Re: xlock problem

Hi Raji,

From the server check xauth,

# xauth

xauth> list

16.49.75.94:0 MIT-MAGIC-COOKIE-1 4a54754a4f48764248777073334a674c
16.19.168.13:0 MIT-MAGIC-COOKIE-1 2f6f36334f466c6463426877494d4b49
16.49.76.83:0 MIT-MAGIC-COOKIE-1 4d3145787543364947323541394b4d42
15.144.209.128:0 MIT-MAGIC-COOKIE-1 743963694e7539555138334e4e627956
16.49.11.41:0 MIT-MAGIC-COOKIE-1 2e745056672f4c477036514c45476a32

xauth> exit

this gives you a list of servers that have been authorised on the server for x windows access.

Check if the PC IP is in this list
Aidan
Matti_Kurkela
Honored Contributor

Re: xlock problem

The "xhost +" command should disable the Exceed's authorization checks... but to take effect, the Exceed would have to accept that the Unix host is authorized to give commands to Exceed, which it obviously isn't yet. A chicken-and-egg problem.

Check the Exceed configuration settings: there should be something that is the equivalent of "xhost +".

I'd also like to recommend using SSH at this point. When using SSH, if the administrator of the server has allowed X session forwarding, then on the laptop you need just to start Exceed (but not connect to anything), enable X session forwarding in your SSH client, open a SSH connection to the server... and all things like DISPLAY variables and xhost/xauth settings are handled automatically. As a bonus, the X session gets the benefit of SSH encryption.
MK
OldSchool
Honored Contributor

Re: xlock problem

Check Exceed config, under "Security, Access Control....", under the security tab, see is "Allow any host" is selected.