FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 05-01-2008, 11:39 PM
"Wiedemann, Shane CIV NAVAIR"
 
Default Problem with X server

So this problem is most likely user error; none the less...
I have some software (only one other place has this software) that to
view video windows that the software tries to pop up, you need to use
the following command to get it to display:
"software_name -display hostname", or at least that is what I am told.
I have inserted my hostname where it says "hostname" and verified with
"uname" that my hostname is correct. I am not connecting to a remote
machine, am not on a network and am running the software on a
stand-alone machine. The vendors of the software do connect remotely, I
believe, and they can pop video display windows just fine. Whenever I
run the software, I get a message that says "Unable to connect to x
server".
I currently have the DISPLAY variable set to ":0.0" and this seems to be
fine for opening programs, such as NEdit. Any other setting (even
"hostname:0.0") and I cannot start programs such as editors and other
programs that open in a separate window. I get errors that say "can't
open display" and the like.

When I run the software, if I leave out the command "-display hostname"
all video rendering is done behind the scenes, i.e., I can't view it. I
have tried replacing "hostname" with all of the following:
hostname:0.0
:0.0
hostname:0
localhost
localhost:0.0
localhost:0

Any clues?
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-02-2008, 02:31 AM
mark
 
Default Problem with X server

Wiedemann, Shane CIV NAVAIR wrote:
> So this problem is most likely user error; none the less...

Ok, stupid question #1: what runlevel are you at, 3 or 5?

mark
> I have some software (only one other place has this software) that to
> view video windows that the software tries to pop up, you need to use
> the following command to get it to display:
> "software_name -display hostname", or at least that is what I am told.
> I have inserted my hostname where it says "hostname" and verified with
> "uname" that my hostname is correct. I am not connecting to a remote
> machine, am not on a network and am running the software on a
> stand-alone machine. The vendors of the software do connect remotely, I
> believe, and they can pop video display windows just fine. Whenever I
> run the software, I get a message that says "Unable to connect to x
> server".
> I currently have the DISPLAY variable set to ":0.0" and this seems to be
> fine for opening programs, such as NEdit. Any other setting (even
> "hostname:0.0") and I cannot start programs such as editors and other
> programs that open in a separate window. I get errors that say "can't
> open display" and the like.
>
> When I run the software, if I leave out the command "-display hostname"
> all video rendering is done behind the scenes, i.e., I can't view it. I
> have tried replacing "hostname" with all of the following:
> hostname:0.0
> :0.0
> hostname:0
> localhost
> localhost:0.0
> localhost:0
>
> Any clues?

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-05-2008, 06:24 PM
"Wiedemann, Shane CIV NAVAIR"
 
Default Problem with X server

I am at runlevel 5. I'll answer any stupid question in the hopes it
leads me to an answer and/or better understanding!

-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of mark
Sent: Thursday, May 01, 2008 19:31
To: General Red Hat Linux discussion list
Subject: Re: Problem with X server

Wiedemann, Shane CIV NAVAIR wrote:
> So this problem is most likely user error; none the less...

Ok, stupid question #1: what runlevel are you at, 3 or 5?

mark
> I have some software (only one other place has this software) that to
> view video windows that the software tries to pop up, you need to use
> the following command to get it to display:
> "software_name -display hostname", or at least that is what I am told.
> I have inserted my hostname where it says "hostname" and verified with

> "uname" that my hostname is correct. I am not connecting to a remote
> machine, am not on a network and am running the software on a
> stand-alone machine. The vendors of the software do connect remotely,

> I believe, and they can pop video display windows just fine. Whenever

> I run the software, I get a message that says "Unable to connect to x
> server".
> I currently have the DISPLAY variable set to ":0.0" and this seems to
> be fine for opening programs, such as NEdit. Any other setting (even
> "hostname:0.0") and I cannot start programs such as editors and other
> programs that open in a separate window. I get errors that say "can't

> open display" and the like.
>
> When I run the software, if I leave out the command "-display
hostname"
> all video rendering is done behind the scenes, i.e., I can't view it.

> I have tried replacing "hostname" with all of the following:
> hostname:0.0
> :0.0
> hostname:0
> localhost
> localhost:0.0
> localhost:0
>
> Any clues?

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-05-2008, 06:30 PM
Troy Amburg
 
Default Problem with X server

Try this:

On the local host, type:

xhost +


On May 5, 2008, at 11:24 AM, Wiedemann, Shane CIV NAVAIR wrote:


I am at runlevel 5. I'll answer any stupid question in the hopes it
leads me to an answer and/or better understanding!

