This is actually caused by your host name being changed when you bring the
ppp connection up. X programs aren't able to resolve the hostname of your
machine any longer.

Here's the post that somebody made last week with the solution:

-------
date: Wed, 22 Mar 2000 07:07:21 +0100
From: "Anthony E. Greene" <[EMAIL PROTECTED]>
To: Red Hat Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: can't open display when conected by ppp
Message-Id: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

At 23:33 2000-03-21 -0500, Mark Basil wrote:
>Ok, anytime I connect using ppp (kppp) I can't run anything that uses the
>display. i.e. EVERYTHING.  Why would a ppp conection cause me not to be
able
>to do this.  After I disconnect everything is fine.
>error can't connect to display:0.0

X applications use TCP/IP to send information to the display. When you
establish a PPP connection, your hostname may change, causing problems for
apps that try to establish a TCP connection to a display using your
original hostname. The apps can no longer find the display because the
host
has been renamed.

The fix is to associate the hostname with an unchanging IP address. Make
sure your machine's hostname is in /etc/hosts. If you don't have a network
card, you can use a line like this in /etc/hosts:

127.0.0.1       localhost       localhost.localdomain   mylinuxbox

The above line basically assigns two names to the loopback device
(127.0.0.1). If you do have a network card, you should assign the real
name
to the network card:

127.0.0.1       localhost.localdomain   localhost
192.168.1.1     mylinuxbox.localdomain  mylinuxbox

That assumes "mylinuxbox" is the local hostname you've selected and that
you're using standard private network IP addresses. On Red Hat boxes, the
hostname is assigned in /etc/sysconfig/network. You can use Linuxconf or
netcfg to set it, or you can edit the file yourself.

hope that this helps!

On Wed, 29 Mar 2000, Travis Beal wrote:

> I can dialup my ISP, but once I am connected, I can't bring up any more
> shells.  I have to remember to bring up Navigator before I dialup, or
> else no browser.  How do I fix it so that I can still bring up shells
> once I am online?
> Thanks.
> Travis
> 

Chris Dowling.
[EMAIL PROTECTED]




-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to