RE: Can't make XWin on secondary monitor big enough...

2006-05-19 Thread Thomas Chadwick

If you run XWin --help, you get the following:


use: X [:] [option]

[snip]

-screen scr_num [width height [x y] | [EMAIL PROTECTED] ]
Enable screen scr_num and optionally specify a width and
height and initial position for that screen. Additionally
a monitor number can be specified to start the server on,
at which point, all coordinates become relative to that
monitor (Not for Windows NT4 and 95). Examples:
 -screen 0 [EMAIL PROTECTED] ; 2nd monitor offset 100,100 size 800x600
 -screen 0 [EMAIL PROTECTED]; 3rd monitor size 1024x768
 -screen 0 @1 ; on 1st monitor using its full resolution (the default)


BTW - I didn't say so in my OP, but I also tried "XWin -screen 0 @1", which 
is suggested above, and that only got me a 1024x768 windowed XWin on the 
secondary monitor.


-Tom



From: "Soong, SylokeJ" <[EMAIL PROTECTED]>
Reply-To: cygwin-xfree@cygwin.com
To: 
Subject: RE: Can't make XWin on secondary monitor big enough...
Date: Thu, 18 May 2006 17:01:23 -0400


Isn't the command somewhat like this? ...
XWin -screen 0 1000 768 blah blah

I have yet to reach to the point in the cygwin/x docs
where it allows the command with options such as
-screen 0 [EMAIL PROTECTED] .
Are we allowed to specify arguments of this
option this way?
(I'm not too prone to reading user docs/guides
 until I get into trouble).

My actual command is
XWin -screen 0 1900 1400 -multiplemonitors -emulate3buttons -scrollbars  
-clipboard -silent-dup-error


I believe multiplemonitors option allows cyg/x
to recognise the second monitor and to allow you
to move your cyg/x window to the second monitor,
which I always do.

I needed the scrollbars option for reasons I
cannot clearly recall. Without the option, I seem
to recall I could not
stretch cyg/x window to the extremities of my
large second monitor without maximizing the window.

==
Somewhat Important Disclaimer.
==
This email, while purporting to be true,
should not have its purporting to be true
be in any way that you might construe
as legally binding as super-glue.
While it tries not to spread viruses like flu,
it may inflame emotions as within a chimney flue.
It may demolish opinions of whoever's who,
and throw conventions down the loo.
So if any phrase herein turns you blue,
don't rush to your attorney Sue Donahue,
to turn me into hot burning stew.
Then I'll be as if some Barrymore Drew
had turned into a cow that does not moo.
Perhaps, the depressing feeling running through
when seeing all the entrapped animals in a zoo.
I could have been enjoying too
a nice plate of Gay-Pan-Moo-Goo,
but if and when you're offended ...
perhaps, it was simply about nothing and much a-do.


 -Original Message-----
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Thomas Chadwick
 Sent: Thursday, May 18, 2006 3:42 PM
 To: cygwin-xfree@cygwin.com
 Subject: Can't make XWin on secondary monitor big enough...


 I've got a Thinkpad with a 1024x768 LCD screen connected to a 21" CRT
 monitor which I've enabled as a secondary monitor at 1600x1200
 resolution.
 I'd like to run XWin in windowed mode on the secondary monitor
 and take up
 the full resolution.  However, try as I might, I can't make
 XWin any bigger
 than 1024x768 on the secondary monitor.  Here are the obvious
 command-lines
 I've tried:

 XWin -screen 0 [EMAIL PROTECTED]

 This results in a 1024x768 windowed XWin on the secondary monitor

 XWin -screen 0 @2 -fullscreen

 This results in a 1024x768 fullscreen XWin on the primary monitor

 Any ideas?

 -Tom


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Can't make XWin on secondary monitor big enough...

2006-05-18 Thread Thomas Chadwick
I've got a Thinkpad with a 1024x768 LCD screen connected to a 21" CRT 
monitor which I've enabled as a secondary monitor at 1600x1200 resolution.  
I'd like to run XWin in windowed mode on the secondary monitor and take up 
the full resolution.  However, try as I might, I can't make XWin any bigger 
than 1024x768 on the secondary monitor.  Here are the obvious command-lines 
I've tried:


XWin -screen 0 [EMAIL PROTECTED]

This results in a 1024x768 windowed XWin on the secondary monitor

XWin -screen 0 @2 -fullscreen

This results in a 1024x768 fullscreen XWin on the primary monitor

Any ideas?

-Tom



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: How do I make DOS scripts to start X applications?

2005-12-22 Thread Thomas Chadwick

From: Scott 
Date: Thu, 22 Dec 2005 09:58:54 -0500

This has probably been asked and answere before - sorry - but could
someone help me out?

Once I've started X, I wish to have icons I can click on to start up X
applications via commands I devise myself, for example, custom xterms or
emacs windows on various nodes using ssh. I know the commands to do what
I want, just need to know how to embed them in a DOS script that I can
click on. ("toolbar" is not adequate to my needs.)

Embedding in a DOS script seems the obvious way to make clickable icons
to start X applications, maybe there is another.

Could someone help me out? Thanks!

Scott


Ty installing the package "X-start-menu-icons", which adds a bunch of 
pre-made shortcuts for commonly used X apps to your Windows Start menu.  You 
should be able to look at the properties of the shortcuts to see how they 
work.  I think you will find that in most cases, you don't even need a BAT 
file, but can simply specify everything you need in the Target field of the 
Windows shortcut.


-Tom



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: xterm scrollbar

2005-11-14 Thread Thomas Chadwick

I think you want

XTerm*rightScrollBar: True



From: Rácz Miklós <[EMAIL PROTECTED]>
Reply-To: cygwin-xfree@cygwin.com
To: cygwin-xfree@cygwin.com
Subject: xterm scrollbar
Date: Mon, 14 Nov 2005 16:30:29 +0100

hi
I use
XTerm*scrollBar: on
in my .Xdefaults file.
The scroll bar is on the left side.
Does anyone know how to put it to the right side ?
thanks

miklos

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



xmkmf resuling in bad search path for std includes?

2005-08-30 Thread Thomas Chadwick
I'm cross-posting this to cygwin-xfree@cygwin.com, and cygwin@cygwin.com 
because, although it appears to be X-related, the root cause may turn out 
not to be.  Here's what's up...


I'm attempting to build an X-client from source.  I've done it many times 
before without a hitch, although the last time I did so was many, many 
months ago.  In the meantime, I've regularly run setup.exe to keep my Cygwin 
install up-to-date.


The process for building this X-client involves (1) running "xmkmf -a", 
which creates the Makefile and implicitly runs "make depend", and then (2) 
running "make all" to actually build the client.


I'm running into trouble at the "make depend" point in the process.  It's 
not finding a couple of include files.  Here's an example message:


makedepend: warning:  x2x.c (reading /usr/include/sys/unistd.h, line 13): 
cannot

find include file "stddef.h"
   not in /usr/X11R6/include/stddef.h
   not in /usr/local/lib/gcc-include/stddef.h
   not in /usr/include/stddef.h
   not in /usr/include/w32api/stddef.h
   not in /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h

If I do "find / -name stddef.h" it returns the following:

/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h
/lib/gcc/i686-pc-cygwin/3.4.4/install-tools/include/stddef.h

As I see it, either xmkmf is setting up the wrong search path, or something 
is wrong with my gcc installation (since make depend is looking in 
3.3.3/include but the files are located in 3.4.4/include).


Attached is the result of running cygcheck.

Advice on how to proceed would be appreciated.

Thanks.



cygcheck.out.gz
Description: GNU Zip compressed data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

Re: Cygwin-Xfree 6.8.2.0-1 - Keyboard problem with Matlab 6.X

2005-07-08 Thread Thomas Chadwick

This thread from several years ago may be what you're looking for...

http://www.cygwin.com/ml/cygwin-xfree/2002-06/msg00307.html

-Tom


From: Mathieu OUDART
Reply-To: cygwin-xfree@cygwin.com
To: cygwin-xfree@cygwin.com
Subject: Re: Cygwin-Xfree 6.8.2.0-1 - Keyboard problem with Matlab 6.X
Date: Fri, 08 Jul 2005 08:43:04 +0200



Hi all,

I actually use Cygwin/X to display software from remote Unix servers.

It really works fine except with matlab 6 :
When I launch matlab, the main window appears on my local display but
the keyboard seems inactive.
(I cannot type anything inside the matlab's command window)

Moreover, a left click is a "paste" (?), middle is also "paste" while
the right click opens correctly the context menu.



Maybe a problem with modifier keys. Try disabling numlock.

bye
ago


Quite simple and it works .. thanks !
and if anyone knows how I could get a working numpad that would be great !

--
Mathieu OUDART






RE: Starting X on a second monitor - kludge that works

2004-12-06 Thread Thomas Chadwick
[snip]
-screen [EMAIL PROTECTED] which means a window of size 800x600 on monitor 2
Seems to me it's logical if the behavior is such that "-screen 0 $W $H" 
opens on the primary monitor, while "-screen 1 $W $H" opens on the secondary 
monitor.  X-clients with DISPLAY=:0.0 will open on the primary monitor while 
X-clients with DISPLAY=:0.1 will open on the secondary monitor.  Isn't that 
how X behaves on dual-headed *nix machines?




RE: Reconnect to X session

2004-11-18 Thread Thomas Chadwick
From: "Thomas Chadwick" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Reconnect to X session
Date: Thu, 18 Nov 2004 15:27:19 -0500
Sounds like a candidate for xmove...
ftp://ftp.cs.columbia.edu/pub/xmove/

One more thing.  Looks like this issue was discussed almost exactly 2 years 
ago in this very forum...

http://www.cygwin.com/ml/cygwin-xfree/2002-11/msg00289.html



Re: Reconnect to X session

2004-11-18 Thread Thomas Chadwick
From: Bobby McNulty <[EMAIL PROTECTED]> Reply-To: 
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Reconnect 
to X session Date: Thu, 18 Nov 2004 14:32:54 -0600

Thomas Chadwick wrote:
Sounds like a candidate for xmove...
ftp://ftp.cs.columbia.edu/pub/xmove/
Nothing there.
Huh?  I see the following when I visit that URL:
FTP directory /pub/xmove/ at ftp.cs.columbia.edu

   WELCOME TO FTP.CS.COLUMBIA.EDU
   "One Stop FTP"
Welcome anonymous!
The department of Computer of Science mirrors many sites on a nightly
basis with many major Internet software packages.  A quick rundown
includes: X11R[56], amd, gnu, emacs (and clones), Mosaic, Linux, RFCs,
perl, rdist and whole lot more.  The README file in this directory
contains our current exhaustive list.
We may use your ID and host location info to generate usage stats.  We
will make our results public from time to time.
Your *transactions* are being logged at the request of several
contributors who wish to maintain up-to-date records as to who has
their software, so they can keep you up-to-date on changes, updates,
and bug fixes as necessary.  Simple perusal commands (cd, ls, etc) are
*not* logged.  If logging offends your, then please do not transfer
from this site or close the connection now.
Uploads are permissible to /incoming but only for temporary periods.
The server classifies accesses.
You are connection number 3 out of a permitted 30.
If you have questions about this site,  please mail 
[EMAIL PROTECTED]

ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP
ZIP ZIP
ZIP  *** VERY IMPORTANT NOTE ***ZIP
ZIP ZIP
ZIP Most of the files in the "archives" directory are zipped,   ZIP
ZIP using GNU zip, and have a ".gz" (lowercase "GZ") extension. ZIP
ZIP Read the file /archives/README before you attempt toZIP
ZIP complain that "the files are corrupt", "your ftp server ZIP
ZIP is broken" et al.  Ignorance will not be tolerated! ZIP
ZIP ZIP
ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP_ZIP
The name of this file is (~ftp)/.login.msg.

Up to higher level directory
08/10/1997 12:00AM352 README
03/22/1997 12:00AM184,415 xmond.tar.gz
10/31/1995 12:00AM 79,989 xmove.01.eps
10/31/1995 12:00AM 99,371 xmove.02.eps
10/31/1995 12:00AM102,438 xmove.03.eps
10/31/1995 12:00AM100,008 xmove.04.eps
11/08/1996 12:00AM165,246 xmove.1.2h.tar.gz
11/14/1997 12:00AM639,187 xmove.2.0beta2.tar.gz
10/24/1995 12:00AM211,169 xmove.thesis.ps
02/09/1995 12:00AM202,296 xmove_performance_slides1.ps
02/09/1995 12:00AM 50,464 xmove_performance_slides2.ps



RE: Reconnect to X session

2004-11-18 Thread Thomas Chadwick
Sounds like a candidate for xmove...
ftp://ftp.cs.columbia.edu/pub/xmove/



RE: Caps lock and shifted symbols

2004-10-29 Thread Thomas Chadwick
Try turning off NumLock.
-Tom



RE: xinit vs. startx

2004-10-22 Thread Thomas Chadwick
1. What exactly causes the different behavior between running xinit
and running startx?  As far as I can tell, both xinit and startx use
the directives listed in my .xinitrc file (which is identical to the
file /etc/X11/xinit/xinitrc that is installed by default with cygwin).
Does startx invoke xinit or the other way around (or none of the
above)?
If you run xinit directly, it invokes the X server with no command-line 
arguments (assuming you're not setting any) and then sources your .xinitrc 
script.  startx is a "wrapper" script which invokes xinit with some 
additional command-line arguments.  Go ahead and look in 
/usr/X11R6/bin/startx to see what additional arguments it's passing to the X 
server.

Also, take a look at the man pages for xinit and startx.  They're pretty 
well documented.

2. Is there any way I can (re)set the size of the desktop-like window
produced by xinit so that it does not take up the entire screen?
You can customize the X server's behavior via command-line flags, documented 
here:

http://x.cygwin.com/docs/ug/configure-cygwin-x-options.html
3. Is there any way that I can launch startx (and thereby get a
terminal from which I can launch X applications) by clicking on some
desktop/launcher icon without first needing to bring up a
(non-X-capable) Cygwin terminal?
Use a Windows shortcut with a target of, e.g.:
c:\cygwin\usr\X11R6\bin\run.exe /usr/X11R6/bin/startx
I believe there is also a Cygwin package that installs Windows shortcuts 
that are intended for this purpose.  Don't recall the name, but it's in the 
same category as the X Server package.

-Tom



RE: need GUI connect-to-host client

2004-09-30 Thread Thomas Chadwick
I'd think a perfectly acceptable solution would be to create individual 
Windows shortcuts that run the types of clients you're talking about.

For instance, if you put the following in a Windows shortcut, it will use 
rsh to launch "xclient" on "remotehost" and redirect it back to the XWin 
server on "localhost" (of course, you'll want to make sure you've started 
XWin before running this shortcut):

C:\cygwin\bin\rsh.exe remotehost "xclient -display localhost:0"
Also, this assumes you've set up rsh properly (consult "man rsh" on 
remotehost for guidance).

If you want to eliminate the empty command-prompt window that results from 
the above shortcut, use run.exe thus:

C:\cygwin\usr\X11R6\bin\run.exe /bin/rsh remotehost "xclient -display 
localhost:0"

However, in order for this to work, you'll have to add C:\cygwin\bin to your 
Windows path, otherwise it'll complain that it can't find "cygwin1.dll'.  
[Alternatively, you can just copy "run.exe" from c:\cygwin\usr\X11R6\bin to 
c:\cygwin\bin]

_
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-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-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: Locked CTRL key in Matlab using

2004-09-08 Thread Thomas Chadwick
It works with numlock disabled :-) Is there a way to "unmap" NumLock as a
modifier key?
The following thread might be of interest...
http://www.cygwin.com/ml/cygwin-xfree/2002-06/msg00307.html
-Tom
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



RE: Mac OS/X, Virtual PC 6, Oracle, and Cygwin/X - a tale

2004-09-07 Thread Thomas Chadwick
I read your email with great interest, and congratulate you on your 
perseverence and creativity in solving you VPN problem.  However, something 
occurred to me that you might want to consider.

I don't know a whole lot about Virtual PC, but if it really behaves as a 
stand-alone PC which co-exists on the same LAN as the Host PC (in this case 
the Mac), it should be entirely possible to set up a simple network route 
which routes TCP/IP traffic between the VPN endpoint (at the virtual PC 
side) over to the host Mac.  This would allow you to run Apple's X server 
instead of using Cygwin/X.  I'm willing to bet that VPN<->VirtualPC(virtual 
route)<->Max X-server is going to have better performance than 
VPN<->VirtualPC(Cygwin/X).

I think WinME and WinXP have routing built-in (called Internet Connection 
Sharing, or ICS).  Other flavors of Windows can be setup to route using 
3rd-party freeware.

>From: Dr Robert Young 
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Mac OS/X, Virtual PC 6, Oracle, and Cygwin/X - a tale
>Date: Fri, 3 Sep 2004 12:49:58 -0400
>
>Well it is possible to get cygwin/X running on Virtual PC 6.1.1
>under Mac OS/X 10.3. There are some  tricks (simply to make it work,
>and to preserve your sanity..all Windows OSs are NOT created
>equal), so please  bear with me while I provide some "color" 
to my
>tale.
>
>Now, you may ask why anyone would want to get this combo working on
>a Macintosh Powerbook G4 running OS/X 10.3.5? You can get X windows
>for OS/X directly.
>
>However, the world is populated by Windows machines, and as a
>database consultant, I have to access a multitude of client sites
>"remotely" since travel is not an option for a myriad of 
reasons.
>That means you enter the world of VPNs, which are in heavy use
>today, and getting more common by the minute. And the world of VPNs
>is dominated by Windows software ( NOT the VPN that you  get
>w/Windows direct from Microsoft, but the proprietary ones like
>Contivity, Cisco, Avaya, etc). Further VPN's do not "like" to 
be
>installed on the same machine as other VPN's ( these things do not
>"play well" together), so if you are working with 3-4-5 
customers
>and all the associated VPN software is from different vendors...well
>you can see the problem even if you don't toss in the point that I
>wanted to use my Mac that I had already paid for with hard earned,
>cold, unadulterated CASH.
>
>That was my original motivation for getting Virtual PC...so one
>could use the Windows VPN software to access the client sites, by
>defining "multiple" virtual PCs each with their own software
>installed for a specific customer, and do it all from (1)
>laptop. AND IT WORKS!
>
>The next issue came from Oracle Corporation ( remember I make a
>living as a database consultant). On Unix (Sun, HP, AIX, Linux) the
>Oracle installer is the "Universal Installer"...ie it is  a 
java
>based & X-based. Character based telnet installs are not a real
>option anymore, much to the telecommuter's regret.
>
>That means I needed to come up with a means of running remote
>X-apps, through the client's VPN under Windows, but (in my case
>solely as a matter of personal preference) on a Macintosh OS/X
>system. There is now a version of Virtual PC for Windows letting you
>define multiple Win OS's on the same Intel platform ( I do, in fact,
>  have an older Compaq laptop ), but that means I have to by a newer
>Intel based laptop with more disk & memory & the Win Virtual PC
>software, and I didn't want to spend the $$$ there.
>
>Enough of the "tedious" background...but you do now have a 
good feel
>for the situation
>
>
>I looked at several commercial Windows X servers (since I had to use
>Windows based VPNs) , and all would run under Virtual PC but in true
>Murphy's form, each had its own "problem" with the Oracle 
Universal
>Installer...fonts, missing buttons, etc. The glitches were well
>documented around the various Oracle www sites, but no real good
>solutions were available unless you could get a customer to change
>their X client setup "just for you" ( not a point you really 
want to
>ask a paying customer), upgrade their Oracle site-wide ( only a few
>hundred thousand dollars for that one), or  you could find V6 of the
>'X' server software (which was now on V12..lotsa luck on that one).
>Then I came across cygwin/X...
>
>Now I like free software in my business, it allows me to spend more
>money on my hobbies. So I downloaded cygwin/X onto two different
>Virtual PC setups...one is Windows 2000, the other is Windows 98SE.
>
>In the case of the basic cygwin, one has to increase the environment
>space for storing PATH information, etc. Once that was done, cygwin
>would come up under both Windows OSs, but it was much slower under
>Win 2000.
>
>Next I needed the X software running. For each Windows OS, I tried
>startxwin.bat & startxwin.sh. Sorry to say, these were a no go. The
>"X" showed up in the task bar, 

RE: X/cygwin and Virtual PC 6

2004-08-31 Thread Thomas Chadwick
I know this doesn't directly answer your question, but have you considered 
partitioning your harddrive and dual-booting into a separate Windows 2000 
install (instead of Virtual PC, at least for this one client)?

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



RE: setenv DISPLAY

