eassy Posted November 3, 2012 Report Posted November 3, 2012 The main idea is to replace the content of the Wubi’s root disk. Continue reading to know how to achieve this.First, grab Wubi here: http://us.releases.ubuntu.com/12.04/wubi.exeand the Ubuntu ISO for your architecture:http://us.releases.ubuntu.com/12.04/ubuntu-12.04-desktop-i386.isohttp://us.releases.ubuntu.com/12.04/ubuntu-12.04-desktop-amd64.isoNote: You may change the version number and the mirror for your country.Get also your BT image:BT5http://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5-GNOME-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5-GNOME-64.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5-KDE-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5-KDE-64.isoBT5R1http://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r1-GNOME-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r1-GNOME-64.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r1-KDE-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r1-KDE-64.isoBT5R2http://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r2-GNOME-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r2-GNOME-64.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r2-KDE-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r2-KDE-64.isoBT5R3http://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r3-GNOME-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r3-GNOME-64.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r3-KDE-32.isohttp://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r3-KDE-64.isoOnce all files are downloaded, you are now ready to go.First part is pretty easy… just install Ubuntu from Wubi inside Windows.Once it is fully installed, you will need to make a backup copy of these files: “/boot/grub/grub.cfg” “/etc/fstab”The easiest way to do that (we need to mount the virtual disk anyway), is to access it from outside. In my case, I already have Ubuntu installed beside Windows. You may also use a Ubuntu Live CD (like the Installer, or even any Linux based Live CD). In fact, all you need is Linux Smilie: To not have to sudo everything (for Ubuntu), we just do it once to become root:sudo -iCreate your temporary mount points:cd /mntmkdir ./windows (your Windows C drive)mkdir ./wubi (Wubi's virtual disk)mkdir ./backtrack (Backtrack CD)mkdir ./bt (Backtrack root disk image)Mount your Windows partition containing Wubi (your C partition). Here is an example (where “Windows” is the label of your partition):mount /dev/disk/by-label/Windows/ /mnt/windowsmount -o loop /mnt/windows/ubuntu/disks/root.disk /mnt/wubiNote: “/mnt/wubi” is now our reference to access your root partition (/) inside your Wubi’s installation.Prepare the backup directory:cd /rootmkdir ./wubi-backupNow we can backup our two files:cp /mnt/wubi/boot/grub/grub.cfg /root/wubi-backup/cp /mnt/wubi/etc/fstab /root/wubi-backup/Once backup is completed, say goodbye to your Wubi’s installation. You can backup “root.disk” if you want, but it’s not an obligation.DON’T DO A TYPO ERROR HERE, OR YOU’LL SAY GOODBYE TO YOUR CURRENT SYSTEM TOO… THAT’S NOT THE OBJECTIVE HERE…rm -r /mnt/wubi/*Extract BT’s root image from the ISO. If you don’t already have your BT ISO, you can download it by typing:wget <a href="http://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r3-GNOME-32.iso">http://mirror.switch.ch/ftp/pool/1/mirror/backtrack/BT5r3-GNOME-32.iso</a>Note: Again, just use the version for your architecture. See above to know the right file to download.For this step, you have two choices. First is to mount the ISO and copy the file, second is to extract the ISO archive and copy the file. Let’s go for the first one:mount -o loop ./BT5r3-GNOME-32.iso /mnt/backtrackmount /mnt/backtrack/casper/filesystem.squashfs /mnt/btSummary of your mount points:mount -o loop ./BT5r3-GNOME-32.iso /mnt/backtrackmount /dev/disk/by-label/Windows /mnt/windowsmount /mnt/backtrack/casper/filesystem.squashfs /mnt/btmount -o loop /mnt/windows/ubuntu/disks/root.disk /mnt/wubiTime to copy the system files:cp -fpr /mnt/bt/* /mnt/wubi/And now, copy the two files that you have made a backup of before:cp -f /root/wubi-backup/grub.cfg /mnt/wubi/boot/grub/cp -f /root/wubi-backup/fstab /mnt/wubi/etc/Adjust the boot config file for your kernel version. Use gedit’s find and replace function to do everything in a single step:gedit /mnt/wubi/boot/grub/grub.cfgNote: To know what version your BT ISO have, just get a look in “/mnt/bt/boot/”. It is a good idea to adjust also boot parameters like “ro splash vga=791”Update Root Account:chroot /mnt/wubipwconvCreate root’s passwordpasswdIt’s finish! Just unmount your mount points and remove temporary folders:umount /mnt/btumount /mnt/backtrackumount /mnt/wubiumount /mnt/windowsrm -r /mnt/btrm -r /mnt/backtrackrm -r /mnt/wubirm -r /mnt/windowsexit (to exit root shell)You can now reboot your system, and choose “Ubuntu” at boot… I assume that you know what to do from there…Additional tweaks, once BT is up and runningUse MakeIf you would like to use make instructions (like is you want to compile your wireless drivers)prepare-kernel-sources (ensure that you are connected to Internet)cd /usr/src/linuxcp -fr include/generated/* include/linux/Personally, I prefer to use the BT’s graphical interface rather than the text version:Startx automaticallyAdd these lines to /root/.bashrcif [ -z “$DISPLAY” ]; thenstartxfiEnable full auto-complete in bashUncomment these lines:if [ -f /etc/bash_completion ] && ! shopt -oq posix; then. /etc/bash_completionfiHere is a tweak if you NEVER use the graphical interface:Activate automatically eth0nano /etc/network/interfacesAnd add these lines:auto eth0allow-hotplug eth0iface eth0 inet dhcp (uncomment this line)Other bash tweaks:Disable terminal beepnano /root/.inputrcadd “set bell-style none” line in the new file and save itChange keyboard layoutapt-get install console-commonand follow on screen instructionssursa:solutions-ouvertes.com Quote