There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Tag Cloud
acer backup bios boot bsod computer connection crash dell driver drivers dvd error excel firefox freeze graphics hard disk hard drive hardware hijackthis internet laptop linksys macro malware network outlook outlook 2003 outlook 2007 password problem recovery redirect server slow sound toshiba trojan usb video virus vista vpn windows windows 7 windows vista windows xp wireless youtube
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
X Windows error

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
chucker8's Avatar
Member with 60 posts.
 
Join Date: Jun 2004
Experience: Intermediate
17-Aug-2006, 01:47 PM #1
X Windows error
computerA is RedHat 4.

from my box, I ssh as root into computerA

when i try to run gedit (/usr/bin/gedit) , I get:

Gtk-WARNING **: cannot open display:

I set my display to be localhost:10.0, and even my IP:0.0 and I did xhost + on my box.

Now, I can get this to work with X forwarding:

ssh -X root@computerA

when I echo $DISPLAY after the X forwarding, I get localhost:10.0

----------------------------

Why is this only working using X11 forwarding? how do I get X windows to work with just ssh ?

thanks

----------------------------

here's tail of /var/log/messages:
Aug 17 14:20:01 tpx22 crond(pam_unix)[8322]: session opened for user root by (uid=0)
Aug 17 14:20:01 tpx22 crond(pam_unix)[8322]: session closed for user root
Aug 17 14:24:58 tpx22 sshd(pam_unix)[8331]: session opened for user root by root(uid=0)
Aug 17 14:25:13 tpx22 gconfd (root-8366): starting (version 2.8.1), pid 8366 user 'root'
Aug 17 14:25:13 tpx22 gconfd (root-8366): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Aug 17 14:25:13 tpx22 gconfd (root-8366): Resolved address "xml:readwrite:/root/.gconf" to a writable configuration source at position 1
Aug 17 14:25:13 tpx22 gconfd (root-8366): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Aug 17 14:25:44 tpx22 sshd(pam_unix)[8375]: session opened for user root by root(uid=0)
O111111O's Avatar
Computer Specs
Senior Member with 896 posts.
 
Join Date: Aug 2005
Location: Right here.
Experience: 31337
21-Aug-2006, 07:59 PM #2
Why not use X11 forwarding? It sets the display for you properly.

Are you running iptables on your system you're trying to export display to? You need UDP6000 inbound if that's the case.

Also, how are you setting display? Methinks yourip0.0 won't work, I'd suggest that when you log in to your local desktop you see what your display session is running at. 0.0 typically only works on Winders systems.
__________________
That's nice, last I read; there was a free opensource dev for [insert product name here]
Closed Thread Bookmark and Share   techguy.org/493287

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:50 AM.
Copyright © 1996 - 2010 TechGuy, Inc. All rights reserved.
Powered by Cermak Technologies, Inc.