Re: can't paste from Windows to X clients

2004-11-28 Thread Jay Smith
We were having a similar problem with Cygwin/xfree on Windows 95 with Linux 
running in Xwindows supplied via xfree/cygwin.

The problem had several aspects.
- When we "up" graded Cygwin at one point (can't remember which) things 
stopped working so we fell back.

- When we "up" graded our Red Hat 8 from Gnome to KDE, the cut/paste 
stopped working.  It was dead for a while until a KDE upgrade came along 
that included an upgrade to a package that caused things to work ... 
sometimes.  So there was a KDE problem -- but I don't recall what package 
it was (I think it had a Q in it).  However, we are current on KDE and 
things are working ... sometimes.

The final solution and to fix it so it works almost all the time was that:
--- We stopped using -clipboard.  Instead we run the standalone xwinclip 
after the cygwin was started.

--- When using the xwinclip, it would either fail quickly or fail to start 
at all or fail to restart if we used the windows "start" command.  Instead 
we simply run xwinclip.exe (without the "start" command) about 20 seconds 
after the cygwin is started.  It is best to wait until the linux desktop is 
up and settled in.

--- With that method, xwinclip will start and stay started about 80% of the 
time.  However, sometimes it won't start/restart or it will die during the 
day.  Attempts to restart it at that point often do not work immediately. 
The solution to that is to go into a simple windows program like Notepad, 
highlight some plain text and do ctrl-c.  Then try restarting xwinclip.exe 
-- it should work. Somehow it gets something in its craw that it does not 
know what to do with and it dies.

I know that some of my problems are probably because we are still using 
Win95 for desktops.  (We are holding out until linux gets good enough on 
the "corporate desktop" that we can switch to all-linux; soon I hope if the 
linux-heads would realize that they need to get serious about linux in the 
corporate environment before Joe Employee can be productive with.)

I also know that since I am not using the latest and greatest (?) Cygwin 
stuff, I can't whine about things not working.  However, I find the Cygwin 
upgrade process so darn obnoxious and time consuming with multiple download 
sites which may or may not work at any given moment and then you have to 
start over, blah, blah, blah.  I would be willing to PAY for a STABLE 
Cygwin upgrade/download method so that I did not have to play sysadmin to 
get the latest versions. (Someday hopefully the Cygwin folks will realize 
that not everybody likes to twiddle bits and that some people have to work 
at their jobs to make money instead of trying to figure out how to get 
stuff downloaded.)

Jay
Andrew Schulman said the following on 08/09/2004 03:42 PM:
I run XWin.exe -multiwindow -clipboard -dpi 100 .  I can copy and paste from X 
to Windows clients, but not from Windows to X clients.  Windows to Windows 
and X to X copies also work fine.

I know I've seen postings about this problem in the past, but I can't find 
anything recent about it and I don't know what the status is.  The problem 
has persisted for me for a long time, on two different Windows XP boxes.

Any help appreciated.  cygcheck -svr is attached.
Andrew.


Re: Performance problems on slow Win98 computers

2004-07-04 Thread Jay Smith
Shachar,
I would also take a look at the amount of video memory available and the 
video card itself.

We have a similar setup on some machines except that they are 300 or 400 
MHZ processors but we are running Windows 95 instead of 98.  The important 
thing, however, is that when we switched from Gnome to KDE, performance 
(graphics speed) declined about 30% and Cygwin/X crashes increased from one 
per week to as many as 4 per day.  The number of crashes depends upon how 
many X applications are being run -- and how many dialog boxes get opened. 
The best way to crash a machine is to print from Linux/KDE Mozilla (using 
CUPS) a number of times.  Printing 15 jobs is about the limit -- Cygwin/X 
will crash.  We have a weekly time-sensitive "job" we have to do that 
involves printing about 100 web pages within a one hour period.  It takes 
two people and three computers to do it -- one person to do the printing 
and the other person to restart Cygwin/X and get the programs running again.

Anyway, 200 MHZ is pretty slow to run widget-rich KDE.  One thing we did 
that helped a bit was to use a KDE desktop scheme that has smaller, less 
complex icons.  With that each user might only crash once per day (unless 
they start printing...).

Jay
Shachar Shemesh said the following on 07/04/2004 07:05 AM:
Hi all,
I'm trying to use a win98 computer (about 200MHZ) as a full screen dumb 
terminal to a Linux computer running KDE, using XDMCP. Everything works, 
but I'm having severe latency problems with this setup.

When I switch to faster computers, the latency problem goes away. The 
problem seems to be with the cygwin/X load on the computer.

I have read somewhere that cygwin's X will use a shared memory driver if 
one is available. Could me not running the driver be the cause? Where 
can the driver be found (what cygwin package)? Or is it just that the 
computer is simply not fast enough to run our X server?

Another question has to do with shift processing. When I run xev, I can 
see that pressing the right shift causes a "LSHIFT" to be received. This 
is blocking certain applications that switch paragraph direction using a 
ctrl+lshift or ctrl+rshift combination. Is this a configuration problem 
on my end?

  Shachar


Re: Cygwin/X crashes when using -clipboard; Win95; switched fromG nome to KDE on linux

2004-06-28 Thread Jay Smith

Alexander Gottwald said the following on 06/28/2004 06:13 PM:
Jay Smith wrote:

No, I have not tried building...  I don't have the knowledge/skill without
very detailed instructions.  I am willing to try anything to help fix
things, but I am ignorant of how to do this stuff.

The users guide (or was it the contributors guide) has a detailed guide
how to build the xserver.
bye
ago
NP: Velvet Acid Christ - Haunted

Alexander,
Perhaps the problem is that I don't know what I am looking for, but I do 
not find such instructions in:

Cygwin Users Guide:
http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html
Cygwin/X Users Guide:
http://x.cygwin.com/docs/ug/cygwin-x-ug.html
Cygwin FAQ:
http://cygwin.com/faq.html
I might be looking right at what you intend me to see, but not understand 
what it is.  Or maybe I am not looking in the right places.

Jay


Re: Cygwin/X crashes when using -clipboard; Win95; switched fromG nome to KDE on linux

2004-06-28 Thread Jay Smith

Wilks, Dan said the following on 06/28/2004 05:31 PM:
Alexander Gottwald wrote:

Jay Smith wrote:

Hi Alexander,
Yes, I did get crashing from "simple cases" (i.e. plain text in a basic
KDE
xterm [konsole]).  In a couple cases the crash was within a few seconds
and
in other cases I was able to do two or three copy/paste operations
before
it crashed.
konsole is different from xterm. konsole most likely uses qt functions for
clipboard handling. But i doubt this makes any difference.

I am afraid that I haven't a clue how to track this down myself.
Does this error message give you any ideas?
   winClipboardErrorHandler - ERROR:
   BadValue (integer parameter out of range for operation)
No. Unfortunatly not. This error could result from any x11 call in the
clipboard thread. I could add more output which at least prints the
function called but this will only give minor hints. To find the code
where it fails one would have to debug XWin.

Does the rest of the log output (in my original post) look correct? Are
there any clues there?
If this can't be solved, then it may mean that Windows 95 may be no
longer
supported for Cygwin/X.

I haven't been watching this entire thread but there is additional logging
code in the sources that I don't think have made it into an official 
release.  Also, I did fix a few bugs that could cause a crash when text
was copied from X.  Jay, have you tried building your own XWin32 from
the CVS sources?  If you have, then you could try using -logverbose 3
to get additional clipboard messages.

Dan
Hi Dan,
No, I have not tried building...  I don't have the knowledge/skill without 
very detailed instructions.  I am willing to try anything to help fix 
things, but I am ignorant of how to do this stuff.

Jay


Re: Cygwin/X crashes when using -clipboard; Win95; switched from Gnome to KDE on linux

2004-06-27 Thread Jay Smith
Hi Alexander,
Yes, I did get crashing from "simple cases" (i.e. plain text in a basic KDE 
xterm [konsole]).  In a couple cases the crash was within a few seconds and 
in other cases I was able to do two or three copy/paste operations before 
it crashed.

I am afraid that I haven't a clue how to track this down myself.
Does this error message give you any ideas?
   winClipboardErrorHandler - ERROR:
   BadValue (integer parameter out of range for operation)
Does the rest of the log output (in my original post) look correct? Are 
there any clues there?

If this can't be solved, then it may mean that Windows 95 may be no longer 
supported for Cygwin/X.

Is there any possibility that xwinclip could be used?  Or is that 
completely useless now?

Jay
Alexander Gottwald said the following on 06/27/2004 03:30 PM:
Jay Smith wrote:

I am using Cygwin/X running on a Windows 95 PC to connect to a Linux RedHat
8 server and to display the various linux terminal screens, Mozilla running
on linux, etc., etc. Also, from one of those KDE linux terminal screens, I
launch terminal screens displaying shells running on an old SCO Unixware
server.

Does it also crash in very simple cases? copying from xterm for example should
work.
Maybe this is a problem with windows 95 but unless you start tracing this down
yourself you will have bad luck. I don't own any windows 9x box anymore and
can't try this myself.
bye
ago
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Cygwin/X crashes when using -clipboard; Win95; switched from Gnome to KDE on linux

2004-06-27 Thread Jay Smith
[In early June I switched from Gnome to KDE 3.2.2 for the X stuff -- at 
that point all Windows95<-->Cygwin/X copy/paste functionality ceased. 
Before this switch, we were using xwinclip and could copy/paste just fine 
from Cygwin/X/Gnome to/from Windows 95.  Inquiring of this list, I was told 
to upgrade Cygwin/X and to use -clipboard.  I have done so, but now 
Cygwin/X *crashes* when copy/pasting from Cygwin/X/KDE to Windows 95.]

I made a completely new install of Cygwin/X on 2004-06-26.  New Cygwin 
setup.exe, etc., etc.  I am thus using the Xorg stuff.

I am using Cygwin/X running on a Windows 95 PC to connect to a Linux RedHat 
8 server and to display the various linux terminal screens, Mozilla running 
on linux, etc., etc. Also, from one of those KDE linux terminal screens, I 
launch terminal screens displaying shells running on an old SCO Unixware 
server.

My startxdmcp.bat command line is:
run XWin -query %REMOTE_HOST% -once -nodecoration -lesspointer -clipboard
In four hours of use, I have attempted copying from X programs to Windows 
95 programs about 15 times.  Cygwin/X has crashed about 7 times (i.e. in 
Windows 95 task manager, Cygwin says "Program not responding").  When there 
is a crash, there is no response from Cygwin and I have to End Task in 
Windows 95.

-- In a number of cases, I was able to copy/paste from various Cgwin/X/KDE 
programs (mozilla on linux, xterm/konsole text, etc.) to (and from) Windows 
two or three times (if I was quick) before Cygwin crashed. Those 
copy/pastes *were* succesful -- until Cygwin crashed.

-- In other cases, Cygwin crashed the instant that I did the copy. Most or 
all (?) of these cases were attempts to copy text from the old SCO Unixware 
server that is being displayed through the linux terminals being displayed 
via the Cygwin/X.  (We *were* previously able to successfully do such 
copy/paste from the Gnome environment.)

-- In no case did Cygwin continue running for more than two or three 
minutes after doing a copy/paste to Windows 95.

-- Cygwin did seem to continue to run when doing a copy/paste *from* 
Windows95 *to* Cygwin/X/KDE.

-- I do not believe that any of my copy/paste tests involved any "special" 
or "foreign" characters.  I believe that my tests were all with "normal" 
English characters.  (I stopped testing before I got to testing with the 
Scandinavian characters, with which I do a lot.)

My Cygwin log appears to be pretty much normal (see below; it is hard to 
know what normal is -- there are things that fail) until the clipboard gets 
used and then the rest of the log is filled with perhaps 50 or 100 
instances of:

  winClipboardErrorHandler -  Error:
  BadValue (integer parameter out of range for operation)
I believe that our Linux server is using iso-8859-1 character encoding. I 
am quite sure that the older SCO Unixware server is using something else 
(older).

 Here is the error file content
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-10
Contact: [EMAIL PROTECTED]
XWin was started with the following command line:
/usr/X11R6/bin/XWin -query 192.168.1.10 -once -nodecoration
-lesspointer -clipboard
ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows 95/98/Me
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 16 bits per pixel
winFinishScreenInitFB - Masks: f800 07e0 001f
MIT-SHM extension disabled due to lack of kernel support
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
XFree86-Bigfont extension local-client optimization disabled due to lack of 
shared memory support in the kernel
(--) Setting autorepeat to delay=250, rate=15
(--) winConfigKeyboard - Layout: "0409" (0409)
(EE) Keyboardlayout "United States 101" (0409) is unknown
Rules = "xorg" Model = "pc101" Layout = "us" Variant = "(null)" Options = 
"(null)"
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing 
from list!
winPointerWarpCursor - Discarding first warp: 640 495
winProcEstablishConnection - Hello
winProcEstablishConnection - Xdmcp enabled, waiting to start clipboard 
client until fourth call.
winProcEstablishConnection - Hello
winProcEstablishConnection - Xdmcp enabled, waiting to start clipboard 
client until fourth call.
winInitClipboard ()
winProcQueryTree - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows 95/98/Me
winProcEstablishConnection -

Re: xwinclip on Win95 no longer works (switched from Gnome to KDE on linux)

2004-06-08 Thread Jay Smith
Thanks Alistair,
This is helpful to hear.  I was a little concerned because the Cygwin home 
page refers to Win98SE and above.

What I don't quite understand is why (my "old" November 2003) xwinclip was 
working perfectly fine with Gnome but won't work at all with KDE.

I will attempt upgrading (actually installing anew).
Jay
Alistair Bell said the following on 06/08/2004 04:49 AM:
The integrated clipboard stuff works fine for me on Win95 here with an up to
date cygwin, there were some hiccups when I first used it at the end of last
year/beginning of this, but the current implementation appears to have
sorted the problems.
Alistair

-Original Message-----
From:   Jay Smith [SMTP:[EMAIL PROTECTED]
Sent:   07 June 2004 19:23
To: [EMAIL PROTECTED]
Subject:xwinclip on Win95 no longer works (switched from Gnome to
KDE on linux)
[I hope that there are some ideas for this that do not include upgrading 
the XFree86 stuff -- the last time I did such an upgrade it took a day and

a half to get things running properly again.]
xwinclip will either not start, or will not stay started, or causes XFree 
session to lock up and/or crash the session and/or the PC.  This has just 
started when we switch from Gnome to KDE for our Xwindowing.


--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


xwinclip on Win95 no longer works (switched from Gnome to KDE on linux)

2004-06-07 Thread Jay Smith
[I hope that there are some ideas for this that do not include upgrading 
the XFree86 stuff -- the last time I did such an upgrade it took a day and 
a half to get things running properly again.]

xwinclip will either not start, or will not stay started, or causes XFree 
session to lock up and/or crash the session and/or the PC.  This has just 
started when we switch from Gnome to KDE for our Xwindowing.

When the main script to start Xwin is run, Xwin starts fine and we can log 
into the linux host.  However, after 30 seconds (and I have tried setting 
this longer) when the script to start xwinclip is run, xwinclip starts and 
then dies 95% of the time; if it does not die immediately, it will die a 
couple minutes later.

When we run a start xwinclip script, xwinclip tries to start and then it 
dies.  On perhaps one out of fifteen attempts xwinclip will stay started, 
HOWEVER, if it does stay running the clipboard functions will work, BUT 
then after a very few minutes the Xwin stuff (i.e. the KDE linux session 
that is running) will start to slowww way down and freeze up. If I am 
quick enough and I can kill the xwinclip program, then the Xwin will not 
freeze -- it will recover.  Otherwise, the Xwin will freeze totally -- and 
in two cases, completely and totally freeze the Win95 PC.

I have tried commenting out the start script for xwinclip and using the 
-clipboard option instead, but that did NOT enable the clipboard to work in 
either direction between Win95 and the linux applications.

=
We have been happily using Cygwin/XFree86 since updating to what every 
XFree86 was *current on November 19, 2003* -- I still don't know how to 
tell you what version number of XFree86 stuff that is.

We use Windows 95 PCs (I know, I know) as workstations from which we log 
into a host server running RedHat 8.  All our workstations seem to be 
equally affected by this problem.

Up to a couple days ago, we had been using GDM to login and Gnome for the 
RedHat desktop, but as the result "upgrading" some linux packages on the 
server so that we could install a package on the linux server, the Gnome 
stopped functioning.  We had planned to go to KDE anyway, so we did it.

We are logging into a host server KDE 3.2.2 (most recent) desktop session 
via kdm. The host is running Red Hat 8.0 with all current updates available 
from Red Hat and/or Fedora Legacy (kernel 2.4.20-30.8, XFree86 4.2.1-23).
The host KDE has been upgraded to the most current version 3.2.2 available 
from KDE Red Hat project. The host is dual PIII 1G with 3G RAM and 
IBM/Mylex SCSI RAID.

Within the host sessions users run one or more (up to four) Mozilla 
browser/mail windows and several terminal/konsole windows (up to 15) 
running character apps such as Informix Perform screens, LEX word 
processing, VI editing, etc., etc. Occasional use is made of KDE file 
manager, OpenOffice, and the like.

The users need to be able to cut/paste between the linux host X apps 
(Mozilla Mail, xterm sessions, etc.) and Win95 apps (WordPerfect, NotePad, 
IE, etc.)

THIS IS THE STARTXDMCP.BAT SCRIPT ===
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin
SET REMOTE_HOST=192.168.1.10
SET CYGWIN_ROOT=\cygwin
if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
echo cleanup required >> \startxwinJSA.log
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\ssh-*
:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix
if "%OS%" == "Windows_NT" goto OS_NT
goto STARTUP
:OS_NT
:STARTUP
start XWin -once -nodecoration -query jsa.jaysmith.com
sleep 30
C:\windows\command\start /m xwinclip.exe
exit
== END OF STARTDMCP SCRIPT
WE ALSO HAVE AN RESTART-XWINCLIP SCRIPT =
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin
SET REMOTE_HOST=192.168.1.10
SET CYGWIN_ROOT=\cygwin
C:\windows\command\start xwinclip.exe
exit
== END OF RESTART-XWINCLIP SCRIPT
Jay
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


BUMP: Icelandic character composition not working

2004-03-02 Thread Jay Smith
Hi Again,

If this is not the correct place to ask about this, please just let me 
know. Otherwise, any ideas?

Jay



Hi,

Sorry if this is the wrong list; I am not sure where to turn.

In RedHat Linux running under xwindows provided by Cygwin/XFree86, I am
able to type all the "foreign characters" I need to use, except for one
Icelandic characters (I can type other Icelandic characters).  Again, this
is to type such characters in linux programs and documents running under X.
My "guru" mapped the Right Alt key as the Multi_key and so with it I can
make characters like þ and Þ and Ä, etc., by typing combinations of
letters, etc.
However, I have not been able to figure out how to make the "thorn" (eth)
character which I think is 208 and 240 decimal.  It is the character that
looks like a d or D with a horizontal line through it.
The docs say that I am supposed to be able to use:

  minus Dor  D minus

  minus dor  d minus

(minus = dash = - )

I have Googled and just am not finding the right page.

Any ideas?

Thanks.

Jay


Icelandic character composition not working

2004-02-29 Thread Jay Smith
Hi,

Sorry if this is the wrong list; I am not sure where to turn.

In RedHat Linux running under xwindows provided by Cygwin/XFree86, I am 
able to type all the "foreign characters" I need to use, except for one 
Icelandic characters (I can type other Icelandic characters).  Again, this 
is to type such characters in linux programs and documents running under X.

My "guru" mapped the Right Alt key as the Multi_key and so with it I can 
make characters like þ and Þ and Ä, etc., by typing combinations of 
letters, etc.

However, I have not been able to figure out how to make the "thorn" (eth) 
character which I think is 208 and 240 decimal.  It is the character that 
looks like a d or D with a horizontal line through it.

The docs say that I am supposed to be able to use:

  minus Dor  D minus

  minus dor  d minus

(minus = dash = - )

I have Googled and just am not finding the right page.

Any ideas?

Thanks.

Jay


Re: xterm Xt error: Can't open display:

2003-12-09 Thread Jay Smith
Could it be related to mixing (as you showed in your post)
  DISPLAY=
and
  Export DISPLAY
???
The example shows:

$ DISPLAY=localhost:0.0
$ export DISPLAY
$ ssh -X remotehost
or

$ DISPLAY=localhost:0.0 ssh -X remotehost

which is different from your original post.

May you tried all the combinations already?

Jay

cryst said the following on 12/09/2003 01:06 PM:
Thanks, but I've been there and it didn't help. (Hence this list).

Any idea on how to diagnose this?

Chris Bruner

- Original Message - 
From: "Alexander Gottwald" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 09, 2003 12:00 PM
Subject: Re: xterm Xt error: Can't open display:



On Tue, 9 Dec 2003, cryst wrote:


[EMAIL PROTECTED]'s password:
Warning: No xauth data; using fake authentication data for X11
forwarding.

Last login: Tue Dec  9 12:29:56 2003 from 192.168.1.23
[EMAIL PROTECTED] chris $ xterm
xterm Xt error: Can't open display:
[EMAIL PROTECTED] chris $
and the like.  This used to work.  Does anyone have any idea what is
going

wrong?


http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-ssh-no-x11forwarding

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




Running Windows on Linux (Re: How to configure a windows machine as an X client?)

2003-12-03 Thread Jay Smith
Thai,

I don't know if you can do it the way you said it.  However

On the linux server (or a linux workstation) you could run a program such 
as Wine, Crossover, or VMWare which allow you to run linux programs on the 
linux server (and thus from any X client connected to the linux server). 
There are a couple different fundimental types of these programs and I am 
not competent to give you information.  However, see:

  http://www.winehq.com/

  http://www.codeweavers.com/

  http://www.vmware.com/products/desktop/ws_features.html

I have some notes (about a year old) that may or may not be accurate.

1) Install and run the MS Windows application using WINE. You then run the 
applications directly in Linux letting the wine layer "translate" MS 
Windows API calls into native Linux API calls. This is great but the 
"translation" is not 100%. Especially for newer versions of MS Windows and 
especially for extremely MS dependent stuff (eg. Quicken which leverages a 
lot of MS DLL's like IE's DLL). It seems to work reasonably for most 
well-written DOS/Win95/98 level programs.

2) Install Crossover ($59 - price may be old) which expands and enhances 
the WINE environment such that a lot more MS Windows apps can run and they 
are easier to install. Eg. They have improved it enough to install and run 
the MS Office suite, MS IE, Outlook, Quicken, etc.

