Showing posts with label Xclock. Show all posts
Showing posts with label Xclock. Show all posts

Thursday, 9 May 2013

PuTTY X11 proxy: wrong authentication protocol attempted




OK, here's the scenario

[root@oradb ~]# xhost +
access control disabled, clients can connect from any host
[root@oradb ~]# su - oracle
[oracle@oradb:-/home/oracle]$ echo $DISPLAY
localhost:10.0
[oracle@oradb:-/home/oracle]$ xclock
PuTTY X11 proxy: wrong authentication protocol attemptedError: Can't open display: localhost:10.0
[oracle@oradb:-/home/oracle]$ xauth list
xauth:  creating new authority file /home/oracle/.Xauthority
[oracle@oradb:-/home/oracle]$ exit
logout


The first xterm executed as root, works just fine sending its display back to the client. In this case using PuTTY. However once you've switched to the Oracle user this fails. This is because the oracle xterm is seen as a different session that hasn't been authenticated. The simplest way to resolve this is to transfer the session keys from your own session to the oracle session


[root@oradb ~]# xauth list
oradb.localdomain:2  MIT-MAGIC-COOKIE-1  a13838db54c2163896acc1923d58bb32
oradb.localdomain/unix:2  MIT-MAGIC-COOKIE-1  a13838db54c2163896acc1923d58bb32
oradb.localdomain/unix:10  MIT-MAGIC-COOKIE-1  53915d0abbf1508e63d1b967311561b0

[root@oradb ~]# su - oracle

[oracle@oradb:-/home/oracle]$ xauth add oradb.localdomain/unix:10  MIT-MAGIC-COOKIE-1  53915d0abbf1508e63d1b967311561b0
xauth:  creating new authority file /home/oracle/.Xauthority

[oracle@oradb:-/home/oracle]$ xclock
Warning: Missing charsets in String to FontSet conversion
[oracle@oradb:-/home/oracle]$


Friday, 17 February 2012

Unable to open display ":0.0"

Unable to open display ":0.0" after issuing xhost +


  1. Ensure you have following rpm installed

  • [root@corelogic-srv4 ~]# rpm -qa | grep xorg
  • xorg-x11-apps-7.1-4.0.1.el5
  • xorg-x11-server-utils-7.1-5.el5_6.2
  • xorg-x11-xauth-1.0.1-2.1
  • xorg-x11-font-utils-7.1-3
  • xorg-x11-fonts-base-7.1-2.1.el5
  • xorg-x11-filesystem-7.1-2.fc6
  • xorg-x11-utils-7.1-2.fc6
  • xorg-x11-xinit-1.0.2-15.el5
  • xorg-x11-xfs-1.0.2-5.el5_6.1
   2. Ensure your xclock is running

   3. If  .Xauthority is already created on your root home. Rename it for .Xauthority_old.

   4. Install  Xming on your client machine.
   5. Configure putty session with X11 (see below image)

   
    6. Start Xming your client machine
    7. Logged in root or other user in Putty ( if some reason other user has issue with    display , run  ---- xhost +    as root user and then try.
    8. Issue Xclcok ( you could see the window )
   

Cheers!



Thursday, 1 December 2011

Minimal X11 Client on CentOS/REHL 5


To run X client apps remotely on CentOS5 from your X server requires installation of a couple of small packages.
yum install xorg-x11-apps — installed with dependancies to get basic X11 client components. Also includes xeyes and xclock, useful for testing.
yum install xorg-x11-xauth — needed for ssh authentication.
ssh -X user@client
xclock