View Full Version : Connecting to linux throw a mswindows based X-window software.


abdool
Hi folks,
please can any one help me with this issue,
I have a server running Redhat Linux 7.0 and want to connect to it throw windows PCs using an xwindow software such as
X-win32.
I tried to connect using rsh or rexec but every time I have the messages " connection refused " or " permssion denied ".
I asked the support of X-win32 and they told me that the service should be enabled in Linux, I tryed to slove this problem but get stuck.
Any one could help me I will be very thankful.

Regards,

Abid

sleepy
Hey there

you need to add your linux box to your allowed xhosts
so on your win32 X-Server open a shell and do
xhost +192.168.0.1 ( substitute with your linux box IP)

then rsh or ssh to your linux machine and export your display to be your win32 X-Server
$export DISPLAY=192.168.0.2:0 ( change with your win32 client)


now , if you win32 application is one of those X Clients then you will need to reverse the process
you will add the win32 ip to your allowed xclients on your linux box :
on Linux :
xhost +192.168.0.2

insure that the rshd is running

#vi /etc/inetd.conf
make sure that the line that started with
#shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
is uncommented.
restart inetd
#kill -HUP `pidof inetd`
or on RH
inetd restart


I strongly suggest not to use your client if it requires rsh, you can use cygwin instead
good luck