3) Install VMWare ($300 - price may be old) which provides an clean "PC in 
a window" upon which you can install your favorite flavor of MS Windows. 
When you open the "PC in a window" (aka VMWare session) it "boots" MS 
Windows and you install your software just as you would on a stand-alone MS 
Windows PC.

Hope that helps.

Jay

Thai.Dang-Vu-1 said the following on 12/03/2003 05:44 PM:
Hello everybody,

I'm very impressed that I can use Cygwin/XFree86 and openssh to run mozilla on a Linux machine with the mozilla window on the Windows machine.

I have a question. Could I configure a Windows machine as an X client so that from a Linux machine I can run Internet Explorer and have the IE window on that Linux machine? If it is possible, could you tell me which document I should read?

Regards,

Thai
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Re: Access from outside a NAT/firewall

2003-12-02 Thread Jay Smith
Andrew,

I can't speak to the direct question about XDMCP, however

Some NAT devices are able to map multiple internal addresses to multiple 
external addresses.  If your network's NAT/firewall has the "multiple" 
capability the risks vs rewards must be carefully examined.

Jay

Andrew Leung said the following on 12/02/2003 09:01 PM:

 
Another question,  I would like to access this box from external, it's behind a NAT/firewall.  I've been hearing that xdmcp does not work behind NAT devices..  true or false?
 
