Xhost help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Xhost help
# 1  
Old 05-23-2008
Xhost help

Hi all,

I am trying to enable usage of X on 2 servers - ServerA and ServerB.
I am logged in as root on ServerA and am trying to add ServerB into the access list of A.

I am using this:

root@ServerA#> export DISPLAY=localhost:20.0
root@ServerA#> xhost +ServerB

I am getting the following error:
X11 connection rejected because of wrong authentication.
X connection to localhost:20.0 broken (explicit kill or server shutdown).


What am I doing wrong here?
I have exported the DISPLAY variable to localhost:20.0

Any help is appreciated.
Thanks
Vishi
# 2  
Old 05-23-2008
Are you sure that "localhost:20:0" is your display?
Usually, the first X display is numbered ":0.0"...
Regards.
# 3  
Old 05-23-2008
Oh well, I was using the wrong DISPLAY value. It was actually 5.0 and not 20.0. Found it out using ps -wef|grep X and searching thru the output for what i wanted.

Thanks guys!
# 4  
Old 05-28-2008
What's your OS ?

I'm using -> Sun Microsystems Inc. SunOS 5.9 Generic May 2002


# ps -wef
ps: illegal option -- w
usage: ps [ -aAdeflcjLPy ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid
pri opri pcpu pmem vsz rss osz nice class time etime stime
f s c lwp nlwp psr tty addr wchan fname comm args projid project pset
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Xhost command not working

Hi, I am not able to work with the command xhost. I need to open the same machine (not any other remote machine) in UI mode. How can I open this using xhost? I am using Putty to login to this machine. I am simply writing the command as --> xhost + There is an error displayed -->... (3 Replies)
Discussion started by: omniok
3 Replies

2. AIX

Xhost usage in AIX

Hi Can some one please advise on the usage of xhost command in aix. The AIX server name is pmut3. The below is the requirement : Only allow X11 / X-Window connections to the pmut3 server from the following windows hosts: Citrix Session Host server SRV090 Citrix Session Host server... (2 Replies)
Discussion started by: newtoaixos
2 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Problem With "xhost +" command-FreeBSD

Does anyone no why "xhost +" would not be working in freebsd? Could it be to do with a certain xorg package not being installed etc.. I am getting error "xhost: command not found" Thanks Anyone (2 Replies)
Discussion started by: Browser
2 Replies

4. UNIX for Dummies Questions & Answers

xhost

Some of my users find that a graphical program I have given them will not run until they type: xhost +local:username where, of course, they substitute in their own user name. My question is what the word "local" is doing there and whether it would work as well without it. Thanks in... (0 Replies)
Discussion started by: Brandon9000
0 Replies

5. UNIX for Dummies Questions & Answers

xWindows error: xhost unable to open display

I am trying to direct a AIX display to my XWindows and I am at a dead end now! So this what I've done so far: 1. In putty settings, I set "Enable X11 forwarding" and also set "X diplay location" to "localhost:0" (without quotes, of course) 2. Via putty, connected to my AIX server 3. On... (1 Reply)
Discussion started by: shoefiend
1 Replies

6. Shell Programming and Scripting

Include xhost + at auto reboot script

Below is the startup/stop script for vncservers by end-user. How can xhost + command include in this script? Please help. Thank you. #!/bin/sh # # Startup/Stop script for vncservers for some users. # case "$1" in 'start') /bin/rm /tmp/.X11-unix/X0 /bin/su - applprod -c... (0 Replies)
Discussion started by: KhawHL
0 Replies

7. UNIX for Advanced & Expert Users

Xhost and ILO

I have an application that requires me to disable the restricted access to the X Server libraries by issuing the 'Xhost +' command from a Console Window. It is important that this command is run from the Console Window and not a Terminal Window otherwise the system complains that DISPLAY is not... (0 Replies)
Discussion started by: jimthompson
0 Replies

8. UNIX for Advanced & Expert Users

xhost unable to open display

I am trying to install ORACLE 10g database on HP-UNIX 11.11 I am running OUI runinstaller from exceed terminal from windows PC. I have set DISPLAY=IPAddress of PC:0.0 When installer starts it is giving me error of display (5 Replies)
Discussion started by: ymg
5 Replies

9. UNIX for Dummies Questions & Answers

xhost: unable to open display????

I am a dba, not an sa, that recently had to take over administering an HP-UX server. Needless to say I am not in a comfortable area, but found out that of all people I am the most knowledgeable on unix here .... scary thought I know. I am having troubles exporting my display to a Windows XP... (5 Replies)
Discussion started by: soestx
5 Replies

10. UNIX for Advanced & Expert Users

xhost command

Hi, Is there a way to know if user used the xhost command in is current session and to which hosts/users the user give access. (xhost + or xhost + host1 ...) Thanks, Itay. (2 Replies)
Discussion started by: itayst
2 Replies
Login or Register to Ask a Question