Re: Remote logon via XDMCP to Solaris and Linux

2004-09-15 Thread Terje J. Hanssen
Alexander Gottwald wrote:
you're problem is most likely
- your local host has ip xyz.
- the remote host does not know how to connect to xyz since xyz is on 
  another network and only accessible via host pvq.

There is no simple solution to get xdmcp working here. That's why I 
suggested ssh. Installing and starting ssh should be quite simple.

Yes, I accepted that as a fact, and that the alternative way was to use 
X11 forwarding displaying the remote applications. However, what I tried 
first, was using rlogin to export the display, which still caused me 
some trouble :;

Thanks,
Terje J. Hanssen





Re: Remote logon via XDMCP to Solaris and Linux

2004-09-15 Thread Terje J. Hanssen
Thomas Chadwick wrote:
> Terje J. Hanssen wrote:
>> I run "ipconfig" on the local Windows PC, which give me the current 
IP (delievered from dhcp).
>> Isn't that correct value to use?

That's not the correct value for 2 reasons...
1) Because you're using a VPN to access the remote machine, it 
probably is separated from the rest of the 'net by a firewall. Try 
logging into the remote machine and pinging the local machine's IP 
address. Do you get a response?

2) Even if the remote machine could reach the local machine via the 
DHCP-assigned IP address, doing so would circumvent the VPN (the X 
traffic would go _around_ the VPN instead of _through_ it).

You really need to talk to someone who is knowlegable about your VPN 
setup to help you figure out the IP address that's associated with the 
far-end of the VPN tunnel.

Yes, we have router/gateway device running a propritary firewall and 
VPN. Inside that our corporate network use NAT. Though I also have 
physical access to our router, I'll ask our ISP and router vendor about 
the setup.

But just to clarify first:
When you say "figure out the IP address that's associated with the 
far-end of the VPN tunnel";
you don't mean the iP address of the router itself?

Thanks,
Terje J. Hanssen




Re: Remote logon via XDMCP to Solaris and Linux

2004-09-15 Thread Alexander Gottwald
On Wed, 15 Sep 2004, Terje J. Hanssen wrote:

> Alexander Gottwald wrote:
> 
> >On Wed, 15 Sep 2004, Terje J. Hanssen wrote:
> >
> >> > you can add the hostname to /etc/X0.hosts
> >> > This will always grant the host access
> >> >
> >> 
> >> "hostname" or "hostname +" ?
> >
> >$ cat /etc/X0.hosts 
> >localhost
> >
> 
> Sorry, I don't understand the contain 'localhost'. Shouldn't 
> "/etc/X0.hosts" contain hostnames or ip's of the remote hosts (xdm, gdm, 
> dtlogin or kdm) that should be allowed to access the local Cygwin/X server?

I'm using xdmcp regularily which prevents local applications to access 
the screen (becuase only remote access is allowed then). That's why I've 
added localhost to the list of hosts which may always connect.
> 
> >> Does Cygwin/X also need or use a user based auhentication?
> >
> >There are several authentication mechanisms. The host based and a 
> >ticket based. The hostbased is configured with xhost, /etc/X0.hosts
> >and the ticket based with xauth
> >  
> >
> 
> And is Xauth neccessary to use on Cygwin/X to be able to do a remote 
> login on Solaris that use it?

xauth is used automaticly. You don't have to mess with it unless you do 
some special things.

you're problem is most likely

- your local host has ip xyz.
- the remote host does not know how to connect to xyz since xyz is on 
  another network and only accessible via host pvq.

There is no simple solution to get xdmcp working here. That's why I 
suggested ssh. Installing and starting ssh should be quite simple.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Remote logon via XDMCP to Solaris and Linux

2004-09-15 Thread Thomas Chadwick
I run "ipconfig" on the local Windows PC, which give me the current IP 
(delievered from dhcp). Isn't that correct value to use?
That's not the correct value for 2 reasons...
1) Because you're using a VPN to access the remote machine, it probably is 
separated from the rest of the 'net by a firewall.  Try logging into the 
remote machine and pinging the local machine's IP address.  Do you get a 
response?

2) Even if the remote machine could reach the local machine via the 
DHCP-assigned IP address, doing so would circumvent the VPN (the X traffic 
would go _around_ the VPN instead of _through_ it).

You really need to talk to someone who is knowlegable about your VPN setup 
to help you figure out the IP address that's associated with the far-end of 
the VPN tunnel.

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



