LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-22-2004, 09:22 AM   #1
dan7
Guest
 
Posts: n/a
Question Suse 9.1 Error: Can't open display


Hi!,

I'll try to explain you...

I have a problem when I export display from a linux machine,

PCPRUEBA is a SUSE 9.1

From other linux called pcserver I write...


# DISPLAY=pcprueba:0.0
# export DISPLAY
# xclock

And the server say Error: Can't open display "pcprueba:0.0"

And I don't know what happen. I revised all and I don't find any errors


Help Please!!!
 
Old 07-22-2004, 09:39 AM   #2
levis
Guest
 
Posts: n/a
Smile

Have you run xhost + pcserver_or_its_IP on pcprueba
Check if your box (pcprueba) runs X without -nolisten tcp option
R U using gnome or KDE?


Levente
 
Old 07-22-2004, 05:05 PM   #3
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Just do "export DISPLAY=:0.0" and all should be fine...
 
Old 07-23-2004, 03:35 AM   #4
levis
Guest
 
Posts: n/a
Quote:
Originally posted by schatoor
Just do "export DISPLAY=:0.0" and all should be fine...
R U thinking in ssh forwarding ? Then why the hell do you need export DISPLAY???? it is automatically set by ssh. BTW client should be configured for x11 forwarding too or use -X in command line.

Levente
 
Old 07-23-2004, 07:31 AM   #5
dan7
Guest
 
Posts: n/a
Hi all, I'm Dan7

I finded the solution... Edit file /etc/X11/xdm/Xservers and modify the line:


:0 local /usr/X11R6/bin/X -nolisten tcp -br : 1 vt8

and replace by:

:0 local /usr/X11R6/bin/X -br : 1 vt8.

Now all work like we need...

Thanks all for yours responses...
 
Old 07-23-2004, 10:59 AM   #6
levis
Guest
 
Posts: n/a
Hi dan7,


Do you trust your network? By removing the -nolisten tcp you will communicate in clear text on the network.
If netstat -ln shows a line 0.0.0.0:6000 then X configured without the -nolisten tcp

Use the ssh x11 forwarding that way it will be encrypted.
Check your boxes.
From box A ( which has the X server and will display clients) connect to box B (where the X client will run) by ssh
A> ssh -X -f B mozilla
or put ForwardX11 yes into /etc/ssh/ssh_config instead of -X in command line
type your (B) pass and mozilla will be displayed on the X server (A)

Dont forget to check that on box B sshd is configured for x11 forwarding
/etc/ssh/sshd_config contains the line
X11Forwarding yes
Levente
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: can't open display gopalkasat Linux - Networking 8 12-13-2004 01:59 PM
can't open display (SuSE 9.1) userbr Linux - Security 6 08-31-2004 02:30 AM
can't open display on a suse 9.1? Braveheart1980 Linux - Software 10 06-15-2004 02:55 AM
wdb Error: Can't open display: 172.16.1.28:0 murugesan Linux - Networking 4 02-19-2004 04:01 AM
Could not open display error reyemarr Linux - General 14 12-06-2003 10:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration