|
CreateYourCygwinEasyDisk
Step to step guide to create a customized version of Cygwin Easy disk.
Featured, Phase-Implementation Requirements
First stageIf 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 stageCopy 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. |
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?
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:
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.
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.
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.
...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.
Oh well, I'll wait for you to release the new version. Thanks, by the way.
It's all good now. It had something to do with the registry. Now it's working perfectly fine.
Thanks again.
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:
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 :)
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.
This issue was already fixed.