Re: Remote logon via XDMCP to Solaris and Linux

2004-09-15 Thread Terje J. Hanssen
Alexander Gottwald wrote:
On Wed, 15 Sep 2004, Terje J. Hanssen wrote:
> you can add the hostname to /etc/X0.hosts
> This will always grant the host access
>
"hostname" or "hostname +" ?
$ cat /etc/X0.hosts 
localhost

Sorry, I don't understand the contain 'localhost'. Shouldn't 
"/etc/X0.hosts" contain hostnames or ip's of the remote hosts (xdm, gdm, 
dtlogin or kdm) that should be allowed to access the local Cygwin/X server?

Does Cygwin/X also need or use a user based auhentication?
There are several authentication mechanisms. The host based and a 
ticket based. The hostbased is configured with xhost, /etc/X0.hosts
and the ticket based with xauth
 

And is Xauth neccessary to use on Cygwin/X to be able to do a remote 
login on Solaris that use it?

see man Xsecurity for details.
>> rlogin remote_host
>> setenv DISPLAY local_win_ip
> 
> setenv DISPLAY local_win_ip:0.0

I wonder why sometimes :0.0 is needed and other times not?
Where is :0.0 not required?
Well, now I see that the Cygwin/X User guide page 19-20 also does 
explain the use of both:

"to connect to a single remote session using XDMCP:"
XWin.exe -query remote_hostname_or_ip_address
"You may login to several remote sessions  Each session will need a 
separate display number ..."
XWin.exe :0 -query remote_hostname_or_ip_address_0
XWin.exe :1 -query remote_hostname_or_ip_address_1

Thanks,
Terje J. Hanssen




Re: Remote logon via XDMCP to Solaris and Linux

2004-09-15 Thread Alexander Gottwald
On Wed, 15 Sep 2004, Terje J. Hanssen wrote:

> > you can add the hostname to /etc/X0.hosts
> > This will always grant the host access
> >
> 
> "hostname" or "hostname +" ?

$ cat /etc/X0.hosts 
localhost

> Does Cygwin/X also need or use a user based auhentication?

There are several authentication mechanisms. The host based and a 
ticket based. The hostbased is configured with xhost, /etc/X0.hosts
and the ticket based with xauth

see man Xsecurity for details.

> >> rlogin remote_host
> >> setenv DISPLAY local_win_ip
> > 
> > setenv DISPLAY local_win_ip:0.0
> 
> I wonder why sometimes :0.0 is needed and other times not?

Where is :0.0 not required? :0.0 names the port where the xserver is listening
for connections. :0.0 -> port 6000, :1.0 -> port 6001, :x.0 -> port 6000+x

> But is it possible to configure the default startup of startxwin.bat and 
> xterm from the program start menu?

no. But you can edit the startxwin.bat script.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Remote logon via XDMCP to Solaris and Linux

2004-09-14 Thread Jack Tanner
Terje J. Hanssen wrote:
But is it possible to configure the default startup of startxwin.bat and 
xterm from the program start menu?
Of course it is. Add a shortcut to startxwin.bat to the Start menu, and 
customize your own .bash_profile / .bashrc (assuming your shell is bash).

If you really want to, you can obviously also edit startxwin.bat.
-JT


Re: Remote logon via XDMCP to Solaris and Linux

2004-09-14 Thread Terje J. Hanssen
Alexander Gottwald wrote:
Terje J. Hanssen wrote:
On Windows:
startxin
/usr/X11R6/bin/xhost remote_solaris_host
you can add the hostname to /etc/X0.hosts
This will always grant the host access
"hostname" or "hostname +" ?
Does Cygwin/X also need or use a user based auhentication?

rlogin remote_host
setenv DISPLAY local_win_ip
setenv DISPLAY local_win_ip:0.0
I wonder why sometimes :0.0 is needed and other times not?

xterm&
 >> 2) An additonal question: 'xstartxwin.bat' open a small X window with
small fonts. How and where is it possible to get larger fonts, possibly
by using a configuration file for this startup?
man xterm
(see -fn and -fa option)
xterm -fn 12x24
But is it possible to configure the default startup of startxwin.bat and 
xterm from the program start menu?

Thanks,
Terje J. Hanssen


Re: Remote logon via XDMCP to Solaris and Linux

