cygwin and the rest of the Windows

2003-06-21 Thread Ling F. Zhang
I successfully ran both the cygwin apache (1.3x) and windows native one (2.x). So I need to chose one to run (as they wouldn't share port 80)...sine I usually do my cgi in perl and shell-script, cygwin is the clear choice...but I do miss such feature as WebDAV in the version 2 (I didn't feel like

Re: cygwin and the rest of the Windows

2003-06-21 Thread Ling F. Zhang
okay! the question is this then: say I write a perl script... should the first line be #/usr/bin/perl or #C:\cygwin\usr\bin\perl ? thank you --- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > On Sat, 21 Jun 2003, Ling F. Zhang wrote: > > > I successfully ran both the cygwin a

cygrunsrv won't start apache

2003-06-21 Thread Ling F. Zhang
I try to use the apache binary on cygwin, to install it as a service I run: cygrunsrv -i cygwin_apache -p /usr/sbin/apache -u root it worked last night...I woke up today, remove/reinstall the service few times, and now it wouldn't start...given me the message: cygrunsrv: Error starting a service:

Re: cygrunsrv won't start apache

2003-06-22 Thread Ling F. Zhang
no, /var/log/CYGWIN_apache is empty --- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > On Sat, 21 Jun 2003, Ling F. Zhang wrote: > > > I try to use the apache binary on cygwin, to > install > > it as a service I run: > > cygrunsrv -i cygwin_apache -p /usr/sbin/a

Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
"!" in your examples... ;-) > [2] /usr/bin is a mount, and thus is not visible to > non-Cygwin programs. > C:\cygwin\usr\bin should be empty. > > On Sat, 21 Jun 2003, Ling F. Zhang wrote: > > > okay! the question is this then: say I write a > perl script.

Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
> Alternatively, if you want to use the #! line, you > could associate .pl > files with "c:\cygwin\bin\bash -c"... what is -c? if I use this option, should it be: #!/usr/bin/perl? or #!c:\cygwin\usr\bin\perl? my guess is the former, since we are already interpreting the file with bash... > In th

Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
Hi again: > you might be missing the login environment, so you > might wish to create a > perl.bat file that does a "c:\cygwin\bin\bash > --login /usr/bin/perl %1 %2 > %3 %4 %5 %6 %7 %8 %9" and use that instead (beware > of directory changes). when I run this in cygwin: bash --login perl, I get th

Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
rmal in windows command prompt: i.e. c:\path with space\printenv.pl WITHOUT using a native windows perl interpretor (like ActivePerl) if this is not possible, at least I should be able to run it as a cgi-script... thanx for all your help so far igor...I am just a little slow on this right now... -

Re: cygrunsrv won't start apache

2003-06-22 Thread Ling F. Zhang
...so that kind of run out the privilege problem because I use the same user "SYSTEM:Administrators" for both! any more hints? thanx --- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > On Sat, 21 Jun 2003, Ling F. Zhang wrote: > > > I try to use the apache binary on

Re: cygrunsrv won't start apache

2003-06-22 Thread Ling F. Zhang
I finally figured out the problem... I ran the service a user1...so it created a file /var/log/httpd.log under user1... I chaged the user (from root to SYSTEM) and the new guy can't open the file... thanx --- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > On Sat, 21 Jun 2003, Ling

Re: cygwin and the rest of the Windows

2003-06-22 Thread Ling F. Zhang
Hi: > In your case 1, it looks like you ran that command > from bash. No, I ran it from WINXP command prompt >It's pretty > obvious why it didn't work - bash needs POSIX paths. > You had unquoted > spaces, which bash interpreted as argument > separators, and it also > interpreted backslashes as e

Re: cygwin and the rest of the Windows

2003-06-23 Thread Ling F. Zhang
t; read up on the > Windows Explorer mechanism for this). > > Case 3 is actually a subcase of 1 - simply associate > the .pl file with > perl.bat, and you should be able to run it (as long > as perl.bat is > correct). You might wish to keep the "@echo off" > out of t

Re: cygwin and the rest of the Windows

2003-06-24 Thread Ling F. Zhang
`/bin/cygpath -u "%1"`"' > > or something like that - again, beware of spaces). > You might also want to > pass the -x flag to bash... > Igor > > On Mon, 23 Jun 2003, Ling F. Zhang wrote: > > > Just based on what I have learned so far...I >

posix and win32 enviornment

2003-07-02 Thread Ling F. Zhang
I am writting a C program... is there a way for me to know if the program is being executed in win32 or posix cygwin so that I can use the appropriate filesystem when referring files? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

login shell and .bashrc