2004-08-17 Thread Thomas Chadwick
So you're saying you're doing the "setenv DISPLAY" via the SSH terminal 
session between steps 2 and 3?

I so, then you're completely circumventing the security provided by SSH 
(unless you're doing it intentionally, e.g. you're on a "trusted" network, 
or the encyption/decryption of the SSH tunnel is slowing things down too 
much).

What you should be doing is using the "X-Forwarding" mechanism of SSH.  
Basically, it should go something like this:

1) Launch the Cygwin X-Server, Xwin.
2) From a local xterm, run "ssh -X remote_host"
3) Once you're logged in, echo back the value of "DISPLAY" on the remote 
host.  It should look something like ":8", or possibly "remote_host:8".
4) At this point, running "xterm &" should open a client window on the local 
X-Server.  You do not need to, and should not, manually set the DISPLAY 
variable on the remote host when using ssh.

I suspect that if you change your login script at the remote host such that 
it leaves DISPLAY alone, things will start working again.

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



RE: installing a window manager - help please

2004-08-09 Thread Thomas Chadwick
Have you found/read this?
http://x.cygwin.com/docs/ug/using.html#using-starting
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



RE: Problems running xterms on AIX and the Oracle Univeral Installer

2004-05-14 Thread Thomas Chadwick
Turn off NumLock.


From: "Bent, Brian" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Problems running xterms on AIX and the Oracle Univeral Installer
Date: Thu, 13 May 2004 17:05:12 -0500
Hello -  I am newbie to cygwin and am having a few difficulties running X
from a remote AIX 4.3.3 server.  I am starting up the X server by running
the startxwin.bat file.  I am taking the default of "run XWin -multiwindow
-clipboard ."  I am using X11Forwarding so that my DISPLAY variable is set
when I ssh to a server.  When I run xterm on the box that I ssh to, the
xterm does display back.  However, I can't seem to be able to type anything
inside the xterm.  No characters ever show up inside the xterm.  I can use
cntrl-d to close the window.  Can you suggest a way for me to correct this?
I have experimented with the -fullscreen mode with the same results.
Something else I am having problems with is when I run the Oracle Universal
Installer on a remote system; my cursor basically disappears when my mouse
has the focus on the oui.  I am able click buttons, but I can't ever see
where my cursor is.  I currently have Hummingbird installed and it is
working fine for displaying X back, but I would really prefer to use 
Cygwin.
I do not have Hummingbird and Cygwin running at the same time.  If anyone
can help me with my issues, I would greatly appreciate it.
Brian

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



RE: Mouse/keyboard emulation

2004-05-13 Thread Thomas Chadwick
Turn off NumLock.


From: "Mark Vovchuk" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Mouse/keyboard emulation
Date: Wed, 12 May 2004 11:51:05 -0400
I have been trying to use Cygwin, at least in part, as an X server on
top of a Windows install to be able to execute programs from a UNIX
server and have them appear locally.  The application I have been
specifically attempting to do so with is Eclipse (motif for HP-UX).
Just about every other application that I have run has been able to take
keyboard and mouse input from the Windows machine with no problems.
However, when I run Eclipse, the Java based GUI will launch after a
short time, however it will be a dead screen with no ability to click,
move focus or execute any commands.  In this attempt, I also tried to
display a full Xwindows (CDE on HP-UX 11.0) session.  This did work once
I was able to sort out the X font server issue I encountered initially.
I was able to control the window when displaying the full X session.  My
boss was able to get it to work completely the way we wanted with
another product, however that was a demo of software that is far to
expensive for us to purchase.
This is what I tried to do concerning displaying only the application
remotely to my Windows desktop from the UNIX machine:
I started Cygwin
Typed "startx" and hit return
in the Xterm I typed "xhost +"
in the Xterm I typed "xset +fp tcp/:7100 (the
port the font server is listening on)
in the Xterm I opened an ssh session by typing "ssh -l 
 and then entered the password when prompted
When logged in to the remote server I cd'd into the directory for
eclipse and executed my script to launch it which consists of the path
to the eclipse executable and these arguments:
/eclipse -vm /opt/java1.4/bin/java -vmargs
-XdoCloseWithReadPending
This would bring up the splash and the application would load, but as
stated above, not open.  I could open other X applications and have no
such issues.
Any assistance would be greatly helpful and valued.



Thank you,
Mark
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/



Re: numlock

2004-04-20 Thread Thomas Chadwick
From: "J S" 
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: numlock
Date: Tue, 20 Apr 2004 09:48:37 +


Could this code be added into the XFree build?
[snip]

Not sure.  That's a question for Harold, et. al. to answer.  The options 
would be to (1) incorporate this code into the XWin codebase and "activate" 
it via a command-line switch, or (2) include it as a separate executable in 
the xorg-x11-bin package, and call it from the startxwin script.

_
Check out MSN PC Safety & Security to help ensure your PC is protected and 
safe. http://specials.msn.com/msn/security.asp



Re: numlock

2004-04-19 Thread Thomas Chadwick
From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: numlock
Date: Sun, 18 Apr 2004 09:36:37 +
[snip]

Thanks for your reply. Unfortunately our users' boxes are locked down 
(they're on XP) so they wouldn't be able to edit that file. I was really 
looking for a way to do this from the XFree startup script or configuration 
anyway.
OK.  You asked for it.  Below is a short C program which will check the 
state of the NumLock key and synthesize a keydown/keyup sequence of the 
NumLock key if it's down.  Works on my box, which is Win2K, but I'm led to 
believe from the documentation that it should work with any 32-bit 
implementation of windows.

To build it, copy-paste the following source into a file (e.g. 
"numlockoff.c") then run gcc on it (e.g. "gcc -o numlockoff numlockoff.c").  
Then add that to a convenient location on your client systems and add a call 
to it in your X startup script.

#include 
#define _WIN32_WINNT 0x0500
#include 
int main()
{
   INPUT pInput[2];
   if (GetKeyState(VK_NUMLOCK) == 1)
   {
   pInput[0].type   = INPUT_KEYBOARD;
   pInput[0].ki.wVk = VK_NUMLOCK;
   pInput[0].ki.wScan   = 0;
   pInput[0].ki.dwFlags = 0; /* Nill for keydown */
   pInput[0].ki.time= 0;
   pInput[0].ki.dwExtraInfo = 0;
   pInput[1].type   = INPUT_KEYBOARD;
   pInput[1].ki.wVk = VK_NUMLOCK;
   pInput[1].ki.wScan   = 0;
   pInput[1].ki.dwFlags = KEYEVENTF_KEYUP;
   pInput[1].ki.time= 0;
   pInput[1].ki.dwExtraInfo = 0;
   if (SendInput(2, pInput, sizeof(INPUT)) == 0)
   {
   fprintf(stderr, "Error: SendInput failed.  NumLock was not 
turned off.\n");
   }
   }
}

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



Re: numlock

2004-04-17 Thread Thomas Chadwick
I Googled for "numlock off" and the first page had several 
promising-sounding hits with instructions on how to force Windows to boot up 
with NumLock off regardless of how the BIOS is configured.

The simplest solution (don't know which versions of Windows this will work 
with) was to add a line to c:\config.sys that looks like "NUMLOCK=OFF").

From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: numlock
Date: Thu, 15 Apr 2004 09:16:19 +
Sorry to come back to this again, but I have a lot of user faults reported 
due to this problem. Our users' boxes boot up with the numlock key on so 
this causes some confusion when they are told they have to switch the 
numlock key off before starting XFree. Is there anything I can do to switch 
this numlock behaviour off without user interference?

JS.

_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

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



RE: x2x 1.30-1 broken ?

2004-04-06 Thread Thomas Chadwick
From: "Gael Gueguen" 
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: x2x 1.30-1 broken ?
Date: Tue, 6 Apr 2004 10:06:30 +0200 (CEST)
[snip]

Am I the only one with this problem ?
You are the only one who has reported this problem to this mailing list, but 
thast doesn't mean you're the only person who's encountered it.

Admittedly, it has been awhile since x2x-1.30 was built.   Perhaps I should 
submit a new binary package?  I did notice just now that after recently 
upgrading my Cygwin environment, the x2x-1.30-src package fails to build, so 
something has changed.  Guess I'll look into that, and once I get it 
re-built I'll submit a new pkg, and you can see if that fixes your problem.

-Tom

_
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: x2x 1.30-1 broken ?

2004-04-05 Thread Thomas Chadwick
Strange.  I can't seem to re-create the problem you are having.  It works 
just fine for me when I use it in the manner you describe.  Could you be a 
little more explicit?  Maybe I'm going something that you're not, or 
vice-versa.

From: gagou <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: x2x 1.30-1 broken ?
Date: Tue, 30 Mar 2004 03:47:15 -0800 (PST)
Hi,

When I enter "x2x -from localhost:0 -to
distanthost:0", I get "x2x: display names are both
127.0.0.1:0.0" and $? is set to 1.
It seems like command line parameters aren't used at
all, and x2x fallback to using the DISPLAY set.
- if I set DISPLAY to whatever, the answer I get is
"x2x: display names are both whatever"
- x2x -copyright also tells "display names are both
..."
1.27-3 still works great...

Gael.

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
_
Persistent heartburn? Check out Digestive Health & Wellness for information 
and advice. http://gerd.msn.com/default.asp



RE: Convenient script for starting an XFree86 xterm

2004-03-02 Thread Thomas Chadwick
FYI - You might want to consider using /usr/X11R6/bin/run.exe (the DOS path 
being c:\cygwin\usr\X11R6\bin\run) in place of the 1-liner VBScript.  Makes 
things a wee bit cleaner, IMHO.

From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Convenient script for starting an XFree86 xterm
Date: Mon, 1 Mar 2004 22:37:52 -0800
I've seen some other postings on this subject recently, so I'm submitting
this contribution as a potential starting point for others.
I have convenient Windows desktop shortcuts to start up a Cygwin/Bash shell
window and an RXVT/Bash shell window. I was looking for something similar 
to
start up a Cygwin/XFree86 xterm. Of course, I didn't want to generate
multiple running copies of the 'XWin' server, nor did I want useless 
Command
prompt windows hanging around.

Here's what I came up with. I make no claim to generality, robustness,
cleverness, originality or anything else. It just works for me.
It consists of three parts:

1) A desktop shortcut with the following target:
C:\WINNT\SYSTEM32\WSCRIPT.EXE "C:\cygwin\invisible.vbs"
"C:\cygwin\XFree86xterm.bat"
2) A VB shell script named 'C:\cygwin\invisible.vbs' containing the single
line:
CreateObject("Wscript.Shell").Run  & WScript.Arguments(0) & , 0,
False
3) A DOS shell script named 'C:\cygwin\XFree86xterm.bat' containing the
following lines:
---
@echo off
ps -ef | grep /usr/X11R6/bin/XWin > nul

if ERRORLEVEL 1 (
  start /DC:\cygwin\usr\X11R6\bin /B XWin -multiwindow -clipboard
)
set DISPLAY=localhost:0.0

C:\cygwin\usr\X11R6\bin\xterm -fn 10x20 -sl 1000 -sb -leftbar -ms red -fg
yellow -bg black -e /usr/bin/bash --login -i
---
Description:
- The shortcut starts the Windows scripting language, which runs the simple
Visual Basic script.
- The VB script runs the DOS shell script without generating a Command
window.
- The DOS shell script
  - Starts 'XWin' with my preferred switches as a background process if no
such process is already running,
  - Sets DISPLAY to the 'localhost:0.0', which the 'xterm' will inherit, 
and
  - Starts a login bash shell in an XFree86 xterm with some decent extra
settings.

john

_
Get business advice and resources to improve your work life, from bCentral. 
http://special.msn.com/bcentral/loudclear.armx



RE: mouse wheel support question

2004-03-01 Thread Thomas Chadwick
Here's something easy to try.  Bring up the X server, then run "xev" and 
move the scroll-wheel.  Do you see any Button 4 or Button 5 messages?  If 
so, then the server supports them.  If not, it doesn't.

From: Daren Lim <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: mouse wheel support question
Date: Fri, 20 Feb 2004 13:44:50 -0500
I've implemented a feature for an application that uses the mouse wheel on
the Windows.
I need to code it for XWindows. From what I have read so far the wheel 
sends
mouse button
presses of 4 and 5 in Xwindows.

I'm not sure if trying to test through Cygwin is
not letting me detect the messages in XWindows or if there is another
reason.  I found that for XFree86 4.2 "The mouse driver now has support
for mouse wheel emulation."
I tried xdyinfo | grep release
to figure out which version of XFree86 I'm running...
it returned "vender release number : 4020
So do I need to update my Xfree86 version ?

Thanks,
dAren
_
Dream of owning a home? Find out how in the First-time Home Buying Guide. 
http://special.msn.com/home/firsthome.armx



RE: FD_SETSIZE and select

2004-02-03 Thread Thomas Chadwick
FWIW, I did a little plumbing regarding select and FD_SETSIZE when packaging 
x2x.  The thread preceeding this post might be of some interest...

http://www.cygwin.com/ml/cygwin-xfree/2002-07/msg00607.html

From: Alexander Gottwald <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: FD_SETSIZE and select
Date: Tue, 3 Feb 2004 22:07:27 +0100 (MET)
Hi,

The Cygwin/X source uses the assumption that FD_SETSIZE == 256 in many 
places.
I'm currently adding a -DFD_SETSIZE=256 to the build commandline but I'm
not sure if this has any sideeffects.

Is select() capable of handling other sizes than 64 which is set in 
sys/types.h?

bye
ago
BTW: please keep the cc to cygwin-xfree since I'm only monitoring that list 
and
I'd like the others there be informed too.
--
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723
_
Let the new MSN Premium Internet Software make the most of your high-speed 
experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1



Re: How to print to printer machine running X server?

2004-01-06 Thread Thomas Chadwick
From: "Hr. Daniel Mikkelsen" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: How to print to printer machine running X server?
Date: Tue, 6 Jan 2004 16:12:08 +0100 (CET)
On Tue, 6 Jan 2004, Øyvind Harboe wrote:

> Is there a way to print to a printer on the machine where the X server
> runs?
> - I have CygWin + xfree86 on a Windows machine
> - On the Windows machine (which has printers connected), I start
> OpenOffice on a remote machine Linux box over ssh -X..
> How do I print from OpenOffice running on the remote Linux box to the
> printer on the Windows machine where the X server is running?
Printing isn't part of X, so there is no standard correct way of doing 
this.

My setup:

The Windows computer has its printers shared, accesible to the GNU/Linux
(actually FreeBSD) machine.
The GNU/Linux machine runs CUPS, and uses the samba "transport" to print to
the Windows connected printers. They're named "printer1" and "printer2".
When I log in on the GNU/Linux box from the Windows machine with XDMCP, I 
run a
script which uses "lpadmin -d" to select default output for the lpr 
command.
The script looks up the printer from a table using my DISPLAY setting.

Not perfect, but transparent to end users.

-- Daniel

Note that this requires that the printer share on the Windows machine be 
"visible" to the remote computer, which may not always be the case.  It 
might be possible to use ssh's -L command-line switch to forward the 
necessary port(s) over the ssh tunnel to make the local share visible to the 
remote machine.

Something I've done in the past is print to a Postscript file on the remote 
machine, convert it to PDF using ps2pdf, transfer it to the local computer 
via FTP, and then use Adobe Acrobat Reader on the local machine to 
view/print the result.

_
Working moms: Find helpful tips here on managing kids, home, work —  and 
yourself.   http://special.msn.com/msnbc/workingmom.armx



Re: fonts too small on remote clients

2003-10-31 Thread Thomas Chadwick
Have you tried loading your .Xdefaults on the remote side before launching a 
client?  e.g. "xrdb -load ~/.Xdefaults"

From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: fonts too small on remote clients
Date: Fri, 31 Oct 2003 09:20:36 -0500




I'm running Cygwin/XFree 4.3.0 under cygwin 1.5.5-1 (all the latest
current versions of all packages as of this writing).  I'm tunneling X
over ssh to clients on a remote host (running Linux w/ XFree86 4.3).
Whenever I start a client on the remote host, all of the fonts on my
local display come out about 2 points too small.  It makes the clients
very hard to see.  Local clients are displayed normally.  Does anyone
know what could cause this?
I'm not running xfs.  Here's the output of xset -q:

$ xset -q
Keyboard Control:
  auto repeat:  onkey click percent:  0LED mask:  0002
  auto repeat delay:  660repeat rate:  25
  auto repeating keys:  00ffdbbf
fadfffdffdff


  bell percent:  50bell pitch:  400bell duration:  100
Pointer Control:
  acceleration:  2/1threshold:  4
Screen Saver:
  prefer blanking:  yesallow exposures:  yes
  timeout:  600cycle:  600
Colors:
  default colormap:  0x20BlackPixel:  0WhitePixel:  16777215
Font Path:
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X1
1/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
Bug Mode: compatibility mode is disabled
Font cache:
  hi-mark (KB): 5120  low-mark (KB): 3840  balance (%): 70
I've tried putting the 100dpi fonts first on the font path (xset +fp
/usr/X11R6/lib/X11/fonts/100dpi/), but it doesn't help.
Any help appreciated.
Andrew.
_
Never get a busy signal because you are always connected  with high-speed 
Internet access. Click here to comparison-shop providers.  
https://broadband.msn.com



Re: xinit: only xserver, then crash (no xterm)

2003-10-22 Thread Thomas Chadwick
From: Norbert Schmidt <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: xinit: only xserver, then crash (no xterm)
Date: Wed, 22 Oct 2003 15:49:55 +0200 (CEST)
That happend after updating last night:

If I start xinit from a .bat-file from Windows only the Xserver starts and
shuts down some seconds later and no xterm appeared before.
[snip]

Sounds to me like a problem with your PATH.  I suggest you make a copy of 
/usr/X11R6/bin/startxwin.bat and customize it to do what you want.

_
See when your friends are online with MSN Messenger 6.0. Download it now 
FREE! http://msnmessenger-download.com



Re: a problem with X connection to HPC server-------local computer IP name

2003-10-17 Thread Thomas Chadwick
I don't use SSH or XDM, but nonetheless was intrigued by your question about 
running XDM via an SSH tunnel.  After some poking around, it occurred to me 
that there might be a way to make this work by finding and editting the 
Xservers file on the XDM server.  The process would go something like...

1) Launch XWin without the -query business.

2) Set DISPLAY=127.0.0.1:0 then run "ssh -x " to bring up a 
tunnel into the XDM server.

3) Once connected, edit the XDM server's Xservers file and create a "local" 
entry for the display number handled by ssh.

4) Send a SIGHUP signal to XDM to tell it to re-read the Xservers file and 
start managing the virtual DISPLAY setup by ssh.

The one thing I'm not sure abouit is what would happen to XDM after the SSH 
tunnel ended.  Will it continuously loop trying to start an X session on the 
defunct DISPLAY?

From: "dh" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: a problem with X connection to HPC server---local computer IP 
name
Date: Fri, 17 Oct 2003 13:25:45 +0100

I am trying to connect to a SGI Onyx 300  server from an PC with Win ME and
cygwin at home through typical
Xwin.exe -ac -query remote_ws -from 

but the remote login screen doesn't appear properly. It's just a blank
window.
I think my problem is really with local IP setting. I am not sure about my
local IP.
It is a 3 pcs LAN connectting to the internet through a router. My pc got a
local IP: 192.168.0.3, whist 3pcs share one external IP(as gateway) 
provided
by ISP.
But neither of the IPs can work(openning DISPLAY).

My problem is only with an XDMCP-query session.
What I must do to access a machine with SSH and "X -query" in this case?
Thanks in advance.
Philip D.
_
Need more e-mail storage? Get 10MB with Hotmail Extra Storage.   
http://join.msn.com/?PAGE=features/es



Re: (additional info) Can't start gnome-terminal, fatal error

2003-10-16 Thread Thomas Chadwick
A couple of thoughts...

Have you verified that the remote host is actually running a font server?

Take a look at /tmp/XWin.log for error messages pertaining to the font path.

Try running a local xterm and entering "xset fp+ " instead 
of using the "-fp" command-line option.

From: "Jonathan Primeau" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: (additional info) Can't start gnome-terminal, fatal error
Date: Wed, 15 Oct 2003 10:10:15 -0400
I have more information related to my problem. I hope that this will
make my problem more obvious...
When I run gnome-terminal from a standard terminal I get:

BEGIN OUTPUT