2004-09-14 Thread Terje J. Hanssen
Thomas Chadwick wrote:
On Windows:
startxin
/usr/X11R6/bin/xhost remote_solaris_host
rlogin remote_host
setenv DISPLAY local_win_ip
xterm&

The problem is with the value you set DISPLAY to.  You want to use the 
IP address associated with the far end of the VPN.  Figuring out that 
value isn't always easy.

I run "ipconfig" on the local Windows PC, which give me the current IP 
(delievered from dhcp).
Isn't that correct value to use?

Terje J. Hanssen



Re: Remote logon via XDMCP to Solaris and Linux

2004-09-14 Thread Thomas Chadwick
One more thing on this subject...
If you absolutely cannot figure out what your IP address is at the far-end 
of the VPN, then you might want to consider running dxpc.  The original 
intent of dcpx was to compress the amount of data transferred between remote 
X-clients and a local X-server connected via a low-bandwidth connection.  
However, it has a feature which allows you to setup the connection if you 
only know the IP address of the machine your connecting to (and don't know 
the IP address of the machine you're connecting from, which is effectively 
the case here).

I found a pretty good treatment of dcpx here:
http://www.linuxjournal.com/article.php?sid=2374
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: Remote logon via XDMCP to Solaris and Linux

2004-09-14 Thread Thomas Chadwick
On Windows:
startxin
/usr/X11R6/bin/xhost remote_solaris_host
rlogin remote_host
setenv DISPLAY local_win_ip
xterm&
The problem is with the value you set DISPLAY to.  You want to use the IP 
address associated with the far end of the VPN.  Figuring out that value 
isn't always easy.  Sometimes you can run "who" at the far end and it will 
tell you the hostname or IP address it thinks you're connecting from.  Also, 
sometimes the VPN software itself will tell you the far-end IP address if 
you look at the detailed log as it's bringing up the VPN.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



Re: Remote logon via XDMCP to Solaris and Linux

2004-09-13 Thread Alexander Gottwald
Terje J. Hanssen wrote:

> Well, I don't have an ssh server installed or available neither on the
> Solaris or the Linkux host.
> And the only connection is through the desribed VPN tunnel and
> router/firewall.
> Therefore I tried wihthout ssh as follows (which I believe also is
> secure over a VPN tunnel):
>
> On Windows:
> startxin
> /usr/X11R6/bin/xhost remote_solaris_host

you can add the hostname to /etc/X0.hosts
This will always grant the host access

> rlogin remote_host
> setenv DISPLAY local_win_ip

setenv DISPLAY local_win_ip:0.0

> xterm&
>
> But still I got the error: Can't open display local_win_ip !?


> 2) An additonal question: 'xstartxwin.bat' open a small X window with
> small fonts. How and where is it possible to get larger fonts, possibly
> by using a configuration file for this startup?

man xterm

(see -fn and -fa option)

xterm -fn 12x24

> 3) And how to setup/get the national language (NO) keymap (æøå and ÆØÅ
>   keys enter nothing)?

the norwegian keymap was loaded according to the logfile.

> (--) winConfigKeyboard - Layout: "0414" (0414)
> (--) Using preset keyboard for "Norwegian" (414), type "4"
> Rules = "xorg" Model = "pc105" Layout = "no" Variant = "(null)" Options = "(null)"
> winPointerWarpCursor - Discarding first warp: 637 482

Either the keymap is incomplete or you're suffering a problem with 8 bit
characters in bash. Check the FAQ. There is an entry about "umlauts" and
8 bit characters.

bye
ago
NP: L'Âme Immortelle - 5 Jahre (Radio Version)
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Re: Remote logon via XDMCP to Solaris and Linux

2004-09-13 Thread Terje J. Hanssen
Alexander Gottwald wrote:
On Mon, 13 Sep 2004, Terje J. Hanssen wrote:
> I have installed Cygwin/X on Windows2000 to establish a remote session
> via XDMCP and by using a direct query to a Solaris7/CDE host and to a
> Linux/SJDS/Gnome host (Sun Java Desktop System R2 based on SLD/SLES8).
> The Windows PC use DHCP via ISP/ADSL (that is no fixed IP to set up).
> I have disabled the local Zone alarm firewall on Windows, and run a VPN
> client software locally to connect to/through the remote, corporate
> firewall router and network using NAT.
XDMCP does not work with NAT. use ssh with X11Forwarding instead.
Well, I don't have an ssh server installed or available neither on the 
Solaris or the Linkux host.
And the only connection is through the desribed VPN tunnel and 
router/firewall.
Therefore I tried wihthout ssh as follows (which I believe also is 
secure over a VPN tunnel):