thx




xwinclip & startxdmcp.bat questions/problems

2003-11-19 Thread Jay Smith
Okay, I used the 'rcn' mirror to get xwinclip (and updated other stuff). 
[It sure would be nice if we knew which mirrors to use -- without having to 
look at every one.]

I changed the command in *my own script* (startxwinJSA.bat), which had 
worked up to this point, to read:
  start XWin -once -nodecoration -query jsa.jaysmith.com
  start xwinclip.exe

(My own script (startxwinJSA.bat) did a bunch of extra logging to see where 
errors were occuring, etc.)

That did *not* work; I got no login whereas I had previously.  So, I had to 
use the startxdmcp.bat script (given at bottom of this message) and added 
the above command changes to it.  I am not sure if startxdmcp.bat came with 
the XFree stuff or where it came from (it is possible that my systems guy 
came up with it, but I doubt it).

Apparently running 'start Xwin' in some other script causes 
'startxdmcp.bat' to run so stuff was running twice???

Anyway, the problem now is that:

a) I am still (same as before this upgrade) left with a DOS window for the 
startxdmcp that has to be manually closed.  Annoying, but not terrible.

b) I am additionally now left with *another* DOS window for xwinclip.  When 
I try to close it, it says that the program will terminate.  It is not 
desirable to have it there because I normally already run with 6-10 Windows 
 windows running and the task bar is pretty full. There are tons of 
