Re: Differentiate workgroup system from domain member under Cygwin

2010-01-22 Thread Sylvain RICHARD

Corinna Vinschen wrote:

On Jan 22 10:34, Christoph Herdeg wrote:
  

So question is more if there is any place on a windows system, a file or a
directory or an entry in a file that exists only if that machine is a
domain member?



There are certainly multiple methods to fetch this information.  One of
them is, for instance:

  bash$ net config workstation | grep -q 'Domain DNS' \
 echo domain-member || echo standalone-machine


Corinna
  
Of course you should be aware that localization kicks in. On a French 
Win Server 2k3 machine I get

Nom DNS du domaine de la station de travail

Good luck,

--
Sylvain RICHARD


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



Re: xserver bug?

2010-01-20 Thread Sylvain RICHARD

Charles Wilson wrote:

I've noticed that with XWin 1.7.3 (and perhaps earlier versions; not
sure), the key combination CTRL-SHIFT-0 (zero) doesn't generate any
events.  CTRL-SHIFT-1 thru -9, alphabetic keys, no problem -- just not zero.
  

snip

Is this a bug, or a designed behavior, in XWin?
  
This may be designed behaviour /in windows/. Just out of curiosity, can 
you check your language bar options. If I remember correctly, you can 
set Ctrl+Shift global hotkeys there to shift between keyboard layouts 
and input languages.


Good luck,

--
Sylvain RICHARD


--
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: I'd like to have an unreadable file

2009-04-30 Thread Sylvain RICHARD

Tim McDaniel wrote:

I'd like to test a script by giving it an unreadable file as an
argument.

I usually log in as a user, but one that's in the Administrators
group.  I made the file (a text file containing just hello) owned by
user Administrator with absolutely no permissions for anyone else.
Cygwin uses a little-known aspect of the NT security model. Besides 
permissions, there are also privileges. And administrators have the 
backup/restore privilege enabled by default, which means that they can 
bypass ACLs (access control lists). [1]


Try with a standard user, not a members of the administrator's group.

[1] You can use the editrights cygwin utility to manipulate privilieges. 
For example, editrights.exe -l -u Administrateurs should list 
SeBackupPrivilege and SeRestorePrivilege among others. And you inherit 
these privilieges from group membership.


--
Sylvain RICHARD


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



Re: Promoting cygwin system to member server

2009-04-02 Thread Sylvain RICHARD

Michael T. Davis wrote:

We have a standalone server running Windows Server 2003 SP2.  We would
like to promote it to a member server in an existing Windows domain.

Mike,

Your description may have been not specific enough.

I believe Corinna understood that you meant to make the server a member 
of the domain and then make it a domain controller. This would remove 
the local accounts.


But you may not want to make the server a DC, just a member of the domain.

Either way, I have no specific experience on this particular scenario. 
You need either a guru or a test server.


   Have fun,

--
Sylvain RICHARD


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



Re: 1.7.0: Getting a Windows app to run synchronously to a script from which it is invoked

2009-03-23 Thread Sylvain RICHARD

Lee D.Rothstein wrote:

This is in all probability, not a bug. I suspect it falls into CGF's
category of works but isn't (wasn't) guaranteed.

All of my scripts (developed under Cygwin 1.5 or earlier) that involve
a Windows native app use:

 winapp $(cygpath -w $something)

have stopped working properly since I installed Cygwin 1.7.

Here's the script I use, FOR EXAMPLE, for invoking Windows Explorer to 
the

current directory or a specified Cygwin directory path, AND that stops
further use of the invoked from terminal window, until this Explorer
window terminates:

 #!/usr/bin/bash

 if [[ -n $1 ]] ; then cd $1 ; fi
 explorer $(cygpath -w .)

Explorer opens okay, but always to the Computer folder, rather than the
current working or specified directory. (Yes, I know that there is a
special option for Explorer in 'cygstart'. Please read on.)
In the special case of the shell, there's also MS's wisdom to consider. 
To wit:

