info

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 :



http://www.fileserve.com/file/RWfFP2X/coLinux-0.7.8.exe


a2) Compressed Linux filesystem from here :

http://www.fileserve.com/file/5QrvKD6/Ubuntu-9.04-1gb.7z

Unzip the the Ubuntu-9.04-1gb.tz 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.zip. Toporesize can be found on Colinux Image Tools.

a3) Edit the colinux.conf file like this :

CODE
kernel=vmlinux

initrd=initrd.gz

cobd0=Ubuntu-9.04.ext3.1gb.fs

root=/dev/cobd0

mem=512

eth0=pcap-bridge,"LAN"

eth1=tuntap
b) tools

b1) 7z files from here :

http://www.7-zip.org/download.html

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

http://www.nomachine.com/download.php

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

CODE
@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%

%cddrive%

cd \tools

winpcap-nmap-4.11.exe /s

%drivedest%

cd \

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

if exist %drivedest%\colinux goto start_colinux

mkdir colinux

%cddrive%

cd \colinux

xcopy *.* %drivedest%\colinux /S

cd \tools\7z

copy 7z*.* %drivedest%\colinux

%drivedest%

cd \colinux

7z e Ubuntu-9.04-1gb.tz

:start_colinux

%drivedest%

cd \colinux

colinux-daemon.exe --remove-driver

colinux-daemon.exe --install-driver

start /MIN colinux-daemon @colinux.conf

%cddrive%

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

0 comments :