** (gnome-terminal:161): WARNING **: Cannot load font for XLFD
'-bitstream-courier-medium-r-normal--14-*-*-*-*-*-iso8859-1
(gnome-terminal:161): ZVT-WARNING **: Cannot get required fonts from
"monospace13"
(gnome-terminal:161): ZVT-WARNING **: Use
"-*-*-*-*-*-*-13-*-*-*-*-*-*-*" XLFD fontname - some characters may not
appear correctly
(gnome-terminal:161): ZVT-WARNING **: Use "-*-*-*-*-*-*-0-*-*-*-*-*-*-*"
XLFD fontname - some characters may not appear correctly
(gnome-terminal:161): ZVT-CRITICAL **: file zvti18n.c: line 831:
assertion `new_fontset != NULL' failed
(gnome-terminal:161): ZVT-WARNING **: Failed to load any required font,
so crash will occur..check X11 font pathes and etc/pangox.alias file
** (gnome-terminal:161): WARNING **: Cannot load font for XLFD
'-adobe-helvetica-medium-r-normal--10-*-*-*-*-*-iso8859-1
** (gnome-terminal:161): WARNING **: Cannot load font for XLFD
'-bitstream-courier-medium-r-normal--10-*-*-*-*-*-iso8859-1
(gnome-terminal:161): ZVT-WARNING **: Cannot get required fonts from
"monospace10"
(gnome-terminal:161): ZVT-WARNING **: Use
"-*-*-*-*-*-*-10-*-*-*-*-*-*-*" XLFD fontname - some characters may not
appear correctly
(gnome-terminal:161): ZVT-WARNING **: Use "-*-*-*-*-*-*-0-*-*-*-*-*-*-*"
XLFD fontname - some characters may not appear correctly
(gnome-terminal:161): ZVT-CRITICAL **: file zvti18n.c: line 831:
assertion `new_fontset != NULL' failed
(gnome-terminal:161): ZVT-WARNING **: Failed to load any required font,
so crash will occur..check X11 font pathes and etc/pangox.alias file
** (gnome_segv:162): WARNING **: Cannot load font for XLFD
'-adobe-helvetica-medium-r-normal--10-*-*-*-*-*-iso8859-1
--
END OUTPUT
I guess that the problem comes from "the missing fonts", it says: Failed
to load any required font, so crash will occur..check X11 font pathes
and etc/pangox.alias file.
Is there any way I can fix that? By the way, I use the -fp option for
Xwin (Font server).
Regards,
Jonathan Primeau
_
Surf and talk on the phone at the same time with broadband Internet access. 
Get high-speed for as low as $29.95/month (depending on the local service 
providers in your area).  https://broadband.msn.com



Re: X in 8 bit mode - Perfomancetroubles

2003-10-15 Thread Thomas Chadwick
I think the best 8-bit performance will result if you "downshift" the 
Windows desktop to 256 colors and run XWin in windowed mode, which will 
allow it to use the DirectDraw engine.

From: Harald Pollak <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: X in 8 bit mode - Perfomancetroubles
Date: Wed, 15 Oct 2003 10:48:32 +0200
Hy!
Im  using Cygwin XFree on a Acer Travelmate 634lci with Windows XP (
Color 32 bit )
my Application running on OpenVMS.
I have to use 8 Bit Colormode for correct display.

When i start X with the command:

X -ac -fullscreen -depth 8 &

The display is ok, but the perfomane is unuseabel.

When i use :

X -ac -fullscreen -emulatepseudo &

Then the Applicationdisplay isn't working correct.

Does anyone have a idea how I can use 8bit-colored Application with good
performace on
Cygwin Xwin

I'm sure anybody outthere has an solution for my problem, so let me
know.
Thanks & best regards

Harry

_
Enjoy MSN 8 patented spam control and more with MSN 8 Dial-up Internet 
Service.  Try it FREE for one month!   http://join.msn.com/?page=dept/dialup



Re: Mississippi -> Miiippi

2003-10-08 Thread Thomas Chadwick
Oh, OK.  In that case, maybe rsh would be a useful alternative?  Here's 
something I do all the time from the local host running the Cygwin Xserver:

   xhost remotehost
   rsh remotehost xterm -display localhost:0 &
You can even wrap it inside a shell script:

   #!/bin/sh

   rhost=$1
   lhost=`hostname`
   xhost $rhost
   rsh $rhost xterm -display $lhost:0
If you save this as, say, "rxterm", you'd call it with simply:

   rxterm remotehostname


From: "Dai Itasaka" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Re: Mississippi -> Miiippi
Date: Tue, 7 Oct 2003 14:30:32 -0700
I have no intention to secure the X connection.
I use ssh simply because the remote guy doesn't have a telnet server
running. Do I still need to use the -X option?
) By the way, you're using ssh all wrong. What you should really be doing 
is:
)
) 1) Invoke startxwin.sh
) 2) In the local xterm, verify that the value of DISPLAY is 127.0.0.1:0
) (and set it to that if it is not)
) 3) ssh to the remote box using the "-X" flag to enable X-forwarding.
) 4) Once connected to the remote host, verify that the value of DISPLAY
) is something like remotehost:8.
) 5) Run your remote X-clients normally.


_
Instant message with integrated webcam using MSN Messenger 6.0. Try it now 
FREE!  http://msnmessenger-download.com



Re: Mississippi -> Miiippi

2003-10-07 Thread Thomas Chadwick
By the way, you're using ssh all wrong.  What you should really be doing is:

1) Invoke startxwin.sh
2) In the local xterm, verify that the value of DISPLAY is 127.0.0.1:0 (and 
set it to that if it is not)
3) ssh to the remote box using the "-X" flag to enable X-forwarding.
4) Once connected to the remote host, verify that the value of DISPLAY is 
something like remotehost:8.
5) Run your remote X-clients normally.

From: "Dai Itasaka" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Mississippi -> Miiippi
Date: Tue, 7 Oct 2003 10:56:06 -0700
Hello list,

Here is what I did:

- Opened several tcsh windows (as separate MS Window apps)
- Started X by invoking "startxwin.sh" which gave me one big root window
  and one xterm window
- In this xterm window, I did:
> xhost 10.0.1.2
> ssh [EMAIL PROTECTED]
(now I'm logged in)
> setenv DISPLAY 10.0.1.1:0
(10.0.1.1 is the Windows PC with cygwin running, 10.0.1.2 is a Linux 
box)
> twm &
(now the desktop is managed by twm)
- Opened a few more xterm windows from twm and already opened xterm
- Went back to one of the tcsh window and did:
> setenv DISPLAY localhost:0
> xterm

This opened up one xterm window in the X desktop with "bash-2.05b" prompt.
In this xterm window, I couldn't type the letter 's'. Not only I couldn't
type, but I was unable to yank and copy a string with 's'. For example,
I yanked a string "tcsh" in another xterm window and pasted it in this
troubled xterm window, it displayed "tch". For another example, I yanked
the word "Mississippi" from /usr/share/dict/words and pasted it and got
"Miiippi". I had no such problem in any other xterm windows but this.
What was happening?

>uname -a
CYGWIN_NT-5.1 myname 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown
Cygwin
_
Share your photos without swamping your Inbox.  Get Hotmail Extra Storage 
today! http://join.msn.com/?PAGE=features/es



Re: xset add to font path kills Xserver

2003-09-29 Thread Thomas Chadwick
I have TrueType fonts working.  In fact, they've worked for over a year 
since I first set them up, and I haven't had to do anything to keep them 
working since first setting it up.  Unfortunately, it's been so long, I 
can't remember exactly what I went through to get it setup.  All I can tell 
you is that it was a 2 or 3 step process and everything I need to know I 
found through Google.

The only thing I do to add the TrueType fonts to my font path is with the 
following call (which has to be run AFTER XWin starts):

xset fp+ /cygdrive/c/winnt/fonts

I've got the following versions of the XFree packages installed...

XFree86-base4.3.0-1
XFree86-bin 4.3.0-2
XFree86-etc 4.3.0-3
XFree86-f1004.2.0-3
XFree86-fenc4.2.0-3
XFree86-fnts4.2.0-3
XFree86-fscl4.2.0-3
XFree86-lib 4.3.0-1
XFree86-lib-compat  4.3.0-1
XFree86-man 4.3.0-1
XFree86-prog4.3.0-4
XFree86-ps  4.3.0-1
XFree86-startup-scripts 4.2.0-5
XFree86-xserv   4.3.0-9


From: "Benn Schreiber" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: xset add to font path kills Xserver
Date: Mon, 29 Sep 2003 08:40:05 -0700
I just upgraded my system to the latest XFree (4.3.0-4, I believe). In my
startxwin I had an xset fp+ to add the truetype fonts directory to the font
path (which I never got working...perhaps this is a hint, but...)
With the latest bits the Xserver core dumps shortly after the xset fp+
happens.
So, two questions, which hopefully someone can easily answer:

1) Have you successfully added truetype fonts to your font path? If so,
how?\
2) Failing at 1), has anyone else observed this problem with 4.3.0-4?

Thanks

Benn


_
Instant message with integrated webcam using MSN Messenger 6.0. Try it now 
FREE!  http://msnmessenger-download.com



Re: startxwin.bat - how to use an .xinitrc file

2003-09-25 Thread Thomas Chadwick
Sounds like I've got my Cygwin/Xfree setup the way you'd like.  You can do 
it, too, in 3 easy steps...

1) Edit the file .bash_profile in your home directory and make sure the 
X11R6/bin directory gets added to your path.  e.g.:

   export PATH=$PATH:/usr/X11R6/bin

2) Put your .xinitrc file in your home directory and edit it to your liking.

3) Create a Windows shortcut (on the Desktop, for instance) with the 
following target:

   C:\cygwin\usr\X11R6\bin\run.exe /bin/bash.exe --login -c "xinit -- 
-noreset -nodecoration"

The run part keeps bash from creating a dormant icon on the task bar.
The "--login" part tells bash to read .bash_profile.
The arguments after "xinit --" get passed to XWin.
That's all there is to it!

From: Mike Campbell <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: startxwin.bat - how to use an .xinitrc file
Date: Thu, 25 Sep 2003 10:24:33 -0500
I have several things that I like to have run when I start an xsession and 
normally I would put these into a ~/.xinitrc file to have them run at X 
startup time.

However, when I run startxwin.bat it does not appear to execute the 
.xinitrc file automatically. Therefore I have had to manually edit the 
startxwin.bat file and add my custom stuff.

I"d like to find a way around editing startxwin.bat since after every xfree 
update I have to re-edit the file and re-add my custom lines.

Am I missing something here? Is there a way to get startxwin.bat to 
automatically find $HOME/.xinitrc or would this be a good enhancement 
request?

Thanks,
Mike Campbell
_
Help protect your PC.  Get a FREE computer virus scan online from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: [Fwd: Send loss of focus notification when changing focus to a Windowsapp?]

2003-09-24 Thread Thomas Chadwick
FWIW - If you run xev with XWin in -rootless or -multiwindow mode, when you 
leave the X client window and enter "Windows territory", sometimes you get a 
LeaveNotify event, but sometimes you don't.  It seems to depend on how fast 
the mouse is moving when you cross the border.  I see in winwndproc.c (and 
winmultiwindowwndproc.c) that there is code to handle WM_MOUSELEAVE events.  
Seems to me this would be a good place to stick code that generates a 
LeaveNotify event in the X client.

From: Jean-Claude Gervais <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Cygwin-XFree <[EMAIL PROTECTED]>
Subject: [Fwd: Send loss of focus notification when changing focus to 
a	Windowsapp?]
Date: Tue, 23 Sep 2003 13:23:33 -0400

Is it possible to tell X that it has lost focus when a Windows app gains
focus?
<< message3.txt >>
_
Add MSN 8 Internet Software to your existing Internet access and enjoy 
patented spam protection and more.  Sign up now!   
http://join.msn.com/?page=dept/byoa



Re: right-click problem

2003-09-19 Thread Thomas Chadwick
Try turning off Num Lock and/or Caps Lock and see if that makes a 
difference.

From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: right-click problem
Date: Fri, 19 Sep 2003 15:34:16 +
Checked the archives but haven't had much luck so far.
The application is something called EMC Symmetrix Console and it runs on 
Solaris.
I have checked the problem on a Linux box as well and get the same as 
cygwin-xfree so presumably this is an XFree problem.
However what I don't understand is why the right-click mouse menu pops up 
in Exceed (no special configuration has been done), but not in XFree.

JS.


You're gonna have to specify which application causes trouble and/or what 
type of operating system it is running on.  I assume that this is a 
problem with a remote application since we have seen reports of this 
before.  So, I guess you should search the mailing list archives as well.

Harold

J S wrote:

Hi,

I have an X-app which when I right click on some of the icons produces a 
menu in Exceed, but in XFree doesn't - however if I run any other apps 
where I need to right click the mouse to get a menu up, it does work. 
Could anyone suggest how I might fix this problem please?

Thanks,

JS.

_
Hotmail messages direct to your mobile phone 
http://www.msn.co.uk/msnmobile


_
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband

_
Express yourself with MSN Messenger 6.0 -- download now! 
http://www.msnmessenger-download.com/tracking/reach_general



Re: Compiing XWin...

2003-09-17 Thread Thomas Chadwick
Please ignore this message thread.  My original post (copied below) somehow 
got lost in the "ether" of the 'net for about 12 hours.  In the meantime, I 
sent another note on the same subject which went through nearly 
instantaneously.

From: "Thomas Chadwick" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Compiing XWin...
Date: Tue, 16 Sep 2003 16:51:37 -0400
Ages ago I did some messing around with compiling XWin.  I followed the 
steps in the Contributor's Guide, checking out the xc package from CVS and 
running make World.  After that I was able to play with XWin itself, 
recompiling just that target from the xc/programs/Xservers directory (or 
something similar - don't know if I'm remembering it quite correctly).

At the time, it occurred to me that if I installed the XFree86-lib and 
XFree86-prog packages via Cygwin Setup, it should be possible to get just 
the Xservers branch of the XFree86 source tree, run xmkmf to generate the 
Makefile, then build just XWin without having to download and build all of 
XFree86.  But I never got around to re-trying it that way.

I've recently been motivated to do some tinkering with XWin and before I 
set about the task of getting the source, compiling, etc., is there an 
obvious (or not-so-obvious) fallacy with my modified approach to building 
XWin?

FYI - A full build of XFree86 takes hours on my ThinkPad w/ Pentium III @ 
700MHz, 512MB RAM, and Win2k.

_
Need more e-mail storage? Get 10MB with Hotmail Extra Storage.   
http://join.msn.com/?PAGE=features/es

_
Send and receive larger attachments with Hotmail Extra Storage.   
http://join.msn.com/?PAGE=features/es



Compiing XWin...

2003-09-17 Thread Thomas Chadwick
Ages ago I did some messing around with compiling XWin.  I followed the 
steps in the Contributor's Guide, checking out the xc package from CVS and 
running make World.  After that I was able to play with XWin itself, 
recompiling just that target from the xc/programs/Xservers directory (or 
something similar - don't know if I'm remembering it quite correctly).

At the time, it occurred to me that if I installed the XFree86-lib and 
XFree86-prog packages via Cygwin Setup, it should be possible to get just 
the Xservers branch of the XFree86 source tree, run xmkmf to generate the 
Makefile, then build just XWin without having to download and build all of 
XFree86.  But I never got around to re-trying it that way.

I've recently been motivated to do some tinkering with XWin and before I set 
about the task of getting the source, compiling, etc., is there an obvious 
(or not-so-obvious) fallacy with my modified approach to building XWin?

FYI - A full build of XFree86 takes hours on my ThinkPad w/ Pentium III @ 
700MHz, 512MB RAM, and Win2k.

_
Need more e-mail storage? Get 10MB with Hotmail Extra Storage.   
http://join.msn.com/?PAGE=features/es



Building XWin.exe

2003-09-16 Thread Thomas Chadwick
I've recently been motivated to tinker a bit with compiling XWin.exe on my 
own.  After reading through the "Obtaining the Source Code" and "Native 
Compiling" sections of the Contributor's Guide, I'm left with the following 
question ...

Do I rally need to download and build all of XFree86?  Can't I just download 
the Xservers branch of the source tree, run "xmkmf -a" to generate the 
Makefiles and dependencies, and then compile just the XWin target?

[Note: I already know that for xmkmf to work I'll need the XFree86-lib and 
XFree86-prog packages, and perhaps 1 or 2 others.]

_
Need more e-mail storage? Get 10MB with Hotmail Extra Storage.   
http://join.msn.com/?PAGE=features/es



Re: exec wmaker & in /etc/xinit/xinitrc doesn't work

2003-09-05 Thread Thomas Chadwick
If you've never run wmaker before, you need to run 
/usr/X11R6/bin/wmaker.inst to configure your account.

If there's no wmaker.inst, then you don't have the WindowMaker package 
installed.  It's one of the packages available in the Cygwin Setup program.

From: cygwin-xfree <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: exec wmaker & in /etc/xinit/xinitrc doesn't work
Date: Thu, 4 Sep 2003 23:33:14 -0400
Hi-

I want to run WindowMaker rather than twm, so I edited /etc/xinit/xinitrc 
and replaced

exec twm &

with

exec wmaker &

then when I ran 'startx', WindowMaker started  then immediately crashed.
 What am I missing here?
Thanks for the help.
_
Get a FREE computer virus scan online from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: ssh/X with two hops

2003-09-03 Thread Thomas Chadwick
BTW - emacs works perfectly well over a terminal session.  No need for X at 
all.  You should be able to open a good-old MS-DOS prompt, telnet or ssh to 
your hearts content, then make sure TERM=vt100 on the remote system, then 
run emacs.

From: Robert Mecklenburg <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Cygwin XFree Users List <[EMAIL PROTECTED]>
Subject: ssh/X with two hops
Date: Wed, 3 Sep 2003 11:44:11 -0600
I'm a newbie at ssh and would like some advice.  I have a home pc
(windows xp) and an office pc (windows xp) behind a firewall/gateway
host (linux).  I want to run X at home and display (on my home X
server) an emacs running on my office pc.  Here is my most recent
attempt:
I have cygwin sshd running on my office machine...

1. startxwin.sh at home

2. In an xterm run "ssh -X -L 22:osaka:2200 gateway" this allows my to
   login directly to my office machine but leaves an unnecessary login
   on the gateway.  X port forwarding works in this login, but it is
   the wrong host.
3. In a new xterm run "ssh -X localhost".  Now I am logged onto my
   office machine and hopefully X ports are being forwarded, but no!
4. When I "echo $DISPLAY" on my office machine the variable is empty.

I have, of course, tried many other permutations of this procedure,
but this seems the closest to correct - but no joy.
Another permutation I've tried is to ssh to the gateway and then ssh
from the gateway to my office pc, but again the DISPLAY variable is
not set even though I use -X.
Any suggestions?

Thanks!
--
Robert
_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. 
http://join.msn.com/?PAGE=features/es



Re: cygwin alt-tab

2003-08-27 Thread Thomas Chadwick
Have you tried XWin with the -multiwindow flag (and no Window Manager)?  In 
multiwindow mode each Xclient gets its own Windows Window, and hence will be 
included in the Alt-Tab cycle.

From: Laura McWilliams <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: cygwin alt-tab
Date: Mon, 25 Aug 2003 15:32:18 -0500 (CDT)
hello,

