LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-25-2002, 10:47 AM   #1
netkepala
Member
 
Registered: Sep 2002
Distribution: Red Hat
Posts: 68

Rep: Reputation: 15
Question can't connect to linux server using X client


Hi,

I'm trying to serve out Linux graphical application on a server to Windows PC running X client. The X client I'm using is X-ThinPro 6.4

I'm running Redhat linux 7.3 and Gnome desktop. I've done a ps -ef and can see that X server was running. The ps result was /etc/X11.... so I know X is running.

However my PC Client still can't connect to my linux box. The error message is 'Cannot open socket ...' or 'Socket open but host not answering' errors

I;m using REXEC method to connect with connect string such as
/usr/X11R6/bin/xterm

Can anyone help or suggest an easier free PC X client that works !
 
Old 01-01-2003, 11:30 PM   #2
netkepala
Member
 
Registered: Sep 2002
Distribution: Red Hat
Posts: 68

Original Poster
Rep: Reputation: 15
Cool host not answering

there seems to be some improvements ...

Now I'm getting the error msg

"connection open but host not answering"

Why is it so hard to configure X Client ????
 
Old 01-02-2003, 03:50 PM   #3
rewt
Member
 
Registered: May 2001
Posts: 44

Rep: Reputation: 15
Don't forget to add your host/IP in the Xaccess file so X will allow you to connect- that might be your problem.

I use X-Win32 5.4 to connect to my solaris box's and to multiple linux X servers it works pretty good for me. I use XDMCP when I use the client.

If you connect from a linux box to a remote X server you can use the command: /usr/X11R6/bin/X -query hostname (or IP) from a command prompt before you start the X server on your machine.

Hope this helps
 
Old 01-04-2003, 02:00 AM   #4
netkepala
Member
 
Registered: Sep 2002
Distribution: Red Hat
Posts: 68

Original Poster
Rep: Reputation: 15
where can i download x-win32

Thanks for the reply.

Where can I download x-win32 ?

So I should add the ip address of my client machine in the XAccess file ? Where is the file?

So if I'm connecting from linux machine A to linux machine B,
I should type /usr/X11R6/bin/X -query <ip address B> before I
ssh to machine B ?

Sorry abt all this questions but I'm a newbie at X configuration
 
Old 01-04-2003, 02:37 AM   #5
rewt
Member
 
Registered: May 2001
Posts: 44

Rep: Reputation: 15
you can download x-win32 from http://www.starnet.com/products/

the Xaccess file is usually here if you use xdm: /etc/X11/xdm/Xaccess I do believe you can use the hostname or IP (just one line per host or IP) just don't put a star * (all hosts) on a line by itself or you are inviting anyone to your X server. If the file is not there you can do this from the command line: locate Xaccess and it should give you the full path of the Xaccess file you are looking for.
Then just start the X-Win32 X server and configure it (the options are pretty straight forward and simple) just play around with it and find out what works best for you.

when using the query you would NOT be in xterm you would be logged out of gnome or KDE (on machine A) and be just at the command line maybe in a virtual terminal could work I cant remember right off hand. once you run the command it will show you a login screen and you will be using machine B as you would if you were in front of it with a keyboard and monitor and just booted up to that machine. you wont have to SSH to it or anything.

One more thing to add is if you are doing this over a private network thats cool. over the Internet I like to tunnel X over SSH. there are a few pretty good tutorials on the Internet that give you step by step on how that works. here is a pretty good one here: http://www.cag.lcs.mit.edu/~wentzlaf/faq/ssh_X.html once you have configured this successfully you can use secureCRT to ssh from a windows box to a linux box and make sure the box is checked to forward X11 packets and from SecureCRT you can run a command like evolution& , kmail& or any X program and the program will open up on your machine like you were running it from your machine. in a nice separate window.

One thing to remember- http://www.google.com is your Friend! I use Google for everything. thats how I found that tutorial

http://www.google.com/search?hl=en&l...q=x+tunnel+ssh

http://www.google.com/search?hl=en&l...+linux+windows

Hope this helps.
rewt
 
Old 01-04-2003, 08:01 PM   #6
job
LQ Newbie
 
Registered: Jan 2003
Posts: 10

Rep: Reputation: 0
You got this backwards. The X *server* is the machine you are sitting at. It is the "display server". The X *client* is the application you want to run at the remote machine.

Use any of the modern Linux distributions (aged less than a year, perhaps?) and this will work automatically with SSH. It goes something like this:

(in an xterm)
$ ssh -X remotemachine
(logged on the remotemachine)
$ xclock &
(for example, this will start a clock running on remotemachine and displayed on your local machine)
 
Old 01-04-2003, 08:02 PM   #7
job
LQ Newbie
 
Registered: Jan 2003
Posts: 10

Rep: Reputation: 0
Sorry, I wasn't clear on the Windows machine side of the problem. You would SSH from the windows machine just like I told you, but with a program that supports "X Forwarding". There are many such Windows SSH clients.
 
Old 01-06-2003, 01:48 AM   #8
netkepala
Member
 
Registered: Sep 2002
Distribution: Red Hat
Posts: 68

Original Poster
Rep: Reputation: 15
Cool Kinda working

Ok, I've download X-win32 and installed it. I'm now able to connect to my linux server.

Here is the story.

I can't believe how hard linux forced it to work. First I've to enable
RSH and REXEC on the server. Then I've to put my client machine
IP in the /etc/hosts.equiv and .rhosts file. In addition, x-win32 does not accept IP address of server only host name. So I created
a host file in windows. I have to also make sure my MS windows
networking userid login is the same as my linux account.
Then finally it works !!! Phew

However how do I use additional fonts on my windows X machine
display?

Currently the font display on the linux server is not the
same as the windows X client. I've already enabled MS Fonts under x-win32 but some of the fonts still look way out
 
  


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
Connect LINUX client to WINDOWS 2003 server linuxy2 Linux - Networking 8 07-29-2009 05:02 AM
How to connect two pc's via modem? (server = linux, client = windows) seraph-seph Slackware 15 07-11-2008 03:58 PM
can not connect to my pureftp server from Linux client, but i can from windows client bonito Suse/Novell 5 03-16-2005 09:45 PM
windows client, linux nfs server how to connect feetyouwell Linux - Software 1 06-09-2004 03:35 AM
how to connect redhat linux as client to the novell server? halovivek Linux - Networking 3 08-17-2003 12:12 PM


All times are GMT -5. The time now is 03:29 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