Re: tetex on Vista

2007-12-04 Thread Wilfried
Erik Demaine <[EMAIL PROTECTED]> wrote:

> The default installation of Cygwin tetex does not seem to have the
> right permissions for Vista to be happy (with User Account Protection
> turned on, as is default).  Here is an example of an error message:
> 
> $ latex filename.tex
> This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
>   file:line:error style messages enabled.
>   %&-line parsing enabled.
> kpathsea: Running mktexfmt latex.fmt
> tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
> fmtutil: config file `fmtutil.cnf' not found.
> I can't find the format file `latex.fmt'!
> 
> It seems necessary to chmod -R u+w some subset of
> /var/cache/fonts, /usr/share/texmf, /usr/lib/texmf
> for latex to properly be able to build latex.fmt,
> ditto for pdflatex, and kpathsea to build fonts.
> Presumably this should happen in the initial installation,
> or somehow the permission issue should be avoided.

I also observed this, even with UAC (User Account Control) deactivated.
Windows explorer reports that some files are read-only.
With Explorer's GUI, one can un-check the read-only property and tell
Explorer to set this for all child folders and files, but after this
they were still read-only. Very strange.
Same solution helped (I did a chmod -R u+rw g+rw).




--
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 can I ssh to a Windows box?

2009-03-12 Thread Wilfried
Michael Hennebry  wrote:

> On Mon, 9 Mar 2009, Michael Hennebry wrote:
> ...
> I've discovered that if I kill the demon,
> I still get timeout from the outside,
> but connection refused locally.

If you can login to ssh locally but not from the outside, perhaps your
Windows' firewall is blocking this.

> I haven't been able to restart the demon:
> /var/empty must be owned by root and not group or world-writeable.

You must give the files the correct ownership and access rights:
In cygwin, issue:

cd /
chmod og+w /tmp
touch /var/log/sshd.log
chown system:system /var/log/sshd.log /var/empty /etc/ssh_h*
chmod 755 /var/empty

Define the service with the command 

cygrunsrv -I sshd -p /usr/sbin/sshd

Start the service by

cygrunsrv -S sshd

Stop the service by 

cygrunsrv -E sshd


Hope this helps.

--
Wilfried Hennings


--
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 can I ssh to a Windows box?

2009-03-13 Thread Wilfried
Michael Hennebry  wrote:

> On Thu, 12 Mar 2009, Wilfried wrote:
> 
> > Michael Hennebry  wrote:
> >
> >> On Mon, 9 Mar 2009, Michael Hennebry wrote:
> >> ...
> >> I've discovered that if I kill the demon,
> >> I still get timeout from the outside,
> >> but connection refused locally.
> >
> > If you can login to ssh locally but not from the outside, perhaps your
> > Windows' firewall is blocking this.
> 
> That was my thought, too,
> but it seems to be correct and turning it off didn't help.
> Could I be missing a similar flag somewhere?

Perhaps some antivirus software?