http://support.microsoft.com/kb/152457


I found that I can make the above work by replacing the invocation using
'cygpath' with a 'cygstart' initiated invocation without 'cygpath', at
all. The problem with this latter fix, however, is that 'cygstart' 
invokes

the Windows app asynchronously to the script in which it is contained.
Sometimes I want the script continuance to be tethered to the Windows
app, and the only way to do this (that I can see), is to put an otherwise
superfluous 'read' statement right after the Windows app invocation. 
Ugly,

and not as obvious, to the user, as the old method.

Is there no straight-forward way to invoke a windows app from a script
synchronously with Cygwin 1.7?


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





--
Sylvain RICHARD


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



Re: gcc compile problem: error: stray \168 in program

2009-02-24 Thread Sylvain RICHARD

grip wrote:
Note:  I have to  type double  quotes  twice always and  I 
get two double quotes. I use backspace to remove one every time. A single

double quotes produces no output on the  screen
  

This behaviour is coherent with the hypothesis that you're in fact using 
the diaeresis key, and it seems to be a dead key on your keyboard. 
What happens when you press:

- {mysterious key}+{space}. Do you get a single ¨ ?
- {mysterious key}+a. Do you get ä ? That is (if encoding of this key 
get börked) an a plus two dots on top of it.

- {mysterious key}+e. Do you get ë ? (Same thing for e)

You may use the illustration in the Diaeresis wikipedia article [1] 
useful (right sidebar).


[1] http://en.wikipedia.org/wiki/Diaeresis

Good luck,

--
Sylvain RICHARD


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



Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-38

2009-01-21 Thread Sylvain RICHARD

Chris Sutcliffe wrote:

I just uploaded a new Cygwin 1.7 test release, 1.7.0-38.



I've noticed that 1.7.0-38 (possibly previous versions as well), contains:

/usr/share/man/manmingw/basename.mingw

I've just noticed this now because my install is currently hung
because it claims it is in use (dunno why, all Cygwin processes are
stopped).  Is the inclusion of this file a packaging bug, since this
is part of mingw-runtime?

Chris

  
I was about to suggest a small utility called unlocker [1]. It's free 
as in freeware but not FOSS, and not 64-bit ready.


There may be a more elegant solution. Any suggestion?

[1] http://ccollomb.free.fr/unlocker/

--
Sylvain RICHARD


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



Re: ^M added to directory structure

2008-09-08 Thread Sylvain RICHARD

Noah wrote:


Don't use '^M' in your script




good answer.  I know that.  How do I remove it?

Noah,

Try dos2unix (or d2u).

Sylvain

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



Re: Is it my setup or the mirror page that is wrong as to the current status of a mirror

2008-09-02 Thread Sylvain RICHARD

Brian Keener wrote:

Dave Korn wrote:
  

I seem to recall something about the mirror logic changing but I'm
sure. Anyone else noticed anything.
  

  As above.  Do you have a duff caching proxy somewhere inline, perhaps?



Thanks for checking - I'll dig deeper on my side.  I have to plead 
ignorance on duff caching proxy though.  To my knowledge I am not using 
a proxy and I'm not familiar with the term duff caching?


bk


  

Ahem,

My 0.02 € to facilitate parsing:
duff (caching proxy)

Sylvain


Re: Problem opening new serial ports

2008-08-06 Thread Sylvain RICHARD

Andy Moreton a écrit :

On Wed, 06 Aug 2008 02:37:41 GMT, Gary Johnson wrote:

  

On 2008-08-05, Gary Johnson wrote:

[snipped] 
  
