LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   X Windows error (http://www.linuxquestions.org/questions/linux-desktop-74/x-windows-error-474844/)

chucker8 08-17-2006 01:46 PM

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)

ntubski 08-17-2006 04:08 PM

Quote:

Originally Posted by chucker8
computerA is RedHat 4.

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

thanks:)

To get X Windows you need to do X forwarding. No way around that. What you can do is make an alias so you don't have to type in the "-X" by putting this line into your ~/.bashrc file:
Code:

alias ssh='ssh -X'


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