i'm a new cygwin user and i'm wondering if there's any way to cycle
through windows, like using alt-tab, because alt-tab is captured by the
OS.
i realize this issue has been touched on before
(http://sources.redhat.com/ml/cygwin-xfree/2003-07/msg00044.html)
but i'm throwing it out there because i couldn't find any descriptions of
a good solution.
i'm using WindowMaker, and i can't find any other key sequence that cycles
through the windows (although i think it would be a great solution if i
could use something like cntl-alt-tab to cycle through the windows in
the x window, and still allow alt-tab to cycle through Windows
applications)
so if anyone has any suggestions, please let me know. thankx

~L


_
Get MSN 8 and enjoy automatic e-mail virus protection.   
http://join.msn.com/?page=features/virus



Re: request for new feature

2003-08-02 Thread Thomas Chadwick
From: java java <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: request for new feature
Date: Sat, 2 Aug 2003 09:25:08 -0700 (PDT)
> What about Start->Run

> c:\cygwin\usr\X11R6\bin\xterm -display :0

> cgf

Thank you.

This works, but an extra window pops up with title
C:\cygwin\usr\X11R6\bin\xterm.exe
Is is possible to get just the new xterm window to pop
up and not the extra window?  Could this be added as
right click menu option on the tray?


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Then give this a try...

Start->Run

c:\cygwin\usr\X11R6\bin\run /usr/X11R6/bin/xterm -display :0

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



Re: Need some help on running the server on cygwin, and clients on FreeBSD.

2003-04-05 Thread Thomas Chadwick
This thread might be of interest to you...

http://www.cygwin.com/ml/cygwin-xfree/2002-10/msg00091.html

From: Constantine <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Need some help on running the server on cygwin, and clients on 
FreeBSD.
Date: Thu, 03 Apr 2003 22:24:05 -0500

Hello!

I am trying to run the X server on my cygwin machine, and the clients on my 
FreeBSD 4.7 box. As of today, to start the session I need to:
1. type "startx"
2. type "xhost + 192.168.0.18"
3. right-click, exit.
4. open ssh session, set display to 192.168.0.1, and run startkde.

I do believe that this is a very complicated steps to follow, and I would 
highly appreciate if someone could explain, how could I set up the system 
to follow all these steps automatically.

A bit of the reference material I was trying to follow:
http://xfree86.cygwin.com/docs/ug/using-remote-session.html
http://www.xfree86.org/current/Xserver.1.html#sect6
http://www.xfree86.org/current/xdm.1.html
http://www.xs4all.nl/~zweije/xauth.html
On both Cygwin (192.168.0.1) and FreeBSD (192.168.0.18) I use XFree86 4.2.0 
(165).

Thank you.
Constantine.


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



Re: Remote Session mouse problems

2003-03-10 Thread Thomas Chadwick
Most likely NumLock is on.  Here's a google search of the cygwin ML archives 
for "numlock", where you'll find plenty of discussion on why this causes 
problems.

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=numlock+site%3Acygwin.com&btnG=Google+Search


From: Nikolai Lusan <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Remote Session mouse problems
Date: Mon, 10 Mar 2003 03:11:43 +1000 (EST)
Hi,

I am trying to use cygwin/xfree86 to run XDMCP sessions from my linux
box. I am using the command
XWin -fullscreen -emulate3buttons -from 192.168.1.11 -query 192.168.1.1
-fp tcp/192.168.1.1:7100 -nowinkill -unixkill
The problem I have is that my mouse buttons do not work within xfree. I
can move the mouse around the screen and successfully use the keyboard
for input. This problem only arisies with my xdmcp sessions, local
sessions are fine.
I am using win98se with a 2 button ps2 mouse.

Does anybody have an idea what could cause this.


_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus



Re: script for remote window?

2003-03-05 Thread Thomas Chadwick
As for figuring out whether or not XWin is already running, it's as easy as 
"ps -ef | grep XWin".  For instance, the following "scriplet" will tell you 
whether XWin is running...

if [ "`ps -ef | grep XWin`" == "" ]
then
 echo "XWin is not running."
else
 echo "XWin is running."
fi

From: "Thomas Chadwick" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: script for remote window?
Date: Wed, 05 Mar 2003 15:52:58 -0500
The following post I made some time ago might be helpful...

http://sources.redhat.com/ml/cygwin-xfree/2002-10/msg00091.html

From: "Les Mikesell" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: script for remote window?
Date: Tue, 4 Mar 2003 12:43:33 -0600
The new -multiwindow mode looks really promising for
occasional access to unix GUI programs from a windows
box.  Is there any way to completely hide the process
of connecting in a batch file or bash script that can
be attached to a windows desktop icon?  That is, it
should start xwin (only) if it isn't already running,
The then ssh the appropriate command to a remote host with
X forwarding.  If ssh keys are in place the window
should just appear without much indication that it is
remote, otherwise it would have to stop for the ssh
password prompt. How can such a script tell at the
batch or bash level if xwin is already running?
---
  Les Mikesell
[EMAIL PROTECTED]


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



Re: script for remote window?

2003-03-05 Thread Thomas Chadwick
The following post I made some time ago might be helpful...

http://sources.redhat.com/ml/cygwin-xfree/2002-10/msg00091.html

From: "Les Mikesell" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: script for remote window?
Date: Tue, 4 Mar 2003 12:43:33 -0600
The new -multiwindow mode looks really promising for
occasional access to unix GUI programs from a windows
box.  Is there any way to completely hide the process
of connecting in a batch file or bash script that can
be attached to a windows desktop icon?  That is, it
should start xwin (only) if it isn't already running,
The then ssh the appropriate command to a remote host with
X forwarding.  If ssh keys are in place the window
should just appear without much indication that it is
remote, otherwise it would have to stop for the ssh
password prompt. How can such a script tell at the
batch or bash level if xwin is already running?
---
  Les Mikesell
[EMAIL PROTECTED]


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



Re: laptop performace

2003-02-28 Thread Thomas Chadwick
Back in January I noticed the performance of Cygwin, and Cygwin/Xfree86 in 
particular, went down the tubes.  I posted to the general cygwin mailing 
list since all things cygwin were affected.  Here's a link to the root of 
the thread.  You can follow it to conclusion by hitting the "Thread Next" 
link.

http://www.cygwin.com/ml/cygwin/2003-01/msg00353.html

From: Thor Anders Aarhaug <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: laptop performace
Date: 28 Feb 2003 13:42:03 +0100
hi,

just installed 1.3.20-1 on one laptop and one stationary.  full
install on both, no modifications.
I experience a slow performance on the laptop, FS Lifebook E 2.2 GHz
with a Ati Radeon Mobility 7500.  for instance, emacs hardly starts
(unless i put it in the startxwin.bat) and the screen updates are
slow.
I tried messing with the -depth  and -refresh parameters to no avail.

my Dell Optiplex 1.8 GHz shows a completely different behaviour.

I was looking for hardware drivers, but could not find any.

suggestions?

TAA


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: numlock

2003-02-08 Thread Thomas Chadwick
Just had a thought.  Make sure NumLock is OFF when you run the 'xmodmap -e 
"clear mod2"' command.  Otherwise, it will get stuck in the ON state.

Also, run xev and hit a keypad key other than NumLock.  If you've properly 
cleared NumLock from the keypad, all numeric keypad keypresses will have a 
state of 0x0 whether NumLock (as indicated by the status light on the 
keyboard itself) is ON or OFF.  Normally you'd get a status of 0x0 when 
NumLock is OFF and 0x10 when NumLock is ON.

From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: numlock
Date: Fri, 07 Feb 2003 09:23:34 +

Hi Thomas,

Thanks for your reply. I get the same as you if I run xmodmap -pm. Also if 
I do: xmodmap -e "clear mod2" that clears mod2, but on the XDM login screen 
I still can't type any letters.

Here's the value of the NumLock key before clearing mod2:

KeyRelease event, serial 21, synthetic NO, window 0x61,
   root 0x36, subw 0x0, time 3663237, (570,393), root:(576,418),
   state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
   XLookupString gives 0 characters:  ""

Here's the value after clearing mod2:

KeyRelease event, serial 21, synthetic NO, window 0x61,
   root 0x36, subw 0x0, time 3594839, (105,139), root:(111,164),
   state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
   XLookupString gives 0 characters:  ""

The state value seems to be the same.

JS.


Actually, the instructions were mine, not Harold's (they were in response 
to a note from Harold).

Try this...

Start X without the NumLock modification.  In an xterm, run "xmodmap -pm". 
 You should see something that resembles the following:

xmodmap:  up to 2 keys per modifier, (keycodes in parentheses):

shift   Shift_L (0x32),  Shift_R (0x3e)
lockCaps_Lock (0x42)
control Control_L (0x25),  Control_R (0x6d)
mod1Alt_L (0x40),  Alt_R (0x71)
mod2Num_Lock (0x4d)
mod3
mod4
mod5Scroll_Lock (0x4e)


If "Num_Lock" shows up next to something other than mod2, then you'll need 
to change what comes after "clear" when you run xmodmap.

Alternatively, you might experiment with the following scriptlet which 
tries to figure out which mod key is assigned to NumLock...

numlock=`xmodmap -pm | grep -i num_lock | awk '{print $1}'`
if [ "$numlock" != "" ]
then
 xmodmap -e "clear $numlock" ${HOME}/.Xmodmap
fi


Of course, if your NumLock key was already assigned to mod2, then I'm not 
sure what's going on.  You might want to experiment with running xev.  If 
you've cleared NumLock from the keymap, then the value of "state" inside a 
KeyPress/Release event resulting from pressing a key on the numeric keypad 
should be 0x0 regardless of whether NumLock is on or off.


From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: numlock Date: Thu, 06 Feb 2003 10:46:58 +

Is there a way to run XFree with the numlock key on without stopping the 
keys from working? I followed the instructions from Harold's post at:

http://www.cygwin.com/ml/cygwin-xfree/2002-06/msg00307.html

but that solution didn't seem to work for me.

Thanks,

JS.



_
Surf together with new Shared Browsing 
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


_
Stay in touch with absent friends - get MSN Messenger 
http://messenger.msn.co.uk


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: numlock

2003-02-06 Thread Thomas Chadwick
Actually, the instructions were mine, not Harold's (they were in response to 
a note from Harold).

Try this...

Start X without the NumLock modification.  In an xterm, run "xmodmap -pm".  
You should see something that resembles the following:

xmodmap:  up to 2 keys per modifier, (keycodes in parentheses):

shift   Shift_L (0x32),  Shift_R (0x3e)
lockCaps_Lock (0x42)
control Control_L (0x25),  Control_R (0x6d)
mod1Alt_L (0x40),  Alt_R (0x71)
mod2Num_Lock (0x4d)
mod3
mod4
mod5Scroll_Lock (0x4e)


If "Num_Lock" shows up next to something other than mod2, then you'll need 
to change what comes after "clear" when you run xmodmap.

Alternatively, you might experiment with the following scriptlet which tries 
to figure out which mod key is assigned to NumLock...

numlock=`xmodmap -pm | grep -i num_lock | awk '{print $1}'`
if [ "$numlock" != "" ]
then
 xmodmap -e "clear $numlock" ${HOME}/.Xmodmap
fi


Of course, if your NumLock key was already assigned to mod2, then I'm not 
sure what's going on.  You might want to experiment with running xev.  If 
you've cleared NumLock from the keymap, then the value of "state" inside a 
KeyPress/Release event resulting from pressing a key on the numeric keypad 
should be 0x0 regardless of whether NumLock is on or off.


From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: numlock Date: Thu, 06 Feb 2003 10:46:58 +

Is there a way to run XFree with the numlock key on without stopping the 
keys from working? I followed the instructions from Harold's post at:

http://www.cygwin.com/ml/cygwin-xfree/2002-06/msg00307.html

but that solution didn't seem to work for me.

Thanks,

JS.



_
Surf together with new Shared Browsing 
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail



Re: startx: Malformed file inquiry

2003-01-30 Thread Thomas Chadwick
What happens if you run xinit directly (instead of via startx)?  For quite 
some time now I have been launching Cygwin/XFree86 via xinit without a hitch 
(no need to use startx IMHO).  More info in the ML archives...

http://www.cygwin.com/ml/cygwin-xfree/2002-10/msg00091.html

From: Shing-Fat Fred Ma <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: startx: Malformed file inquiry
Date: Wed, 29 Jan 2003 13:41:54 -0500

> From: Alexander Gottwald
> To: cygwin-xfree at cygwin dot com
> Date: Wed, 29 Jan 2003 12:49:28 +0100 (MET)
> Subject: Re: startx: Malformed file inquiry
> Reply-to: cygwin-xfree at cygwin dot com
>
> 

>
> On Wed, 29 Jan 2003, Shing-Fat Fred Ma wrote:
>
> > > + xinit /home/Name/.xinitrc --
> > >
> > > if: Malformed file inquiry.
>
> /home/Name/.xinitrc seems to be the problem.
>
> bye
>  ago
>

I first thought so too.  But I get the exact same diagnostic
text even if I run startx from  /usr/X11R6/bin, upto and
including

> > + xinit /home/Name/.xinitrc --


So ~/.xinitrc is being sourced in both cases.  And
.xinitrc was just a copy of /etc/X11/xinit/xinitrc.
I added a line at the beginning to echo the path,
but the never gets executed.  So I don't think the
error is caused by a problem with ~/.xinitrc (aside
from the fact that the same the safe file gets
sourced when I successfully run startx from
/usr/X11R6/bin).  I think it might be the xinit executable
itself, since that's the only code that runs before
.xinitrc.

I presume that people have tried startx from their
home directory and got it working?  Just looking for
a few responses as a sanity check.

Thanks.

Fred

--
Fred Ma, [EMAIL PROTECTED]
Carleton University, Dept. of Electronics
1125 Colonel By Drive, Ottawa, Ontario
Canada, K1S 5B6


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



Re: 8 bit fullscreen still problematic

2003-01-08 Thread Thomas Chadwick
Have you tried dropping the Windows Desktop down to 256 colors and running 
XWin WITHOUT the -engine or -fullscreen flags?  When all else fails, this 
usually works (but of couse has the undesireable effect of making your 
Windows programs look ugly).

From: Staf Verhaegen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: 8 bit fullscreen still problematic
Date: Wed, 08 Jan 2003 10:57:47 +0100

Hello,

I still have problems with 8 bit of XFree86. I'm using the latest version 
available with setup. Also checked to see if there are conflicting 
cygwin.dlls and this is not the case. I'm running on an NT4 machine.
I try to start XWin in fullscreen mode with a depth of 8. (Xwin -fullscreen 
-depth 8).
With engine 1 the XWin crashes.
With engine 2 and 4 is starts up but I only get a black and white display 
when doing XDMCP to RH7.2 with gdm or to HPUX10.20 with CDE. (screen grabs 
are available and I will post them on request, around 40KB in total).
The problem is that cadence Virtuoso needs an 8 bit display. I tried 
running 24bit XWin with -emulatepseudo option but then the program still 
complains that it can't handle 24 planes.

greets,

++-+
|Staf Verhaegen ([EMAIL PROTECTED]) |ADRESS: IMEC vzw. - ASP/LITHO|
|tel: 016/ 281 783   |Kapeldreef 75|
|fax: 016/ 281 214   |3001 Leuven (Belgium)|
++-+
 For every tool there are at least 2 uses: the one it was designed for
 and the other for which it wasn't.


_
Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail



Re: startxwin.bat - errors after that

2002-12-19 Thread Thomas Chadwick
From: "Konstantin N. Kudin" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: startxwin.bat - errors after that
Date: Wed, 18 Dec 2002 14:22:04 -0600 (CST)

 Hello all,

 I've tried to upgrade Cygwin and started to run into problems when
starting X via startxwin.bat Once it is started and I get the X windows
and an xterm, I tried to open another xterm by typing >xterm &
However, it gives the followling error message that I have not seen
before:

  7 [main] xterm 1772 sync_with_child: child 1808(0x48C) died before
initialization with status code 0x80
   4484 [main] xterm 1772 sync_with_child: *** child state child loading
dlls
xterm: Error 29, errno 11: Resource temporarily unavailable

 Earlier versions of Cygwin/Xfree worked fine. Thinking that the
installation packages might have gotten corrupted, I did a clean download
and reinstall. This did not change a thing, I still get the same error
message. The system is W2k with SP2. It is weird that Cygwin did not
create my user name during the initialization so I had to edit the
/etc/passwd file to put it there. Also I changed my default shell to
/usr/bin/tcsh. This is probably irrelevant however.


Just a shot in the dark here.  Do a search on your system for the file 
"cygwin1.dll".  Make sure there is only one, and that it's in the cygwin 
tree (c:\cygwin\usr\bin\cygwin1.dll by default).

 The startx command still seem to work fine. I would like to pass some
options to XWin as I did before with the startxwin.bat file, however, I am
not sure how to do this via startx.

 Any suggestions/help is appreciated!

 Regards,
 Konstantin


Running "man startx" from a bash prompt tells you everything you could ever 
want to know about startx.  In short, to pass parameters to the XServer, use 
this syntax "startx -- -serverparm".  For example:

 startx -- -rootless

tells startx to tell XWin to start in rootless mode.


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



Re: Failed to open input method

2002-12-19 Thread Thomas Chadwick
You know, after sending this reply I actually went and read the FAQ I was 
pointing you to.  It looks to be quite out of date in that it refers to the 
Xinstall.sh script, which is not how XFree86 is installed any more.

What you need to do is run the Cygwin Setup program, and on the 3rd screen, 
there is a pair of radio buttons under the label "Default Text File Type".  
Make sure "Unix" is picked, not "DOS".

From: "Thomas Chadwick" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: Failed to open input method
Date: Thu, 19 Dec 2002 10:44:35 -0500

The "Could not init font path ..." error is in the FAQ:

http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-removing-font-path-element

Don't know if the "Xlib locale" business is a side-effect of the font 
problem, or something else.


From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Failed to open input method
Date: Wed, 18 Dec 2002 17:57:18 +

Hi,

Could anyone help me with this problem please? I keep getting the 
following messages after upgrading XFree86:

$ xterm
Warning: locale not supported by C library, locale unchanged
Warning: locale not supported by Xlib, locale set to C
Warning: X locale modifiers not supported, using default
Failed to open input method

The Xwin.log says:

winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 
bpp 24
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winScreenInit - returning
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" Options 
= "(n
ull)"
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, 
removing from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing 
from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, 
removing from
list!

I have the following entries in my .inputrc file in my home directory to 
enable UK keyboards:

set meta-flag on
set convert-meta off
set output-meta on

but the pound sign doesn't print anything now as well. I presume that's 
related to this problem.

Thanks for any help

JS.


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: Failed to open input method

2002-12-19 Thread Thomas Chadwick
The "Could not init font path ..." error is in the FAQ:

http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-removing-font-path-element

Don't know if the "Xlib locale" business is a side-effect of the font 
problem, or something else.


From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Failed to open input method
Date: Wed, 18 Dec 2002 17:57:18 +

Hi,

Could anyone help me with this problem please? I keep getting the following 
messages after upgrading XFree86:

$ xterm
Warning: locale not supported by C library, locale unchanged
Warning: locale not supported by Xlib, locale set to C
Warning: X locale modifiers not supported, using default
Failed to open input method

The Xwin.log says:

winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 
bpp 24
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winScreenInit - returning
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" Options 
= "(n
ull)"
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing 
from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing 
from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing 
from
list!

I have the following entries in my .inputrc file in my home directory to 
enable UK keyboards:

set meta-flag on
set convert-meta off
set output-meta on

but the pound sign doesn't print anything now as well. I presume that's 
related to this problem.

Thanks for any help

JS.


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



Re: 8 bit PseudoColor problem

2002-12-08 Thread Thomas Chadwick
From: Charles Wilson <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: 8 bit PseudoColor problem
Date: Sun, 08 Dec 2002 04:28:39 -0500

Harold L Hunt II wrote:


I wouldn't say that PseudoColor support is sketchy.  I mean, it works fine
either in fullscreen or if you are running Windows in 8 bit color mode.
Granted, PseudoColor is not available when you are running in windowed 
mode
with Windows set at higher than 8 bit color.

Correct.


Are you telling me that Cadence still does not work with Cygwin/XFree86 
even
when you are using one of the two options outlined above?  That would be
disappointing because I did put a lot of time into the PseudoColor support
and I was pretty certain that it was working properly.  Hmm...

Well, it's also the fact that *cadence* uses PsuedoColor poorly.  It wants 
a private colormap, which means lots of fun colorflashing, unless you have 
support for multiple 256color psuedocolor maps within the same display.  
AFAIK, only Solaris's Xserver actually implements this.

Now, Cadence is ALSO ugly when hosted by XWin32.  *But*, because Xwin32 
supports multiple windows, the ugliness only affects cadence, and not any 
other windows you might have open.  In my case, if I'm using an Xserver in 
"full screen" mode, then I tend to open up xterms and other windows inside 
it -- which means they all get affected by the 8bit colorflashing.

OTOH, if I'm Xhosting an app using an Xserver that supports multiple 
windows, then I open up cygwin rxvt (native) rxvt windows, and native 
windows editors, etc.  And only cadence is affected by the 8bit issue -- so 
it's tolerable.

As I said, it has been a long time since I've tried it using the 
cygwin-xfree server, but that's my recollection.

--Chuck

If you don't like the color flashing, perhaps you could mitigate it by 
running 2 instances of XWin on 2 different screen numbers?  If you shift the 
Windows desktop into 8-bit color mode and run both instances of XWin in 
rootless mode, you'd hardly know that you were running 2 different servers 
(except you'll have to take care to get the DISPLAY variable set just 
right).

Just my $0.02.


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: XWin.exe <--> xinit link

2002-11-18 Thread Thomas Chadwick
xinit does 2 things - it launches the X server and then one or more X 
clients.

If you want to customize the X client part (including the Window Manager), 
create/modify/edit the file $HOME/.xinitrc.

If you want to customize the X server part, create/modify/edit the file 
$HOME/.xserverrc.