OK, I did some Googling and found a Cygwin USB-to-Serial HOWTO 
(http://tmp.ua964.com/cygwin-usb-to-serial-howto/) and a thread in 
this list from May, both mentioning Cygwin's limit of 16 com ports.  
They also say that this is in the FAQ, but I sure couldn't find it 
there.  So it looks like my choices are:


1.  Wait for 1.7 (I'm currently using 1.5.25(0.156/4/2).
2.  Build my own cygwin1.dll and change the limit to 64.
3.  Rename COM24 and COM25 to 16 or below.

I tried #3, but the drop-down list of COM ports says ports COM1 - 
COM23 are (in use), yet only COM1, COM2, COM4, COM5, COM24 and  
COM25 are in the Device Manager List.  The other ports were probably 
taken by various USB devices I've plugged in at one time or another 
but am no longer using.



Open Device Manager, and click on Show Hidden Devices on the View menu.
Click on the Ports (COM  LPT) subtree, and look for greyed out ports. On 
each of the greyed out ports, right click and choose Uninstall. Do the 
same thing for any geyed out device in the USB serial bus controllers 
subtree if you find any entries for USB serial ports there.


Once you have done that, you should then be able to reuse the previously 
occupied COM port numbers.


AndyM

  

Don't forget the obvious: MS makes it easy for you to go mad!

It seems there are hidden hidden devices.  Have a look at this:
http://support.microsoft.com/kb/315539

So once you clean out the hidden devices and the hidden, hidden devices, 
then you can remap your USB Com port back to COM3 or whatever, and it'll 
stay there!


Note that even plugging the same USB-RS232 converter into another USB 
port on a hub will create a new COM port.



Best regards,

Sylvain

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



Re: Problem with Cygwin - command startx

2008-08-01 Thread Sylvain RICHARD

Carolina Biasetti Pompeu wrote:

winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.

Can you explain me the problem and what i can do to solve it?


Hi,

No solution, but just out of curiosity,

If you try simpler commands, does it work? I mean:
XWin (you should get an X icon in the system tray and an ugly gray 
background)

XWin -multiwindow (just the icon)
XWin -clipboard

Note that you can kill the X server with a right click on the X icon in 
the system tray or Ctrl+C


Also, attaching the results of cygcheck -s -v -r may help. See 
http://cygwin.com/problems.html#cygcheck


Best of luck,

   Sylvain


--
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: Problem with Cygwin - command startx

2008-08-01 Thread Sylvain RICHARD

Carolina Biasetti Pompeu wrote:

winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.

Can you explain me the problem and what i can do to solve it?


Hi,

No solution, but just out of curiosity,

If you try simpler commands, does it work? I mean:
XWin (you should get an X icon in the system tray and an ugly gray
background)
XWin -multiwindow (just the icon)
XWin -clipboard

Note that you can kill the X server with a right click on the X icon in
the system tray or Ctrl+C

Also, attaching the results of cygcheck -s -v -r may help. See
http://cygwin.com/problems.html#cygcheck

Best of luck,

   Sylvain



--
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: unable to use x forwading from cygwin shell

2008-07-30 Thread Sylvain RICHARD

mnedai wrote:

other thing, I use yout method and set up DISPLAY on my local xserver:
$ ssh -X -p 22 [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Tue Jul 29 14:44:10 2008 from ciber-2863399a4.dcciber.com

sandbox1*sand1-/home/oracle
1001$ xclock 
[1] 30439

sandbox1*sand1-/home/oracle
1002$ connect localhost port 6000: Connection refused
X connection to localhost:10.0 broken (explicit kill or server shutdown).

[1]+  Exit 1  xclock

sandbox1*sand1-/home/oracle
1002$
  

Just to be sure,
- Do you have an X server running before calling ssh? There should be an 
X icon in the system tray. How did you start the server (startx, 
startxwin.bat/.sh or XWin)?
- Are you calling ssh from an xterm? What does echo $DISPLAY return 
before calling ssh? And after?


Best of luck

Sylvain

--
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: Error Message

2008-07-28 Thread Sylvain RICHARD

Not me screibte :

Guten Tag,

  

Gute Nacht!

Here is the report of the XWin.log

  

snip

Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from 
list!

Fatal server error:
could not open default font 'fixed'

I installed ALL files - but there isn't such a font or folder CID

Please guide me to remove the problem.

  

This is a very common question here. You could have googled for

cygwin could not open default font 'fixed'

and you would have found
http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof

If you have chosen DOS line endings during setup, then deleting and 
reinstalling cygwin is the best way.


Good luck,

   Sylvain

--
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: Informations and help

2008-07-07 Thread Sylvain RICHARD





I've just installed the cygwin program, and i have some problem.
I've opened an X server and after that i've closed it. But the problem 
is when i try to open a new one i can't and it appear a message about 
a fattal error with closing the first one.
I wan't to know if there any possibility to reopen another X server or 
what ihave to do.

Jean,

Having the error message would be helpful.
Most probably, the X server you started is still running and the new one 
can't listen on :0. You can check this by looking for an X icon in the 
system tray (close to the time, usually bottom right of your screen).
You can use this server, just set the DISPLAY variable correctly. You 
can kill the server with a right click and the appropriate menu option.


For the generics of using X, you had better read some generic nix 
documents as:

- X works the same on cygwin as anywhere else
-there is currently no cygwin maintainer for cygwin/X anyway.

Best of luck,

Sylvain RICHARD

--
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: file accessibility and copying/archive/...

2008-04-16 Thread Sylvain RICHARD

Hugh Sasse wrote


Can it extract individual files from the backup?  I don't want to copy
old Windows System files on to the new machine when it appears.
  

Ahah!

Finally, you tell us about what you intended to do in the first place!
Could you be more specific, please?

   Sylvain RICHARD


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



Re: file accessibility and copying/archive/...

2008-04-16 Thread Sylvain RICHARD

Hugh Sasse wrote:


I want to recover as much of the data I wrote to the old system onto
a portable drive (which being new is big, I forget how big now but of
the order of 200GB), and I want to put the files somewhere on my as yet
unbuilt new machine, which will probably be running Vista dual boot with
Ubuntu.
If it's a once in a (PC's) lifetime job, then the knoppix offline way is 
the better way. The only guarantee M$ makes regarding shadow copy for 
non shadow copy awareapplications is that you get the same data that 
would reside on the disk after a PC crash. I got burnt when ntbackup 
copied an in-use svn repository (the with the Berkeley db backend).


Any knoppix will do, you don't need the DVD. Just:
1) use hdparm to make sure DMA mode is enabled;
2) use fdisk to repartition your removable hardrive, creating a 
partition of same exact size as the old partition;
3) use dd_rescue to copy the whole partition. I suggest dd_rescue over 
dd because it will handle read errors graciously.  Hint: specify the 
soft blocksize big enough to use caching (say around 4M). Setting it too 
high will cause floating point exceptions I've never really wanted to debug;

