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


Hosts and X0.hosts

2004-09-14 Thread Terje J. Hanssen
1. Hosts
-
I have used C:\WINNT\system32\drivers\etc\Hosts for a long time on a 
Windows 2000 terminal server. But for some or another reason the Hosts 
file suddenly is being deleted from the system, and again as soon as I 
recreate it. I have tried to limit the file access to system 
administrator only without succeed.  And I haven't found out yet if 
there can be or have been installed some kind of antivirus or spyware 
program that detects the Hosts file as a virus file and cause that it is 
being deleted.

a) Has someone experienced this before or any idea to solve it?
I saw that C:\cygwin\etc\Hosts was a link to the above Hosts file. 
Because of the above problem, I replaced the link with the real Hosts 
file itself.
Now I try to create a remote connection from a cygwin/X xterm using the 
following procedure:

startxwin.bat
xterm
X :2 -query remote_hostname
The system reports and exit the command in the xterm as follows.
"Fatal server error:
Xserver: -query unknown host: remote_hostname"
b) Doesn't Cygwin/X read this latter Hosts file?
2. X0.hosts

To let queried remote xdm/dtlogin/gdm/kdm get access to the local Cygwin 
X server, I wonder if the syntax for the content in 
C:/cygwin/etc/X0.hosts should be "remote_hostname" only or 
"remote_hostname +", alternatively "remote_host_ip" only or 
"remote_host_ip +"?

Regards,
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



cygcheck -c says: "xorg-x11-fnts 6.8.0.0-1 Incomplete"

2004-09-14 Thread Volker Quetschke
Hi!
I just updated my cygwin installation and run a cygcheck afterwards.
For the xorg-x11-fnts package, I get:

[EMAIL PROTECTED] ~
$ cygcheck -cv xorg-x11-fnts
Cygwin Package Information
Last downloaded files to: D:\CygInst
Last downloaded files from: ftp://mirrors.rcn.net/pub/sourceware/cygwin
Package  VersionStatus
Missing file: /usr/X11R6/lib/X11/fonts/75dpi/encodings.dir from package 
xorg-x11-fnts
xorg-x11-fnts6.8.0.0-1  Incomplete

[EMAIL PROTECTED] ~
$ uname -a
CYGWIN_NT-5.1 Baltasar 1.5.11(0.116/4/2) 2004-09-04 23:17 i686 unknown 
unknown Cygwin


And yes, I tried to reinstall the package, the problem remains.
Volker
--
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D


signature.asc
Description: OpenPGP digital signature


Is focus-on-pointer available in multiwindow mode?

2004-09-14 Thread Stephane Ethier
Dear Cygwin/X gurus,

I am running Cygwin/X in Multi Window mode on my
home machine and Hummingbird Exceed at work. Both
seem to work similarly as far as letting the Windows XP
Window manager handle the X session. However, Exceed allows
me to set the focus on the pointer when I navigate between
my X applications while Windows continues to be focus on click.
I haven't found a way to do that for Cygwin/X in Multi Window
mode. Is it available at all?

Thanks,
-Stephan


$BL$>5G'9-9p"((B [EMAIL PROTECTED]"[EMAIL PROTECTED](B!*$BHkL)87

2004-09-14 Thread cinemafan

