There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming hard drive hardware hdmi internet java laptop malware memory monitor motherboard music network obp printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
X Windows error

Reply  
Thread Tools
chucker8's Avatar
Member with 60 posts.
 
Join Date: Jun 2004
Experience: Intermediate
17-Aug-2006, 03: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, 09: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]
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:56 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.