4) Enjoy.

Note that the 3rd step may take some time. But you will get maximum 
performance from linear access and no other program trying to access the 
drives concurrently. OTOH, this method is certainly not the best if you 
need to copy say 4GB of data from a 150GB partition.


Best regards,

   Sylvain RICHARD

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



Re: file accessibility and copying/archive/...

2008-04-15 Thread Sylvain RICHARD

Hugh Sasse wrote:

Trying to copy a windows XP NTFS drive to a big disk using cygwin tools
I encounter inaccessible files such as ntusers.dat.  tar is not
particularly verbose about why things fail so I wrote something in
Ruby, but I only got about 70% of the contents of the disk across.
I suspect this is a common problem, but don't know how to frame it
correctly to extract something useful from Google.  The setup in
question only has the one PC so things like rsync are out.  Windows
keeps some things in use, but I don't know what.  Can anyone point
me at the specific thing I should be reading, or suggest anything?

Hugh,

If you must do an online copy, the only solution is the Volume Shadow 
Copy API, especially designed to allow copying files in use. But you 
can copy garbage (especially for databases).


An offline solution based upon a bootable linux distribution (knoopix or 
others) might be better suited to your needs. I suggest dd_rescue if you 
want to copy whole partitions.


A commercial offering would be Ghost.