"error" messages in the xwinclip DOS window (but the copy/paste is working 
fine).

c) Harold mentioned "restarting" xwinclip.  I have not been able to find 
any instructions on how to do this.  The xwinclip readme does not cover 
that.  Please advise.

Thanks for your help.  Sorry to be a pain, but to the non-tech user some of 
this is tough to parse out.

Jay

= startxdmcp.bat ==

@echo off
SET DISPLAY=127.0.0.1:0.0
SET REMOTE_HOST=192.168.1.10
SET CYGWIN_ROOT=\cygwin
REM Cleanup after last run.
if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0
:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix
REM Startup the X Server and attempt to connect to a remote XDM server.

if "%OS%" == "Windows_NT" goto OS_NT

REM Windows 95/98/Me
echo startxdmcp.bat - Starting on Windows 95/98/Me
goto STARTUP

:OS_NT

REM Windows NT/2000/XP
echo startxdmcp.bat - Starting on Windows NT/2000/XP
:STARTUP

start XWin -once -nodecoration -query jsa.jaysmith.com
start xwinclip.exe



xwinclip installation problems (Re: Cut-Copy/Paste dies after several hours (-clipboard))

2003-11-19 Thread Jay Smith
Harold,

Maybe I am just being stupid, but I can't seem to find the clipboard 
program, because

a) Using the Cygwin setup wizard to attempt to update my installation, I 
checked a couple mirrors and they don't seem to have xwinclip -- they only 
seem to have XFree86-xwinclip.

b) I went to the XFree86 web site and then the xwinclip site 
http://xfree86.cygwin.com/devel/xwinclip/
Obviously that page is long out of date so I don't know if I can trust 
anything it says about installation.  At this point I don' know how to get 
the program to install it.

c) Using your
http://cygwin.com/ml/cygwin-xfree-announce/2003-10/msg00028.html
information, I am supposed to use the Cygwin installation wizard, but as I 
said in "a" above, I am not finding the program.

What am I missing?

Jay

Harold L Hunt II said the following on 11/18/2003 11:34 PM:
xwinclip was updated on October 30th:

http://cygwin.com/ml/cygwin-xfree-announce/2003-10/msg00028.html

Using the integrated -clipboard support prevents you from restarting the 
clipboard support if/when it dies.  I would recommend using xwinclip in 
your case since you can restart it when it dies.  It also might not die 
at all... since the external executable seems slightly more stable than 
the internal client running in a thread.

You could also use the stand-alone xwinclip to delay the start of 
xwinclip until after you are logged into XDMCP.  Kensuke backported the 
update to -clipboard to xwinclip... that is what the xwinclip-1.2.0-1 
package was for.  Note: XFree86-xwinclip is a dead package.  It was 
renamed to just "xwinclip".

Hope that helps,

Harold

Jay Smith wrote:

Hi again,

1) Is this a known problem?  Any suggestions?

   I thought I was going nuts, but it has happened enough times that I 
am sure it is really happening.  My usual workday is about 14 hours.  
After around 9-11 hours, the "-clipboard" cut-copy/paste between 
Windows and Linux stops functioning.  It seems that it no longer puts 
the highlighted content into to the/a paste buffer.

   I have not been able to determine if this is simply "happening by 
itself" of if some event is occuring.  However, if I accidenally leave 
my X sessions up overnight, the cut-copy/paste rarely still works in 
the morning even though it may have worked when I left the night before.

   My Windows machine is Windows 95b.

   The Linux server on which the X applications are running is Red Hat 
8, up2date with most recent updates.

   I have not been able to find instructions on Cygwin.com how to get 
a list of installed Cygwin/XFree version numbers.  (Advice?)  However, 
I installed everything freshly on 18 October 2003 if that helps.

   I am using the -clipboard option.  I am not sure why I am not using 
xwinclip -- there was something that did not work at some point.

2) In case anybody is inspired to work on it, I still have the problem 
that if I don't get logged in to the XDM "instantly", the 
cut-copy/paste does not function.  I have mentioned this earlier and 
Harold said that he is otherwise occupied.  I don't have the technical 
ability to do anything about it.

   When I say instantly, I mean that I have to absolutely type my name 
and password as fast as I possibly can -- and I am a very fast typist 
-- and about half the time, that is fast enough.  If I am too slow, 
the cut-copy/paste does not work.

   Also, if the startup time of Xwin is too slow (i.e. first time run 
after PC is rebooted), then I rarely have a chance of cut-copy/paste 
working.  Because of Win95 graphics resource issues, I have to reboot 
my machine every morning -- that means I have to log in to the XDM at 
least twice to get cut-copy/paste working.

   There is a particular "click" the hard disk makes (of the many that 
occur as programs are starting up) when this particular program is 
starting.  I know 100% of the time that if the "click" happens before 
the login process is far enough along that the cut-copy-paste will not 
work.

   By the way, this also means if the Linux server is under heavy load 
and responding slowly at that moment that I am out of luck and will 
have to try again until things are fast enough getting logged in and 
up before cut-copy/paste will work.

Jay

--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Cut-Copy/Paste dies after several hours (-clipboard)

2003-11-18 Thread Jay Smith
Hi again,

1) Is this a known problem?  Any suggestions?

   I thought I was going nuts, but it has happened enough times that I am 
sure it is really happening.  My usual workday is about 14 hours.  After 
around 9-11 hours, the "-clipboard" cut-copy/paste between Windows and 
Linux stops functioning.  It seems that it no longer puts the highlighted 
content into to the/a paste buffer.

   I have not been able to determine if this is simply "happening by 