Alternatively, you can pass command-line options to the X server by 
specifying them on xinit's command-line after "--".  For example, "xinit -- 
-rootless" will cause XWin to startup in rootless mode.


As for the console window, there is no way to avoid it being there until 
xinit completes, which doesn't happen until after the X server shuts down.  
This is really no different than if you use a  Windows batchfile to fire up 
XWin and one or more local X clients.  It's a "necessary evil".


From: Pavel Holejsovsky <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: XWin.exe <--> xinit link
Date: Mon, 18 Nov 2002 10:10:40 +0100

I think you are looking for $HOME/.xserverrc file. E.g. mine contains:

#! /bin/sh
X -nowinkill -nodecoration -lesspointer -rootless

BTW, this all seems to be documented in xinit man page, as pointed out by 
Thomas.

Pavel

[EMAIL PROTECTED] wrote:
Thanks Thomas,

	The thing is, no matter what I put in those files, it either starts XWin
with a border, or not at all.

	And when I do get it to start up, there is always a console mode window
hanging around until I close it, and that closes XWin...

	*sigh* I AM trying to understand how all this stuff fits together, but 
I'm
not having very much luck.


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On
Behalf Of Thomas Chadwick
Sent: Sunday, November 17, 2002 10:41 PM
To: [EMAIL PROTECTED]
Subject: RE: XWin.exe <--> xinit link

RTFM!  Do "man xinit" from the Cygwin command-line and read the 1st 3
paragraphs.


From: Jean-Claude Gervais <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: XWin.exe <--> xinit link
Date: Sat, 16 Nov 2002 10:08:07 -0500

Thanks Artur,

 But that's not quite the info I was looking for;

 You see, when I type startxwin.bat or startxwin.sh, I get a


DIFFERENT


result than from starting xinit by itself.

 Yet, xinit does start XWin, only it is starting it in windowed


mode...


Which is OK, but I'm just wondering WHERE does xinit get this from? Is it
executing a script?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Artur Hefczyc
Sent: Saturday, November 16, 2002 9:56 AM
To: [EMAIL PROTECTED]
Subject: Re: XWin.exe <--> xinit link



What parameters does it use to start XWin? Where does it get the


parameters?
You can find manual and parameters for XWin from command:
man XWin



Is it executing a script?


/usr/X11R6/bin/startxwin.bat
/usr/X11R6/bin/startxwin.sh

Artur Hefczyc
--
Artur Hefczyc
http://wttools.sf.net/




_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail




_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



RE: XWin.exe <--> xinit link

2002-11-17 Thread Thomas Chadwick
RTFM!  Do "man xinit" from the Cygwin command-line and read the 1st 3 
paragraphs.

From: Jean-Claude Gervais <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: XWin.exe <--> xinit link
Date: Sat, 16 Nov 2002 10:08:07 -0500

Thanks Artur,

	But that's not quite the info I was looking for;

	You see, when I type startxwin.bat or startxwin.sh, I get a DIFFERENT
result than from starting xinit by itself.

	Yet, xinit does start XWin, only it is starting it in windowed mode...
Which is OK, but I'm just wondering WHERE does xinit get this from? Is it
executing a script?


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On
Behalf Of Artur Hefczyc
Sent: Saturday, November 16, 2002 9:56 AM
To: [EMAIL PROTECTED]
Subject: Re: XWin.exe <--> xinit link

> What parameters does it use to start XWin? Where does it get the
parameters?
You can find manual and parameters for XWin from command:
man XWin

> Is it executing a script?
/usr/X11R6/bin/startxwin.bat
/usr/X11R6/bin/startxwin.sh

Artur Hefczyc
--
Artur Hefczyc
http://wttools.sf.net/


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



RE: Newbie question -

2002-11-16 Thread Thomas Chadwick
The problem with what you describe is that you can have 1 and only 1 window 
manager per X display at a time.  In other words, you can't connect through 
XDMCP, which launches a window manager, and then launch a local window 
manager on the same display.

I don't see what would be wrong with running 2 instances of XWin.  You could 
start the first one with DISPLAY=:0, and do the XDMCP query and all that.  
The second instance of XWin could be on DISPLAY=:1 and launch a local window 
manager.  The only thing that would give away the fact that they are not the 
same DISPLAY would be the fact that they would apear to occupy different 
"planes" in the "z-axis".

You should be able to make this relatively seemless in your "startxwin" 
script.

Come to think of it, an alternative to launching a second XWin instance 
would be to use the Windows Start button to launch local X apps.  As I've 
seen mentioned here before, you should be able to write a simple 
"startxapp.bat" script which sets the path, DISPLAY, etc. and then runs an x 
app that can be passed in as a command-line argument.  You could then create 
a group off the Start button with a different shortcut for each X app you 
want to be able to launch.

The drawback to this would be that you'll get a separate icon for each local 
X app launched in this manner which, when un-minimized, is nothing but an 
empty box.

From: Jean-Claude Gervais <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Newbie question -
Date: Fri, 15 Nov 2002 18:45:05 -0500

Hi Harold!

	OK, I'll tell you what I'm up to:

What I do these days is start XWin -rootless -query host
I have the host set up so that I log in using gnome, and I have set the
remote Gnome to NOT set a background. That way, all I have is the Gnome
taskbar, which I dock on the top of my monitor while the Windows taskbar is
docked at the bottom of the monitor.

That way, it really is quite like being logged onto both computers
simultaneously.

The only thing is, I haven't figured out how to run local X applications at
the same time. I'd like WindowMaker's desktop launcher come up on the
display also. I could probably run a bash shell as a Windows console mode
app and from it start some X applications, but this seems inelegant.

I'm trying to get all three at the same time, and then, (hopefully) hook
Xwinclip into the chain and be able to paste data from one computer to
another...

Does that sound cogent? I can't really be sure, often I've noticed there 
are
even better ways of doing what I want with *nix, only I am still ignorant 
of
many of them.

Thanks



-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On
Behalf Of Harold L Hunt II
Sent: Friday, November 15, 2002 5:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbie question -

Jean-Claude,

No.

XDMCP manages your entire X Windows session.  Either you use it at
startup or you don't use it at all.

If all you want is a local window manager and remote applications, then
you should launch XWin with your local window manager, then ssh into
your remote host with X forwarding enabled and launch your X Clients in
the background (e.g. ``xterm&'').

What did you envision would happen if you were running a local window
manager and you logged into a remote XDMCP session at the same time,
assuming that this was possible?  Did you assume that the window
managers would share the screen, that a new window would popup with the
XDMCP session?  What were you envisioning?

Harold

Harold

Jean-Claude Gervais wrote:

>Is there a way to invoke XDMCP AFTER the fact?
>Once I have started a local window manager, I'd like to do an XDMCP 
query,
>but running XWin again creates a second instance of X that is independent
of
>my current window session.
>I tried running XDM ?!? And it replies only root wants to run xdm... But
>there is no user called root on my system...
>Thanks.
>
>
>


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



Re: Emacs in XWin is performing oddly

2002-11-13 Thread Thomas Chadwick
On Tue, 12 Nov 2002, Alexander Gottwald  wrote:

I have installed all of the cygwin emacs packages and I now am
experiencing problems with emacs with the X server.  Launching emaces
causes one of the following:

1) the application never displays its window (CPU utilization to >100%)
2) the application displays its window but it is unresponsive (CPU
utilization to 100%)
3) About 1 in 4 times it runs correctly even after a clean reboot of the
PC


Has anyone tested cygwin emacs with linux xserver?

Does the same happen?


I don't have a Linux X-server nearby, but I do have AIXWindows running 
nearby.  I changed my DISPLAY variable and launched emacs.  It popped up 
very quickly on the AIXWindows display (much faster than I normally see in 
the XWin server).  However, pointer movement on the target display was 
sluggish, and the Win2k Task Manager says it is using upwards of 95% CPU all 
the time.

There is definitely something wrong with emacs in X11 mode, and I think this 
experiment shows that it's a client-side problem, not server-side.


_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail



RE: an idea for building win32 based xfd

2002-11-13 Thread Thomas Chadwick
Please let me have your comments on my idea that
aims to build win32 based x font server which is capable of
exporting fonts installed on a Windows machine.
By using this server, cygwin/xfree users do not need to
install X-specific fonts aside from Windows fonts.
This server is expected to behave as xfd. So any X server
will benefit from this server.
Since font installation is done in Windows side, almost no
font configuration effort is required in X side.
I'd like to have your opinion about this. I guess this kind of
idea has already poped up in many peoples' mind.
There might be a similar project or software proposed by
someone else before...
Any comment?

Thanks,
Taishin


First of all, don't you mean xfs, not xfd?

Secondly, how is this different from running the stock xfs that's in the 
XFree86 distro using free-type to support the Windows fonts?


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



[ATTN: Harold] RE: Problem with keymap under cygwin-xfree

2002-11-08 Thread Thomas Chadwick
Strange.  I was under the impression that pressing "1" gave you nothing.  
Given that you're pressing "1" and getting the same keycode as if you 
pressed "h" is definitely strange.  Time for Harold to get involved with 
this one.

From: "Harris, Shane" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: Problem with keymap under cygwin-xfree
Date: Thu, 7 Nov 2002 13:18:49 -0800

Device Manager identifies it as a Standard 101/102-Key.
The problem with the workaround is that pressing the '1' key reports as
keycode 43 and generates an h.
Pressing an 'h' also reports as keycode 43 and generates an h.
Hence, if I remap keycode 43, I now have a 1, but no h.
This is so freakin mystifying. Why would two keys report the same keycode
when pressed??


-Original Message-
From: Thomas Chadwick [mailto:j_tetazoo@;hotmail.com]
Sent: Thursday, November 07, 2002 12:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Problem with keymap under cygwin-xfree


Looking at XWin.log, I can tell you're using an XF86Config file.  However,
your settings seem to match mine, which is good, I think, since I don't use
an XF86Config file at all (resulting in defaults).

Since xev is telling us that the X server is at least getting the
keystrokes, a work-around would be to systematically figure out the 
keycodes

using xev, and then add them to your .Xmodmap file.

For instance, if xev reports that pressing the "1" key gives you keycode
200, then put "keycode 200 = 1 exclam" in .Xmodmap.

As for the root cause?  I'm at a loss to explain it.  However, I'm not
exactly an expert on the subject, so hopefully someone else on the list may
be able to figure it out.

One other thought: Maybe your keyboard isn't a "standard 101/102-key
keyboard"?  What does the Windows Device Manager identify your keyboard as?

>From: "Harris, Shane" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Problem with keymap under cygwin-xfree
>Date: Thu, 7 Nov 2002 08:41:22 -0800
>
>Thank you. I have made sure NumLock And CapsLock are OFF. I have attached
>the output of xev when I strike the keys 0-9, backspace, -, = and tab. I
>included some of the standard letter keys which do, in fact, work.  Also
>attached is /tmp/Xwin.log.
>
>One thing I did try in all of this was ensuring I had a valid 104 key us 
pc
>.Xmodmap in ~.
>that produced exactly the same results I am seeing now.
>
>Thanks.
>
>-Original Message-
>From: Thomas Chadwick [mailto:j_tetazoo@;hotmail.com]
>Sent: Wednesday, November 06, 2002 6:12 PM
>To: [EMAIL PROTECTED]
>Subject: Re: Problem with keymap under cygwin-xfree
>
>
>Make sure NumLock and CapsLock are both OFF.  That can sometimes cause
>problem with certain X clients.
>
>If that's not the culprit, try running xev and see if X is even getting 
the
>keypress events.  If xev spews a bunch of messages when pressing one of 
the
>keys in questions, cut-and-paste them to the list and we'll have a
>look-see.
>
>One other thing, post the contents of /tmp/XWin.log.
>
> >From: "Harris, Shane" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: Problem with keymap under cygwin-xfree
> >Date: Wed, 6 Nov 2002 15:35:37 -0800
> >
> >I have looked all over the list archive for the answer to this, with no
> >results. So I am going to ask. Apologies if this has been covered
>somewhere
> >before.
> >
> >I am having a maddening problem with xfree86 not recognizing some keys 
on
> >my
> >keyboard. And what is odd about this is that they are just the number
>keys
> >(not the number pad), the backspace key and the tab key that appear to
>not
> >be recognized. These keys work in other win32 applications, as well as
>the
> >cygwin bash shell. I am at a total loss on this. If anyone can help, it
> >would be much appreciated.
>
>
>_
>Add photos to your messages with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
><< XWin.log >>
><< xev.log >>


_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



RE: Problem with keymap under cygwin-xfree

2002-11-07 Thread Thomas Chadwick
Looking at XWin.log, I can tell you're using an XF86Config file.  However, 
your settings seem to match mine, which is good, I think, since I don't use 
an XF86Config file at all (resulting in defaults).

Since xev is telling us that the X server is at least getting the 
keystrokes, a work-around would be to systematically figure out the keycodes 
using xev, and then add them to your .Xmodmap file.

For instance, if xev reports that pressing the "1" key gives you keycode 
200, then put "keycode 200 = 1 exclam" in .Xmodmap.

As for the root cause?  I'm at a loss to explain it.  However, I'm not 
exactly an expert on the subject, so hopefully someone else on the list may 
be able to figure it out.

One other thought: Maybe your keyboard isn't a "standard 101/102-key 
keyboard"?  What does the Windows Device Manager identify your keyboard as?

From: "Harris, Shane" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: Problem with keymap under cygwin-xfree
Date: Thu, 7 Nov 2002 08:41:22 -0800

Thank you. I have made sure NumLock And CapsLock are OFF. I have attached
the output of xev when I strike the keys 0-9, backspace, -, = and tab. I
included some of the standard letter keys which do, in fact, work.  Also
attached is /tmp/Xwin.log.

One thing I did try in all of this was ensuring I had a valid 104 key us pc
.Xmodmap in ~.
that produced exactly the same results I am seeing now.

Thanks.

-Original Message-
From: Thomas Chadwick [mailto:j_tetazoo@;hotmail.com]
Sent: Wednesday, November 06, 2002 6:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem with keymap under cygwin-xfree


Make sure NumLock and CapsLock are both OFF.  That can sometimes cause
problem with certain X clients.

If that's not the culprit, try running xev and see if X is even getting the
keypress events.  If xev spews a bunch of messages when pressing one of the
keys in questions, cut-and-paste them to the list and we'll have a 
look-see.

One other thing, post the contents of /tmp/XWin.log.

>From: "Harris, Shane" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Problem with keymap under cygwin-xfree
>Date: Wed, 6 Nov 2002 15:35:37 -0800
>
>I have looked all over the list archive for the answer to this, with no
>results. So I am going to ask. Apologies if this has been covered 
somewhere
>before.
>
>I am having a maddening problem with xfree86 not recognizing some keys on
>my
>keyboard. And what is odd about this is that they are just the number 
keys
>(not the number pad), the backspace key and the tab key that appear to 
not
>be recognized. These keys work in other win32 applications, as well as 
the
>cygwin bash shell. I am at a total loss on this. If anyone can help, it
>would be much appreciated.


_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

<< XWin.log >>
<< xev.log >>


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: Problem with keymap under cygwin-xfree

2002-11-06 Thread Thomas Chadwick
Make sure NumLock and CapsLock are both OFF.  That can sometimes cause 
problem with certain X clients.

If that's not the culprit, try running xev and see if X is even getting the 
keypress events.  If xev spews a bunch of messages when pressing one of the 
keys in questions, cut-and-paste them to the list and we'll have a look-see.

One other thing, post the contents of /tmp/XWin.log.

From: "Harris, Shane" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Problem with keymap under cygwin-xfree
Date: Wed, 6 Nov 2002 15:35:37 -0800

I have looked all over the list archive for the answer to this, with no
results. So I am going to ask. Apologies if this has been covered somewhere
before.

I am having a maddening problem with xfree86 not recognizing some keys on 
my
keyboard. And what is odd about this is that they are just the number keys
(not the number pad), the backspace key and the tab key that appear to not
be recognized. These keys work in other win32 applications, as well as the
cygwin bash shell. I am at a total loss on this. If anyone can help, it
would be much appreciated.


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



Re: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2

2002-11-04 Thread Thomas Chadwick
By the way, this reponse was directed at Jean-Claude, not you, Harold.


From: "Thomas Chadwick" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2
Date: Mon, 04 Nov 2002 11:15:09 -0500

For kicks, I did some poking around at http://msdn.microsoft.com by 
searching on "multiple monitors".  Found lots of good reading.  You might 
want to do the same.

I noticed a hint that said something to the effect of "an application will 
try to create its window on the same monitor on which it's shortcut is 
located".

What happens if you run startxwin.bat via a shortcut on the secondary 
monitor?

From: Harold L Hunt II <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2
Date: Mon, 04 Nov 2002 10:49:09 -0500
MIME-Version: 1.0
Received: from sources.redhat.com ([209.249.29.67]) by 
mc3-f41.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 4 
Nov 2002 07:51:18 -0800
Received: (qmail 24961 invoked by alias); 4 Nov 2002 15:49:16 -
Received: (qmail 24899 invoked from network); 4 Nov 2002 15:49:15 -
Received: from unknown (HELO sargasso.cse.msu.edu) (35.9.20.10)  by 
sources.redhat.com with SMTP; 4 Nov 2002 15:49:15 -
Received: from msu.edu (ajboggs.tcimet.net [198.109.162.133])by 
sargasso.cse.msu.edu (8.12.5/8.12.5) with ESMTP id gA4Fn9fF024848for 
<[EMAIL PROTECTED]>; Mon, 4 Nov 2002 10:49:09 -0500 (EST)
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
<mailto:cygwin-xfree-unsubscribe-j_tetazoo=hotmail.com@;cygwin.com>
List-Subscribe: <mailto:cygwin-xfree-subscribe@;cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin-xfree/>
List-Post: <mailto:cygwin-xfree@;cygwin.com>
List-Help: <mailto:cygwin-xfree-help@;cygwin.com>, 
<http://sources.redhat.com/ml/#faqs>
Sender: [EMAIL PROTECTED]
Mail-Followup-To: [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) 
Gecko/20021014
X-Accept-Language: en-us, en
References: <00aa01c28415$14cbdec0$[EMAIL PROTECTED]>
In-Reply-To: <00aa01c28415$14cbdec0$[EMAIL PROTECTED]>
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 04 Nov 2002 15:51:18.0726 (UTC) 
FILETIME=[03C82660:01C2841A]

Jean-Claude,

No, there is not way for Cygwin/XFree86 to use the entire area of the 
dual-display; that is pretty much a limitation of DirectDraw, if I recall 
correctly (I seem to remember that a surface can only span a single 
physical monitor).  You could probably pass the ``-engine 1'' argument to 
use the GDI-based blitter, but that would still be limited to a single 
physical display because Cygwin/XFree86 trims the specified size to fit on 
the primary monitor.  We would need some sort of new command-line argument 
to indicate that the specified size is not to be trimmed in anyway, or we 
could have a flag that says to use the entire virtual desktop size.  I 
prefer the later.

In any case, some coding will need to happen before your request can be 
realized.

Harold

Jean-Claude Gervais wrote:

Great news Thomas,

	Um, since you know so much about dual-displays, maybe you could help me?

	I'm running Cygwin XFree on a machine inside which I have installed two
video cards; this in effect creates a really large Windows desktop.

	I'm just wondering if you know of any way to get the Cygwin XFree 
display
to either use the full desktop surface, or failing that, is there a way 
to
get Cygwin XFree to start up on the right-hand side of the display, 
because
it never seems to want to start on the second display...

Thanks in advance.


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:cygwin-xfree-owner@;cygwin.com]On
Behalf Of Thomas Chadwick
Sent: Monday, November 04, 2002 9:47 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2

ANNOUCEMENT

An update to the Cygwin/XFree86 package 'x2x' is now available.


DESCRIPTION

The usefulness of this utility will become apparent to anyone with a PC
side-by-side with an *ix workstation.  Simply bring up an XWindows 
session
on each machine, run x2x on the PC, and use your PC's mouse and keyboard 
to
control your *ix workstation's display.  Works better and is cheaper than 
a
KVM (Keyboard/Video/Mouse) switch.  It also works much like a 
multi-headed X
session.


RELEASE HISTORY

x2x-1.27-2 (current release):

   Bugfix and enhancement release.  Changes are:

   1) Fixed problem in which x2x consumes nearly 100% of the CPU.
  This was due to a problem in setting up a call to select(),
  which was causing it to be non-blocking.

   2) Added some includes and clea

Re: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2

2002-11-04 Thread Thomas Chadwick
For kicks, I did some poking around at http://msdn.microsoft.com by 
searching on "multiple monitors".  Found lots of good reading.  You might 
want to do the same.

