Did Apache bend my Cygwin? Or was it SSH?


 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Did Apache bend my Cygwin? Or was it SSH?
# 1  
Old 05-24-2009
Did Apache bend my Cygwin? Or was it SSH?

A few hours ago, I installed Apache 2 for Windows. About 90 minutes ago, I started a terminal session, and discovered that my home folder had been changed from path "c:\cygwin\home\{myusername}" to path "c:\Documents and Settings\{myusername}". I did not make this change consciously, but I suspect that either Apache, or a subsequent half-hearted attempt to update <?!> OpenSSH for Windows may have done so without my knowing it.

In any case, where in the configuration files of any of the three forenamed packages (bundles, applications, utilities, whatever the right name for them is) is such a thing as a home folder defined? I've already taken a peek at c:\cygwin\etc\passwd and it shows my home folder path simply as "home/{myusername}". No help there.

Inevitably, this renders quite a few of my aliases in my previously known-good .bash_aliases file pretty much useless until and unless I edit them to reflect the change in starting places. I have done so, but I hope I don't have to keep them that way for long.

Also, I have an rxvt that I use outside of XWindows, and it has all of a sudden decided to call itself xterm (the return I got from an echo $TERM command). So there's more than just default home paths involved.

Hope someone out there can help me with this, or at least point me towards some help.

BZT
# 2  
Old 05-24-2009
I don't think it is uncommon for conflicts on Windows software installations, especially when you are installing emulators for other operating systems.

Simply fix them and move on .... Smilie

BTW, I would never run an emulator like Cygwin on Windows. It is too easy to build a linux box and run the real thing !
# 3  
Old 05-24-2009
Quote:
Originally Posted by Neo
I don't think it is uncommon for conflicts on Windows software installations, especially when you are installing emulators for other operating systems.

Simply fix them and move on .... Smilie

BTW, I would never run an emulator like Cygwin on Windows. It is too easy to build a linux box and run the real thing !
Yes, very helpful.
Sometimes you don't have a choice of OS, and in those times, it's good to have Cygwin.
Personally, I couldn't survive my .NET job in an all Windows environment, if it wasn't for it.




If you're running Cygwin from a Windows shortcut, make sure the "Starting folder" field in its Properies points to the right place. That's the CWD when the session starts.
# 4  
Old 05-24-2009
Quote:
Originally Posted by EagleFlyFree
Y
Sometimes you don't have a choice of OS, and in those times, it's good to have Cygwin. Personally, I couldn't survive my .NET job in an all Windows environment, if it wasn't for it.
Hi Eagle Flying Free,

Can you please elaborate on exactly why you need a Linux emulator on Windows to work in .NET?

Thanks.
# 5  
Old 05-24-2009
I don't strictly need it, but I use it to get all my favorite software, such as bash, vim, diffing tools, git, ruby, perl, etc.
Cygwin lets you bring some of the Unix culture, tools and productivity into your Windows job, and for those of us stuck in them for whatever reason, that's infinitely valuable.

I'm humbly suggesting that you shouldn't be so quick to shrug it off.


Also, it's actually Eagle Fly Free; it's a song by Helloween spelled just like that Smilie
# 6  
Old 05-24-2009
Quote:
Originally Posted by EagleFlyFree
I'm humbly suggesting that you shouldn't be so quick to shrug it off.
Hmmm. Thanks.

Well, I shrug is off because I never use emulators and don't know anyone who does and have never seen anyone use one.

If I want to run Linux, I boot in Linux and when I type on my XP laptop, I don't see any need to emulate Linux and when I am on my OS X I don't need to emulate.

Likewise, I don't emulate Windows on Linux or OS X.

That's just me. On the other hand, I am not forced to work in .NET. I would never do that Smilie

Glad you find emulators useful.

PS: You still have not convinced me to install an emulator on my XP laptop :-) I am open... please convince me :-)
# 7  
Old 05-24-2009
Actually, I wouldn't use Windows + Cygwin unless I could avoid it, which is not the case at work. It's somewhat notably slow.
I find Linux + Windows on Virtualbox more productive, and that's what I use on all my personal machines (but then I don't work in .NET outside work).

It's all about having access to your favorite tools no matter what platform you're running, and also in the most comfortable way.
If you miss any Unix utilities, and can't or don't want to replace Windows, then give Cygwin a try; it's very mature, stable and complete, albeit a bit slow.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies

2. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies

3. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

4. Web Development

Apache module development on apache 2.2

Hi, I'm new to developing modules for Apache. I understand the basics now and can develop something simple which allows a 'GET' request to happen, but what I want to do is actually 'POST' information to my site. I know the basic POST Request works and I can see that it is post by looking at... (2 Replies)
Discussion started by: fishman2001
2 Replies

5. IP Networking

Cygwin remote ssh with key authentication method

Hi experts, I am not sure in which forum to submit this question. If this is not the correct place then please let me know where to submit this thread. My requirement is to invoke windows batch scripts from linux shell script. Hence, I have installed openssh in Cygwin on the windows machine.... (2 Replies)
Discussion started by: ahmedwaseem2000
2 Replies

6. Shell Programming and Scripting

Ssh = ssh expect and keep everything not change include parameter postion

I have write a script which contains ssh -p 12345 dcplatform@10.125.42.50 ssh 127.0.0.1 -p 5555 "$CMD" ssh root@$GUEST_IP "$CMD" before I use public key, it works well, now I want to change to "expect", BUT I don't want to change above code and "parameter position" I can post a... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

7. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

8. Shell Programming and Scripting

could not send commands SSH session with Net::SSH::Expect

I am using Net::SSH::Expect to connect to the device(iLO) with SSH. After the $ssh->login() I'm able to view the prompt, but not able to send any coommands. With the putty I can connect to the device and execute the commands without any issues. Here is the sample script my $ssh =... (0 Replies)
Discussion started by: hansini
0 Replies

9. Windows & DOS: Issues & Discussions

Public/Private Key SSH from UNIX to Windows (Cygwin)

Hello all, I have a bit of trouble working a passwordless SSH from UNIX to Cygwin running windows 2k3. Here are some details. I AM able to SSH from the Windows box to the UNIX box using the keys. Also, I'm able to SSH from UNIX to Windows w/o the keys. However, when I try to do it with the keys... (9 Replies)
Discussion started by: kclerks11
9 Replies
Login or Register to Ask a Question