Best regards

   Sylvain RICHARD

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



Re: I'm having a weird problem w/ cygwin not working on some machines...

2008-04-07 Thread Sylvain RICHARD

FH wrote:

Recently we've started running into an unusual problem in the sense that
the X server seems to have stopped working, at least w/ some machines.  What I
mean is everything starts up ok on the windows machine and when you login to
some unix machines it works fine; login, set up the display variables, type
xterm and the window open.  However on other machines you can go through the
same process and the xterm (or any other app/window) never shows up on the
windows machine.
Could you elaborate on the set up the display variables part? You 
shouldn't have to do anything as you use ssh. As you said you were not 
an X person, here is how I would do it.


On the windows side, DISPLAY is set by the shell script used to start 
Xwin (startxwin.sh or startxwin.bat). Then, you get an xterm where 
DISPLAY is :0.0 (or localhost:0.0 or 127.0.0.1:0.0). From there, ssh -Y 
[EMAIL PROTECTED] will get you to the remote prompt with a twist. Ssh sets up a 
tunnel *and* sets DISPLAY to something like :10.0 *and* sets up proper 
authorization. When an X client (an app) runs, it talks to the linux 
side of the tunnel and everything is sent to the windows X server 
through the tunnel. If ssh works, you do *not* have to worry about 
firewall problems.


In particular, notice that you *never* set the DISPLAY variable by hand. 
You *never* use xhost. It just works (TM). And it is secure.


My suggestions:
- You can check the value of DISPLAY at different steps of the procedure 
(set | grep DISPLAY) ;

- You can add -vv to the ssh command ;
- You can use a network sniffer (wireshark/ethereal) ;
- You should post your cygcheck results.

Best regards

   Sylvain RICHARD

--
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: 1.5.25(0.156/4/2): *** fatal error - couldn't allocate heap, Win32 error 487

2008-03-30 Thread Sylvain RICHARD

Francis ANDRE wrote:


I am constantly facing to this recurrent problem:
$ make
  6 [main] ? (14296) C:\cygwin\bin\make.exe: *** fatal error - 
couldn't allo
cate heap, Win32 error 487, base 0x68, top 0x6D, reserve_size 
323584, al

locsize 327680, page_const 4096

snip

Potential app conflicts:

Logitech Process Monitor service
Detected: HKLM Registry Key, Named process.
You seem to have a Logitech webcam. Its process monitor is known to 
cause conflicts with cygwin (and is of dubious use at best).


Try to deinstall it *and reboot* to see if it doesn't solve your 
problem. Btw, this is called BLODA interference in the local jargon.

See
http://cygwin.com/faq/faq.using.html#faq.using.bloda
and
http://cygwin.com/acronyms/#BLODA
.

Best regards (Salut)

   Sylvain


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



Re: Uninstalling Cygwin

2008-02-08 Thread Sylvain RICHARD

Remko Arts wrote:
Hello, 


I've installed Cygwin with the ssh package. Now I want to uninstall
Cygwin, but get the message Windows is unable to delete .ssh. Seems some
exotic file protection is in place Windows can't handle. The only
removal instructions I can find for windows are delete the complete
cygwin directory, which is, as mentioned impossible by normal means.
Any suggestions?
  

Are you running as the same user the .ssh file is for?

Anyway, you can reset the ACLs to delete the file (approximative 
translations, I run a French version of windows):

- In explorer, do a right click on the offending file(s)
- Properties
- In the Security tab, click Advanced
- Reset ownership if necessary (third tab). If you do this, it may be 
necessary to close and reopen the advanced security properties
- Set permissions as resuired in the first tab (grant yourself full 
control for example)


