1. IMPORTANT - 11/13/2015: In light of a possible breach we have scrubbed all passwords. You will need to request a password reset through the site. Click here for more information.

X-client can not get access to the display

Discussion in 'General Linux' started by ivanov-void, Jan 16, 2013.

  1. ivanov-void

    ivanov-void New Member

    Jan 16, 2013
    Likes Received:
    I'm trying to run the X-client xclock from a terminal. I'm typing

    Mandriva Linux release 2011.0 (Official) for x86_64
    Kernel on a Dual-processor x86_64
    localhost.localdomain login: ...
    Password: ...
    [root:localhost ~]# xclock -digital
    Error: Can't open display:
    [root:localhost ~]# DISPLAY=:0.0;export DISPLAY
    [root:localhost ~]# xclock -digital
    No protocol specified
    Error: Can't open display: :0.0
    [root:localhost ~]# export DISPLAY=localhost:11.0
    [root:localhost ~]# xclock -digital
    Error: Can't open display: localhost:11.0
    [root:localhost ~]# startx --:11
    xauth: file /root/.serverauth.10515 does not exist
    Fatal server error:
    Server already active for display 0
       If this server is no longer running, remove /tmp/.X0-lock
       and start again.
    Invalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
    xinit: unable to connect to X server: Connection refused
    xinit: server error
    [root:localhost ~]#
    In /etc/ssh/sshd_config i uncommented the following:

    ListenAddress localhost
    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost yes
    PermitTunnel yes
    In reality, i want to run a Java-application written using Swing library, but when i enter

    java -jar SpeedTest.jar
    Get the same message, that X-client can not get access to the display.

    What could be causing this?

    I would be most grateful for the information!
    Thank you!


Share This Page