I noticed a hint that said something to the effect of "an application will 
try to create its window on the same monitor on which it's shortcut is 
located".

What happens if you run startxwin.bat via a shortcut on the secondary 
monitor?

From: Harold L Hunt II <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2
Date: Mon, 04 Nov 2002 10:49:09 -0500
MIME-Version: 1.0
Received: from sources.redhat.com ([209.249.29.67]) by 
mc3-f41.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 4 Nov 
2002 07:51:18 -0800
Received: (qmail 24961 invoked by alias); 4 Nov 2002 15:49:16 -
Received: (qmail 24899 invoked from network); 4 Nov 2002 15:49:15 -
Received: from unknown (HELO sargasso.cse.msu.edu) (35.9.20.10)  by 
sources.redhat.com with SMTP; 4 Nov 2002 15:49:15 -
Received: from msu.edu (ajboggs.tcimet.net [198.109.162.133])by 
sargasso.cse.msu.edu (8.12.5/8.12.5) with ESMTP id gA4Fn9fF024848for 
<[EMAIL PROTECTED]>; Mon, 4 Nov 2002 10:49:09 -0500 (EST)
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
<mailto:cygwin-xfree-unsubscribe-j_tetazoo=hotmail.com@;cygwin.com>
List-Subscribe: <mailto:cygwin-xfree-subscribe@;cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin-xfree/>
List-Post: <mailto:cygwin-xfree@;cygwin.com>
List-Help: <mailto:cygwin-xfree-help@;cygwin.com>, 
<http://sources.redhat.com/ml/#faqs>
Sender: [EMAIL PROTECTED]
Mail-Followup-To: [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) 
Gecko/20021014
X-Accept-Language: en-us, en
References: <00aa01c28415$14cbdec0$[EMAIL PROTECTED]>
In-Reply-To: <00aa01c28415$14cbdec0$[EMAIL PROTECTED]>
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 04 Nov 2002 15:51:18.0726 (UTC) 
FILETIME=[03C82660:01C2841A]

Jean-Claude,

No, there is not way for Cygwin/XFree86 to use the entire area of the 
dual-display; that is pretty much a limitation of DirectDraw, if I recall 
correctly (I seem to remember that a surface can only span a single 
physical monitor).  You could probably pass the ``-engine 1'' argument to 
use the GDI-based blitter, but that would still be limited to a single 
physical display because Cygwin/XFree86 trims the specified size to fit on 
the primary monitor.  We would need some sort of new command-line argument 
to indicate that the specified size is not to be trimmed in anyway, or we 
could have a flag that says to use the entire virtual desktop size.  I 
prefer the later.

In any case, some coding will need to happen before your request can be 
realized.

Harold

Jean-Claude Gervais wrote:

Great news Thomas,

	Um, since you know so much about dual-displays, maybe you could help me?

	I'm running Cygwin XFree on a machine inside which I have installed two
video cards; this in effect creates a really large Windows desktop.

	I'm just wondering if you know of any way to get the Cygwin XFree display
to either use the full desktop surface, or failing that, is there a way to
get Cygwin XFree to start up on the right-hand side of the display, 
because
it never seems to want to start on the second display...

Thanks in advance.


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:cygwin-xfree-owner@;cygwin.com]On
Behalf Of Thomas Chadwick
Sent: Monday, November 04, 2002 9:47 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2

ANNOUCEMENT

An update to the Cygwin/XFree86 package 'x2x' is now available.


DESCRIPTION

The usefulness of this utility will become apparent to anyone with a PC
side-by-side with an *ix workstation.  Simply bring up an XWindows session
on each machine, run x2x on the PC, and use your PC's mouse and keyboard 
to
control your *ix workstation's display.  Works better and is cheaper than 
a
KVM (Keyboard/Video/Mouse) switch.  It also works much like a multi-headed 
X
session.


RELEASE HISTORY

x2x-1.27-2 (current release):

   Bugfix and enhancement release.  Changes are:

   1) Fixed problem in which x2x consumes nearly 100% of the CPU.
  This was due to a problem in setting up a call to select(),
  which was causing it to be non-blocking.

   2) Added some includes and cleaned-up some code to cut down
  on compiler warnings.

   3) Added a whole new feature!  Invoking x2d with a command-line
  flag of "-capslockhack"causes it to wrap Shift key Press/
  Release events around alpha keystrokes.  I discovered I
  needed thi

RE: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2

2002-11-04 Thread Thomas Chadwick
Sorry, can't help you.  I don't have this type of setup, so I've never 
encountered the problem you are seeing.

I know I've seen this very question posted to this mailing list in the past. 
 Perhaps you can find the answer you seek by searching the archives?  Tip: 
Try using google with "site:cygwin.com" as the last search term.

From: Jean-Claude Gervais <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2
Date: Mon, 04 Nov 2002 10:15:58 -0500
MIME-Version: 1.0
Received: from sources.redhat.com ([209.249.29.67]) by 
mc4-f19.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 4 Nov 
2002 07:18:35 -0800
Received: (qmail 28666 invoked by alias); 4 Nov 2002 15:18:28 -
Received: (qmail 28589 invoked from network); 4 Nov 2002 15:18:27 -
Received: from unknown (HELO VL-MS-MR002.sc1.videotron.ca) (24.201.245.36)  
by sources.redhat.com with SMTP; 4 Nov 2002 15:18:27 -
Received: from mercury ([24.200.89.140]) by VL-MS-MR002.sc1.videotron.ca 
(iPlanet Messaging Server 5.2 HotFix 0.9 (built Jul 29 2002)) with SMTP id 
<[EMAIL PROTECTED]> for [EMAIL PROTECTED]; 
Mon, 04 Nov 2002 10:17:27 -0500 (EST)
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
<mailto:cygwin-xfree-unsubscribe-j_tetazoo=hotmail.com@;cygwin.com>
List-Subscribe: <mailto:cygwin-xfree-subscribe@;cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin-xfree/>
List-Post: <mailto:cygwin-xfree@;cygwin.com>
List-Help: <mailto:cygwin-xfree-help@;cygwin.com>, 
<http://sources.redhat.com/ml/#faqs>
Sender: [EMAIL PROTECTED]
Mail-Followup-To: [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
In-reply-to: <[EMAIL PROTECTED]>
Message-id: <00aa01c28415$14cbdec0$[EMAIL PROTECTED]>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
X-Priority: 3 (Normal)
X-MSMail-priority: Normal
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 04 Nov 2002 15:18:35.0647 (UTC) 
FILETIME=[71B210F0:01C28415]

Great news Thomas,

	Um, since you know so much about dual-displays, maybe you could help me?

	I'm running Cygwin XFree on a machine inside which I have installed two
video cards; this in effect creates a really large Windows desktop.

	I'm just wondering if you know of any way to get the Cygwin XFree display
to either use the full desktop surface, or failing that, is there a way to
get Cygwin XFree to start up on the right-hand side of the display, because
it never seems to want to start on the second display...

Thanks in advance.


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:cygwin-xfree-owner@;cygwin.com]On
Behalf Of Thomas Chadwick
Sent: Monday, November 04, 2002 9:47 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2

ANNOUCEMENT

An update to the Cygwin/XFree86 package 'x2x' is now available.


DESCRIPTION

The usefulness of this utility will become apparent to anyone with a PC
side-by-side with an *ix workstation.  Simply bring up an XWindows session
on each machine, run x2x on the PC, and use your PC's mouse and keyboard to
control your *ix workstation's display.  Works better and is cheaper than a
KVM (Keyboard/Video/Mouse) switch.  It also works much like a multi-headed 
X
session.


RELEASE HISTORY

x2x-1.27-2 (current release):

Bugfix and enhancement release.  Changes are:

1) Fixed problem in which x2x consumes nearly 100% of the CPU.
   This was due to a problem in setting up a call to select(),
   which was causing it to be non-blocking.

2) Added some includes and cleaned-up some code to cut down
   on compiler warnings.

3) Added a whole new feature!  Invoking x2d with a command-line
   flag of "-capslockhack"causes it to wrap Shift key Press/
   Release events around alpha keystrokes.  I discovered I
   needed this feature because the "to" display I have uses the
   state of CapsLock on its attached keyboard to determine if
   CapsLock is on (instead of obeying the CapsLock Press/Release
   keyboard events).

x2x-1.27-1:

Initial Release.  Vendor code built and package as-is.


KNOWN BUGS

Doesn't "work" very well with the new rootless mode of XWin.
I plan to fix this in a future release.


INSTALLATION INSTRUCTIONS

To update your installation, click on the "Install Cygwin now" link on the
http://cygwin.com/ web page.  This downloads setup.exe to your system.  
Save
it and run setup, answer the questions and pick up 'x2x' from the 'XFree86'
category.  You may need to click the "Full" button if it doesn't show up.

Note that downloads from sources.redhat.c

[ANNOUNCEMENT] Updated Cygwin/XFree86 Package: x2x-1.27-2

2002-11-04 Thread Thomas Chadwick
ANNOUCEMENT

An update to the Cygwin/XFree86 package 'x2x' is now available.


DESCRIPTION

The usefulness of this utility will become apparent to anyone with a PC 
side-by-side with an *ix workstation.  Simply bring up an XWindows session 
on each machine, run x2x on the PC, and use your PC's mouse and keyboard to 
control your *ix workstation's display.  Works better and is cheaper than a 
KVM (Keyboard/Video/Mouse) switch.  It also works much like a multi-headed X 
session.


RELEASE HISTORY

x2x-1.27-2 (current release):

	Bugfix and enhancement release.  Changes are:

	1) Fixed problem in which x2x consumes nearly 100% of the CPU.
	   This was due to a problem in setting up a call to select(),
	   which was causing it to be non-blocking.

	2) Added some includes and cleaned-up some code to cut down
	   on compiler warnings.

	3) Added a whole new feature!  Invoking x2d with a command-line
	   flag of "-capslockhack"causes it to wrap Shift key Press/
	   Release events around alpha keystrokes.  I discovered I
	   needed this feature because the "to" display I have uses the
	   state of CapsLock on its attached keyboard to determine if
	   CapsLock is on (instead of obeying the CapsLock Press/Release
	   keyboard events).

x2x-1.27-1:

	Initial Release.  Vendor code built and package as-is.


KNOWN BUGS

	Doesn't "work" very well with the new rootless mode of XWin.
	I plan to fix this in a future release.


INSTALLATION INSTRUCTIONS

To update your installation, click on the "Install Cygwin now" link on the 
http://cygwin.com/ web page.  This downloads setup.exe to your system.  Save 
it and run setup, answer the questions and pick up 'x2x' from the 'XFree86' 
category.  You may need to click the "Full" button if it doesn't show up.

Note that downloads from sources.redhat.com (aka cygwin.com) aren't allowed 
due to bandwidth limitations.  This means that you will need to find a 
mirror which has this update.

In the US, ftp://archive.progeny.com/cygwin/ is a reliable high bandwidth 
connection.

In Japan, ftp://ftp.u-aizu.ac.jp/pub/gnu/gnu-win32/ is usually up-to-date.

In DK, http://mirrors.sunsite.dk/cygwin/ is usually up-to-date.

If one of the above doesn't have the latest version of this package you can 
either wait for the site to be updated or find another mirror.

Please send questions or comments to the Cygwin/XFree86 mailing list 
(mailto:cygwin-xfree@;sources.redhat.com).  If you want to subscribe go to 
http://cygwin.com/lists.html. I would appreciate it if you would use the 
mailing list rather than emailing me directly.  This includes ideas and 
comments about the setup utility or Cygwin/XFree86 in general.

If you want to make a point or ask a question, the Cygwin/XFree86 mailing 
list is the appropriate place.


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



RE: rootless mode and mousing to other windows

2002-11-01 Thread Thomas Chadwick
There was some discussion on the list a while back regarding this very 
thing.  They are now using the win32-x11 mailing list.  Here's a message 
announcing the genesis of the project:

http://www.cygwin.com/ml/win32-x11/2002-q3/msg00019.html

From: "Gerald S. Williams" <[EMAIL PROTECTED]>
To: "Thomas Chadwick" <[EMAIL PROTECTED]>,   "Harold L Hunt II" 
<[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: RE: rootless mode and mousing to other windows
Date: Fri, 1 Nov 2002 10:51:54 -0500
MIME-Version: 1.0
Received: from alageremail2.agere.com ([192.19.192.110]) by 
mc4-f34.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 1 Nov 
2002 07:51:55 -0800
Received: from alcerelay.agere.com (alcerelay.agere.com [128.94.213.32])by 
alageremail2.agere.com (8.10.2+Sun/8.10.2) with ESMTP id gA1FpsN15976;Fri, 
1 Nov 2002 10:51:55 -0500 (EST)
Received: from almail.agere.com by alcerelay.agere.com (8.9.3+Sun/EMS-1.5 
sol2)id KAA26797 for ; Fri, 1 Nov 2002 10:51:53 -0500 (EST)
Received: from PAI820G1006951 by almail.agere.com (8.9.3+Sun/EMS-1.5 
sol2)id KAA09272; Fri, 1 Nov 2002 10:51:53 -0500 (EST)
Message-ID: <[EMAIL PROTECTED]>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
In-Reply-To: <[EMAIL PROTECTED]>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 01 Nov 2002 15:51:56.0040 (UTC) 
FILETIME=[9AC89080:01C281BE]

Thomas Chadwick wrote:
> Is it as simple as patching XWin to call XSetInputFocus() with a focus
> argument of "None" when MS Windows informs it that it has lost focus?

That's the type of thing I was hoping for.


Harold L Hunt II wrote:
> I don't think that such interaction between the X Windows window manager
> and, essentially, the Windows window manager is going to be useful in
> the end, and it would be overly complicated to implement such an interim
> solution.

Is that really a fair assessment? For Windows interaction,
I'm only talking about hooking into the focus events. This
would be a useful addition even without rootless mode or
true Windows integration. And it looks like those events
are already hooked in order to deal with keyboard modes.
Which needs some debugging anyway, since X sometimes gets
confused about caps lock (granted I've seen this on Sun
workstations also, but not in a very long time).

If there's any complexity, it's purely on the X side, and
IMO it's something that should be addressed if it hasn't
already. Shouldn't there be a way to tell X that you've
removed focus from it entirely?

> Remember that the ultimate solution is to write calls that make Windows
> the window manager for our X apps, so your concern would no longer be an
> issue.
>
> I urge you to focus on the later solution, rather than trying to send
> signals between two window managers.

That's a bit too much for me to get involved in right now.
Besides, I'm not really interested in using the "Windows
shell" for managing X-Windows.

Ultimately, what you really want is the ability to go both
ways--let X applications be managed by Windows and let
Windows applications be managed by X window managers (like
LiteStep only allowing X calls all the way down--I think
LiteStep uses GTK or something). Of course, this can get a
bit complicated, especially when the services aren't quite
the same between Windows and X.

But I suspect others with more experience in XFree86 are
already thinking about these things. For now, I wanted to
start small.

-Jerry


_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp



Re: rootless mode and mousing to other windows

2002-10-31 Thread Thomas Chadwick
Is it as simple as patching XWin to call XSetInputFocus() with a focus 
argument of "None" when MS Windows informs it that it has lost focus?

From: "Gerald S. Williams" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: rootless mode and mousing to other windows
Date: Thu, 31 Oct 2002 13:28:04 -0500
MIME-Version: 1.0
Received: from sources.redhat.com ([209.249.29.67]) by 
mc1-f6.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 31 Oct 
2002 10:28:19 -0800
Received: (qmail 26023 invoked by alias); 31 Oct 2002 18:28:14 -
Received: (qmail 25959 invoked from network); 31 Oct 2002 18:28:13 -
Received: from unknown (HELO alageremail2.agere.com) (192.19.192.110)  by 
sources.redhat.com with SMTP; 31 Oct 2002 18:28:13 -
Received: from alerelay.agere.com (alerelay.agere.com [135.14.2.184])by 
alageremail2.agere.com (8.10.2+Sun/8.10.2) with ESMTP id g9VISCN09008for 
<[EMAIL PROTECTED]>; Thu, 31 Oct 2002 13:28:12 -0500 (EST)
Received: from almail.agere.com by alerelay.agere.com (8.9.3+Sun/EMS-1.5 
sol2)id NAA20979 for <[EMAIL PROTECTED]>; Thu, 31 Oct 2002 13:28:12 
-0500 (EST)
Received: from PAI820G1006951 by almail.agere.com (8.9.3+Sun/EMS-1.5 
sol2)id NAA07541; Thu, 31 Oct 2002 13:28:08 -0500 (EST)
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 

List-Subscribe: 
List-Archive: 
List-Post: 
List-Help: , 

Sender: [EMAIL PROTECTED]
Mail-Followup-To: [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 31 Oct 2002 18:28:19.0613 (UTC) 
FILETIME=[496A6CD0:01C2810B]

I agree -rootless rocks. And a -systray option would be great.

But one thing that I'd really like to be able to do now that
-rootless is around is be able to have all X windows become
inactive when a Windows window is selected. When I switch to
X-Windows, all of the Windows-style windows become inactive.
I'd like the reverse to happen as well. Otherwise, when I
switch out of X-Windows, the most-recently-selected window
in X is shown as active even though it isn't. It's actually
worse than that, since a cursor is shown in both windows.

I'm not sure what this is equivalent to in X terms. Perhaps
mousing to another screen? Has anyone given any thought to
this? I'd be willing to take a shot at an implementation if
given enough of a nudge in the right direction.

-Jerry Williams


_
Choose an Internet access plan right for you -- try MSN! 
http://resourcecenter.msn.com/access/plans/default.asp



Looking for ideas to fix x2x in rootless mode...

2002-10-31 Thread Thomas Chadwick
I'm hoping some folks on the ML might help me brainstorm a solution to 
fixing x2x in rootless mode...

For those of you not familiar with x2x, it's a handy utility that gives you 
a dual-headed X display if you have side-by-side workstations both running X 
(one is designated the "from" display, the other the "to" display).  It does 
this by simply grabbing the pointer and keyboard focus on the "from" 
display, and generating fake pointer and keyboard events on the "to" display 
whenever it receives pointer or keyboard events from the "from" display.

In my particular case, the "from" display is a PC running Cygwin/XFree86, 
and the "to" display is an RS/6000 Workstation.

The trouble with rootless mode is that when my pointer leaves the X server 
region, x2x no longer gets any pointer events from the "from" display.  This 
has the effect of restricting my pointer movements on the "to" display to 
areas that are occupied by X clients on the "from" display.

I tried patching x2x by using the Windows API calls SetCapture(HWND hwnd) 
and ReleaseCapture() at the same time x2x does XGrabPointer() and 
XUnGrabPointer() respectively.  However, the Capture fails.  If I interpret 
the MSDN documentation correctly, I think it's because the x2x.exe thread 
does not own the HWND it's trying to do the Capture on (XWin.exe does).  I 
suppose I could try to overcome this by patching the XGrabPointer() and 
XUnGrabPointer() functions in the XFree86 source directly.  This would 
result in XWin doing the SetCapture as a result of calling XGrabPointer() 
from x2x.

I haven't actually tried this, however, because it occurs to me that I have 
an additional problem.  Again, if I interpret the scant documentation 
properly, it looks to me that while SetCapture may grab the pointer, 
clicking a mouse button while outside the X server region will cause the 
capture to be released and the mouse button event to go to whatever MS 
Windows client is under the pointer at the time of the click.  This would 
have the effect of letting me point to any region in the "to" display as 
long as I don't press a mouse button.  Not very useful.

Perhaps there is a different API call which keeps a "stronger" hold of the 
pointer than SetCapture()?

How about calling XWarpPointer() from x2x to keep the pointer from leaving 
the X server region?

Any other ideas?


_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp



NEVERMIND: RE: [ANNOUNCEMENT] Server Test 68

2002-10-22 Thread Thomas Chadwick
Oops.  I just discovered that I had a old XWin.exe in a directory that is 
ahead of /usr/X11R6/bin in my path.  I used the full path and all is well!

Sorry for the false alarm.

From: "Thomas Chadwick" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [ANNOUNCEMENT] Server Test 68
Date: Tue, 22 Oct 2002 10:51:21 -0400

I ran Cygwin Setup and installed package XFree86-xserv-4.2.0-15.  However, 
when I run XWin -rootless, it complains:

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
Unrecognized option: -rootless
use: X [:] [option]
-a #   mouse acceleration (pixels)
-acdisable access control restrictions
-audit int set audit trail level
-auth file select authorization file


[snip]

If I ls -l /usr/X11R6/bin/XWin.exe I see:


-rwxrwxrwx1 Administ None  3137536 Oct 20 22:47 
/usr/X11R6/bin/XWin.exe*

The Oct 20 timestamp is consistant with the Test 68 announcement, so I'm 
pretty sure I have the right version.


_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


_
Choose an Internet access plan right for you -- try MSN! 
http://resourcecenter.msn.com/access/plans/default.asp



RE: [ANNOUNCEMENT] Server Test 68

2002-10-22 Thread Thomas Chadwick
I ran Cygwin Setup and installed package XFree86-xserv-4.2.0-15.  However, 
when I run XWin -rootless, it complains:

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
Unrecognized option: -rootless
use: X [:] [option]
-a #   mouse acceleration (pixels)
-acdisable access control restrictions
-audit int set audit trail level
-auth file select authorization file


[snip]

If I ls -l /usr/X11R6/bin/XWin.exe I see:


-rwxrwxrwx1 Administ None  3137536 Oct 20 22:47 
/usr/X11R6/bin/XWin.exe*

The Oct 20 timestamp is consistant with the Test 68 announcement, so I'm 
pretty sure I have the right version.


_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp



Re: Rootless mode revisited...

2002-10-17 Thread Thomas Chadwick

FYI - I've taken down the binary I posted to avoid any confusion with 
Harold's test release of XWin -rootless.

>From: "Thomas Chadwick" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Rootless mode revisited...
>Date: Wed, 16 Oct 2002 10:52:56 -0400
>
>By the way, my ISP seems to be blocking downloads of exe's.  Zipping it 
>seems to work.  Please download the exe using this URL instead...
>
>http://home.adelphia.net/~tlcweb/cygwin/XWin.zip
>
>>From: "Thomas Chadwick" <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>>Subject: Re: Rootless mode revisited...
>>Date: Wed, 16 Oct 2002 10:21:25 -0400
>>
>>I tried out this patch (took a few days because I needed to get xfree86 
>>out of CVS and build it).  Very cool.  Thanks a bunch to MATSUZAKI for 
>>coding it!  You saved me a lot of work.
>>
>>Here's a screenshot...
>>
>>http://home.adelphia.net/~tlcweb/cygwin/pseudo_rootless_screenshot.gif
>>
>>Notice that you can see IE in the background along with some Windows 
>>desktop icons down the left side of the screen.  The windows in the 
>>forground are Xclients (namely xterm, xclock, and xeyes).  The icon in the 
>>lower left is an iconified Xclient.
>>
>>However, I noticed a few strange artifacts of this approach to rootless 
>>mode...
>>
>>1) When you click and drag on an Xwindow to move it, you only see the bits 
>>and pieces of the "rubber band" outline which happen to overlap the other 
>>Xwindows.  Where the rubber band overlaps Windows windows, you see 
>>nothing.
>>
>>2) Now that there is no root window, you can't use the XWindows window 
>>manager's root-window menus.
>>
>>3) A favorite tool of mine, x2x, is broken, which is due to the lack of a 
>>root window causing the mouse focus to jump back and forth XWindows and 
>>Windows.
>>
>>
>>Still, if anyone wants to try it out, here's a binary that I built last 
>>night from source I pulled from CVS yesterday...
>>
>>http://home.adelphia.net/~tlcweb/cygwin/XWin.exe
>>
>>
>>>From: MATSUZAKI Kensuke <[EMAIL PROTECTED]>
>>>Reply-To: [EMAIL PROTECTED]
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: Rootless mode revisited...
>>>Date: Tue, 15 Oct 2002 03:30:50 +0900
>>>
>>>Thomas didn't talk about X Shape Extension.
>>>I think Thomas's idea is something like this.
>>>
>>>With this patch and "-nodecoration" option, it seems to work good.
>>>
>>><< pseudo-rootless.patch >>
>>
>>
>>_
>>Internet access plans that fit your lifestyle -- join MSN. 
>>http://resourcecenter.msn.com/access/plans/default.asp
>
>
>_
>Unlimited Internet access -- and 2 months free!  Try MSN. 
>http://resourcecenter.msn.com/access/plans/2monthsfree.asp


