Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm setting up xdmx. I've got it working, and am now trying to get it to start automatically once both display server boot.

I want to avoid using xinit to start the backend X because I don't want xterm to run when I'm going to start xdmx.

But when I run just X and not xinit, I can't display from a remote host:

displayhost:~ # X &
displayhost:~ # export DISPLAY=:0
displayhost:~ # xhost +

clienthost:~ $ export DISPLAY=displayhost:0
clienthost:~ $ xterm
No protocol specified
No protocol specified
No protocol specified
No protocol specified
xterm Xt error: Can't open display: questek0.local:0

If I run netstat -l on the displayhost, I can see that it is listening on port 6000. I can also telnet to the displayhost port 6000 from the clienthost, so I don't think it is a network issue.

How can I get the above to work?

share|improve this question
add comment

1 Answer 1

It seems like the distro I'm working on (Open SuSE) has a /etc/X11/xinit/xserverrc file that does some xauth things:

xauth -f $auth source - <<-EOF
add $tcpip $cookie
add $unix  $cookie
add ${host}/unix$dspnum $cookie
EOF

I now do something similar to this before I start the X server.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.