itself" of if some event is occuring.  However, if I accidenally leave my X 
sessions up overnight, the cut-copy/paste rarely still works in the morning 
even though it may have worked when I left the night before.

   My Windows machine is Windows 95b.

   The Linux server on which the X applications are running is Red Hat 8, 
up2date with most recent updates.

   I have not been able to find instructions on Cygwin.com how to get a 
list of installed Cygwin/XFree version numbers.  (Advice?)  However, I 
installed everything freshly on 18 October 2003 if that helps.

   I am using the -clipboard option.  I am not sure why I am not using 
xwinclip -- there was something that did not work at some point.

2) In case anybody is inspired to work on it, I still have the problem that 
if I don't get logged in to the XDM "instantly", the cut-copy/paste does 
not function.  I have mentioned this earlier and Harold said that he is 
otherwise occupied.  I don't have the technical ability to do anything 
about it.

   When I say instantly, I mean that I have to absolutely type my name and 
password as fast as I possibly can -- and I am a very fast typist -- and 
about half the time, that is fast enough.  If I am too slow, the 
cut-copy/paste does not work.

   Also, if the startup time of Xwin is too slow (i.e. first time run 
after PC is rebooted), then I rarely have a chance of cut-copy/paste 
working.  Because of Win95 graphics resource issues, I have to reboot my 
machine every morning -- that means I have to log in to the XDM at least 
twice to get cut-copy/paste working.

   There is a particular "click" the hard disk makes (of the many that 
occur as programs are starting up) when this particular program is 
starting.  I know 100% of the time that if the "click" happens before the 
login process is far enough along that the cut-copy-paste will not work.

   By the way, this also means if the Linux server is under heavy load and 
responding slowly at that moment that I am out of luck and will have to try 
again until things are fast enough getting logged in and up before 
cut-copy/paste will work.

Jay

--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Re: Can't type in login window via XDMCP

2003-11-18 Thread Jay Smith
Jae,

I have been told on this list that it "shouldn't" (or was it "doesn't"?) 
make a difference, however, when logging into an RH8 box, I *had* to put 
the -query as the last element on the line.  Try this to see if it makes 
any difference (you seem to be having somewhat different problems, thus I 
am not sure...)

c:\cygwin\usr\X11R6\bin\xwin -from 192.168.1.4 -query zephyr.mydomain.com

The other thing I wonder about is fonts.  I am ignorant on the subject, but 
is there a chance that not all the fonts needed are being loaded (on either 
end?)

Jay

[EMAIL PROTECTED] said the following on 11/17/2003 02:13 PM:
Hi folks,
First thanks to all who contribute.  Xfree on Cygwin has been great.
However, I was seeing 2Gb+ XWin.log files and felt I needed to update.  SO I
updated today and now I can't login via XDMCP.  Here's the command line I
use:
c:\cygwin\usr\X11R6\bin\xwin -query zephyr.mydomain.com -from 192.168.1.4

The system I'm logging into is a RH ES2.1 server.  I've been using the same
setup for months now.
The problem is that I can't type in the login window.  Nothing appears.  The
only thing I can see getting thru is the Caps Lock, which I find very
strange.
Even if I start xwin and then twm and an xterm I can't type in the xterm.

I do see a message in /tmp/XWin.log:
(EE) Unable to locate/open config file
InitOutput - Error reading config file
Do I need a config file?  I haven't used one before.

I found this message:
http://sources.redhat.com/ml/cygwin-xfree/2003-10/msg00303.html and tested
http://www.msu.edu/~huntharo/xwin/devel/server/XWin-4.3.0-20-Test01.exe.bz2
and I can login.  So it looks like the problem is in the new WaitFor.c code.
Now I'm hung at a blank screen, though.

Any help would be appreciated.  I'm hosed for the time being.

Thanks
--
Jae Ellers  Tektronix, Inc.
Jae dot ellers at tek dot com   (503) 627-3622
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


(2nd post) Copy/Paste problems due to speed of xdm login process

2003-10-28 Thread Jay Smith
[I posted this on the 24th, but it got no reply.  Any ideas on this? Thanks.]

Hi Harold, Kensuke, et al

The copy/paste is working *much* better after your recent fix.  However, I
am having a very serious problem with it -- the copy/paste functionality
only works if I login *extremely* fast to the XDM.  I am a fast typist, but
I can only login fast enough about half of the time.
About 18 months ago (?) back when we were using xwinclip -- before it was
integrated into the main program -- we had to put a "sleep" into the script
to provide enough time for the communication to take place so that xwinclip
would function.
After xwinclip became integrated into the program, none of this was a
problem, until I installed the new Cygwin a couple weeks ago.
Can you do something to allow adequate time to login so that the copy/paste
will function?
Jay

--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750



Re: freenode.net - IRC channel for the project?

2003-10-27 Thread Jay Smith
Harold,

I hope you are not suggesting that this entire newsgroup/list would move to 
IRC.

Jay

Harold L Hunt II said the following on 10/27/2003 02:52 PM:
Would someone here care to set us up an IRC channel on irc.freenode.net? 
 I think 'cygwinx' would be an appropriate name.

We could have some development discussions there as well as answering 
questions from users.  I think it would be a beneficial format.

With that being said, I don't op IRC channels, so someone else could 
probably do a much better job setting this up than I could.

Any volunteers?  I'd like to get it setup within the next few hours, if 
possible.

Harold
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Copy/Paste problems due to speed of xdm login process

2003-10-24 Thread Jay Smith
Hi Harold, Kensuke, et al

The copy/paste is working *much* better after your recent fix.  However, I 
am having a very serious problem with it -- the copy/paste functionality 
only works if I login *extremely* fast to the XDM.  I am a fast typist, but 
I can only login fast enough about half of the time.

About 18 months ago (?) back when we were using xwinclip -- before it was 
integrated into the main program -- we had to put a "sleep" into the script 
to provide enough time for the communication to take place so that xwinclip 
would function.

After xwinclip became integrated into the program, none of this was a 
problem, until I installed the new Cygwin a couple weeks ago.

Can you do something to allow adequate time to login so that the copy/paste 
will function?

Jay

--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


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

2003-10-22 Thread Jay Smith
I had a similar problem that may or may not be what you are experiencing.
Though two people have told me that the change I made should not have an
effect one way or the other, I moved the "-query " to the end of the
command line and it started working instantly.
  Xwin -this -that -query myserver.mydomain.com
Or
  Xwin -this -that -query 192.168.1.1  (or whatever)
Jay

Norbert Schmidt said the following on 10/22/2003 09:49 AM:
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.
If I start xinit from cygwin-terminal everything works fine and even
the whole .bat-file.
I need that for an easy way to ssh-X-ing to a solaris-maschine
(xinit -e ssh -X ...),
and it worked before!


The reason for the update was to test the -emulatepseudo feature, but no
success yet.
(pointer without white frame, some windows almost black, some lines (CAD)
out of the window)
thanks for your work ;-)),
Norbert
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750



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

2003-10-22 Thread Jay Smith
I had a similar problem that may or may not be what you are experiencing. 
Though two people have told me that the change I made should not have an 
effect one way or the other, I moved the "-query " to the end of the 
command line and it started working instantly.

  Xwin -this -that -query myserver.mydomain.com
Or
  Xwin -this -that -query 192.168.1.1  (or whatever)
Jay

Norbert Schmidt said the following on 10/22/2003 09:49 AM:
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.
If I start xinit from cygwin-terminal everything works fine and even
the whole .bat-file.
I need that for an easy way to ssh-X-ing to a solaris-maschine
(xinit -e ssh -X ...),
and it worked before!


The reason for the update was to test the -emulatepseudo feature, but no
success yet.
(pointer without white frame, some windows almost black, some lines (CAD)
out of the window)
thanks for your work ;-)),
Norbert
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