2003-08-02 Thread Ling F. Zhang
I still don't quite understand the different b/t bash and bash --loginbut I know the latter is why my .bashrc does not run when I run cygwin using this batch file: == @echo off SET DISPLAY=127.0.0.1:0.0 SET CYGWIN_ROOT=\cygwin SET PATH=%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%

.profile and xterm

2003-03-13 Thread Ling F. Zhang
Just starting to play with cygwin. I edited my .profile to do some nice aliases, setting PATH and bashprompt... but I realize that as soon as I start a terminal using xterm (I am using exceed as my Xserver, but shouldn't matter) all the alias are gone (such as ls=ls --color=auto, which is handy...

exceed and xfree

2003-03-14 Thread Ling F. Zhang
well, this is more or less like a windows/dos problem: I do not like the cygwin dos window, so everytime I run cygwin, I go straight to open an xterm with my own color and size... but I do not like the cygwin xserver either because it either have to be in a big window or full screen...well, I stil

cygwin and ntsec

2003-03-14 Thread Ling F. Zhang
right after installation of cygwin, the cygwin filesystem is mostly under user Administrators (the user I use is Admin, which is just renaming the default Administrator of Win2k) and group None... While I am not sure if None is a group, I am pretty damn sure that Administrators is a group in my win

user homepath

2003-03-15 Thread Ling F. Zhang
by default win2k installation, all user have their path at: C:\Documents and Settings\USERNAME\ if I want user to share the same path in cygwin, sould creating a symbolic link in /: ln -s /cygdrive/c/Documents\ and\ Setting/ /home suffies??? another question is really windows 2000 related...I re

installation freezes at /usr/bin/idle

2004-01-22 Thread Ling F. Zhang
I am doing a full installtion with all src selected, and when it's installing Python-2.3.3-1 /usr/bin/idle The program uses 100% CPU, and doesn't do anything for long time. I am using a p4 1.7G, 512 RDRAM, 120GB HDD (lots of space remaining), WIN2K3 Standard...anyone has the same problem? __

Re: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
ECTED]> wrote: > At 11:04 PM 1/22/2004, Ling F. Zhang you wrote: > >I am doing a full installtion with all src > selected, > >and when it's installing > > > >Python-2.3.3-1 > >/usr/bin/idle > > > >The program uses 100% CPU, and doesn't do

Re: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
x27;re in. > > Larry > > > At 03:57 AM 1/23/2004, Ling F. Zhang you wrote: > >I can click "Cancel" but then it give me an err > msg: > >cannot open /usr/.../setup.log for writing > >I checked writing permission to the folder and it > >checks out.

Re: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
PROTECTED]> wrote: > At 12:51 PM 1/23/2004, Ling F. Zhang you wrote: > >Hi: > > > >I will do that as soon as I get to my computer > (later > >this afternoon). I would like to also point out > that I > >tried the following: > > > >unselect Pyth

Re: installation freezes at /usr/bin/idle

2004-01-23 Thread Ling F. Zhang
try this: > > set PATH=C:\cygwin\bin;%PATH% > cygcheck -s -r -v > > If that gives you the same complaint, it's probably > a > permissions problem. Take a look at who has > permission > for the executables tweak them as necessary. > > Larry > &g

domain and user localname conflict

2004-01-24 Thread Ling F. Zhang
I did the following after I install cygwin in my laptop (WINXP PRO), which has both local account and domain account with the same username (for example, both have user "admin"). Looks like if I log into Windows locally and then use cygwin, everything is fine. When I log into domain however, I can'

Re: domain and user localname conflict

2004-01-25 Thread Ling F. Zhang
Permission denied /usr/share/texmf/ls-R: Permission denied [EMAIL PROTECTED] ~ $ This is the permission issue that's bugging me... Thank you. --- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > On Sat, 24 Jan 2004, Ling F. Zhang wrote: > > > I did the following after I install

install freeze in win2k

2002-02-28 Thread Ling F. Zhang
I am just try to install cygwin in my win2k machine. I selected everything after some serious mouse-clicking...and after it downloaded everything, it starts to install and my computer is dead frozen when it try to install gcc-lib*anyone has similar problem and know fix? _

Re: install freeze in win2k

2002-03-01 Thread Ling F. Zhang
I figured out the problem already...it was because my anti-virus software was on. --- David Starks-Browning <[EMAIL PROTECTED]> wrote: > On Thursday 28 Feb 02, Ling F. Zhang writes: > > I am just try to install cygwin in my win2k > machine. > > I selected every

setting up cygwin

2002-01-31 Thread Ling F. Zhang
I installed cygwin long time ago...recently, I downloaded the new setup.exe from cygwin website, and found out that the setup program is a little different. I remember it used to be that only package that needs updated are listed on the package list...now, seems every package is...some say skip, s

RE: Setting Up Cygwin

