LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-11-2010, 02:39 AM   #1
NiclasO
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Can't open display


Hello

I am running reflexionX to acces a linux server but is doesn't work so well on my new computer with windows7. On the old computer with XP it works ok. Is there any magic settings that has to be made on windows 7 to allow for the linux machine to open windows on my client machine?

I can acces the linux server but when I try to start a second terminal window or graphic window I get the error:
/usr/X11R6/bin/xterm Xt error: Can't open display: 134.37.223.57:0

The IP adress is correct for my client computer.

I have installed the latest version of reflexionX but does not help. I have also installed PuTTY but the error remains the same. Offcourse I have the same settings as on my old computer with XP and telnet is switched on.

/Niclas
 
Old 06-11-2010, 12:50 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Xwindows by default use ports in the range 6000-6010. It may be that Win7 has those ports blocked in its firewall and you need to open them.

However an even safer way to do it is initiate an ssh session to the server from Windows using PuTTY with ssh tunneling. (Putty Configuration -->SSH -->X11 select "Enable X11 Forwarding".

When you open the PuTTY session to the remote server it will set your DISPLAY variable to a special one that tunnels back through the existing connection. (Make sure you don't override DISPLAY variable in /etc/profile, /etc/bashrc, .profile or .bashrc etc...). It also creates a .Xauthority in your home directory. Using that you can open X sessions back to your server (assuming you have your X server ReflectionX on).

If you change users after login (e.g. "su -" to become root) you can still use the same tunnel by setting DISPLAY to what it was before the su and setting XAUTHORITY variable equal to the .Xauthority file in the original user's home directory (e.g. export XAUTHORITY=/home/myuser/.Xauthority). For user's other than root you'd need to set permission on .Xauthority to allow that. (This permission change should be done sparingly and for short sessions as it opens a security hole into your Windows box - anyone that can access that .Xauthority file has a tunnel back to you.)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open display? lugoteehalt Debian 3 08-18-2009 06:00 AM
export display and Gtk-WARNING **: cannot open display: zimma Linux - Server 0 04-24-2009 02:51 AM
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 06:54 PM
::cannot open display:: nery Linux - Software 3 04-12-2007 08:35 AM
Cannot Open Display Apocalypse Linux - General 9 10-16-2002 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:15 AM.

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