If what you see does not match what I describe, beware of simple file 
permissions in tools/options/dsplay.


Hope that helps

Sylvain RICHARD

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



Re: Uninstalling Cygwin

2008-02-08 Thread Sylvain RICHARD

Christopher Faylor wrote:

On Fri, Feb 08, 2008 at 11:24:59AM +0100, PEDRO MACANAS VALVERDE wrote:

  

Asunto: RE: Uninstalling Cygwin

Wonderful, merçi beaucoup, Sylvain, that worked.  Didn't realise this
could be so easy.  Cygwin documentation / FAQ people, maybe this would
be wise to incorporate somewhere in the uninstall documentation on your
website, as I suspect all users running winXP and higher experience
these problems when having chacged file ownership.  Thanks again.

For this , include the FAQ in a Wiki is a good option.  One also can
include user tips.



You should have paid closer attention to the discussion.  This would be
just the kind of confusion we don't need.  Having people update the
FAQ with a tip that was *already* in the FAQ would just cause more
confusion.

cgf
  
I have to say that I agree with cgf. I should have looked in the FAQ 
before, it would have saved some typing. I have had exactly the same 
issue before and perhaps didn't find the answer at that time. People who 
come from a UNIX background tend to use chown or chmod but may have 
already deleted chown.exe and chmod.exe. Perhaps adding the exact cacls 
invocation in the FAQ would be helpful


I do not think that an external wiki would be a good idea, as the 
developers already have to face numerous questions arising from outdated 
documentation. The most common source of questions on the cygwin mailing 
list was at a time SSH (mis-)configuration. Users followed wrong 
directions and did not run ssh-host-config but tried to setup everything 
by hand. And when MS reduced the privileges of the SYSTEM account for 
XP, everything broke.


Best regards

Sylvain RICHARD

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



Re: Uninstalling Cygwin

2008-02-08 Thread Sylvain RICHARD

Christopher Faylor wrote:

On Fri, Feb 08, 2008 at 07:24:53PM +0100, Sylvain RICHARD wrote:
  

I have to say that I agree with cgf.  I should have looked in the FAQ
before, it would have saved some typing.  I have had exactly the same
issue before and perhaps didn't find the answer at that time.  People
who come from a UNIX background tend to use chown or chmod but may have
already deleted chown.exe and chmod.exe.  Perhaps adding the exact
cacls invocation in the FAQ would be helpful



Good point.  Do you (or anyone) want to suggest some wording for that
section of the FAQ?

cgf
  
Not fully tested as I do not have full control over the machine I work 
on now, but something along the lines of:

- run
takeown /f c:\cygwin /a /r /d y
cacls c:\cygwin0 /t /g Administrators:F
- delete c:\cygwin in Explorer
should be a start.

However,
1) This is for English versions of Windows only:
/d y (answer yes) can become /d o(oui), and perhaps /d j(ja), /d 
s(si),...

Administrators is localized too

2)
http://www.ss64.com/nt/cacls.html says:
Errors when changing permissions
If a user or group has a permission on a file or folder and you grant a 
second permission to the same user/group on the same folder, NTFS will 
sometimes produce the error message The parameter is incorrect To fix 
this (or prevent it happening) revoke the permission first (/e /r) and 
then reapply (/e /g)


Good night

Sylvain RICHARD

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



Re: typesetting

2008-01-08 Thread Sylvain RICHARD

[EMAIL PROTECTED] wrote:

Are there any typesetting programs out there like (the English/German focused 
Tex and Latex macros) that enables one to develop typesetting documents in 
Asian languages, such as Japanese, within the cygwin pacage group or could be 
made to work in the cyg
win environment.

I know cygwin once had tetex (maybe still does), but, TeTeX could not process 
Asian languages, and TeTex itself has been discontinued.

Thanks,
  Wynfield
  
Take my answer with a grain of salt as I have never used them but Omega 
(for TeX) and Lambda (for LaTeX) should be the way to go.


   S. Richard

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