-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of mark
Sent: Thursday, May 01, 2008 19:31
To: General Red Hat Linux discussion list
Subject: Re: Problem with X server

Wiedemann, Shane CIV NAVAIR wrote:

So this problem is most likely user error; none the less...


Ok, stupid question #1: what runlevel are you at, 3 or 5?

mark

I have some software (only one other place has this software) that to
view video windows that the software tries to pop up, you need to use
the following command to get it to display:
"software_name -display hostname", or at least that is what I am
told.
I have inserted my hostname where it says "hostname" and verified
with



"uname" that my hostname is correct. I am not connecting to a remote
machine, am not on a network and am running the software on a
stand-alone machine. The vendors of the software do connect
remotely,


I believe, and they can pop video display windows just fine.
Whenever



I run the software, I get a message that says "Unable to connect to x
server".
I currently have the DISPLAY variable set to ":0.0" and this seems to
be fine for opening programs, such as NEdit. Any other setting (even
"hostname:0.0") and I cannot start programs such as editors and other
programs that open in a separate window. I get errors that say
"can't



open display" and the like.

When I run the software, if I leave out the command "-display

hostname"

all video rendering is done behind the scenes, i.e., I can't view it.



I have tried replacing "hostname" with all of the following:
hostname:0.0
:0.0
hostname:0
localhost
localhost:0.0
localhost:0

Any clues?


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-05-2008, 09:56 PM
"Wiedemann, Shane CIV NAVAIR"
 
Default Problem with X server

This doesn't seem to work either. As a note, I do have access to the
source code. Anything I might look for there?

As a further note, I do have an NVIDIA driver installed...could this be
causing a problem? Is there a place to set up how X behaves?


-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of Troy Amburg
Sent: Monday, May 05, 2008 11:30
To: General Red Hat Linux discussion list
Subject: Re: Problem with X server

Try this:

On the local host, type:

xhost +


On May 5, 2008, at 11:24 AM, Wiedemann, Shane CIV NAVAIR wrote:

> I am at runlevel 5. I'll answer any stupid question in the hopes it
> leads me to an answer and/or better understanding!
>
> -----Original Message-----
> From: redhat-list-bounces@redhat.com
> [mailto:redhat-list-bounces@redhat.com] On Behalf Of mark
> Sent: Thursday, May 01, 2008 19:31
> To: General Red Hat Linux discussion list
> Subject: Re: Problem with X server
>
> Wiedemann, Shane CIV NAVAIR wrote:
>> So this problem is most likely user error; none the less...
>
> Ok, stupid question #1: what runlevel are you at, 3 or 5?
>
> mark
>> I have some software (only one other place has this software) that to

>> view video windows that the software tries to pop up, you need to use

>> the following command to get it to display:
>> "software_name -display hostname", or at least that is what I am
>> told.
>> I have inserted my hostname where it says "hostname" and verified
>> with
>
>> "uname" that my hostname is correct. I am not connecting to a remote

>> machine, am not on a network and am running the software on a
>> stand-alone machine. The vendors of the software do connect
>> remotely,
>
>> I believe, and they can pop video display windows just fine.
>> Whenever
>
>> I run the software, I get a message that says "Unable to connect to x

>> server".
>> I currently have the DISPLAY variable set to ":0.0" and this seems to

>> be fine for opening programs, such as NEdit. Any other setting (even
>> "hostname:0.0") and I cannot start programs such as editors and other

>> programs that open in a separate window. I get errors that say
>> "can't
>
>> open display" and the like.
>>
>> When I run the software, if I leave out the command "-display
> hostname"
>> all video rendering is done behind the scenes, i.e., I can't view it.
>
>> I have tried replacing "hostname" with all of the following:
>> hostname:0.0
>> :0.0
>> hostname:0
>> localhost
>> localhost:0.0
>> localhost:0
>>
>> Any clues?
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-06-2008, 12:19 PM
"Northrup, Wilson"
 
Default Problem with X server

Try tunneling everything through ssh. It gets around a whole host of
problems.

ssh -X user@target.tld
%xclock &


Make sure x11 forwarding is enabled in sshd_config.
This gets around the need to use the xhost and export display settings.
Additionally it encrypts everything.




-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of Troy Amburg
Sent: Monday, May 05, 2008 2:30 PM
To: General Red Hat Linux discussion list
Subject: Re: Problem with X server

Try this:

On the local host, type:

xhost +


On May 5, 2008, at 11:24 AM, Wiedemann, Shane CIV NAVAIR wrote:

