LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-17-2006, 01:46 PM   #1
chucker8
Member
 
Registered: Nov 2005
Posts: 52

Rep: Reputation: 15
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)
 
Old 08-17-2006, 04:08 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,426

Rep: Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822
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'
 
  


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
Wine: Error message: Warning: the specified Windows directory L"c:\\windows" and such DarkNice Linux - Software 4 11-14-2004 06:36 PM
SuSE 9.1 and Windows Xp refuse to live in harmony: error loading windows through GRUB sanctumtacete Linux - Newbie 3 10-19-2004 07:47 AM
New windows error message BajaNick General 17 12-15-2003 12:03 AM
X Windows Error ASP Linux - General 12 09-15-2003 12:15 AM
error connecting to windows zaman Linux - Networking 0 08-25-2003 07:01 PM


All times are GMT -5. The time now is 03:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration