Cygwin on USB thumbdrive?
Posted 14 November 2006 - 02:16 PM
Now I'm reading about UNIX programming, and unfortunately there is no UNIX system at school, only Windows computers. Cygwin would be a nice tool that would let me code UNIX programs, so I'd like to install it on my usb thumbdrive.
While installing MinGW on a usb thumbdrive was as simple as copying the files on it, cygwin comes with an installer package - maybe I missed that part, but can we do a manual installation just like with MinGW? this would probably be better for a usb thumdrive, so that the installation doesn't expect the root drive to be C:, for example, but maybe E: or I:.
Posted 14 November 2006 - 02:38 PM
Is that what you are looking for?
Edited by Alk3, 14 November 2006 - 02:43 PM.
Posted 14 November 2006 - 02:43 PM
EDIT: You edited while I replied, lol
Libraries that emulate a UNIX environment by implementing the UNIX Application Programming Interface (API)
Include files and development tools such as cc(1), yacc(1), lex(1), and make(1).
ksh(1) (the Korn Shell) and over 250 utilities such as ls(1), sed(1), cp(1), stty(1), etc"
Seems like what I'm looking for, but cygwin does that too. I'll give UWIN a try, but if somebody else can answer for cygwin I'd appreciate it.
Edited by Aghaster, 14 November 2006 - 02:47 PM.
Posted 14 November 2006 - 02:50 PM
Posted 14 November 2006 - 07:36 PM
Posted 14 November 2006 - 08:21 PM
Installing to the flashdisk will allow it to work on the machine you installed it with, what about portability?
You can use whatever combination of commands you like, in either the cygwin shell or the native windows cmd.
I havent used cygwin, but from what I understand, you can only use *NIX commands, is that right?
Typing 'ipconfig' in cygwin will pull up your windows ip info using the windows exe
Typing 'chmod --help' will bring up the cygwin util in either cygwin or cmd.
Mix and match as you please, what restrictions?
I am constantly combining cygwin and windows commands together as I use either win or lin intermediately it's just more natural.
I have NOT done any C posix programming, but I have done perl posix in both win&lin, perl handles sockets and pipes VERY nicely, some of the sub.item functions are busted in Windows as they have had to work around a lot (and they were written originally for *nix using the true posix).
Posted 16 November 2006 - 12:12 PM
Posted 19 November 2006 - 12:35 PM
I tried this and in reality you can't do it since if you try to run cygwin on a nother machine besides the one that you installed it to the usb on you will get can not find errors
That's because Cygwin runs off the Windows shell, and so for it to know where to launch the Cygwin apps from you'd have to edit the environment variables in the OS. That's unlikely to happen unless you have admin access to the box. That is unless instead of doing something like "ls" you'd do "B:\usr\bin\ls.exe" or whatever. Even so, I don't know how well it would function in a system with limited privileges.
Yes it does, actually. To note though that it won't recognize commands with non exe file extensions. Those extensions have to be defined. So for instance, "tree" doesn't work; but "tree.com" will.
I thought it would be a good thing to share, since thats what we are using as a *NIX environment in our scripting class (for those who do not have Linux or the like). Its really powerful since you can use _both_ OS commands. I havent used cygwin, but from what I understand, you can only use *NIX commands, is that right?
Posted 20 November 2006 - 04:06 PM
Am I wrong, or is UWIN ShareWare?
UWIN is not released under the GPL but is free to download and use for educational and non-commercial purposes.
Edited by Alk3, 20 November 2006 - 04:14 PM.
BinRev is hosted by the great people at Lunarpages!