results/problems (Re: [PATCH] Copy/Paste non-ascii characters)

2003-10-18 Thread Jay Smith
Harold,

I have done the installation and I have several things to report. If some 
of these are not for this list, please advise.  First of all, FYI, when I 
did the install, Progeny would not respond at all so I used Purdue.  In any 
case, I turned OFF everything and then turned on only XFree xserve, 
scalable fonts, and xwinclip -- those of course caused some other things to 
turn on automatically.

1) The main problem of copy/paste of non-ascii characters *within* Linux 
Mozilla seems to be *fixed*.  Thanks!

However

2) I had my own modified script (with its own unique filename) that was 
used to start X; I guess this was before startxdmcp.bat was available.  I 
copied my script into place. However, when I run MY script now, it seems 
like the command (in MY script)
   start XWin -nodecoration -clipboard -once -query jsa.jaysmith.com
actually (also?) RUNS startxdmcp.bat

   That is very odd and I am not sure what to do.  I had to modify 
startxdmcp.bat to bring it in line with my script so the proper command 
would get done.

   I believe that startxdmcp.bat is getting run because the DOS box that 
appears says so, identifying it by name -- even if *I* don't directly run it.

3) I think that startxdmcp.bat may have an error in it.  The original 
version of it has the command:

  start XWin -query %REMOTE_HOST% -nodecoration -lesspointer

   and this causes an error in the DOS box about "too many paramaters". I 
am certainly no expert, but I think that the "-query " should be the 
LAST thing on the command line.  Anyway, when I made it so (like my 
original script) it worked without putting out the error.

4) Generally X performance seems to be better.  It is very subjective, but 
so good, so far.

Jay

Harold L Hunt II said the following on 10/14/2003 10:28 PM:
Jay,

The status is that XFree86 has been recompiled and rereleased for Cygwin 
1.5.x.  Everything should be "safe".  However, I would always recommend 
doing a demo installation on one machine and trying out your apps before 
you upgrade all machines.  That should give you a better idea of if it 
will work for you.

One thing you can do is rename c:\cygwin to c:\cygwin_works, download 
setup.exe to c:\cyginstall_test, then run setup.exe and install to 
c:\cygwin (which is now an empty directory).  This will allow you to 
test a complete new install and see if it works for you.  You can then 
move c:\cygwin to c:\cygwin_test and move c:\cygwin_works back to 
c:\cygwin to restore your old installation.

Harold

Jay Smith wrote:

Harold,

Before I embark on upgrading all of Cygwin to deal with this, is there 
any risk that stuff will break?  Since Cygwin underwent a major 
overhaul recently, it seems to me that there is a chance that some 
small parts of XFree86 stuff (I use little else) might be broken until 
all is brought up to speed.

Since this is a minute-to-minute critical application (X windowing) 
upon which we rely 100%, I have to be very careful about changes.  
(Recalling recent RedHat library changes which broke lots of stuff and 
recent Perl version changes which wrecked our CGI scripts.)

What is the status? Does all the XFree86 stuff work under the new 
Cygwin? Is it "safe" now?  (I know that in the first few weeks it was 
not "safe".)

Jay

Harold L Hunt II said the following on 10/14/2003 09:23 PM:

Jay,

Jay Smith wrote:

Harold,

a) Before I attempt this fix, will this work with my old version of 
everything else?  I know that Cygwin has moved ahead since April.  
Or does installing this start me down a slippery slope...




I hate when I forget to ask this if people are running the latest 
version or not.  You really need to be running the latest versions in 
order for us to properly debug and test things.

Yes, you will have to update to the 4.3.0 release of Cygwin/XFree86.  
I think I released it after April.  All of the DLLs have had their 
names changed, so you need to get those (in the -bin package) but I 
believe I made the fonts in such a way that they will not download 
again unless you have a really old version.  You will basically need 
to get anything that has a new version, since there have been updates 
to Cygwin's DLL, various libraries, etc.

b) Before I had the sense to ask the question above, I got as far as 
starting the download process from a mirror that I had previously 
used. The  setup program warned me that a newer setup.ini file would 
replace the old one, but did not seem to give me a way to cancel 
out.  So, now I have an new setup.ini but old "everything else" 
files -- and I *do* need the "old everything else" to reinstall on 
PCs that die, etc.  Am I screwed?




Setup gives a warning about setup.ini telling it that there is a new 
version of setup.exe available and that you don't have it.  Download 
the latest setup.exe and you won't get the warning (plus there has 
been a lot of de

Re: [PATCH] Copy/Paste non-ascii characters

2003-10-14 Thread Jay Smith
Harold,

Before I embark on upgrading all of Cygwin to deal with this, is there any 
risk that stuff will break?  Since Cygwin underwent a major overhaul 
recently, it seems to me that there is a chance that some small parts of 
XFree86 stuff (I use little else) might be broken until all is brought up 
to speed.

Since this is a minute-to-minute critical application (X windowing) upon 
which we rely 100%, I have to be very careful about changes.  (Recalling 
recent RedHat library changes which broke lots of stuff and recent Perl 
version changes which wrecked our CGI scripts.)

What is the status? Does all the XFree86 stuff work under the new Cygwin? 
Is it "safe" now?  (I know that in the first few weeks it was not "safe".)

Jay

Harold L Hunt II said the following on 10/14/2003 09:23 PM:
Jay,

Jay Smith wrote:

Harold,

a) Before I attempt this fix, will this work with my old version of 
everything else?  I know that Cygwin has moved ahead since April.  Or 
does installing this start me down a slippery slope...


I hate when I forget to ask this if people are running the latest 
version or not.  You really need to be running the latest versions in 
order for us to properly debug and test things.

Yes, you will have to update to the 4.3.0 release of Cygwin/XFree86.  I 
think I released it after April.  All of the DLLs have had their names 
changed, so you need to get those (in the -bin package) but I believe I 
made the fonts in such a way that they will not download again unless 
you have a really old version.  You will basically need to get anything 
that has a new version, since there have been updates to Cygwin's DLL, 
various libraries, etc.

b) Before I had the sense to ask the question above, I got as far as 
starting the download process from a mirror that I had previously 
used. The  setup program warned me that a newer setup.ini file would 
replace the old one, but did not seem to give me a way to cancel out.  
So, now I have an new setup.ini but old "everything else" files -- and 
I *do* need the "old everything else" to reinstall on PCs that die, 
etc.  Am I screwed?


Setup gives a warning about setup.ini telling it that there is a new 
version of setup.exe available and that you don't have it.  Download the 
latest setup.exe and you won't get the warning (plus there has been a 
lot of development on setup.exe in the last several months).

I'm not sure about the status of your installation images.  It sounds 
like you have been doing a download to disk then installing from that? 
Uh... guess all I can tell you is that you should have backed up first 
:)  Of course, you could just look at files that have been updated 
recently and check if setup.exe made a backup of the old setup.ini that 
you had.

Harold


Jay

Harold L Hunt II said the following on 10/12/2003 11:01 PM:

Jay,

I just posted XFree86-xserv-4.3.0-20 as a 'test' package; it should 
be showing up on mirrors within a few hours.  When it does, run 
setup.exe and manually select version '4.3.0-20' for the 
XFree86-xserv package. Then, run the new server version as usual (do 
not use the new flag that Kensuke talked about) and report your 
results to the mailing list.

Harold

Jay Smith wrote:

Dear Kensuke,

Thank you very much for your effort on this.

Unfortunately, I am pretty ignorant of these matters, thus you will 
have to tell me what it is that I should do with the two .diff files 
you attached. I will be happy to do whatever with them, but I am 
clueless as to what is to be done with them.

Sorry to be a pain.

Jay

Kensuke Matsuzaki said the following on 10/12/2003 09:33 PM:

Jay,

