openSUSE Forums > Archives > Novell Archives » unable to export display to may suse workstation

Go Back   openSUSE Forums > Archives > Novell Archives
Forums FAQ Members List Search Today's Posts Mark Forums Read


Novell Archives Archived content from Novell openSUSE support forums

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Jul-2006, 02:34
sa_s@gmx.net
Guest
 
Posts: n/a
Default unable to export display to may suse workstation

hi @all,

i want to export the graphical display from an open enterprise server to my
local suse 9.2 workstation.

what i've done until now:
- suse wrk: xhost ip-address of the server and afterwards xhost +

- on the oes:
a) unload java
b) ENV DISPLAY={ip-address of my workstation}
c) startx

then i should see the graphical console of the oes, but nothing happens.
when i look at the logger screen there is the following message "
Can't open display on wrk-ip:0.0. X must be running and $DISPLAY must be set"

I've got ":0.0" as result of typing echo $DISPLAY at the suse prompt, so
this variable should be set.

Further investigation on that problem leeds me to enable the tcp ports for
x11. I set DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN to "yes".
If I execute the command "netstat -an | grep :6000" I 've got a result, so
these ports are listening.

But the problem still exists, so can anybody out there tell me where is my
mistake? Or isn't it possible to export a display from an oes to another
machine??

Thanks in advance!


  #2 (permalink)  
Old 28-Jul-2006, 18:45
Jim Pye
Guest
 
Posts: n/a
Default Re: unable to export display to may suse workstation

sa_s@gmx.net wrote:

> hi @all,
>
> i want to export the graphical display from an open enterprise server to
> my local suse 9.2 workstation.
>
> what i've done until now:
> - suse wrk: xhost ip-address of the server and afterwards xhost +
>
> - on the oes:
> a) unload java
> b) ENV DISPLAY={ip-address of my workstation}
> c) startx
>
> then i should see the graphical console of the oes, but nothing happens.
> when i look at the logger screen there is the following message "
> Can't open display on wrk-ip:0.0. X must be running and $DISPLAY must be
> set"
>
> I've got ":0.0" as result of typing echo $DISPLAY at the suse prompt, so
> this variable should be set.
>
> Further investigation on that problem leeds me to enable the tcp ports for
> x11. I set DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN to "yes".
> If I execute the command "netstat -an | grep :6000" I 've got a result, so
> these ports are listening.
>
> But the problem still exists, so can anybody out there tell me where is my
> mistake? Or isn't it possible to export a display from an oes to another
> machine??
>
> Thanks in advance!


I think Novell/SUSE changed the default security to remove remote access
over X11 via the xhost $DISPLAY mechanism. I found it too much of a pain to
reenable and get working.

SO the solution is to use the Secure Shell which supports X forwarding.

From the client, assuming the server is running sshd, run the command:

ssh -X -C <username>@<oes hostname>

The X (uppercase) tells ssh to forward X
The C (uppercase) tells ssh to use compression

<username> replace with the username of the user you want to connect to the
oes box with.

<oes hostname> is as it says. Note replace the <> in above as well.

On the oes box watchout for the /etc/ssh/sshd_conf file as it has a
parameter to control whether the root user is allowed to connect or not.

When you do connect for the first time you will be asked to confirm the
public key and this will be added to local ssh "keyring".

The big advantage to all this is of course that the session is encrypted and
therefore more secure. This is the reason why Novell/SUSE make it a bit
harder to connect over the "normal" xhost system.

HTH
Jim


--
Pye, James Pye, chmod 007
The Ultimate Open Source
 

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2