2013/12/20

Install VirtualBox to Linux Mint 12

1. Add the below line in the /etc/apt/sources.list

deb http://download.virtualbox.org/virtualbox/debian oneiric contrib

2.Add the Oracle VBox public key

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

3. Install the VirtualBox using apt-get script

sudo apt-get update

sudo apt-get install virtualbox-4.X

2013/12/10

How to run Python script under WinPE

1. Go to download and install python-3.3.3.msi or python-3.3.3.amd64.msi
    www.python.org
2. Launch and select "install just for me".
3. Press Next button and select or create program folder.
4. Select all function and press Next to install.
5. Download and install Windows ADK from Microsoft website.
6. Open "Deployment and Image Tools Environment" as administrator.
7. Type "dism /mount-wim /wimfile:C:\boot.wim /index:1 /mountdir:C:\mount" to mount boot.wim file.
8. Copy C:\Python33 folder to C:\mount
9. Open and edit "startnet.cmd" from C:\Winodws\System32
10. Type 2 command after "wpeinit"
11. assoc .py=PythonFile
      ftype PythonFile=X:\Python33\Python.exe
12. Save and exit.
13. Back to  "Deployment and Image Tools Environment" command line.
14. Type "dism /unmount-wim /mountdir:C:\mount /commit" to unmount boot.wim file.
15. Copy and replace boot.wim to your WinPE iso.
16. Boot to WinPE and run Python script to test it can be workable.