1

Problems of this variety are common, but I can only find answers dealing with remote machines and chroots. I am getting this error in my own terminal on Fedora 25, not while SSH'ing into a remote server.

The problem arose when I tried to run emacs from a terminal emulator on Fedora 25. I received the message:

Display localhost:0.0 unavailable, simulating -nw


$ echo $DISPLAY

returns

localhost:0.0


$ xhost +localhost

and

$ xhost +

both return

xhost:  unable to open display "localhost:0.0"


$ xinit

returns

Fatal server error:
(EE) Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.
(EE) 
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 7 requests (7 known processed) with 0 events remaining.


ps aux | grep `cat /tmp/.X0-lock`

returns

ryan      1764  3.6  3.2 2150384 260912 tty2   Sl+  18:04   2:15 /usr/bin/gnome-shell
ryan     11671  0.0  0.0 119372   960 pts/0    S+   19:05   0:00 grep --color=auto 1764

UPDATE: - I am not chrooting or SSHing into a remote system. - I am not using wayfair. - I am using Terminal and Terminator in Fedora 25. - The output of echo $XAUTHORITY and xauth list "$@" | awk '{print $1, "", $2}' is /home/ryan/.Xauthority and

Can you help me fix and understand this?

  • 1
    All that, and the question does not give the fairly basic item of information that is what X servers you can see running on your machine and what X displays they are serving up. (-: – JdeBP Jan 12 '17 at 8:20
  • 1
    Are you using wayland? – Ipor Sircer Jan 12 '17 at 8:30
  • What is the output of echo $XAUTHORITY and xauth list "$@" | awk '{print $1, "", $2}'? How do you start the shell that you run the commands from: are you launching a terminal emulator (which one) which runs a shell, or is some other software involved such as Screen or tmux? – Gilles Jan 12 '17 at 13:28
  • 1
    So xauth list doesn't list anything? That's definitely a problem. An application knows which display to use from the DISPLAY environment variable, but also needs to demonstrate that it's authorized to use that display, and that's what the xauth data is about. xauth list should return a line for your display. Either XAUTHORITY is not set correctly (some configurations have the data in a different location) or something is erasing the data. – Gilles Jan 13 '17 at 14:29
  • 1
    It seems to be working, unless it's a problem that echo $XAUTHORITY returns only a newline. Here are potentially relevant lines in my .bash_profile: export PATH="/usr/lib/X11:$PATH" # Fix x-window problems export DISPLAY=localhost:0.0 export XAUTHORITY=/home/ryan/.Xauthority @Gilles. I appreciate your help. – WordBrewery Jan 21 '17 at 1:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.