My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
CreateYourCygwinEasyDisk  
Step to step guide to create a customized version of Cygwin Easy disk.
Featured, Phase-Implementation
Updated Nov 2, 2011 by whit...@gmail.com

Requirements

  • a Microsoft Windows operating system (such as Windows XP)
  • a Cygwin installation with all you need

First stage

If you want to mantain the installed version of Cygwin you need to duplicate the installation directory. To correctly create a Cygwin Easy disk remember that Cygwin must be installed (or duplicated) in a directory such as X:\cygwin, where X is one of your drives. Run a shell and from a writable directory (for example your home) download and execute the script mkeasy.sh. When setup is started click always on Next button and select cygwin-easy from packages selection. Now you have to wait (it depends on the installation of Cygwin) for the postinstall script that have to recreate all symlinks, because not all type of these migrate properly to the ISO file system.

Second stage

Copy autorun.bat, autorun.inf, readme.txt and license.txt in the drive X. You can try your Cygwin Easy disk with a double click on autorun.bat, a console would be appear. If all things are ok, now you can burn your Cygwin Easy disk.

Comment by brian.mc...@gmail.com, Aug 8, 2007

Works great. I missed a few packages on my first attempt at this, so on the 2nd pass, I made a copy of the new install & backed up the registry before running the script. Haven't noticed anything else missing yet.

I installed to a flash drive, so now I'm trying to figure out how to make it use the flash drive for tmp and home. I know you're supposed to be able to pass the desired home path as an argument to autorun.bat, but I'd like to make a permanent modification to this script.

Also, once X server is running, how do you make it run another xterm if you close your current one?

Comment by project member whit...@gmail.com, Aug 31, 2007

So you create your Cygwin Easy flash disk.. very well!

To make your desired home path permanent you have to download last version of autorun.bat via svn and create a new file called cygwineasy.ini inside the pen drive (in the root directory, where there is also autorun.bat) with inside these lines:

[Cygwin Easy]
HOME=%curdrive%\home\brian

The variable curdrive is used because in Windows you can't know, before inserting the flash drive in the PC, the letter will be assigned to this device. Cygwin Easy when will read this configuration file change this variable to current assigned letter. I write \home\brian for the home path but you can write any path you want. Cygwin Easy will create these folders if they doesn't exist and will never delete them and their content.

Once X server is running to run another xterm you can click on Cygwin X Windows shortcut on your desktop.

Comment by karl...@gmail.com, May 1, 2008

The ini trick does not work for me. Could it be because of the changes introduced in recent revisions?

Anyway is there any other way to make cygwin-easy use a custom home directory? I don't want to hard code it in autorun.bat though.

Comment by project member whit...@gmail.com, May 1, 2008

The ini trick should work also with last version present in SVN. Although I made a lot of changes so mixing SVN version with stable 2007.03.21 could be unpredictable.

I created some time ago a snapshot CD (never uploaded) called Cygwin Easy 2008.03.11 that is only 288 MB and soon I'll release a new version, probably an installer to let create easily a Cygwin Easy disk: flash drive, hard drive, network drive, etc...

Stay tuned.

Comment by karl...@gmail.com, May 1, 2008

...so mixing SVN version with stable 2007.03.21 could be unpredictable.

Yep, that's probably it. I tried autorun.bat from revision 40 and it worked. Although it fails to set the folder in my cygwin folder as the home folder. It creates a new home folder in root directory.

I tried using this in my ini and had no luck.

[Cygwin Easy]
HOME=%curdrive%\cygwin\home\Karl

Oh well, I'll wait for you to release the new version. Thanks, by the way.

Comment by karl...@gmail.com, May 2, 2008

It's all good now. It had something to do with the registry. Now it's working perfectly fine.

Thanks again.

Comment by kilava...@gmail.com, Jul 11, 2008

First of all, i'm sorry if there are any errors in my English... I'm just a high-tech-brazilian-guy who knows the basic ;)

without further delay, that's my case: I installed the cygwin easy on my usb-hdd, in the folder "G:\cygwin". I was trying to use the cygwineasy.ini, which was in the \cygwin folder. But the cygwin easy wasn't using the HOME directory in this ini file. So, 5 minutes later, i found the problem:

:mainset
rem Parse main settings file
rem ------------------------
%curdrive%%cygdir%\bin\sed -n "s, \(HOME.\) ,set \1,ip" "%curdrive%\cygwineasy.ini" >> "%temp%\lnk\cygwin.bat" 2> nul

this is a fragment of the file autorun.bat. This line contains the "search" to file. I simply swapped the "%curdrive%\cygwineasy.ini" by "%cd%\cygwineasy.ini", so cygwineasy.ini file should be in the same folder of autorun.bat.

I know this isn't a "OW MY GOD! HE DISCOVERED A NEW PLANET! LOL", but i like my things organized.

I hope this helps someone else :)

Comment by daemon...@gmail.com, Feb 13, 2009

I've got a problem, i think the iso file is corrupted :( it should be 1.9Gb right? but when I try to download it says 442bytes. Anyone help please.

Comment by project member whit...@gmail.com, Feb 13, 2009

This issue was already fixed.


Sign in to add a comment
Powered by Google Project Hosting