Sign in to follow this  
Followers 0
Aghaster

Cygwin on USB thumbdrive?

11 posts in this topic

I've installed MinGW on my usb thumbdrive so that I can plug it in a computer a school, open a command prompt, add it to the path and then start coding C.

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

Any idea?

0

Share this post


Link to post
Share on other sites

I have a better option. You can use Windoze and Linux commands. Its a ksh app. Let me dig it up and I will edit and post it.

[EDIT:]

http://linuxhelp.blogspot.com/2006/01/uwin...or-windows.html

http://www.research.att.com/sw/tools/uwin/

Is that what you are looking for?

Alk3

Edited by Alk3
0

Share this post


Link to post
Share on other sites

Interesting. I will wait for your post.

EDIT: You edited while I replied, lol ;)

"UWIN contains:

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
0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

if you are still wanting to use Cygwin on your thumb drive theres nothing special you have to do. I installed it on mine the other day just by running the installer and installing it onto my flash drive and it runs fine. Personally I think I'll take it off though and try out UWIN. Never heard of that one before.

0

Share this post


Link to post
Share on other sites

Doc'Z - will that work at a school where I am assuming he has no admin rights?

Installing to the flashdisk will allow it to work on the machine you installed it with, what about portability?

I havent used cygwin, but from what I understand, you can only use *NIX commands, is that right?

You can use whatever combination of commands you like, in either the cygwin shell or the native windows cmd. :D

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). ^_^

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

Cygwin on a portable drive would sure be gangs'ta

0

Share this post


Link to post
Share on other sites

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.

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?

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.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0