Also have a look in 
(windows') control panel - administration - event viewer - application
Any entries for sshd?
Any error entries?


In cygwin/etc, is there a file named "hosts.allow" ?
It should be there and contain a line

sshd: ALL

or a list of allowed hosts, see e.g.
http://linux.about.com/od/commands/l/blcmdl5_hostsal.htm


> > Start the service by
> >
> > cygrunsrv -S sshd
> 
> No go.
> Win32 error 1062
> I tried again after making the rest of /etc system:system .
> Same no go.

Did you issue all these command while having windows administrator
rights? The service can only be installed while logged in with
administrator rights.


The sshd service should also be displayed in Windows' services list.
(following is my translation to English, maybe it's actually named
differently, but I haven't access to an English WinXP:)
Control panel - administration - computer administration - services and
applications - services
It shows as
service name: sshd
start type: automatic
status: ended

You can also look in to the task manager.
It should show up as sshd.exe with user "SYSTEM".

(Also with admin rights) open a command prompt ("DOS box") and enter

netstat -a

It should display 

  TCP   computername:ssh computername:0LISTENING

Repeat this after making a local connection.


--
Wilfried Hennings


--
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 can I ssh to a Windows box?

2009-03-16 Thread Wilfried
Michael Hennebry  wrote:

> On Fri, 13 Mar 2009, Wilfried wrote:
> 
> > Michael Hennebry  wrote:
> >
> >> On Thu, 12 Mar 2009, Wilfried wrote:
> >>
> >>> Michael Hennebry  wrote:
> >>>
> >>>> On Mon, 9 Mar 2009, Michael Hennebry wrote:
> >>>> ...
> >>>> I've discovered that if I kill the demon,
> >>>> I still get timeout from the outside,
> >>>> but connection refused locally.
> >>>
> >>> If you can login to ssh locally but not from the outside, perhaps your
> >>> Windows' firewall is blocking this.
> >>
> >> That was my thought, too,
> >> but it seems to be correct and turning it off didn't help.
> >> Could I be missing a similar flag somewhere?
> >
> > Perhaps some antivirus software?
> 
> I've got Norton and ThreatFire.

Then uninstall them, restart your PC, and try again.
See http://cygwin.com/faq/faq.using.html#faq.using.bloda
 
> > Also have a look in
> > (windows') control panel - administration - event viewer - application
> > Any entries for sshd?
> > Any error entries?
> 
> Yes.  Four, all the same.

How many entries of sshd do you have after a restart of your computer?
If it's more than one, you should clean up the registry from all entries
pointing to sshd and then re-install the service.


--
Wilfried Hennings


--
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: BitDefender again

2009-08-26 Thread Wilfried
"Michael Kairys"  wrote:

> Thanks for the replies...
> 
> > the suggestion to use a base address in the 0x3500 area (or indeed
> > any of the others they mentioned) is going to horribly frag your heap and 
> > bork
> > your maximum allocatable memory limit, isn't it?
> 
> I don't know. How would I tell?
> 
> >  Wonder if it wouldn't work just as well to rebase /their/ DLL?
> 
> I don't know. Sounds scary given the liberties an AV program seems to take 
> with the operating system... Should I try? How would I?
> 
> That aside, it sounds like my options are:
> 
> (1)  Try what they said and see what happens
> (2)  Run with their "active virus scan" turned off
> (3)  Change to another AV product (any suggestions? :)

(3) http://www.f-prot.com 
Works flawlessly with cygwin and any other software we have, on 
- a tower PC with XP Pro SP3 (Pentium 4)
- a laptop with Vista home premium SP1 (core 2 duo) however with UAC
disabled
- and two other laptops
I can even leave the scanning engine running while installing other
software. Never had conflicts with it. Tech Support is very responsive.
Disadvantage: F-Prot slows down startup of a few programs (most
significant: Opera browser). Slowdown is much less on Vista. F-Prot are
working on it and already had some success.


--
Wilfried Hennings


--
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: BitDefender again

2009-08-28 Thread Wilfried
"Michael Kairys"  wrote:

> > (3) http://www.f-prot.com
> 
> Thanks for the suggestion... Seems some reviews give them low marks on 
> detection rates:
> http://www.virusbtn.com/vb100/RAP/RAP-quadrant-Feb-Aug09.jpg
> http://www.virus-centre.com/
> 
> ... and some low marks on features (19 out of 20):
> http://anti-virus-software-review.toptenreviews.com/index2.html

Very interesting, thank you! 
I can well live with the limited features, but if the low detection rate
comes true it would indeed worry me.

I also had a look into
http://www.av-comparatives.org/
but unfortunately they did not test f-prot.
 
Regards

--
Wilfried Hennings


--
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: lpr works? FAQ in error?

2008-07-21 Thread Wilfried
"jrsyangl" <[EMAIL PROTECTED]> wrote:

> As a follow-up and clarification to my previous post, what I would like 
> to be able to do is to pipe output to a printer, e.g.
>  ls -l | lpr
> This doesn't work for me as I explained previously. Using notepad /P 
> instead of lpr doesn't work either.

It surely won't. You cannot feed text into notepad via a pipe.
To print via notepad, you need to write the output of "ls -l" to a file
then print this file via notepad.
Next problem: I have set up cygwin to use unix style line endings as
default. Now if I 
ls -l > tmp_file
and open tmpfile in notepad, notepad doesn't recognize the line endings,
at least not on screen. It nevertheless prints out correctly on my
printer, maybe because the printer itself interprets the line endings
correctly. But it may be better to use another editor instead,
perhaps pfe or pspad.
I ended up using a script -- you may need to modify it for your needs.
Assume you save this script as "abc", then you can call
abc ls -l 
and the script will execute the command "ls -l" and print its output via
notepad.
--snip-
#!/bin/sh 
$1 $2 $3 $4 $5 > tmp_file
/cygdrive/c/windows/notepad.exe /p tmp_file
rm tmp_file
--snip-

--
Wilfried Hennings


--
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: lpr works? FAQ in error?

2008-07-21 Thread Wilfried
Ehh, I just saw that Rodrigo Medina addressed all these problems.

So the script would probably look like this:

--snip-
#!/bin/sh 
$1 $2 $3 $4 $5 | unix2dos > tmp_file
cygstart notepad.exe /p tmp_file
rm tmp_file
--snip-

--
Wilfried Hennings


--
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: lpr works? FAQ in error?

2008-07-23 Thread Wilfried
"Buchbinder, Barry" wrote:

> Wilfried wrote on Monday, July 21, 2008 10:11 AM:
> 
> > Ehh, I just saw that Rodrigo Medina addressed all these problems.
> > 
> > So the script would probably look like this:
> > 
> > --snip-
> > #!/bin/sh
> > $1 $2 $3 $4 $5 | unix2dos > tmp_file
> > cygstart notepad.exe /p tmp_file
> > rm tmp_file
> > --snip-
> 
> It looks to me that the command
>   $1 $2 $3 $4 $5
> has two or three problems:
>   (1) Arguments are not quoted.
>   (2) One might have more than a command and 4 arguments.
>   (3) It is also possible that one may have surprises if /bin/sh is set up so 
> when non-interactive it handles aliases and shell functions differently than 
> expected.
> So I would just pipe into the shell script.
> 
> The second place is that there is theoretically a race between cygstart and 
> rm.  What happens if rm deleted tmp_file before notepad reads it?  I can 
> think of two ways to handle it.  Adding
>   sleep 1
> to delay rm by a second will probably usually be enough of a delay.  
> Substituting
>   "$(cygpath -u "$COMSPEC")" /c start /wait notepad.exe /p tmp_file
> for
>   cygstart notepad.exe /p tmp_file
> to use Windows' start command will wait until notepad is closed.  (This may 
> be longer than you want to wait.)
> 
> But I haven't tried this, so it may not work.
> 
> --snip--
> #!/bin/sh
> unix2dos > tmp_file
> cygstart notepad.exe /p tmp_file
> sleep 1
> rm tmp_file
> --snip--

Thanks for the discussion.
I had tested my script and it worked for me.
I agree that just 5 parameters may be not enough.
But there is no need to put the sleep command in. 
I had the impression that the script waited until the cygstart command
was finished. But even if not -- Notepad loads the file completely into
memory and then releases the file handle, so one can delete the file
while notepad is still open.
Regards, Wilfried

--
Wilfried Hennings


--
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.10 cygrunsrv.exe fails with "fork: 11, Resource temporarily unavailable"

2012-03-05 Thread Wilfried
Ulf-Dietrich Braumann wrote:

> Yes, Corinna, I reverted this setting again to the default 384MB heap size 
> calling:
> 
> $ peflags --cygwin-heap=0 /usr/sbin/sshd.exe
> and
> $ peflags --cygwin-heap=0 /usr/bin/cygrunsrv.exe
> 
> Later on, someone has recommended me to downgrade cygrunsrv from 1.36-1 to 
> 1.34-1. This helped, so now under cygwin1.dll 1.7.11 the sshd can be 
> started. However, the mechanism behaves strange reporting problems:
> 
> C:\>net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service could not be started.
> 
> The service did not report an error.
> 
> More help is available by typing NET HELPMSG 3534.
> 
> 
> Having a look into the Event Viewer of my Win2k3 64bit machine, I 
> correspondingly find:
> 
> ... `sshd' service stopped, exit status: 0.
> 
> This however is misleading, since I clearly see the sshd running now (I 
> made sure it was not running before), and indeed I can now connect using 
> slogin and sftp:
> [...]

Hello,
I see the same "misleading message" (`sshd' service stopped) since I am
running sshd on my Windows XP Pro 32bit machine. (currently running
cygrunsrv V1.34, Mar 18 2008
OpenSSH_5.1p1, OpenSSL 0.9.8l 5 Nov 2009)
However I don't bother because several other (Microsoft) services behave
similar, i.e. they are started when Windows is booted and stopped
immediately afterwards. This doesn't prevent them from being started
again when needed.
--
Wilfried Hennings


--
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: Cygwin shell eats Windows exceptions?

2016-10-18 Thread Wilfried
Bill Smith wrote:

> 
> Thanks for all of the responses from everyone. 
> 
> > If you need to do interactive debugging, run it under cmd or with cygstart.
> 
> [Bill Smith] it seems that an ok workaround is for me to use cygstart to 
> start a command prompt within a Cygwin shell and then in the command prompt, 
> run the program which calls DebugBreak and cause the popup to appear.  The 
> reason for needing to run within Cygwin is because we have a complex shell 
> script that sets the user environment to run the application.

OK, if that is the only reason for using cygwin, I can recommend another
way to run a complex shell script in windows.
There is a native windows port of the bash shell in
http://win-bash.sourceforge.net/

If you need more unix command line utilities, look in
https://sourceforge.net/projects/gnuwin32/

HTH, Wilfried
-- 
Wilfried Hennings


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



How can I detect cygwin windows closing

2006-02-15 Thread Wilfried Fauvel
Hi,
I have made a console apps, and I would like to know if it's possible to detect 
when the user click on the 'X' of the term window ?
I am catching SIGINT, SIGTERM and SIGKILL signals, but it does not seen to be 
enough.

Thanks.

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




--
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 can I detect cygwin windows closing

2006-02-16 Thread Wilfried Fauvel
> On Wed, 15 Feb 2006, Wilfried Fauvel wrote:
>
> > Hi,
> > I have made a console apps, and I would like to know if it's possible to
> > detect when the user click on the 'X' of the term window?  I am catching
> > SIGINT, SIGTERM and SIGKILL signals, but it does not seen to be enough.
>
> SIGHUP.
Thanks for your answer, but it doesn't seen to be detected.

>   Igor
> P.S. AFAIK, SIGKILL cannot be caught.
> --
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  [EMAIL PROTECTED] | [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_  Igor Peshansky, Ph.D. (name changed!)
>  |,4-  ) )-,_. ,\ (  `'-' old name: Igor Pechtchanski
> '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
> "But no -- you are no fool; you call yourself a fool, there's proof enough in
> that!" -- Rostand, "Cyrano de Bergerac"
>
> --
> 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/
>
> 

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




--
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 can I detect cygwin windows closing

2006-02-16 Thread Wilfried Fauvel
Hi,
>
> Wilfried Fauvel, le Wed 15 Feb 2006 18:18:49 +0100, a écrit :
> > I have made a console apps, and I would like to know if it's possible to 
> > detect when the user click on the 'X' of the term window ?
> > I am catching SIGINT, SIGTERM and SIGKILL signals, but it does not seen to 
> > be enough.
>
> See SetConsoleCtrlHandler() and friends. I however never found a way to
> avoid being killed anyway, even by trying to detach from the console.

Thanks for your answer, I have just tested SetConsoleCtrlHandler and it seem to 
work (I started from MSDN example).

I am playing with signals since yesterday, and I have noticed one "problem" 
(this's really a problem ?) with signal handling, when my binary crash (... I 
can not say when and why, sorry), it will not be enable to caught any signals 
until I restart my computer (maybe closing my session can do the same result). 
Is it normal ? Can I detect when this "problem" happened ?

Regards.

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

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




--
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/



Problem with cygwin1.dll after update

2011-03-17 Thread Wilfried Fauvel

Hi,

I built a very simple program with g++ : int main() { return 0; }
from cygwin it always returns 127, and if I try to start it from cmd I have
the following message :

"the procedure entry point _feinitiliase could not be located in the dynamic
link library cygwin1.dll"

I tried to remove cygwin1.dll and reinstall it, but the result is the same.

Thank you,
Wilfried.
-- 
View this message in context: 
http://old.nabble.com/Problem-with-cygwin1.dll-after-update-tp31175622p31175622.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: Problem with cygwin1.dll after update

2011-03-17 Thread Wilfried Fauvel


Dave Korn-9 wrote:
> 
> On 17/03/2011 19:16, Wilfried Fauvel wrote:
>> Hi,
>> 
>> I built a very simple program with g++ : int main() { return 0; }
>> from cygwin it always returns 127, and if I try to start it from cmd I
>> have
>> the following message :
>> 
>> "the procedure entry point _feinitiliase could not be located in the
>> dynamic
>> link library cygwin1.dll"
>> 
>> I tried to remove cygwin1.dll and reinstall it, but the result is the
>> same.
> 
>   See the earlier thread "Compiled program does nothing when executing it
> under Cygwin"(*).  Your old DLL is still in use somehow; if it was in-use
> when
> you ran setup.exe, no amount of removing and reinstalling will help until
> you
> have rebooted.
> 
> cheers,
>   DaveK
> -- 
> (*) - http://cygwin.com/ml/cygwin/2011-03/threads.html#00335
> 
> 
> 
> --
> 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
> 
> 
> 

Hi,

thank you very much, I reboot && rebuild and everything was fine again.

Wilfried.

-- 
View this message in context: 
http://old.nabble.com/Problem-with-cygwin1.dll-after-update-tp31175622p31175781.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: 1.7.7: problem installing cmake (Seven)

2011-07-19 Thread Wilfried Fauvel
  free.fr> writes:

> 
> Hello,
> 
> From a clean OS (seven), installing *only* cmake using following command :
> C:\cygwin>setup.exe -q -P cmake -s
> ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/cygwin
> leads to an error message, complaining about a missing "cygidn-11.dll" when I
> try to launch cmake. I tried other mirror without success.
> 
> But Completing the installation with
> C:\cygwin>setup.exe -q -C Python -s
> ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/cygwin
> solve this issue.
> 
> I thing there is a missing dependency from cmake package (cmake 2.8.2-1)
> 
> Regards,
> 
> Franck Bonin
> 
> 


Hi,

I have the same issue here,
to fix it I just installed the libidn package.
It looks like a missing dependency to me too.

Wilfried.


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