Howto:Install GUI

From Offensive-security.com

Jump to: navigation, search

Contents

Installing BackTrack v2.0 using the GUI installer

This is the most basic hard disk installation possible. It is far from optimized, and doesn't create a swap file. Feel free to stray from the guide to customize your installation if you know what you're doing.


Preparations

  • Note that [ENTER] indicates pressing enter, not typing it out.

Boot Backtrack v2.0

First, boot the BackTrack v2.0 LiveCD, login as root, and start KDE.

-user:root
-pass:toor
-bt ~ # startx

When KDE finishes starting, click the terminal icon to bring up a shell.

Preparing the destination drive

  • USB drive installs: /dev/sda
  • IDE drive & regular hard disk drive installs: /dev/hda

For most (if not all) operating systems to function properly, the destination drive must be partitioned accordingly. In this guide, the destination drive will be a Hard Disk Drive, or /dev/hda, although the exact same process is used for USB drives except instead of using /dev/hda use /dev/sda. Before partitioning the drive, it is recommended to unmount it to ensure that the partitioning process runs smoothly, but this step isn't required and is usually okay to skip over.

-bt ~ # mount
\tmpfs on / type tmpfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,devgid=10,devmode=0666)
/dev/hda1 on /mnt/hda1 type ext2 (rw,noatime)

If the destination device is listed (in the example above /dev/hda1 is mounted), it is recommended to unmount the drive:

-bt ~ # umount /dev/hda1

Note: USB Drive Is Not Always /dev/sda. Mine Was /dev/sdb1/. It can differ depending on your computer/setup. Make sure you check before committing any changes, you don't want to accidentally overwrite anything. -th3st1ck

Partitioning with fdisk

To partition our destination drive, we will use fdisk. The following commands start fdisk with /dev/hda as the drive it will partition. Then, we tell fdisk to create a new primary partition with the id of 1 on the drive.

-bt ~ # fdisk /dev/hda
  
The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
 
-Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
-p
-Partition number (1-4): 1
-First cylinder (1-30401, default 1): [ENTER]
Using default value 1

Partition size

  • If you would like the size of the partition to be the default value, simply press enter and move on.

Here, fdisk is inquiring about what cylinder we want the partition to end on. This value will also determine the partition's size. If you want to simply leave it as the default value, press enter.

-Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044):[ENTER]
Using default value 1044
  • To specify a size, enter: +(SIZE IN MB)M

To set the partition to be 5 gigabytes, which is 5000 megabytes, we would enter:

-Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401): +5000M

-Command (m for help):

Writing the new table

  • No changes are made to the destination drive until fdisk is given the w command.

At this point, we are finished determining what changes we will make to the partition table. No changes are made to the destination drive until fdisk is given the w command. This will apply the new partition table. There is no going back after this!

-Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
-bt ~ #

Creating the filesystem

Now that we have finished changing our partition table, we must create a file system on our new partition. First, reboot.

-bt ~ # reboot

We will make our new partition ext2 with mke2fs.

-bt ~ # mke2fs /dev/hda1
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1048576 inodes, 2096474 blocks
104823 blocks (5.00%) reserved for the super user
First data block=0
64 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
       32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Writing superblocks and filesystem accounting information: done 

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
-bt ~ #

Installing Backtrack to the drive

Now we have finished setting up the drive and are ready to install Backtrack v2.0 to the destination drive.

Mounting drives

First, make a directory in /mnt/ where the installer will put all the files, then mount our new ext2 partition, /dev/hda1, to the new directory. This is done as follows:

-bt ~ # mkdir /mnt/backtrack
-bt ~ # mount /dev/hda1 /mnt/backtrack/

The BackTrack Installer GUI

The BackTrack GUI Installer configured to install to a USB drive (/dev/sda)
The BackTrack GUI Installer configured to install to a USB drive (/dev/sda)

Now we are ready to open the BackTrack Installer GUI. The BackTrack Installer can be found in 2 places on the K Menu:

  • K Menu->System->BackTrack Installer
  • K Menu->BackTrack->Miscellaneous->BackTrack Installer

/dev/hda=IDE hard drive and /dev/sda is a USB drive. Fill in the fields with the following values.

BackTrack Installer Values
Field Name HDD Value USB Value
Source (BackTrack CD) [EMPTY]
Install BackTrack to /mnt/backtrack/
Write MBR to /dev/hda /dev/sda
Installation Method Real

Once the forms are correctly filled in and you are prepared to install BackTrack, click the Install button. Installation speed depends on the type of destination drive. For most, the install should complete relatively quickly, although keep in mind that /usr is fairly large and may take some time to copy over. Freezes on 45% coping the /opt file onto a usb hard drive

Personal tools