Perhaps this patch enable XWin to copy/paste non-ascii characters
even if Windows does't support Unicode (95/98/Me).
LANG environment variable and Windows locale must be same.
I added -nounicodeclipboard option, I tested using this on XP.
But I don't have 95/98/Me.
And it seems tha libX11 has some CTEXT convertion bug, I attach
patch that based on TAKABE's work.
http://www.ff.iij4u.or.jp/~t-takabe/xf410_xim_fix.diff
By the way, nls/locale.alias has alias somethig like
"Arabic_Egypt.1256". Can we use that?
If so, we no longer need LANG environment variable.
We can get it following code.
  char pszCountry[128];
  char pszLanguage[128];
  int nAcp = GetACP ();
GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGCOUNTRY, 
pszCountry, 128);
  GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGLANGUAGE, 
pszLanguage, 128);

  printf ("%s_%s.%d\n", pszLanguage, pszCountry, nAcp);

Kensuke Matsuzaki






--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Setup.exe interface and process issues

2003-10-14 Thread Jay Smith
Hi,

As long as I was ranting about mirrors, I should also mention:

  (I am on Windows95.  I don't know how to find out the version of the
  setup.exe file, but I got it on 2002-05-12 [that's pretty old, but I
  am not sure how to get a newer one].)
a) If there are multiple mirror download directories in a download 
directory on my local server:

  .../downloads/ftp%3a%2f%2farchive.progeny.com%2fcygwin
  .../downloads/ftp%3a%2f%2fcsociety-ftp.ecn.purdue.edu%2fpub%2fcygwin
  and if when I run setup.exe I select .../downloads as the local package
  directory (instead of one of the directorie below it), setup.exe will
  *lockup*.  I have to Ctrl Alt Delete to kill that one task.
b) The wording of the dialog box in which I select the local package 
directory is quite confusing and the first time I used it I had to ask 
somebody which was what.  This step could use some clarification if it has 
not already been clarified.

Thanks.

Jay

--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Multiple downloads from multiple mirrors confusion

2003-10-14 Thread Jay Smith
Hi,

It sure is frustrating that each mirror creates it's own package download 
directory.

Thus (unless I am doing it wrong), each time I get more files from a 
different mirror (because the previous mirror(s) won't respond (i.e. 
purdue), a new directory is created and thus I have to run setup.exe 
multiple times in the order of the original directory creation.  That seems 
to be the only way to retrace history and install the most recent version 
of *my* set of files.  However, per a and b above, if I get additional 
files from one of those mirrors, now things are out of order so to speak.

Maybe this illustrates:

2003-01-01  Mirror #1 download creates a Directory #1

2003-02-01  Mirror #1 no longer responds, thus some additional needed
   files are downloaded from Mirror #2 thus creating Directory #2
At this point, to do an install on a new PC, I have to run setup.exe 
against Directory #1 and then AGAIN against Directory #2.  A bit of a pain.

2003-03-01  An *updated* file is needed. However, now Mirror #2 is not
   responding.  So, I go back to Mirror #1.  However, when I do, Mirror #1
   supplies an updated setup.ini file which it warns may no longer work
   with the older files in Directory #1.  I download the needed *updated*
   file which thus goes in Directory #1.
At *this* point, to do an install on a new PC, I have to run setup.exe 
against Directory #1 and Directory #2 (just as before), HOWEVER, now 
Directory *#1* contains the most recent version of that *updated* file 
obtained on 2003-03-01.  Is there a chance that the *updated* file in 
Directory #1 will be overwritten with the older file that is in Diretory #2?

I am sure that I don't understand the fine points of this system. However, 
it seems to me (easy for me to say) that everything should download into a 
*single* package download directory.

Jay

--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Re: [PATCH] Copy/Paste non-ascii characters

2003-10-14 Thread Jay Smith
Harold,

a) Before I attempt this fix, will this work with my old version of 
everything else?  I know that Cygwin has moved ahead since April.  Or does 
installing this start me down a slippery slope...

b) Before I had the sense to ask the question above, I got as far as 
starting the download process from a mirror that I had previously used. The 
 setup program warned me that a newer setup.ini file would replace the old 
one, but did not seem to give me a way to cancel out.  So, now I have an 
new setup.ini but old "everything else" files -- and I *do* need the "old 
everything else" to reinstall on PCs that die, etc.  Am I screwed?

Jay

Harold L Hunt II said the following on 10/12/2003 11:01 PM:
Jay,

I just posted XFree86-xserv-4.3.0-20 as a 'test' package; it should be 
showing up on mirrors within a few hours.  When it does, run setup.exe 
and manually select version '4.3.0-20' for the XFree86-xserv package. 
Then, run the new server version as usual (do not use the new flag that 
Kensuke talked about) and report your results to the mailing list.

Harold

Jay Smith wrote:

Dear Kensuke,

Thank you very much for your effort on this.

Unfortunately, I am pretty ignorant of these matters, thus you will 
have to tell me what it is that I should do with the two .diff files 
you attached. I will be happy to do whatever with them, but I am 
clueless as to what is to be done with them.

Sorry to be a pain.

Jay

Kensuke Matsuzaki said the following on 10/12/2003 09:33 PM:

Jay,

Perhaps this patch enable XWin to copy/paste non-ascii characters
even if Windows does't support Unicode (95/98/Me).
LANG environment variable and Windows locale must be same.
I added -nounicodeclipboard option, I tested using this on XP.
But I don't have 95/98/Me.
And it seems tha libX11 has some CTEXT convertion bug, I attach
patch that based on TAKABE's work.
http://www.ff.iij4u.or.jp/~t-takabe/xf410_xim_fix.diff
By the way, nls/locale.alias has alias somethig like
"Arabic_Egypt.1256". Can we use that?
If so, we no longer need LANG environment variable.
We can get it following code.
  char pszCountry[128];
  char pszLanguage[128];
  int nAcp = GetACP ();
GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGCOUNTRY, 
pszCountry, 128);
  GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGLANGUAGE, 
pszLanguage, 128);

  printf ("%s_%s.%d\n", pszLanguage, pszCountry, nAcp);

Kensuke Matsuzaki



--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Re: [PATCH] Copy/Paste non-ascii characters

2003-10-12 Thread Jay Smith
Dear Kensuke,

Thank you very much for your effort on this.

Unfortunately, I am pretty ignorant of these matters, thus you will have to 
tell me what it is that I should do with the two .diff files you attached. 
I will be happy to do whatever with them, but I am clueless as to what is 
to be done with them.

Sorry to be a pain.

Jay

Kensuke Matsuzaki said the following on 10/12/2003 09:33 PM:
Jay,

Perhaps this patch enable XWin to copy/paste non-ascii characters
even if Windows does't support Unicode (95/98/Me).
LANG environment variable and Windows locale must be same.
I added -nounicodeclipboard option, I tested using this on XP.
But I don't have 95/98/Me.
And it seems tha libX11 has some CTEXT convertion bug, I attach
patch that based on TAKABE's work.
http://www.ff.iij4u.or.jp/~t-takabe/xf410_xim_fix.diff
By the way, nls/locale.alias has alias somethig like
"Arabic_Egypt.1256". Can we use that?
If so, we no longer need LANG environment variable.
We can get it following code.
  char pszCountry[128];
  char pszLanguage[128];
  int nAcp = GetACP ();
  
  GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGCOUNTRY, pszCountry, 128);
  GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGLANGUAGE, pszLanguage, 128);

  printf ("%s_%s.%d\n", pszLanguage, pszCountry, nAcp);

Kensuke Matsuzaki
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


Re: Copy/Paste problems when contains non-ascii characters

2003-10-12 Thread Jay Smith
Hi Harold,

Thanks for your input.  Either I don't understand all of what you are 
saying or you don't understand the problem -- though Windows 95 is always a 
problem. :-)

I *can* copy/paste from Linux Mozilla 1.4 to Windows 95.  That is okay.