_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp




Re: Rootless mode revisited...

2002-10-16 Thread Thomas Chadwick

>From: MATSUZAKI Kensuke <[EMAIL PROTECTED]>
>To: "Thomas Chadwick" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: Rootless mode revisited...
>Date: Thu, 17 Oct 2002 02:08:41 +0900

[snip]

> > 3) A favorite tool of mine, x2x, is broken, which is due to the lack of 
>a
> > root window causing the mouse focus to jump back and forth XWindows and
> > Windows.
>
>Sorry. I have not used x2x, and I have only one display, so I can't
>comment 3).

x2x does XGrabPointer and XGrabKeyboard on the "from" display in order to 
redirect the mouse and keybaord events to the "to" display (it uses XunGrab 
to stop the redirection).  Does MS-Windows have an equivalent function?  If 
so, I could patch x2x to also do an MS-Windows grab.

Come to think of it, would it not be a good idea to change the XGrab 
procedures themselves to also do an MS-Windows grab when XWin is running in 
rootless or pseudo-rootless mode?


_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp




Re: Rootless mode revisited...

2002-10-16 Thread Thomas Chadwick

By the way, my ISP seems to be blocking downloads of exe's.  Zipping it 
seems to work.  Please download the exe using this URL instead...

http://home.adelphia.net/~tlcweb/cygwin/XWin.zip

>From: "Thomas Chadwick" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: Rootless mode revisited...
>Date: Wed, 16 Oct 2002 10:21:25 -0400
>
>I tried out this patch (took a few days because I needed to get xfree86 out 
>of CVS and build it).  Very cool.  Thanks a bunch to MATSUZAKI for coding 
>it!  You saved me a lot of work.
>
>Here's a screenshot...
>
>http://home.adelphia.net/~tlcweb/cygwin/pseudo_rootless_screenshot.gif
>
>Notice that you can see IE in the background along with some Windows 
>desktop icons down the left side of the screen.  The windows in the 
>forground are Xclients (namely xterm, xclock, and xeyes).  The icon in the 
>lower left is an iconified Xclient.
>
>However, I noticed a few strange artifacts of this approach to rootless 
>mode...
>
>1) When you click and drag on an Xwindow to move it, you only see the bits 
>and pieces of the "rubber band" outline which happen to overlap the other 
>Xwindows.  Where the rubber band overlaps Windows windows, you see nothing.
>
>2) Now that there is no root window, you can't use the XWindows window 
>manager's root-window menus.
>
>3) A favorite tool of mine, x2x, is broken, which is due to the lack of a 
>root window causing the mouse focus to jump back and forth XWindows and 
>Windows.
>
>
>Still, if anyone wants to try it out, here's a binary that I built last 
>night from source I pulled from CVS yesterday...
>
>http://home.adelphia.net/~tlcweb/cygwin/XWin.exe
>
>
>>From: MATSUZAKI Kensuke <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: Re: Rootless mode revisited...
>>Date: Tue, 15 Oct 2002 03:30:50 +0900
>>
>>Thomas didn't talk about X Shape Extension.
>>I think Thomas's idea is something like this.
>>
>>With this patch and "-nodecoration" option, it seems to work good.
>>
>><< pseudo-rootless.patch >>
>
>
>_
>Internet access plans that fit your lifestyle -- join MSN. 
>http://resourcecenter.msn.com/access/plans/default.asp


_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp




Re: Rootless mode revisited...

2002-10-16 Thread Thomas Chadwick

In response to your first question - the patch isn't in CVS.  I pulled the 
source from CVS, applied the patch that was posted to the ML, then built it. 
  Sorry if that wasn't clear.

As for your other 2 questions - I don't have an answer.

The fact that Matsuzaki posted this patch came as a complete surprise to me. 
  I had every intention of developing and experimenting with such a patch 
myself.  He just beat me to it.

>From: Harold L Hunt II <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Rootless mode revisited...
>Date: Wed, 16 Oct 2002 10:26:20 -0400
>
>Thomas,
>
>What CVS tree did you pull this from?  Why isn't MATSUZAKI working with us? 
>  If I recall correctly, he wrote the Unicode support for xwinclip, right?
>
>Harold
>
>Thomas Chadwick wrote:
>
>>I tried out this patch (took a few days because I needed to get xfree86 
>>out of CVS and build it).  Very cool.  Thanks a bunch to MATSUZAKI for 
>>coding it!  You saved me a lot of work.
>>
>>Here's a screenshot...
>>
>>http://home.adelphia.net/~tlcweb/cygwin/pseudo_rootless_screenshot.gif
>>
>>Notice that you can see IE in the background along with some Windows 
>>desktop icons down the left side of the screen.  The windows in the 
>>forground are Xclients (namely xterm, xclock, and xeyes).  The icon in the 
>>lower left is an iconified Xclient.
>>
>>However, I noticed a few strange artifacts of this approach to rootless 
>>mode...
>>
>>1) When you click and drag on an Xwindow to move it, you only see the bits 
>>and pieces of the "rubber band" outline which happen to overlap the other 
>>Xwindows.  Where the rubber band overlaps Windows windows, you see 
>>nothing.
>>
>>2) Now that there is no root window, you can't use the XWindows window 
>>manager's root-window menus.
>>
>>3) A favorite tool of mine, x2x, is broken, which is due to the lack of a 
>>root window causing the mouse focus to jump back and forth XWindows and 
>>Windows.
>>
>>
>>Still, if anyone wants to try it out, here's a binary that I built last 
>>night from source I pulled from CVS yesterday...
>>
>>http://home.adelphia.net/~tlcweb/cygwin/XWin.exe
>>
>>
>>>From: MATSUZAKI Kensuke <[EMAIL PROTECTED]>
>>>Reply-To: [EMAIL PROTECTED]
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: Rootless mode revisited...
>>>Date: Tue, 15 Oct 2002 03:30:50 +0900
>>>
>>>Thomas didn't talk about X Shape Extension.
>>>I think Thomas's idea is something like this.
>>>
>>>With this patch and "-nodecoration" option, it seems to work good.
>>>
>>><< pseudo-rootless.patch >>
>>
>>
>>
>>_
>>Internet access plans that fit your lifestyle -- join MSN. 
>>http://resourcecenter.msn.com/access/plans/default.asp
>>


_
Surf the Web without missing calls! Get MSN Broadband. 
http://resourcecenter.msn.com/access/plans/freeactivation.asp




Re: how to make startxwin.bat "just like" startx?

2002-10-16 Thread Thomas Chadwick

You might want to take a look at this recent post of mine...

http://www.cygwin.com/ml/cygwin-xfree/2002-10/msg00091.html

Of particular interest to you might be the stuff at the bottom about how to 
create a shortcut on the Windows desktop which runs xinit.  You could easily 
change the target to call startx instead.

>From: Tom Roche <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: how to make startxwin.bat "just like" startx?
>Date: Tue, 15 Oct 2002 19:43:09 -0400
>
>Is there a way to have startxwin.bat behave "just like" startx? I.e.
>to have the XFree86 window resulting from running startxwin.bat be
>just like the one resulting from running cygwin.bat, and then startx?
>
>I'd like to not maintain two sets of configuration files, so I'd like
>to be able to just work with startx, e.g. to have startxwin.bat invoke
>it somehow. Can that be done? if so, how?


_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp




Re: Rootless mode revisited...

2002-10-16 Thread Thomas Chadwick

I tried out this patch (took a few days because I needed to get xfree86 out 
of CVS and build it).  Very cool.  Thanks a bunch to MATSUZAKI for coding 
it!  You saved me a lot of work.

Here's a screenshot...

http://home.adelphia.net/~tlcweb/cygwin/pseudo_rootless_screenshot.gif

Notice that you can see IE in the background along with some Windows desktop 
icons down the left side of the screen.  The windows in the forground are 
Xclients (namely xterm, xclock, and xeyes).  The icon in the lower left is 
an iconified Xclient.

However, I noticed a few strange artifacts of this approach to rootless 
mode...

1) When you click and drag on an Xwindow to move it, you only see the bits 
and pieces of the "rubber band" outline which happen to overlap the other 
Xwindows.  Where the rubber band overlaps Windows windows, you see nothing.

2) Now that there is no root window, you can't use the XWindows window 
manager's root-window menus.

3) A favorite tool of mine, x2x, is broken, which is due to the lack of a 
root window causing the mouse focus to jump back and forth XWindows and 
Windows.


Still, if anyone wants to try it out, here's a binary that I built last 
night from source I pulled from CVS yesterday...

http://home.adelphia.net/~tlcweb/cygwin/XWin.exe


>From: MATSUZAKI Kensuke <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Rootless mode revisited...
>Date: Tue, 15 Oct 2002 03:30:50 +0900
>
>Thomas didn't talk about X Shape Extension.
>I think Thomas's idea is something like this.
>
>With this patch and "-nodecoration" option, it seems to work good.
>
><< pseudo-rootless.patch >>


_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp




Rootless mode revisited...

2002-10-09 Thread Thomas Chadwick

I just had a thought on how to implement rootless mode and I'm hoping 
someone more familiar with Windows programming and/or the XWin server might 
let me know if it's a dead-end before I spend too much time researching it 
further.

The idea I had is this:  Can we exploit the features of the Windows API that 
allow for non-rectangular windows to achieve a "pseudo-rootless" mode?  I 
have looked into it enough to find that non-rectangular Windows windows are 
really collections of multiple rectangles, ellipses, etc.  Seems to me XWin 
could exploit this by simply {adding|removing} a rectangle {to|from} the 
collection that makes up its shape whenever an Xclient is 
{created|destroyed}.

I call it "pseudo-rootless" mode because you would still need to run an 
XWindows window manager to decorate the Xclients, as opposed to having the 
Windows window manager do the decoration.

What I don't know is how well Windows will handle, for instance, moving an 
Xclient window around once it's been created, since that would involve 
dynamically manipulating the shape of a Windows window.

What I also don't know is whether or not the way XWin uses DirectDraw and 
frame-buffering somehow precludes the use of the Windows window-shaping 
APIs.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com




Re: Cygwin Remote: Want to implement a Citrix Metaframe alternative

2002-10-08 Thread Thomas Chadwick

Thanks.

I have a small "bag of tricks" like this.  One of these days I'll get around 
to documenting them.  If/when I do so I'll be sure to post a URL to the ML.

By the way, I discovered a caveat in the solution I posted at the root of 
this thread.  XWin starts up before xinit launches ssh, causing the root 
window to obscure the command-line so that you can't see it prompt for a 
password.  I think a reasonable fix would be to put the ssh command "inside" 
an xterm in the .xinitrc file as follows:

xterm -title "ssh on `hostname`" \
-e ssh -X remoteusername@remotehostname pathtoremotescript

>From: Harold L Hunt II <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Cygwin Remote: Want to implement a Citrix Metaframe 
>alternative
>Date: Tue, 08 Oct 2002 16:43:48 -0400
>
>Thomas,
>
>Yes, that is an excellent answer and it describes an elegant solution that 
>99% of people would not be able to come up with on their own.  I am 
>flagging it for inclusion into the User's Guide.  Of course, that doesn't 
>mean it will be in the User's Guide next week, or even next month, but it 
>will eventually get there.
>
>Harold

[snip]


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




RE: Cygwin Remote: Want to implement a Citrix Metaframe alternative

2002-10-08 Thread Thomas Chadwick

Yup.  Works like a charm!  I use a version of the scheme described below 
every day to get an X session on my Thinkpad served up by my RS/6000. (Can 
you guess who I work for?)  I have the monitor from my RS/6000 side-by-side 
with my Thinkpad, and run x2x to effectively give me a dual-headed X 
Session.

>From: Jean-Claude Gervais <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Cygwin Remote: Want to implement a Citrix Metaframe 
>alternative
>Date: Tue, 08 Oct 2002 14:25:01 -0400
>
>Whoah!
>
>   Does that actually work Thomas?
>
>   Slick!
>
>   Thanks for the tip! I may not have originally asked the question, but I 
>can
>definitely use your solution!
>
>   Thanks again.
>
>
>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]]On
>Behalf Of Thomas Chadwick
>Sent: Tuesday, October 08, 2002 2:09 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: Cygwin Remote: Want to implement a Citrix Metaframe 
>alternative
>
> >From: <[EMAIL PROTECTED]>
> >Reply-To: <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: Cygwin Remote: Want to implement a Citrix Metaframe alternative
> >Date: Tue, 8 Oct 2002 09:41:45 +0200
> >
> >Hi all,
> >
> >I am a Newbee to the X11 System (ok i can  configure an compiled it) but,
> >the Steps for Remote Working (like an ICA Metraframe Client) for
> >Cygwin/Xfree86 is
> >not really easy.
> >
> >In Think i have two choices:
> >
> >1)
> >Remoteauthentication via the Remote Dektopmanager Control Protocol,
> >(But Everyon tells me it is complex an still unsecure?)
> >
> >2)
> >Using the "sure" way over an OpenBSD SSH-Shell
> >(thins is the actually configuration, but not a Release Candidate.
> >
> >The SSH way works fine, but the Problem is the Logon Interface (Bash 
>shell)
> >add xhost, DISPLAY=xxx.xxx.xxx.xxx:0.0; export DISPLAY startkde (catch an
> >Error)
> >
> >Wow! My Boss is killing me for this nasty Way.
> >
> >Ok, iam a Programmer, and i think (write a little Windows Application for
> >Logon to
> >the X-Remote Server (but still the non-interactive SSH Shell is bugging 
>me.
> >
> >(I have read from "empty Keyphrase Trick"???)
> >
> >Ok Guys, what the best and fastest Way (non commercial, Software must be
> >free)?
>
>
>I think I follow what you're trying to do in #2 above.  May I suggest the
>following?
>
>On the remote system, create a shell script which contains something like
>the following:
>
>   #!/bin/sh
>
>   # Launch an Xterm (run in the pack ground)
>   xterm -title `whoami`@`hostname` &
>
>   # Launch WindowManager (run in the foreground)
>   mwm
>
>On the local (Cygwin) system, create a shell script that contains something
>similar to the following, and save it as .xinitrc in your home directory:
>
>   #!/bin/sh
>
>   ssh  -X  remoteusername@remotehostname  pathtoremotescript
>
>The "pathtoremotescript" is referring to the script on the remote system I
>suggested above.
>
>On the local (Cygwin) system, edit the file .bash_profile in your home
>directory and add /usr/X11R6/bin to your path:
>
>   export PATH=$PATH:/usr/X11R6/bin
>
>Finally, on the Cygwin system, create a Windows shortcut with the following
>target:
>
>   C:\cygwin\bin\bash.exe --login -c "xinit -- -nodecoration"
>
>When you double click the shortcut, the following sequence of events will
>happen:
>
>1) Windows will run bash.  The --login parameter tells it to source your
>.bash_profile file, adding /usr/X11R6/bin to your PATH.
>2) Bash will run xinit, which will start up the X server, then source the
>.xinitrc file.
>3) .xinitrc will execute ssh.
>4) ssh will connect to the remote system and prompt you for a password.  It
>will then enable X11 Forwarding, assign the appropriate value to DISPLAY,
>and will execute the remote shell script.
>5) The remote shell script will run, launching an xterm and window manager
>which will appear on your Cygwin X server screen.
>6) Close things down by quitting the window manager on the remote system or
>by killing the Cygwin X server with Alt-F4.
>
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




Re: Cygwin Remote: Want to implement a Citrix Metaframe alternative

2002-10-08 Thread Thomas Chadwick

