LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-28-2004, 04:08 PM   #1
userbr
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Rep: Reputation: 0
can't open display (SuSE 9.1)


Hello,

I am having trouble with a new SuSE 9.1 install.

I am familure with xhost and xauth for use with remote display.
I am getting errors from my local host and remote machines when I try to export my DISPLAY.

Here is what I am doing.

Local host: ifconfig shows local host is 10.170.8.1
xhost +
ssh -l system 10.170.8.2
export DISPLAY=10.170.8.1:0
xclock
Error: Can't open display: 10.170.8.1:0

even when I just go to root on localhost, the only way it works is when I
export DISPLAY=:0
export DISPLAY=10.170.8.1:0 gets error.

Please help!
Thank you!
Brian




Last edited by userbr; 07-28-2004 at 04:18 PM.
 
Old 07-28-2004, 08:02 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
check /etc/sysconfig/displaymanager

find:
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"

and change to:
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"
 
Old 07-29-2004, 02:51 PM   #3
userbr
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Although this was a good tip, this did not fix my issue. I did change this parameter and even rebooted just in case, still the same issue.
Are there any logs I could look at to see if I get a better idea of what is blocking me from exporting my DISPLAY?
Thanks again,
Brian
 
Old 07-30-2004, 06:56 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
Do you have SUSEFIREWALL2 running ?

if yes:
Probably you should check "/etc/sysconfig/SuSEfirewall2"
FW_PROTECT_FROM_INTERNAL="yes"
to
FW_PROTECT_FROM_INTERNAL="no"

or modify
FW_SERVICES_INT_XXX
to allow X11
 
Old 08-02-2004, 02:26 PM   #5
userbr
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
It still is not working.
If X11 is listening shouldn't netstat -peat show it?
This is my netstat -peat

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 *:5801 *:* LISTEN root 4519 2838/xinetd
tcp 0 0 *:5901 *:* LISTEN root 4518 2838/xinetd
tcp 0 0 *:sunrpc *:* LISTEN root 2494 1640/portmap
tcp 0 0 *:ipp *:* LISTEN root 4532 2488/cupsd
tcp 0 0 localhost:smtp *:* LISTEN root 4042 2621/master
tcp 0 0 *:ssh *:* LISTEN root 3110 2058/sshd
tcp 0 0 localhost:smtp *:* LISTEN root 4043 2621/master
 
Old 08-02-2004, 03:22 PM   #6
userbr
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Ok! Finally figured it out.
All I did was go into Yast and it said my monitor wasn't setup. It was setup during install as a VESA basic monitor.
I set it up to my monitor's specs and restarted X and it works fine.

Does anyone know why it didn't find the montior during setup of 9.1 (8.2 found it fine before).
Also, why would that matter, as long as it had a valid display, it at least still work, right?

Thanks for all of your assistance, keep up the good work!!!
Brian
 
Old 08-31-2004, 02:30 AM   #7
andy_stenger
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Hi,

I seem to have the same problem, however, the hints supplied didn't work for me. I'm still trying to figure it out, but I learned a couple of lessons along the way. Note: I am running gdm and gnome, which is not the default for Suse.

1) The graphical yast2 does not have an option for shutting down the firewall completely. Switch to console mode and try yast2 there. All the sudden "disable firewall" was there again
2) netstat -peat really shows the listening X server, you should see a line like the following:
tcp 0 0 *:6000 *:* LISTEN root 9921 4576/X
3) setting DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN=yes didn't have any effect for me, i.e. the open port did not show up with netstat.
4) here's a workaround if you need to get up a display for your favourite headless server:
- go to console mode
- log in as root
- execute "init 3"
- log out and in as user
- execute "startx gnome"

Cheers!

Andy
 
  


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
Cannot open display ::eboye:: SUSE / openSUSE 2 11-19-2005 07:45 AM
Suse 9.1 Error: Can't open display dan7 General 5 07-23-2004 10:59 AM
can't open display on a suse 9.1? Braveheart1980 Linux - Software 10 06-15-2004 02:55 AM
Cannot open Display ferreter Linux - General 1 08-17-2003 04:23 PM
Cannot Open Display Apocalypse Linux - General 9 10-16-2002 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:31 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