> I am at runlevel 5. I'll answer any stupid question in the hopes it
> leads me to an answer and/or better understanding!
>
> -----Original Message-----
> From: redhat-list-bounces@redhat.com
> [mailto:redhat-list-bounces@redhat.com] On Behalf Of mark
> Sent: Thursday, May 01, 2008 19:31
> To: General Red Hat Linux discussion list
> Subject: Re: Problem with X server
>
> Wiedemann, Shane CIV NAVAIR wrote:
>> So this problem is most likely user error; none the less...
>
> Ok, stupid question #1: what runlevel are you at, 3 or 5?
>
> mark
>> I have some software (only one other place has this software) that to
>> view video windows that the software tries to pop up, you need to use
>> the following command to get it to display:
>> "software_name -display hostname", or at least that is what I am
>> told.
>> I have inserted my hostname where it says "hostname" and verified
>> with
>
>> "uname" that my hostname is correct. I am not connecting to a remote
>> machine, am not on a network and am running the software on a
>> stand-alone machine. The vendors of the software do connect
>> remotely,
>
>> I believe, and they can pop video display windows just fine.
>> Whenever
>
>> I run the software, I get a message that says "Unable to connect to x
>> server".
>> I currently have the DISPLAY variable set to ":0.0" and this seems to
>> be fine for opening programs, such as NEdit. Any other setting (even
>> "hostname:0.0") and I cannot start programs such as editors and other
>> programs that open in a separate window. I get errors that say
>> "can't
>
>> open display" and the like.
>>
>> When I run the software, if I leave out the command "-display
> hostname"
>> all video rendering is done behind the scenes, i.e., I can't view it.
>
>> I have tried replacing "hostname" with all of the following:
>> hostname:0.0
>> :0.0
>> hostname:0
>> localhost
>> localhost:0.0
>> localhost:0
>>
>> Any clues?
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-06-2008, 02:49 PM
"Wiedemann, Shane CIV NAVAIR"
 
Default Problem with X server

I am not connecting through a network; I am on a stand-alone
machine...does this still apply? Would I just 'ssh' to the computer I
am currently logged onto?

-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of Northrup, Wilson
Sent: Tuesday, May 06, 2008 5:19
To: General Red Hat Linux discussion list
Subject: RE: Problem with X server

Try tunneling everything through ssh. It gets around a whole host of
problems.

ssh -X user@target.tld
%xclock &


Make sure x11 forwarding is enabled in sshd_config.
This gets around the need to use the xhost and export display settings.
Additionally it encrypts everything.




-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of Troy Amburg
Sent: Monday, May 05, 2008 2:30 PM
To: General Red Hat Linux discussion list
Subject: Re: Problem with X server

Try this:

On the local host, type:

xhost +


On May 5, 2008, at 11:24 AM, Wiedemann, Shane CIV NAVAIR wrote:

> I am at runlevel 5. I'll answer any stupid question in the hopes it
> leads me to an answer and/or better understanding!
>
> -----Original Message-----
> From: redhat-list-bounces@redhat.com
> [mailto:redhat-list-bounces@redhat.com] On Behalf Of mark
> Sent: Thursday, May 01, 2008 19:31
> To: General Red Hat Linux discussion list
> Subject: Re: Problem with X server
>
> Wiedemann, Shane CIV NAVAIR wrote:
>> So this problem is most likely user error; none the less...
>
> Ok, stupid question #1: what runlevel are you at, 3 or 5?
>
> mark
>> I have some software (only one other place has this software) that to

>> view video windows that the software tries to pop up, you need to use

>> the following command to get it to display:
>> "software_name -display hostname", or at least that is what I am
>> told.
>> I have inserted my hostname where it says "hostname" and verified
>> with
>
>> "uname" that my hostname is correct. I am not connecting to a remote

>> machine, am not on a network and am running the software on a
>> stand-alone machine. The vendors of the software do connect
>> remotely,
>
>> I believe, and they can pop video display windows just fine.
>> Whenever
>
>> I run the software, I get a message that says "Unable to connect to x

>> server".
>> I currently have the DISPLAY variable set to ":0.0" and this seems to

>> be fine for opening programs, such as NEdit. Any other setting (even
>> "hostname:0.0") and I cannot start programs such as editors and other

>> programs that open in a separate window. I get errors that say
>> "can't
>
>> open display" and the like.
>>
>> When I run the software, if I leave out the command "-display
> hostname"
>> all video rendering is done behind the scenes, i.e., I can't view it.
>
>> I have tried replacing "hostname" with all of the following:
>> hostname:0.0
>> :0.0
>> hostname:0
>> localhost
>> localhost:0.0
>> localhost:0
>>
>> Any clues?
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Notice: This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and then
delete it from your system.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-06-2008, 03:25 PM
obed
 