Re: Replying to messages

2007-11-19 Thread Sylvain RICHARD

Igor Peshansky wrote:

On Wed, 24 Oct 2007, Brad Bell wrote:

  

How does one reply to a message on cygwin.com when you do not have an
e-mail copy of the original message; i.e., just given the information in
the mailing list archive ?



http://cygwin.com/ml/cygwin/2002-12/msg00501.html
http://cygwin.com/ml/cygwin/2005-03/msg00867.html

The scripts may be further improved with the skipmung option (which I
have not heard of until today).
HTH,
Igor
  

Okay, now I get it. You can get the munged version of your message at:
http://cygwin.com/cgi-bin/get-raw-msg?listname=cygwindate=2007-11[EMAIL PROTECTED] 
http://cygwin.com/cgi-bin/get-raw-msg?listname=cygwindate=2007-11[EMAIL PROTECTED]

and the pristine one at:
http://cygwin.com/cgi-bin/get-raw-msg?listname=cygwindate=2007-11[EMAIL PROTECTED]skipmung 
http://cygwin.com/cgi-bin/get-raw-msg?listname=cygwindate=2007-11[EMAIL PROTECTED]skipmung


*Sighs*

Sylvain

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



Re: Replying to messages

2007-11-19 Thread Sylvain RICHARD

Christopher Faylor wrote:

On Mon, Nov 19, 2007 at 09:21:39PM +0100, Sylvain RICHARD wrote:
  

Okay, now I get it. You can get the munged version of your message at:
http://cygwin.com/cgi-bin/...
http://cygwin.com/cgi-bin/...
and the pristine one at:
http://cygwin.com/cgi-bin/...
http://cygwin.com/cgi-bin/...

*Sighs*



Sigh, indeed.  It is very considerate of you to post these for any
potential spammer who is scraping this mailing list.  i'm sure they
are very grateful.

cgf

  
To all of you in this thread, the sigh referred to my previous 
puzzlement re skipmung, see 
http://sourceware.org/ml/cygwin/2007-10/msg00536.html. The only further 
help I got was about a kangahippo (DaveK, no worries - I love reading 
cygwin-talk btw).


Brad, sorry for posting a link to a page which contains your e-mail 
address. I had seen Igor's was there but as he posts it in his signature 
I thought it was of no consequence.


Christopher, If by your remark you meant that one address was harvested 
I have to bow to you. If you meant that the skipmung thingie is a secret 
trick best left in the dark, then I have to disagree.


Best regards

   Sylvain

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



Re: Replying to messages

2007-10-25 Thread Sylvain RICHARD

Brian Dessent wrote:

Use the web archive's raw text link to get an mbox copy[1] that you
can import into your email program and reply to.  


[1] This will not be a valid mbox format as addresses are munged.  You
can undo this by hand or automatically by adding the skipmung parameter.

Brian
  

You said too much or too little here.

I do have a partial local copy of the archives. But the [mbox-formatted 
archive (xxx Kbytes)] link is gone and there is no such thing as 
ftp://cygwin.com/pub/cygwin/mail-archives/ (or any 
/cygwin/mail-archives/ directory on the mirror I use [mirrors.kernel.org]).


And I never heard of skipmung.

Sylvain

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



Re: How to close a SSH connection from a BAT file

2007-08-21 Thread Sylvain Richard

Anthony de Sousa wrote:
the next time that net start ssh is issued the following 
errors are in the log

bind: Address already in use
channel_setup_fwd_listener: cannot listen to port: 139
Could not request local forwarding

Re your port 139 problem, see:

http://www.blisstonia.com/eolson/notes/smboverssh.php


You can check that port 139 is owned by your ssh client by using:
netstat -ano
tasklist /svc
or (more easily):
netstat -abn

Some webpages suggest stopping the server process but then you'd lose 
the shares hosted by your client machines.


Best of luck

Sylvain

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