LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2004, 01:16 PM   #1
Sroys
LQ Newbie
 
Registered: May 2004
Location: maryland, earth
Distribution: Ubuntu mainly
Posts: 4

Rep: Reputation: 0
"Cannot connect to X server" whilest telnetting to another UNIX system


From a Fedora Core 1 system terminal window on my gnome desktop, I'm trying to telnet to a Sun UNIX system and run emacs (or any other X-based program). On the Sun, I get "emacs: Cannot connect to X server 10.3.1.40:0.0", but no emacs. The IP address of my Linux system on our local network is 10.3.1.40, so I know DISPLAY is set properly on the Sun, and I've run "xhost +" on the Linux system before telnetting to the Sun, so that's not the problem either.

I'm on a local network in a hospital, and God only knows what the gateway I'm connected to is doing. I have no access to the gateway, and no knowledge other than "it's there and it's probably set to 'Paranoid' mode since we've had so many hacker problems in the past". To confuse things even more (in my mind), I can telnet from one Sun to another and run emacs just fine, it's just the Linux box that's not behaving. So, my question is, what exactly can I ping, probe, stat, cat, or check so I can fix this, or even determine whether it's my problem or a gateway configuration problem? I'm an old, grizzled programmer, but new to this depth of network system administration, so be gentle with me.

Thanks in advance,
Steve
 
Old 05-14-2004, 11:35 PM   #2
kvedaa
Member
 
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
Hmmm, It is late and I am no longer thinking as clearly as I should be, but at the moment the easiest apporach to this problem that I can think of is simply to see if we can go around it. When you get a chance you should try to ssh to the box vice telnet. If the remote box will allow you to make a successful ssh session, then you can try using the -X option on ssh, which handles all of the fun off setting X forwarding for you. The command should look like....

ssh -X user@remote_server

Once you log in, try running 'xeyes' or some other X application to ensure that it worked.

Good luck.
 
Old 05-15-2004, 02:41 AM   #3
ekman
Member
 
Registered: Apr 2004
Location: Sweden
Posts: 41

Rep: Reputation: 15
Hi,
Make sure to check the "firewall" setup. The X port (I think it is 6000) may be
blocked. Use "iptables -L -nv" to check the firewall setup (and "man iptables").

Regards,
L Ekman
 
Old 05-25-2004, 02:31 PM   #4
Sroys
LQ Newbie
 
Registered: May 2004
Location: maryland, earth
Distribution: Ubuntu mainly
Posts: 4

Original Poster
Rep: Reputation: 0
Nope, and nope. :-(

SSH won't let me get there, and being a brute-force kinda guy, I disabled iptables (using "chkconfig --level 2345 iptables off"), turned off the firewall using redhat-config-securitylevel, and then rebooted the system to make sure that everything was (hopefully) set properly. Still no X-connection was allowed. SHOULD what I did have turned off all protection on the linux side, or is there something else I can try to turn off?

Steve
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rosegarden, jack, qjackctl error: "can't connect to server as client" deep_inda_jungl Mandriva 3 02-20-2007 11:45 PM
"Essential System Administration" or "UNIX System Administration Handbook"? TGWDNGHN Linux - Newbie 3 07-03-2005 08:27 PM
cu "connect to remote system" program kpachopoulos Linux - General 1 02-03-2005 11:56 PM
the best "unix like" or "unix" operating system melinda_sayang General 12 12-03-2004 02:50 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 PM.

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