12 October 2010

mixing Win PE 3 and Linux.

The last days I enjoyed myself by mixing Win PE 3 and Linux.

I wanted to use these o/s simultaneously,so this is the result.


1) Get the ISO image file of WInPE 3.0 and open it

2) On the root of the ISO image put these file and folders :

a) Colinux

a1) Colinux-0.7.8 from here :

a2) Compressed Linux filesystem from here :

Unzip the the file to C:\coLinux. This will take a while (unpacked it will be 1G). Unzipped, the file will have the name Ubuntu-9.04.ext3.1gb.fs.

The images that coLinux provides may not be big enough for our needs, especially if we plan to install Gnome or KDE. Here's a nifty little program we can use to increase the size of the image file: Toporesize can be found on Colinux Image Tools.

a3) Edit the colinux.conf file like this :







b) tools

b1) 7z files from here :

b2) NXclient client / server for Windows / Linux files from here :

b3) Wincap-nmap-4.11.exe file

c) script.bat

edited script.bat like this and put it on the root of the ISO image

@echo off

set tagsource=\colinux

for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagsource%" set cddrive=%%i:

set tagdest=\"autoexec.bat"

for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagdest%" set drivedest=%%i:

echo %cddrive%

echo %drivedest%


cd \tools

winpcap-nmap-4.11.exe /s


cd \

if exist %drivedest%\colinux echo You already have an old installaion of Colinux,starting...

if exist %drivedest%\colinux goto start_colinux

mkdir colinux


cd \colinux

xcopy *.* %drivedest%\colinux /S

cd \tools\7z

copy 7z*.* %drivedest%\colinux


cd \colinux

7z e



cd \colinux

colinux-daemon.exe --remove-driver

colinux-daemon.exe --install-driver

start /MIN colinux-daemon @colinux.conf


cd \tools\nxclient

start nxclient
that's all. I attached a screenshot to show how works WinPE and Linux together,some time ago enemies,now friends :)