old-www/HOWTO/Remote-X-Apps-10.html

76 lines
2.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Remote X Apps mini-HOWTO: Troubleshooting</TITLE>
<LINK HREF="Remote-X-Apps-9.html" REL=previous>
<LINK HREF="Remote-X-Apps.html#toc10" REL=contents>
</HEAD>
<BODY>
Next
<A HREF="Remote-X-Apps-9.html">Previous</A>
<A HREF="Remote-X-Apps.html#toc10">Contents</A>
<HR>
<H2><A NAME="s10">10. Troubleshooting</A></H2>
<P>The first time you try to run a remote X application, it usually does
not work. Here are a few common error messages, their probable causes,
and solutions to help you on your way.
<P>
<BLOCKQUOTE><CODE>
<PRE>
xterm Xt error: Can't open display:
</PRE>
</CODE></BLOCKQUOTE>
<P>There is no <CODE>DISPLAY</CODE> variable in the environment, and you didn't
tell the application with the <CODE>-display</CODE> flag either. The application
assumes the empty string, but that is syntactically invalid. To solve
this, be sure that you set the <CODE>DISPLAY</CODE> variable correctly in the
environment (with <CODE>setenv</CODE> or <CODE>export</CODE> depending on your shell).
<P>
<BLOCKQUOTE><CODE>
<PRE>
_X11TransSocketINETConnect: Can't connect: errno = 101
xterm Xt error: Can't open display: love.dial.xs4all.nl:0
</PRE>
</CODE></BLOCKQUOTE>
<P>Errno 101 is ``Network is unreachable''. The application could not make
a network connection to the server. Check that you have the correct
<CODE>DISPLAY</CODE> set, and that the server machine is reachable from your
client (it should be, after all you're probably logged in to the server
and telnetting to the client).
<P>
<BLOCKQUOTE><CODE>
<PRE>
_X11TransSocketINETConnect: Can't connect: errno = 111
xterm Xt error: Can't open display: love.dial.xs4all.nl:0
</PRE>
</CODE></BLOCKQUOTE>
<P>Errno 111 is ``Connection refused''. The server machine you're trying
to connect to is reachable, but the indicated server does not exist
there. Check that you are using the right host name and the right
display number.
<P>Alternatively, it is possible that the X server was configured <EM>not</EM>
to listen to the usual TCP port. To find out if this is the case,
see if the X server is started with the <CODE>-nolisten tcp</CODE> argument,
and if so, remove it.
<P>
<BLOCKQUOTE><CODE>
<PRE>
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: love.dial.xs4all.nl:0.0
</PRE>
</CODE></BLOCKQUOTE>
<P>The client could make a connection to the server, but the server does
not allow the client to use it (not authorized). Make sure that you have
transported the correct magic cookie to the client, and that it has not
expired (the server uses a new cookie when a new session starts).
<P>
<HR>
Next
<A HREF="Remote-X-Apps-9.html">Previous</A>
<A HREF="Remote-X-Apps.html#toc10">Contents</A>
</BODY>
</HTML>