>From: <[EMAIL PROTECTED]>
>Reply-To: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Cygwin Remote: Want to implement a Citrix Metaframe alternative 
>Date: Tue, 8 Oct 2002 09:41:45 +0200
>
>Hi all,
>
>I am a Newbee to the X11 System (ok i can  configure an compiled it) but,
>the Steps for Remote Working (like an ICA Metraframe Client) for
>Cygwin/Xfree86 is
>not really easy.
>
>In Think i have two choices:
>
>1)
>Remoteauthentication via the Remote Dektopmanager Control Protocol,
>(But Everyon tells me it is complex an still unsecure?)
>
>2)
>Using the "sure" way over an OpenBSD SSH-Shell
>(thins is the actually configuration, but not a Release Candidate.
>
>The SSH way works fine, but the Problem is the Logon Interface (Bash shell)
>add xhost, DISPLAY=xxx.xxx.xxx.xxx:0.0; export DISPLAY startkde (catch an
>Error)
>
>Wow! My Boss is killing me for this nasty Way.
>
>Ok, iam a Programmer, and i think (write a little Windows Application for
>Logon to
>the X-Remote Server (but still the non-interactive SSH Shell is bugging me.
>
>(I have read from "empty Keyphrase Trick"???)
>
>Ok Guys, what the best and fastest Way (non commercial, Software must be
>free)?


I think I follow what you're trying to do in #2 above.  May I suggest the 
following?

On the remote system, create a shell script which contains something like 
the following:

  #!/bin/sh

  # Launch an Xterm (run in the pack ground)
  xterm -title `whoami`@`hostname` &

  # Launch WindowManager (run in the foreground)
  mwm

On the local (Cygwin) system, create a shell script that contains something 
similar to the following, and save it as .xinitrc in your home directory:

  #!/bin/sh

  ssh  -X  remoteusername@remotehostname  pathtoremotescript

The "pathtoremotescript" is referring to the script on the remote system I 
suggested above.

On the local (Cygwin) system, edit the file .bash_profile in your home 
directory and add /usr/X11R6/bin to your path:

  export PATH=$PATH:/usr/X11R6/bin

Finally, on the Cygwin system, create a Windows shortcut with the following 
target:

  C:\cygwin\bin\bash.exe --login -c "xinit -- -nodecoration"

When you double click the shortcut, the following sequence of events will 
happen:

1) Windows will run bash.  The --login parameter tells it to source your 
.bash_profile file, adding /usr/X11R6/bin to your PATH.
2) Bash will run xinit, which will start up the X server, then source the 
.xinitrc file.
3) .xinitrc will execute ssh.
4) ssh will connect to the remote system and prompt you for a password.  It 
will then enable X11 Forwarding, assign the appropriate value to DISPLAY, 
and will execute the remote shell script.
5) The remote shell script will run, launching an xterm and window manager 
which will appear on your Cygwin X server screen.
6) Close things down by quitting the window manager on the remote system or 
by killing the Cygwin X server with Alt-F4.


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




Re: SSH Notes

2002-10-04 Thread Thomas Chadwick

>From: Harold L Hunt II <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: SSH Notes
>Date: Thu, 03 Oct 2002 19:16:42 -0400

[snip]

>At the very least, we should patch the Cygwin release of openssh to assume 
>that DISPLAY=127.0.0.1:0.0 when DISPLAY is not defined in the environment.  
>That would make X11 tunnelling much much easier for 95% of our users and I 
>either can't see or I don't care about any pseduo-security hole that this 
>might open up.  (Hey, if SSH Secure Shell makes this assumption, then we 
>can too.)

Come to think of it, why can't we introduce a wrapper script (we could call 
it xssh) instead of patching ssh itself?  Here's my suggestion:

#!/bin/sh

if [ -n "$DISPLAY" ]
then
  echo "Error: In order to enable X11 forwarding the DISPLAY variable must 
be set"
  exit
fi

ssh -X $*


Or, alternatively:

if [ -n "$DISPLAY" ]
then
  export DISPLAY=127.0.0.1:0.0
fi

ssh -X $*


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com




Re: SSH Notes

2002-10-04 Thread Thomas Chadwick

>From: Harold L Hunt II <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: SSH Notes
>Date: Thu, 03 Oct 2002 19:16:42 -0400
>
>X11 tunnelling via SSH has always been somewhat of a mystery to me and to 
>most other Cygwin/XFree86 users.  I knew that the instructions that I 
>provided in the Cygwin/XFree86 User's Guide worked, but I did not know what 
>most other methods of starting ssh and Cygwin/XFree86 did not work.  I have 
>now found out what is going on, and I actually think that we may want to 
>make a patch to openssh for Cygwin to make the system more fool-proof.  
>Below are my notes on what I found.
>
>Notes on X11 Tunnelling
>===
>
>1) The key to X11 tunnelling via openssh is to have the ``DISPLAY'' 
>environment variable defined in your Cygwin bash shell BEFORE you ssh into 
>your remote host.  That is, you must run the following command before you 
>run ssh:
>
>export DISPLAY=127.0.0.1:0.0
>
>2) You do not have to have your X Server (Cygwin/XFree86) running when you 
>open your ssh session to your remote machine, but you have to have the 
>DISPLAY variable set to a valid value.  Remember, you would open an ssh 
>session with X11 forwarding like so:
>
>ssh -X -C foo_user@foo_machine
>
>3) The .Xauthority file is created on your remote host.  I always thought 
>that the .Xauthority file was created on your Cygwin host, but I was wrong. 
>  Thus, there are no problems with the .Xauthority file being stored in the 
>wrong place in your Cygwin file system, as we have sometimes thought.

All of this information is in the ssh man page:

X11 and TCP forwarding

   If the ForwardX11 variable is set to ``yes'' (or, see the description of
   the -X and -x options described later) and the user is using X11 (the
   DISPLAY environment variable is set), the connection to the X11 display
   is automatically forwarded to the remote side in such a way that any X11
   programs started from the shell (or command) will go through the
   encrypted channel, and the connection to the real X server will be made
   from the local machine.  The user should not manually set DISPLAY.  For-
   warding of X11 connections can be configured on the command line or in
   configuration files.

   The DISPLAY value set by ssh will point to the server machine, but with a
   display number greater than zero.  This is normal, and happens because
   ssh creates a ``proxy'' X server on the server machine for forwarding the
   connections over the encrypted channel.

   ssh will also automatically set up Xauthority data on the server machine.
   For this purpose, it will generate a random authorization cookie, store
   it in Xauthority on the server, and verify that any forwarded connections
   carry this cookie and replace it by the real cookie when the connection
   is opened.  The real authentication cookie is never sent to the server
   machine (and no cookies are sent in the plain).

Admittedly, it's not altogether very clear.  And they're using the term 
"server" in a confusing way.  Personally I think they should use "remote 
machine" or "far-end machine" instead of "server machine", since "server" 
has a particular connotation when talking about X11.

>4) The instructions in the Cygwin/XFree86 User's Guide for ssh tunnelling 
>work because you launch ssh from within an xterm, which has the DISPLAY 
>variable set correctly already.
>
>5) When ssh launches with the ``-X'' paramter (for X11 tunnelling) on 
>Cygwin, it looks for the DISPLAY environment variable.  If DISPLAY is not 
>defined, ssh assumes that you do not really want X11 tunnelling and it 
>fails to set the DISPLAY environment variable on the remote host (which is 
>the key step).
>
>6) You cannot set the DISPLAY environment variable by hand on the remote 
>host after connecting with ssh when the DISPLAY variable was not set on the 
>Cygwin host when you launched.  You might have seen DISPLAY=localhost:10.0 
>in one of your previous sessions on your remote host and thought that you 
>could just set the DISPLAY variable to that again, but you can't.  It 
>appears that ssh just disables the X11 tunnelling (silent failure, the 
>worst kind) when the DISPLAY variable is not defined on your Cygwin host.
>
>
>What to Fix
>===
>
>ssh should assume ``DISPLAY=127.0.0.1:0.0'' when the DISPLAY variable is 
>not set on the Cygwin host.  I am not sure why this is not currently the 
>case.  I can only guess that the lack of this assumption is either do to 1) 
>a whiny security geek on the openssh project, or 2) that the assumed usage 
>scenario for openssh is more like a Linux/X machine where you have probably 
>got your X Server running when you connect to your remote machine with ssh, 
>thus DISPLAY would already be set.
>
>At the very least, we should patch the Cygwin release of openssh to assume 
>that DISPLAY=127.0.0.1:0.0 when DISPLAY is not defined in the environment.  
>That would make X11 tunnelling much much easi

Re: Screen size question

2002-09-28 Thread Thomas Chadwick

>From: Stephen Liu <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Rasjid Wilcox <[EMAIL PROTECTED]>,[EMAIL PROTECTED]
>Subject: Re: Screen size question
>Date: Sat, 28 Sep 2002 16:15:36 +0800

[snip]

>Using fullscreen Alt-TAb can rotate between these 2 systems.  But how to 
>close "cygwin"

Alt-F4

>
>
>I am still searching for a simple way to share files between these 2 
>systems instead of using Samba.
>
>Could you shed me some light?

As I understand it, the problem you are trying to solve is this:

You are running X clients on hostname "remote" and displaying them on the 
Cygwin/Xserver on hostname "local".  You want access to the files on 
"remote" from "local" with a minimum of effort.

While I agree that Samba is the best way to do this, and is relatively 
seemless (by mounting the filesystem on "remote" as a drive letter on 
"local"), there is an alternative:

1) Open a web browser from Windows (NOT as an X client from the remote 
machine!)
2) Use an URL of the form "ftp://username:password@remotehostname";.

This will give you file-explorer-like views and navigation of the user's 
home directory on the remote host.

Note that this functionality might not be built into your web browser.  If 
not, it will complain, but should prompt you with how to install the 
neccessary features.


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




Re: Uninstall cygwin for Windows under Windows XP

2002-09-12 Thread Thomas Chadwick

>From the Cygwin FAQ:

http://cygwin.com/faq/faq.html#SEC19

>From: Skip Knoble <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Uninstall cygwin for Windows under Windows XP
>Date: Thu, 12 Sep 2002 13:42:32 -0400
>
>   How does one remove all installed CYGWIN files after and
>install under Windows XP?
>   Many thanks.
>   Skip Knoble, Penn State Center for Academic Computing
>
>Herman D. (Skip) Knoble, Research Associate
>Mailto:[EMAIL PROTECTED]
>Web: http://www.personal.psu.edu/hdk
>Penn State Information Technology Services
> Academic Services and Emerging Technologies
>  Graduate Education and Research Services
>Penn State University
>  214C Computer Building
>  University Park, PA 16802-2101
>Phone:+1 814 865-0818   Fax:+1 814 863-7049




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




Re: Bug report: Using Cygwin-Xfree through Remote Desktop Sharing (RDP)

2002-09-09 Thread Thomas Chadwick

Sounds similar to this problem I reported a while back...

http://www.cygwin.com/ml/cygwin-xfree/2002-06/msg00373.html

What's in /tmp/XWin.log?

>From: Jean-Claude Gervais <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Cygwin-XFree <[EMAIL PROTECTED]>
>Subject: Bug report: Using Cygwin-Xfree through Remote Desktop Sharing 
>(RDP)
>Date: Mon, 09 Sep 2002 11:00:28 -0400
>
>This is complicated, so I'll try to be clear.
>
>Let's say you have machine A, which is a Windows XP machine that has Cygwin
>and Cygwin-XFree installed on it.
>You use A to connect to B. B is a machine running Linux and X.
>Everything so far works.
>Then you use machine C (a machine running Windows 2000) to remote-control
>machine A with Windows XP Remote Desktop Client (RDP).
>Machine C can use machine A's Cygwin-XFree connection and view machine B. 
>No
>problem.
>However, when machine C breaks its connection to machine A, machine A's
>Cygwin-XFree will no longer display machine B. It will instead display a
>white screen in Cygwin-XFree.
>Although I am pretty sure that A is still connected and controlling B, it
>can no longer see B's display.
>It seems like Remote Desktop Client mucks-up Cygwin-XFree.
>
>I hope that that was clear enough.
>
>Thanks.




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com




Re: X windows display problem

2002-09-03 Thread Thomas Chadwick

>From: "Meredith Finkelstein" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Thomas Chadwick" <[EMAIL PROTECTED]>, [EMAIL PROTECTED],   
>[EMAIL PROTECTED]
>Subject: Re: X windows display problem
>Date: Tue, 3 Sep 2002 15:41:23 -0400

[snip]

>when i ssh and am on the remote host, and i echo the DISPLAY i get nothing.
>but i thought this was normal since i'm using the X flag with ssh.

This is not normal.  DISPLAY needs a value.  If ssh is not assigning one, 
there is probably something wrong with either ssh at the near end or sshd at 
the far end.

>when i set export the display=:0.0 & then run xeyes
>then i get the following message
>Xlib: connection to ":0.0" refused by server
>Xlib: No protocol specified
>
>Error: Can't open display: :0.0

Try again.  From the ssh command-line on the remote machine, the correct 
value of DISPLAY should be :10.0, NOT :0.0 AS YOU 
HAVE SHOWN HERE.  Here are a couple of diagrams to make my point...

With DISPLAY=localhost:0.0 on localhost, and DISPLAY=remotehost:10.0 on 
remotehost, the XClients on remotehost send their traffic through the 
encrypted channel (established between ssh and sshd) back to XWin on 
localhost:

++ ++
| localhost  | |   remotehost   |
++ ++
|| ||
| XWin <---> ssh <---+---(encrypted)---+---> sshd <---> XClient |
|| ||
++ ++


If you try to set DISPLAY=localhost:0.0 on remotehost, the XClients on 
remotehost try to talk directly to XWin on localhost and don't use the 
encrypted ssh channel at all:

++ ++
| localhost  | |   remotehost   |
++ ++
|| ||
| XWin <---> ssh <---+---(encrypted)---+---> sshd ---> XClient  |
|   ^| |  ^ |
|   || |  | |
|   ++--(unencrypted)--+--+ |
|| ||
++ ++


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




Re: X windows display problem

2002-08-30 Thread Thomas Chadwick

Doh.  One more thing.  Be sure to run the ssh command from an xterm within 
XWin.  If you're running ssh from the same Cygwin prompt from which you 
issued startxwin.sh, then that is very likely the source of your problem.

>From: "Thomas Chadwick" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: X windows display problem
>Date: Fri, 30 Aug 2002 16:17:29 -0400
>
>I guess I should have read your message a little more carefully before 
>replying.  You said that sshd has been configure with X11Forwarding turned 
>on.
>
>Give the following a try:
>
>1) On the local system, before running ssh, echo the value of DISPLAY. It 
>should have a value of ":0.0" or something similar.  If it 
>doesn't, manually set it to the correct value.  Verify its value by running 
>a simple xclient like xeyes.
>2) Run your ssh -X command.
>3) On the remote system, echo the value of DISPLAY.  It should have a value 
>of ":10.0" or something similar.  If it doesn't have the 
>right value, try setting it manually.  If that doesn't work, then I'm 
>stumped.
>
>>From: "Thomas Chadwick" <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>>Subject: Re: X windows display problem
>>Date: Fri, 30 Aug 2002 16:07:13 -0400
>>
>>What is the value of the DISPLAY environment variable on the remote 
>>machine after running ssh?
>>
>>It should have a value of ":10.0", or something similar.
>>
>>If it's empty, or the value looks like ":0.0", 
>>">forwarding.
>>
>>Note that the ssh daemon on the remote machine has to be explicitly told 
>>to enable X forwarding.  This might be to blame.
>>
>>I've also seen the existance of the .Xauthority file in the home directory 
>>on the local Cygwin host cause problems.
>>
>>>From: "Meredith Finkelstein" <[EMAIL PROTECTED]>
>>>Reply-To: [EMAIL PROTECTED]
>>>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>>>Subject: X windows display problem
>>>Date: Fri, 30 Aug 2002 15:41:41 -0400
>>>
>>>Hi
>>>I have found some related posts in the archives, but nothing that seems 
>>>to
>>>solve my problem, which is:
>>>
>>>I start startxwin.sh from my client (which runs windows2000) (I have 
>>>tried
>>>both cygwin shell and cmd)
>>>then i open up an ssh connection (ssh -X -l username hostname) to my host
>>>computer which is running red hat 7.3.  The sshd config file has
>>>X11Forwarding turned on
>>>
>>>when i try to open xterm, xeyes, anything  - i get the following error:
>>>
>>>xterm Xt error: Can't open display:
>>>
>>>this happens no matter which window i am sshing from - cmd, cygwin, 
>>>xwindows.
>>>and /tmp/XWin.log displays no error messages
>>>
>>>Any suggestions?
>>>Thanks,
>>>Meredith
>>>
>>>
>>>
>>>
>>>--
>>>Open WebMail Project (http://openwebmail.org)
>>
>>
>>
>>
>>_
>>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>
>
>_
>Join the world’s largest e-mail service with MSN Hotmail. 
>http://www.hotmail.com




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




Re: X windows display problem

2002-08-30 Thread Thomas Chadwick

I guess I should have read your message a little more carefully before 
replying.  You said that sshd has been configure with X11Forwarding turned 
on.

Give the following a try:

1) On the local system, before running ssh, echo the value of DISPLAY. It 
should have a value of ":0.0" or something similar.  If it 
doesn't, manually set it to the correct value.  Verify its value by running 
a simple xclient like xeyes.
2) Run your ssh -X command.
3) On the remote system, echo the value of DISPLAY.  It should have a value 
of ":10.0" or something similar.  If it doesn't have the right 
value, try setting it manually.  If that doesn't work, then I'm stumped.

>From: "Thomas Chadwick" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: X windows display problem
>Date: Fri, 30 Aug 2002 16:07:13 -0400
>
>What is the value of the DISPLAY environment variable on the remote machine 
>after running ssh?
>
>It should have a value of ":10.0", or something similar.
>
>If it's empty, or the value looks like ":0.0", 
>"forwarding.
>
>Note that the ssh daemon on the remote machine has to be explicitly told to 
>enable X forwarding.  This might be to blame.
>
>I've also seen the existance of the .Xauthority file in the home directory 
>on the local Cygwin host cause problems.
>
>>From: "Meredith Finkelstein" <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>>Subject: X windows display problem
>>Date: Fri, 30 Aug 2002 15:41:41 -0400
>>
>>Hi
>>I have found some related posts in the archives, but nothing that seems to
>>solve my problem, which is:
>>
>>I start startxwin.sh from my client (which runs windows2000) (I have tried
>>both cygwin shell and cmd)
>>then i open up an ssh connection (ssh -X -l username hostname) to my host
>>computer which is running red hat 7.3.  The sshd config file has
>>X11Forwarding turned on
>>
>>when i try to open xterm, xeyes, anything  - i get the following error:
>>
>>xterm Xt error: Can't open display:
>>
>>this happens no matter which window i am sshing from - cmd, cygwin, 
>>xwindows.
>>and /tmp/XWin.log displays no error messages
>>
>>Any suggestions?
>>Thanks,
>>Meredith
>>
>>
>>
>>
>>--
>>Open WebMail Project (http://openwebmail.org)
>
>
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




Re: X windows display problem

2002-08-30 Thread Thomas Chadwick

What is the value of the DISPLAY environment variable on the remote machine 
after running ssh?

It should have a value of ":10.0", or something similar.

If it's empty, or the value looks like ":0.0", 
"From: "Meredith Finkelstein" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Subject: X windows display problem
>Date: Fri, 30 Aug 2002 15:41:41 -0400
>
>Hi
>I have found some related posts in the archives, but nothing that seems to
>solve my problem, which is:
>
>I start startxwin.sh from my client (which runs windows2000) (I have tried
>both cygwin shell and cmd)
>then i open up an ssh connection (ssh -X -l username hostname) to my host
>computer which is running red hat 7.3.  The sshd config file has
>X11Forwarding turned on
>
>when i try to open xterm, xeyes, anything  - i get the following error:
>
>xterm Xt error: Can't open display:
>
>this happens no matter which window i am sshing from - cmd, cygwin, 
>xwindows.
>and /tmp/XWin.log displays no error messages
>
>Any suggestions?
>Thanks,
>Meredith
>
>
>
>
>--
>Open WebMail Project (http://openwebmail.org)




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com




Re: AW: xfig for windows: libICE.dll missing

2002-08-15 Thread Thomas Chadwick

It took me about 2 minutes with Google to figure out that "fig2eps" is 
really an alias for "fig2dev", which is part of the TransFig package.

You should look for the existence of fig2dev in the tarfile you installed.  
If it's not there, you can go to http://www.xfig.org, download the source 
for transfig, and have at it.

Once you get ahold of fig2dev, try "man fig2dev" to figure out how to use 
it.

>From: "Volker M. Koch" <[EMAIL PROTECTED]>
>To: "'Thomas Chadwick'" <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: AW: xfig for windows: libICE.dll missing
>Date: Wed, 14 Aug 2002 23:48:42 +0200
>
>Hi Thomas!
>
> > of X-Win32.  This should fix your problem.
>
>it works now. Thanks a lot!
>
>
>
> > Note: If you're using the shortcut as described in the web
> > site, change the
> > Target to "startxwin.bat" (leaving the Start in path
> > unchanged) to launch
> > XWin.
>
>Currently I run startxwin.bat directly. What do you mean with
>"change the Target to "startxwin.bat" (leaving the Start in path
>unchanged)"?
>
>Maybe you also know the answer to another problem. I want to create an
>eps
>file from a fig file. That fig file contains latex code (special flag
>on).
>
>On a Sun machine, I used fig2eps to create eps files (latex was started
>and
>the latex code was used to create nice looking equations).
>
>What can I do under Cygwin to create such eps files with latex code?
>
>Thanks a lot,
>Volker
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com




  1   2   >