<$BAw?. $B%7%M%^%U%!%s%?%8!<(B
<$BG[?.Dd;_O"Mm(B> $BBjL>$K!!G[?.Dd;_4uK>!!$H5-F~$7$FJV?.2<$5$$!#(B
$BK|0lG[?.Dd;_$r4uK>$5$l$?$N$K#2EYAw?.$5$l$F$7$^$C$?>l9g$O(B
$B:#8e$O#2EY$HG[?.$5$l$^$;$s$N$G:#2s$N$_$I$&$+$4MF&IJBgNLF~2Y!*!d!d!d(B
$B!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z(B
$B!z!!!z(B
$B!z!!%7%M%^!&%U%!%s%?%8!<[EMAIL PROTECTED]@5%"[EMAIL PROTECTED](B
$B!z!!K-IY$J>&IJ!&9bIJ&IJ%5%s%W%kF02h1GA|M-!z(B
$B!z!!HkL)87AwIU$G0B?4!&Dj4|9XF~3d0zFCE5!&:G?7>pJs(BOK  $B!z(B
$B!z(B $B(B http://www.cinemafantasy.com/$B(B   $B!!(B  
$B!z(B
$B!z!!!z(B
$B!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z!z(B



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: Cygwin/X developement: -EMULATEPSEUDO

2004-09-14 Thread Alan Hourihane
On Tue, Sep 14, 2004 at 04:58:45PM +0200, Alexander Gottwald wrote:
> On Tue, 14 Sep 2004, Sebastian Haby wrote:
> 
> > I started to try out Cygwin/X to remotely use a Solaris app, however, the 
> > app uses 8bpp Pseudocolor visual which is only
> > supported in Cygwin/X when running the windows desktop in 8bpp aswell or 
> > fullscreen, ie. the app works just fine in these two cases.
> > However I can't use any of these options and therefor need to get the 
> > -emulatepseudo option to work.
> 
> Unfortunatly there has been no activity in this field for some time and 
> after Harold left the project there is noone left with sufficient knowledge
> of the problem to start again. I can only try to outline my general knowledge  
> of the xserver internals.

I'll try to shed some light on this for you Alexander.

Basically the -pseudocolor mode in Cygwin/X doesn't work properly. Harold
added it to try and let applications that need pseudocolor to work, but
he also knew about the color problems. So it's nothing new that it
doesn't work properly.

Now, in the CVS in the trunk there are some new files called

xc/programs/Xserver/fb/fbpseudocolor.[ch]

which is meant to add support for pseudocolor emulation, but executing
the wrapper function xxSetup(...) with the appropriate arguments.

Egbert Eich wrote this code, so he may be able to shed some more light
on it's usage pattern, but this is the way to go to fix the support
for Cygwin/X.

Alan.


Re: Cygwin/X developement: -EMULATEPSEUDO

2004-09-14 Thread Alexander Gottwald
On Tue, 14 Sep 2004, Sebastian Haby wrote:

> I started to try out Cygwin/X to remotely use a Solaris app, however, the 
> app uses 8bpp Pseudocolor visual which is only
> supported in Cygwin/X when running the windows desktop in 8bpp aswell or 
> fullscreen, ie. the app works just fine in these two cases.
> However I can't use any of these options and therefor need to get the 
> -emulatepseudo option to work.

Unfortunatly there has been no activity in this field for some time and 
after Harold left the project there is noone left with sufficient knowledge
of the problem to start again. I can only try to outline my general knowledge  
of the xserver internals.

> I've got the option to compile into XWin but my problem still remains, 
> menys and certain areas are fine but parts that are suppose to be white 
> and have lines, rectangles etc.. drawn into them are black.
> From what I've worked out from looking at the sources the -emulatepseudo 
> option does setup a 8bpp pseudocolor visual aswell as a normal
> truecolor visual, but how can i verify that my app draws into the 
> pseudocolor visual, does the app supply the correct visual ID to my 
> Xserver?

If it fails without -emulatepseudo then it requests a 8 bit visual. Any
visual matching is done inside libX11.

> I've also tried telling XWin to use PseudoColor visual as default visual 
> id by supplying the -cc option. (-cc 0x27 or -cc 27) but it is ignored.
 
> One thing i haven't figured out yet is with ShadowGDI, it allocates one 
> screen and one shadow bitmap and blits changes between the shadow and 
> screen bitmap, also I assume
> that the truecolor visual somehow points to the shadow bitmap, but where 
> does the pseudocolor visual point to? shadow bitmap aswell?

All drawing and conversion between the visuals should be handled in the
shadow layer. The shadow layer provides all the X11 drawing operation 
and creates a  bitmap we can use for copying to screen. 

I'm nost sure if it is possible to let the shadow layer do all color 
transformations and use the same shadowbuffer. I remember Harold Hunt
told something about using the XRandR extension to emulate the pseudo 
color visual, but this is currently not an active field.

> why not 
> allocate another 8bpp bitmap DIB(is this possible?) or in system ram? and 
> then do some color conversion and blit between that and screen bitmap? 

All drawing of the visuals should be done to the shadow bitmap.

> I've got lots of payed time to work on this problem so any pointers / tips 
> from other developers where to start / where the problems are etc...
> are greatly appreciated. 

Maybe the Xserver is doing the right thing but fails only in a few functions.
You told you have output from that window and only a few areas are black? 
Try starting there. Maybe it's only the line drawing code which has problems.  

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


Cygwin/X developement: -EMULATEPSEUDO

2004-09-14 Thread Sebastian Haby
Hey!

I started to try out Cygwin/X to remotely use a Solaris app, however, the 
app uses 8bpp Pseudocolor visual which is only
supported in Cygwin/X when running the windows desktop in 8bpp aswell or 
fullscreen, ie. the app works just fine in these two cases.
However I can't use any of these options and therefor need to get the 
-emulatepseudo option to work.
I've got the option to compile into XWin but my problem still remains, 
menys and certain areas are fine but parts that are suppose to be white 
and have lines, rectangles etc.. drawn into them are black.
>From what I've worked out from looking at the sources the -emulatepseudo 
option does setup a 8bpp pseudocolor visual aswell as a normal
truecolor visual, but how can i verify that my app draws into the 
pseudocolor visual, does the app supply the correct visual ID to my 
Xserver?
I've also tried telling XWin to use PseudoColor visual as default visual 
id by supplying the -cc option. (-cc 0x27 or -cc 27) but it is ignored.

One thing i haven't figured out yet is with ShadowGDI, it allocates one 
screen and one shadow bitmap and blits changes between the shadow and 
screen bitmap, also I assume
that the truecolor visual somehow points to the shadow bitmap, but where 
does the pseudocolor visual point to? shadow bitmap aswell? why not 
allocate another 8bpp bitmap DIB(is this possible?) or in system ram? and 
then do some color conversion and blit between that and screen bitmap? 
I've got lots of payed time to work on this problem so any pointers / tips 
from other developers where to start / where the problems are etc...
are greatly appreciated. 

Cheers, 
   Sebastian Haby


Re: Missing file in two new X packages

2004-09-14 Thread Alexander Gottwald
On Mon, 13 Sep 2004, Bram Kivenko wrote:

> 
> 
> Ross Boulet wrote:
> > I ran an update on my Cygwin installation today.  I make a
> > habit of running a 'cygcheck -cv' after every update.  When
> > I did this today, I saw 'Incomplete' on two packages.  I
> > tried reinstalling these two from two different mirrors but
> > kept getting the same result.

These files are removed by mkfontscale. The new font-update script 
is mising the line to generate them. I'm not sure if they are really
needed.

I'm updating the script but I want to know if the encodings.dir files
are really required. 
 
> I noticed this.  I assume that's why my xfontsel stopped working suddenly.

please try:

mkfontscale -n -e /usr/X11R6/lib/X11/fonts/encodings \
/usr/X11R6/lib/X11/fonts/100dpi \
/usr/X11R6/lib/X11/fonts/75dpi \
/usr/X11R6/lib/X11/fonts/misc \
/usr/X11R6/lib/X11/fonts/TTF \
/usr/X11R6/lib/X11/fonts/Type1

does this help to start xfontsel again?

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