LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-26-2006, 11:45 AM   #1
ajkrishock
Member
 
Registered: Jul 2003
Distribution: Linux Mint
Posts: 33

Rep: Reputation: 15
Gtk-WARNING **: cannot open display: (FC3)


Hello

I am having some issues opening and displaying programs on my PC from my server. I'll first describe my network.

I have three computers on my network. They are:

"Tony" - This is my PC. Dual boot XP and Fedora core 3. Cabled to the router
"Tina" - My Wife's XP machine. Wirelessly connected
"Server" - My web/ftp/backup server running Fedora core 3. Cabled to the router.

I use the X-Win32 application from the XP machines to open xterm's and run linux applications on the XP desktops. No problems there. I also have several directories on the server shared via Samba.. no problems there either.

The hosts file on the server and "tony" machines is identical, and it looks like:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.2.1 router
192.168.2.3 server
192.168.2.4 tony
192.168.2.5 tina

Problem comes in when, from "Tony", I boot into FC3 and then try to open apps on the server and display them on "Tony". I can ssh into the server from "tony" without problems:

[tony@tony ~]$ ssh -l tony server
tony@server's password:
Last login: Sat Aug 26 11:32:12 2006 from tony
[tony@server ~]$

Now, if I try to run applications, I get:

[tony@server ~]$ xclock &
[1] 25253
[tony@server ~]$ Error: Can't open display:

Now for the weird part. If I do an "echo $DISPLAY" on the server, I get:

[tony@server ~]$ echo $DISPLAY

[tony@server ~]$

I get nothing. A blank line. That's it.

If I do an "echo $DISPLAY" on "tony", I get:

[tony@tony ~]$ echo $DISPLAY
:0.0
[tony@tony ~]$

So what the heck is going on here?
 
Old 08-27-2006, 04:14 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
First make sure that both the server and your ssh client configurations allow X11 forwarding. Then, if it still does not work, you could try to

Code:
xhost +yourserver
to allow it to have connections to your X. About this latter one, I'm not completely sure if it helps, since I've used it myself like "xhost +localhost" to get around a problem where I couldn't run su-started programs from the console since the X server denied the connection as root was not allowed to connect to the display I was running.

Anyway first check out the X11 forwarding. Both server and client. Try even running
Code:
ssh -X servername
or
Code:
ssh -Y servername
(for trusted forwarding). I found out last year that though my settings were ok, I was unable to forward X11 connections from a server if I didn't start the ssh connections with the -X switch.
 
  


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
gtk warning cannot open display bosewicht Linux - Newbie 2 03-10-2010 08:53 PM
Gtk-WARNING **: cannot open display elfoozo DamnSmallLinux 3 07-12-2007 10:41 PM
Gtk-WARNING **: cannot open display mmisoo Fedora 4 07-24-2006 08:33 PM
Gtk-WARNING **:Cannot Open Display. Mark_in_Hollywood Linux - Newbie 2 05-09-2006 10:44 AM
Gtk-warning **: Cannot Open Display: davikevi Programming 3 02-19-2005 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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