2002-01-31 Thread Ling F. Zhang
well, I am not using cygwi setup.exe as a mirroring tool...I think what I am merely saying is that, for convinient of user, the setup.exe could include helpful feature such as single button select all lastest package (w or w/o source), and/or the ability to read and compare package version, then d

security?

2002-01-31 Thread Ling F. Zhang
New to cygwin...is there a way to secure my cygwin? (just 4 fun) so that it asks for log on everytime I start it? I am running winxp...how do I do that? how do I do that in win9x? __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions!

RE: security?

2002-01-31 Thread Ling F. Zhang
well, yeah...that's why I am saying, 4 fun. okay, let me split up the question then: 1) what I want is NOT to keep someone from using cygwin, but wonder I can group some user so that I can mess with the permission of files...you know, the chmod xxx filename thingy. I know, those file can be acces

serveral questions regarding passwd and group on NT

2002-02-05 Thread Ling F. Zhang
I just installed cygwin on XP...so I am quite a newbie, to unix as a whole, actually. I did mkpass -l > passwd and mkgroup...okay, I know how I can select individual user and group to use by using the grep command...however, can I use a group / user that's NOT on my WINXP machine? say, root / roo

login

2002-02-05 Thread Ling F. Zhang
to add "security" in my cygwin prompt in XP, I edited the batch file, and instead of calling bash, I commented out that line and added login to it...then I realized one "bug", login quits after 300 seconds, and let user in just like that! woh...that's not "Secure" isn't it? anyone explain? or is i

opengl and cygwin

2002-02-05 Thread Ling F. Zhang
this seems like an X question, but it concerns openssh as well, so I am going to ask. okay, I need to do some opengl development. I found that opengl library comes with cygwin, that's a plus for me. but I think I might need to install xfree for cygwin in order for it to work (is this true?) say I

Re: opengl and cygwin

2002-02-05 Thread Ling F. Zhang
PATh is incorrect...so I tried to look for the file like glut.lib...that came up empty...so can anyone ever played with opengl on cygwin tell me how should I link? what PATH do I need to add? --- "Larry Hall (RFK Partners, Inc)" <[EMAIL PROTECTED]> wrote: > At 03:03 PM 2/5/2002,

install cygwin freezes at x11-fsrv README

2004-11-04 Thread Ling F. Zhang
I realize that I am the third person to raise this question in the mailing list, but the first two are unresolved. Installing cygwin fails because it freezes trying to install the x11-fsrv font server at README. Please help. Thank you. __ Do you

Re: install cygwin freezes at x11-fsrv README

2004-11-06 Thread Ling F. Zhang
Cygwin setup seems to freezes at xorg-x11-fenc-6.8.1.0.README anyone worked around this yet? --- Bobby McNulty <[EMAIL PROTECTED]> wrote: > Ling F. Zhang wrote: > > >I realize that I am the third person to raise this > >question in the mailing list, but the fir

sshd automatically close connection after successful login

2004-08-19 Thread Ling F. Zhang
I just installed cygwin. Ran ssh-host-config -y and cygrunsrv --start sshd and when i attemp to log in with "ssh localhost" I was asked for password, then a "Connection to localhost closed" ssh -v localhost gives: $ ssh -v localhost OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004 debug1: Reading confi

Re: Re: sshd automatically close connection after successful login

2004-08-19 Thread Ling F. Zhang
Well, I do want privilege separation support. So, I did the following: cygrunsrv --remove sshd cygrunsrv --install sshd --path /usr/sbin/sshd --args -r --user sshd_server and cygrunsrv asks me for password for sshd_server, I just hit enter twice... cygrunsrv --start sshd gives me a "logon error"

Re: Re: sshd automatically close connection after successful login

2004-08-22 Thread Ling F. Zhang
> >Well, I do want privilege separation support. > > > >So, I did the following: > >cygrunsrv --remove sshd > >cygrunsrv --install sshd --path /usr/sbin/sshd > --args > >-r --user sshd_server > > > >and cygrunsrv asks me for password for sshd_server, > I > >just hit enter twice... > > > >cygrunsrv

ssh err. in win2k3: setgid invalid argument...

2004-08-31 Thread Ling F. Zhang
just ran ssh-host-config...everything went fine... added "-r" option for priviledge separation ssh localhost: enters password: Fan Fare! msg appear then error: ssh localhost [EMAIL PROTECTED]'s password: Last login: Tue Aug 31 02:23:55 2004 from 127.0.0.1 Fanfare!!! You are successfully log

x-server font setting

2007-08-07 Thread Ling F. Zhang
I just installed cygwin in order to run fontforge on a Windows machine (while my linux machine is down). But since I am interested in working on font that covers the CJK plane, it is important that I can read text encoded in utf-8 or other non-latin codepage. I know that cygwin doesn't like unic