Default Problem with X server

Try starting your XFS (X Font Server)

#service xfs start



On Tue, May 6, 2008 at 9:49 AM, Wiedemann, Shane CIV NAVAIR
<shane.wiedemann@navy.mil> wrote:
> I am not connecting through a network; I am on a stand-alone
> machine...does this still apply? Would I just 'ssh' to the computer I
> am currently logged onto?
>
>
> -----Original Message-----
> From: redhat-list-bounces@redhat.com
>
> [mailto:redhat-list-bounces@redhat.com] On Behalf Of Northrup, Wilson
> Sent: Tuesday, May 06, 2008 5:19
> To: General Red Hat Linux discussion list
>
>
> Subject: RE: Problem with X server
>
> Try tunneling everything through ssh. It gets around a whole host of
> problems.
>
> ssh -X user@target.tld
> %xclock &
>
>
> Make sure x11 forwarding is enabled in sshd_config.
> This gets around the need to use the xhost and export display settings.
> Additionally it encrypts everything.
>
>
>
>
> -----Original Message-----
> From: redhat-list-bounces@redhat.com
> [mailto:redhat-list-bounces@redhat.com] On Behalf Of Troy Amburg
> Sent: Monday, May 05, 2008 2:30 PM
> To: General Red Hat Linux discussion list
> Subject: Re: Problem with X server
>
> Try this:
>
> On the local host, type:
>
> xhost +
>
>
> On May 5, 2008, at 11:24 AM, Wiedemann, Shane CIV NAVAIR wrote:
>
> > I am at runlevel 5. I'll answer any stupid question in the hopes it
> > leads me to an answer and/or better understanding!
> >
> > -----Original Message-----
> > From: redhat-list-bounces@redhat.com
> > [mailto:redhat-list-bounces@redhat.com] On Behalf Of mark
> > Sent: Thursday, May 01, 2008 19:31
> > To: General Red Hat Linux discussion list
> > Subject: Re: Problem with X server
> >
> > Wiedemann, Shane CIV NAVAIR wrote:
> >> So this problem is most likely user error; none the less...
> >
> > Ok, stupid question #1: what runlevel are you at, 3 or 5?
> >
> > mark
> >> I have some software (only one other place has this software) that to
>
> >> view video windows that the software tries to pop up, you need to use
>
> >> the following command to get it to display:
> >> "software_name -display hostname", or at least that is what I am
> >> told.
> >> I have inserted my hostname where it says "hostname" and verified
> >> with
> >
> >> "uname" that my hostname is correct. I am not connecting to a remote
>
> >> machine, am not on a network and am running the software on a
> >> stand-alone machine. The vendors of the software do connect
> >> remotely,
> >
> >> I believe, and they can pop video display windows just fine.
> >> Whenever
> >
> >> I run the software, I get a message that says "Unable to connect to x
>
> >> server".
> >> I currently have the DISPLAY variable set to ":0.0" and this seems to
>
> >> be fine for opening programs, such as NEdit. Any other setting (even
> >> "hostname:0.0") and I cannot start programs such as editors and other
>
> >> programs that open in a separate window. I get errors that say
> >> "can't
> >
> >> open display" and the like.
> >>
> >> When I run the software, if I leave out the command "-display
> > hostname"
> >> all video rendering is done behind the scenes, i.e., I can't view it.
> >
> >> I have tried replacing "hostname" with all of the following:
> >> hostname:0.0
> >> :0.0
> >> hostname:0
> >> localhost
> >> localhost:0.0
> >> localhost:0
> >>
> >> Any clues?
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
> and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and then
> delete it from your system.
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
>
>
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



--

obed.org.mx

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-06-2008, 04:09 PM
Nigel Wade
 
Default Problem with X server

Wiedemann, Shane CIV NAVAIR wrote:

So this problem is most likely user error; none the less...
I have some software (only one other place has this software) that to
view video windows that the software tries to pop up, you need to use
the following command to get it to display:
"software_name -display hostname", or at least that is what I am told.
I have inserted my hostname where it says "hostname" and verified with
"uname" that my hostname is correct. I am not connecting to a remote
machine, am not on a network and am running the software on a
stand-alone machine. The vendors of the software do connect remotely, I
believe, and they can pop video display windows just fine. Whenever I
run the software, I get a message that says "Unable to connect to x
server".
I currently have the DISPLAY variable set to ":0.0" and this seems to be

