border: 1px solid #d2d2d2; padding: 0px 8px 0px 8px; color: #a19999; font-size: 12px; height: 25px; width: 165px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin:0px; } .submitbutton{ background:#F66303; border: 1px solid #F66303; text-shadow: 1px 1px 1px #333; box-shadow: 3px 3px 3px #666; font:bold 12px Arial, sans-serif; color: #fff; height: 25px; padding: 0 12px 0 12px; margin: 0 0 0 5px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; cursor:pointer;}

Receive all updates via Facebook. Just Click the Like Button Below

You can also receive Free Email Updates:

Powered By Blogger Widgets

Related Posts Plugin for WordPress, Blogger...

Sunday, June 12, 2011

Installing Backtrack 5 on Katana


The following is a guide for updating Katana from Backtrack 4 to Backtrack 5 in Katana 2.0. (This method was tested on Backtrack 5, 32 bit, KDE).


1) Uninstalling Backtrack 4: 
Simply delete the content of the /backtrack directory in the root of the Katana drive. This includes the "hidden" .disk directory in that folder. (DO NOT delete the backtrack folder itself.)
2) Open the bt.cfg file in /boot/menu directory and replace the content of the file with the following:


PROMPT 0
#TIMEOUT 90
DEFAULT /boot/vesamenu.c32
MENU BACKGROUND /boot/wallpaper.png


MENU WIDTH 30
MENU MARGIN 0
MENU ROWS 10
MENU HELPMSGROW 22
MENU TIMEOUTROW 26
MENU TABMSGROW 27
MENU CMDLINEROW 27
MENU HSHIFT 24
MENU VSHIFT 0


   menu color screen   37;40      #00000000 #00000000 none
   menu color border   30;44      #00000000 #00000000 none
   menu color title   1;36;44    #aaaaaaaa #00000000 none
   #menu color unsel   37;44      #ff60CA00 #00000000 none
   menu color unsel   37;44      #aaaaaaaa #00000000 none
   menu color hotkey   1;37;44    #ff60CA00 #00000000 none
   #menu color sel      7;37;40    #ffffffff #00000000 none
   menu color sel      7;37;40    #ffffffff #00000000 none
   menu color hotsel   1;7;37;40  #ff808080 #ff60CA00 none
   menu color scrollbar   30;44      #00000000 #00000000 none


   menu color tabmsg   31;40      #aaaaaaaa #00000000 none
   menu color cmdmark   1;36;40    #ffff0000 #00000000 none
   menu color cmdline   37;40      #aaaaaaaa #00000000 none
   menu color pwdborder   30;47      #ffff0000 #00000000 std
   menu color pwdheader   31;47      #ffff0000 #00000000 std
   menu color pwdentry   30;47      #ffff0000 #00000000 std
   menu color timeout_msg   37;40      #aaaaaaaa #00000000 none
   menu color timeout   1;37;40    #ffaaaaff #00000000 none
   menu color help      37;40      #aaaaaa00 #00000000 none
   menu color msg07   37;40      #90ffffff #00000000 std




MENU TITLE KATANA - Backtrack 5


LABEL DEFAULT
MENU LABEL Text
KERNEL /backtrack/casper/vmlinuz
APPEND file=/cdrom/preseed/custom.seed boot=casper initrd=/backtrack/casper/initrd.gz text cdrom-detect/try-usb=true live-media-path=backtrack/casper splash vga=791--
TEXT HELP
                         More about currently selected:


                        Default Boot Text Mode
ENDTEXT


LABEL STEALTH
MENU LABEL Stealth
KERNEL /backtrack/casper/vmlinuz
APPEND file=/cdrom/preseed/custom.seed boot=casper initrd=/backtrack/casper/initrds.gz text cdrom-detect/try-usb=true live-media-path=backtrack/casper splash staticip vga=791--
TEXT HELP
                         More about currently selected:


                        No Networking enabled
ENDTEXT


LABEL FORENSICS
MENU LABEL Forensics
KERNEL /backtrack/casper/vmlinuz
APPEND file=/cdrom/preseed/custom.seed boot=casper initrd=/backtrack/casper/initrdf.gz text cdrom-detect/try-usb=true live-media-path=backtrack/casper splash vga=791--
TEXT HELP
                         More about currently selected:


                        No Drive or Swap Mount
ENDTEXT




LABEL NODRM
MENU LABEL noDRM
KERNEL /backtrack/casper/vmlinuz
APPEND file=/cdrom/preseed/custom.seed boot=casper initrd=/backtrack/casper/initrd.gz text cdrom-detect/try-usb=true live-media-path=backtrack/casper splash nomodeset vga=791--
TEXT HELP
                         More about currently selected:


                        No DRM Drivers
ENDTEXT




LABEL debug
MENU LABEL Debug
KERNEL /backtrack/casper/vmlinuz
APPEND file=/cdrom/preseed/custom.seed boot=casper initrd=/backtrack/casper/initrd.gz cdrom-detect/try-usb=true live-media-path=backtrack/casper text--
TEXT HELP
                         More about currently selected:


                        Safe Mode
ENDTEXT




LABEL back
MENU LABEL ..
KERNEL /boot/vesamenu.c32
APPEND /boot/menus/main.cfg
TEXT HELP
                        Back to Main Menu
ENDTEXT


3) Download Backtrack 5


4) Copy over the files for Backtrack 5.
In Windows: use 7zip (Included in the Katana Tool Kit) to extract the content of the Backtrack 5 ISO file directly into the backtrack directory in the Katana drive. This includes the "hidden" .disk directory. (See http://www.dkszone.net/open-extract-iso-image-7zip about extracting ISOs using 7zip)
In Linux: You can also use 7zip OR you can run the following shell script. Create a file on your system called install.sh and copy the following content into it. 
Running the script: # ./install.sh /path/to/katana /path/to/distro.iso


#!/bin/sh
#
# Installer for Backtrack 5
#
# Author: JP Dunning (.ronin)
#
# Usage
# ./install.sh /path/to/katana distro.iso
#
# $1 = Katana mount path
# $2 = ISO path/and/filename
#




if [[ $UID -ne 0 ]]; then
  echo " "
  echo "ERROR: $0 must be run as root."
  echo " "
  exit 1
fi 


if [[ -z $1 || -z $2 ]]; then
  echo " "
  echo "Usage:"
  echo " ./install.sh /path/to/disk distro.iso"
  echo " "
  exit 1
fi 


DISTRO=backtrack
SCRIPT_PATH=$(pwd)


echo "Installing $DISTRO ..."


cd $SCRIPT_PATH
mount -o loop $2 $SCRIPT_PATH/$DISTRO


# Copy over files
echo "Copying files (this may take some time) ..."


mkdir $1/$DISTRO
cp -f -v -r $SCRIPT_PATH/$DISTRO/* $1/$DISTRO
cp -f -v -r $SCRIPT_PATH/$DISTRO/.disk $1/$DISTRO


# Unmount image
echo "Cleaning up ..."


umount $SCRIPT_PATH/$DISTRO
rm -r $SCRIPT_PATH/$DISTRO


echo
echo "... $DISTRO installed."


You should now be able to boot into Backtrack 5 from the Katana boot menu. Have fun!!!


DOWNLOAD KATANA

No comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More