LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't connect to linux server using X client (https://www.linuxquestions.org/questions/linux-networking-3/cant-connect-to-linux-server-using-x-client-39351/)

netkepala 12-25-2002 10:47 AM

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 !

netkepala 01-01-2003 11:30 PM

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 ????

rewt 01-02-2003 03:50 PM

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

netkepala 01-04-2003 02:00 AM

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

rewt 01-04-2003 02:37 AM

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

job 01-04-2003 08:01 PM

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)

job 01-04-2003 08:02 PM

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.

netkepala 01-06-2003 01:48 AM

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


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