fine for opening programs, such as NEdit. Any other setting (even
"hostname:0.0") and I cannot start programs such as editors and other
programs that open in a separate window. I get errors that say "can't
open display" and the like.

When I run the software, if I leave out the command "-display hostname"
all video rendering is done behind the scenes, i.e., I can't view it. I
have tried replacing "hostname" with all of the following:
hostname:0.0
:0.0
hostname:0
localhost
localhost:0.0
localhost:0

Any clues?


I think you probably need to enable your X display to listen on the network.

The software you are using is pretty strange. It should not be necessary
to specify the -display option, it should use whatever DISPLAY is set
to. However, given that it does what it does, you are pretty much at its
mercy.


By default the X display does not listen for network (TCP) connections,
it allows local connections using a UNIX domain socket. If you have
DISPLAY set to :0 clients will connect on the UNIX socket, but if you
specify a hostname (even localhost) then the connection will be done on
a TCP socket. If the X server isn't listening on a TCP socket then the
connection will fail. This is a quite sensible security precaution (it
prevents any non-local clients connecting to your display, even if you
use the xhost + security disabler) but can cause problems for any
software which expects to be able to connect via a TCP socket.


To enable the TCP socket you need to modify the X server startup. How
you do that depends on what version of RedHat you are using. For RH 4 it
is set in /etc/X11/gdm/gdm.conf. To enable TCP connections you need to
change the line:

DisallowTCP=true
to
DisallowTCP=false

In KDE desktop you can also set this using the System Settings->Login
Screen dialog (I presume there's something similar for Gnome). In the
Security tab un-check the box marked "Always disallow TCP connections to
X server".



--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 05-06-2008, 05:18 PM
"Wiedemann, Shane CIV NAVAIR"
 
Default Problem with X server

Success!! You solved my problem! Thank you for taking time to
respond...much appreciated.
Cheers,
Shane Wiedemann

-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of Nigel Wade
Sent: Tuesday, May 06, 2008 9:09
To: General Red Hat Linux discussion list
Subject: Re: Problem with X server

Wiedemann, Shane CIV NAVAIR wrote:
> So this problem is most likely user error; none the less...
> I have some software (only one other place has this software) that to
> view video windows that the software tries to pop up, you need to use
> the following command to get it to display:
> "software_name -display hostname", or at least that is what I am told.
> I have inserted my hostname where it says "hostname" and verified with

> "uname" that my hostname is correct. I am not connecting to a remote
> machine, am not on a network and am running the software on a
> stand-alone machine. The vendors of the software do connect remotely,

> I believe, and they can pop video display windows just fine. Whenever

> I run the software, I get a message that says "Unable to connect to x
> server".
> I currently have the DISPLAY variable set to ":0.0" and this seems to
> be fine for opening programs, such as NEdit. Any other setting (even
> "hostname:0.0") and I cannot start programs such as editors and other
> programs that open in a separate window. I get errors that say "can't

> open display" and the like.
>
> When I run the software, if I leave out the command "-display
hostname"
> all video rendering is done behind the scenes, i.e., I can't view it.

> I have tried replacing "hostname" with all of the following:
> hostname:0.0
> :0.0
> hostname:0
> localhost
> localhost:0.0
> localhost:0
>
> Any clues?

I think you probably need to enable your X display to listen on the
network.

The software you are using is pretty strange. It should not be necessary
to specify the -display option, it should use whatever DISPLAY is set
to. However, given that it does what it does, you are pretty much at its
mercy.

By default the X display does not listen for network (TCP) connections,
it allows local connections using a UNIX domain socket. If you have
DISPLAY set to :0 clients will connect on the UNIX socket, but if you
specify a hostname (even localhost) then the connection will be done on
a TCP socket. If the X server isn't listening on a TCP socket then the
connection will fail. This is a quite sensible security precaution (it
prevents any non-local clients connecting to your display, even if you
use the xhost + security disabler) but can cause problems for any
software which expects to be able to connect via a TCP socket.

To enable the TCP socket you need to modify the X server startup. How
you do that depends on what version of RedHat you are using. For RH 4 it
is set in /etc/X11/gdm/gdm.conf. To enable TCP connections you need to
change the line:
DisallowTCP=true
to
DisallowTCP=false

In KDE desktop you can also set this using the System Settings->Login
Screen dialog (I presume there's something similar for Gnome). In the
Security tab un-check the box marked "Always disallow TCP connections to
X server".


--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 03:53 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org