cat << eot >> /etc/apt/sources.list
################### Wimtools #########################
deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ precise main
deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ precise main
eot
run updates
apt-get update
if you dont get error then you can go to last step and install wimtools, but if you get error of public key not available and the key then search key and add it manually
reference to add key manually
now simple run the update again and install the wimtools
goto home directory (~), make folder waik and mount waik iso to it
cd ~; mkdir waik; mount -o loop waik.iso wiak
make winpe image out of waik mounted folder
mkwinpeimg --waik-dir=waik winpe.img
unmount waik iso image
umount waik
mount winpe.img to make changes to it
mkdir mnt; mount -o loop winpe.img mnt
make changes to boot.wim file
cd mnt/sources; mkdir mnt; wimmountrw boot.wim mnt
now you can go to mnt directory and see all winpe folders/files, make changes where needed
umount the boot.wim by commiting the changes, VERY IMPORTANT !
wimunmount --commit mnt
go to home directory (~)
cd ~; umount mnt
now copy the new winpe.img to tftp server and enjoy
install tool to make winpe from wiak mounted iso