On Windows:
startxin
/usr/X11R6/bin/xhost remote_solaris_host
rlogin remote_host
setenv DISPLAY local_win_ip
xterm&
But still I got the error: Can't open display local_win_ip !?
And what about my previous larger font question 2) ?
Regards,
Terje J. Hanssen



Re: Remote logon via XDMCP to Solaris and Linux

2004-09-13 Thread Alexander Gottwald
On Mon, 13 Sep 2004, Terje J. Hanssen wrote:

> I have installed Cygwin/X on Windows2000 to establish a remote session 
> via XDMCP and by using a direct query to a Solaris7/CDE host and to a 
> Linux/SJDS/Gnome host (Sun Java Desktop System R2 based on SLD/SLES8).
> The Windows PC use DHCP via ISP/ADSL (that is no fixed IP to set up).
> I have disabled the local Zone alarm firewall on Windows, and run a VPN 
> client software locally to connect to/through the remote, corporate 
> firewall router and network using NAT.

XDMCP does not work with NAT. use ssh with X11Forwarding instead.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Remote logon via XDMCP to Solaris and Linux

2004-09-13 Thread Terje J. Hanssen
I have installed Cygwin/X on Windows2000 to establish a remote session 
via XDMCP and by using a direct query to a Solaris7/CDE host and to a 
Linux/SJDS/Gnome host (Sun Java Desktop System R2 based on SLD/SLES8).
The Windows PC use DHCP via ISP/ADSL (that is no fixed IP to set up).
I have disabled the local Zone alarm firewall on Windows, and run a VPN 
client software locally to connect to/through the remote, corporate 
firewall router and network using NAT.

The Cygwin/X server can be stared locally on Windows using 
'startxwin.bat' and also its local X clients like xterm and others can 
be started. I have enabled XDMPC on the remote SJDS host side.
Pinging from Windows to the Solaris and JDS hosts also works ok.

But when I try to start Cygwin/X from a 'DOS-prompt' using the following 
alternative commands:

> XWin -query remote_host
> XWin -query remote_host -from local_current_IP
> XWin -query remote_host -fp tcp/remote_host:7100 -from local_current_IP
only the grey, empty X root window is displayed and no dtlogin or gdm 
login is displayed. It looks like no X connection is established, and 
after a timeout the X root window is being quitted.

As shown below, the XWin log file reports at the bottom:
"Fatal server error: XDMCP fatal error: Session failed Session 13 failed 
for display xxx.xxx.x.xx:0: Cannot open display"

I wonder if this can be caused by some X server, host access or user 
authentization problem? When Cygwin/X is tested locally with 
'D:\cygwin\usr\X11R6\bin\startxwin.bat', then it is possible to enter 
'xhost +'. But I don't know how to combine this with starting X and 
query gdm login or dtlogin, if it is not possible to put in 'xhost +' in 
a file? I have not yet created or configured any user authorization file 
yet.

Below is a copy of the content from my D:/cygwin/tmp/XWin.log file IP 
removed).

1) I hope that someone knows this X connection problem and also can add 
the steps or tip to try further?

2) An additonal question: 'xstartxwin.bat' open a small X window with 
small fonts. How and where is it possible to get larger fonts, possibly 
by using a configuration file for this startup?

3) And how to setup/get the national language (NO) keymap (æøå and ÆØÅ 
keys enter nothing)?


Regards,
Terje J. Hanssen
-
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-9
Contact: [EMAIL PROTECTED]
XWin was started with the following command line:
xwin -query gamma -fp tcp/gamma:7100 -from xxx.xxx.x.xx
ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 24 bits 
per pixel
winFinishScreenInitFB - Masks: 00ff ff00 00ff
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack 
of shared memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "0414" (0414)
(--) Using preset keyboard for "Norwegian" (414), type "4"
Rules = "xorg" Model = "pc105" Layout = "no" Variant = "(null)" Options 
= "(null)"
winPointerWarpCursor - Discarding first warp: 637 482

Fatal server error:
XDMCP fatal error: Session failed Session 13 failed for display 
xxx.xxx.x.xx:0: Cannot open display

winDeinitMultiWindowWM - Noting shutdown in progress