Xephyr cannot open host display. Is DISPLAY set?

I' try to play with Xephyr under tty:

$ DISPLAY=:0 Xephyr -ac -screen 800x600 -host-cursor

Xephyr cannot open host display. Is DISPLAY set?

As u can see, DISPLAY has been set, but Xephyr still cannot see it.

Posted Mar 7, 2020, 10:52 AM UTC

13
tehfreek•

Xephyr under tty

Xephyr is for embedding an X server in an X server. If you don't already have one running then it won't work.

2
lutusp•

Maybe the "-screen" resolution specifier cannot be accomplished, which would produce the same error message.

1
moongya•

I run $xhost local: before running xephyr and that helps

1