What I *can't* do is copy/paste within Linux Mozilla 1.4 (running in X, 
when the copy contains European characters)

When I was using Linux Mozilla 1.2, the paste truncated immediately before 
the European character.  Now, under Linux Mozilla 1.4, the paste is null 
(nothing pastes).

I was doing this all the time under Linux Mozilla 1.2 (since about February 
2003) without any problem (other than the darn truncation).  No crashes or 
other problems of that nature.

Regarding getting off Windows 95 you are quite right, however, the 
economics are not as you assume.  What it really means is a) also replacing 
all the workstations (these are Pentium 200 or 300 machines); b) switching 
to Linux *IF* Linux could get its productivity apps up to a productive 
level (I don't mind twiddling around with them, but I certainly can't have 
my staff -- who are lucky to find the "on" button) dealing the the Linux 
problems I have to deal with every day; c) finding, replacing, configuring, 
and learning software for the roughly 30 (thirty) apps we run.  Even if we 
stayed with Windows (going to 2000 Professional probably), just replacing 
the apps would cost $3000+ per seat and the machines around $1500 per seat. 
In a small company like mine, a conversion like this could put us out of 
business if we are not careful.  A week out of business is close to our 
annual profit.  Thus we hang on until we really have to make the switch. 
Hopefully Linux will get there (but the bugs I have encountered in only 2 
days of use of Mozilla 1.4 make me wonder.)

Jay

Harold L Hunt II said the following on 10/12/2003 07:24 PM:
Jay,

Your problem is that you are using Windows 95, which does not natively 
support unicode text.  There is support in Cygwin/XFree86 for converting 
characters to unicode and back, but it only works on NT-based platforms 
(NT 4.0, Windows 2000, Windows XP, Windows Server 2003).

The Microsoft Layer for Unicode on Windows 95/98/Me Systems should allow 
the support to work properly, but we would have to change the unicode 
support detection slightly for this to take effect.  Have you installed 
the unicode support for Windows 95?  More information and a link to 
download are here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devnotes/winprog/microsoft_layer_for_unicode_on_windows_95_98_me_systems.asp 

Or, the tiny url to the same thing:

http://tinyurl.com/qo9n

Hmm... just did some more checking... using the Layer for Unicode 
support will not be trivial.  Kensuke may be interested in it as an 
alternative to using libiconv on Windows 95/98/Me.

As for why you text copying is truncated vs. not appearing at all, I 
suspect that Mozilla 1.2.x to 1.4 changed the format of some clipboard 
data from plain text to INCR.  But that would only make sense if you 
have only tried this with the versions of XFree86-xserv that don't crash 
when they see an INCR clipboard format.  If you didn't try this until 
recently, then that would explain your problem.  You should at least be 
thankful that XWin.exe doesn't core dump like it used to in these cases.

In summary, your problem is known, it isn't trivial to solve, and the 
change from Mozilla 1.2.x to 1.4 is due to a change that they made, not 
something that we did.  Also, your issue is already known to be not an 
issue on NT-based platforms, so the Microsoft answer to this problem 
would be "The Cygwin/XFree86 has identified this to be a problem with 
the products listed above.", with the idea being that they might fix it 
or they might not, but perhaps you should consider upgrading to a more 
recent version of Windows.  In other words, you are more likely to get 
your problem fixed by spending $200 of your own money upgrading to 
Windows XP, versus me spending $2000 of my time to cobble together a fix 
for Windows 95/98/Me.  That's just being honest.

Thanks for testing,

Harold

Jay Smith wrote:

Hi,

My copy/paste behavior in MOZILLA running on RedHat 8 LINUX has gone 
from bad to worse when I upgraded the Mozilla from 1.2.x to 1.4.

Important: The Mozilla is LINUX Mozilla running on an RH8 server.  I 
am sitting at a Windows 95 PC, using Cygwin/XFree86 to run an X 
session on the PC.  I am sitting at a PC, not at a Linux box.  (Most 
people don't get this and thus reply using wrong assumptions.)

WHEN RUNNING Linux Mozilla ON PC USING CYGWIN:

(old) MOZ 1.2.x: When I copied text that contained a non-ascii typical 
European or Scandinavian character from an existing email and PASTED 
INTO A MOZILLA MAIL COMPOSE window, the text up to, but NOT including, 
the character would copy AND PASTE. That was bad, but at least you g

Copy/Paste problems when contains non-ascii characters

2003-10-12 Thread Jay Smith
Hi,

My copy/paste behavior in MOZILLA running on RedHat 8 LINUX has gone from 
bad to worse when I upgraded the Mozilla from 1.2.x to 1.4.

Important: The Mozilla is LINUX Mozilla running on an RH8 server.  I am 
sitting at a Windows 95 PC, using Cygwin/XFree86 to run an X session on the 
PC.  I am sitting at a PC, not at a Linux box.  (Most people don't get this 
and thus reply using wrong assumptions.)

WHEN RUNNING Linux Mozilla ON PC USING CYGWIN:

(old) MOZ 1.2.x: When I copied text that contained a non-ascii typical 
European or Scandinavian character from an existing email and PASTED INTO A 
MOZILLA MAIL COMPOSE window, the text up to, but NOT including, the 
character would copy AND PASTE. That was bad, but at least you got 
something (the text before the character).

(new) MOZ 1.4: However, now, if the copy contains such a character, NOTHING 
gets pasted into A MOZILLA MAIL COMPOSE window.  It changed from partial to 
nothing.

I AM still able to paste full and properly into windows applications from 
Mozilla, including such common European and Scandinvian characters.

Because there has been no change to the Cygwin installation on this PC, I
don't think the *change* in the problem is related to that.  However, the 
root of the problem seems to be related to Cygwin.

By contrast, IF I AM WORKING DIRECTLY/PHYSICALLY ON THE LINUX SERVER:

Mozilla 1.2.x or 1.4: I *CAN* fully and properly cut/paste the very same text.

MY ENVIRONMENT IS:

Server: Red Hat Linux 8

Workstation: Windows 95 running Cygwin 
(I think these are the version numbers of what I have installed; they were 
as of April 2003 and I don't think I have installed any new Cygwin stuff on 
this machine since then -- but I don't know how to find out what versions I 
am running. How do I?)
  XFree86-base 4.2.0-1
 -lib  4.2.0-5
 -xserv4.2.0-28
 -xwinclip 4.2.0-8

Jay
--
Jay Smith
e-mail: [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
website: http://www.JaySmith.com
Jay Smith & Associates
P.O. Box 650
Snow Camp, NC  27349  USA
Phone: Int+US+336-376-9991
Toll-Free Phone in US & Canada:
1-800-447-8267
Fax: Int+US+336-376-6750


xwinclip not working? or nor running?

2003-01-17 Thread Jay Smith
Hi,

I have just installed xwinclip on a Window 95 PC according to the
instructions on the xwinclip web page.  The xwinclip.exe is dated 29
December 2002, thus I assume that it is Test07.  It was on my system as the
result of an install of Cygwin that was downloaded about a week ago -- I
guess Test08 was not in that.

I start Cygwin and it seems to take longer to start, but does not give any
error messages.

I am trying to use xwinclip to copy/paste between Mozilla 1.2 running on a
Red Hat 8 server -- Linux/Mozilla is running through the Cygwin XFree86
stuff that is running on this PC.

When I try to copy/paste in either direction, I get nothing; nothing
happens. No errors, no crashes, just nothing.

My primary need is to copy URLs to/from IE 5.x and Linux Mozilla 1.2.

Between Window 95 programs, copy/paste works fine.
Between Mozilla windows copy/paste works fine.

Between other linux windows and Mozilla, copy/paste does _not_ work.

?? How do determine if the xwinclip is even running?

?? How should I further test to try to determine the source of the problem?

Jay