Remote Exploit Forums

Go Back   Remote Exploit Forums > Archives > BackTrack 3 Final > BackTrack3 Howtos


BackTrack3 Howtos Add your howto articles / tutorials here.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2008, 07:04 AM
pureh@te's Avatar
Jenkem Addict
 
Join Date: Mar 2007
Location: /dev/null
Posts: 5,549
Default How to install backtrack 3 final from the shell

This tutorial is going to assume a few things....

1. You have at least 2 neurons in your brain and that there is not to much tar build up between them from smoking tweed.

2. Your already partitioned and ready to go. (If you need a tutorial on partitioning I cant help you)

3. You have heard of a shell and know how to get one going.

Alright so lets begin. I'm going to cover installing backtrack to harddrive to ways. #1 with a /boot partition and #2 where bt is all on one partition. (just a side note. The team is trying to shy away from HD installs and is encouraging USB install which in my humble opinion is the best way to go).Most of this info is from various sources on the wiki and I will attempt to put it into one tutorial for newer members.
So you have a fresh HD with 3 partitions..
sda1=/boot
sda2=swap
sda3= /

Boot your live cd and open a bash shell and begin.

If your swap is not yet made then do this..(otherwise omit this step)
bt~#mkswap /dev/sda2
bt~#swapon /dev/sda2


bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda3 /mnt/backtrack/
bt~#mkdir /mnt/backtrack/boot/
bt~#mount /dev/sda1 /mnt/backtrack/boot/ (note: If you only have one partiton to install backtrack to simply omit this step)
bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/ <<< note: there is no space in var. Seems to be a glitch in the matrix
bt~#mkdir /mnt/backtrack/{mnt,proc,sys,tmp}
bt~#mount --bind /dev/ /mnt/backtrack/dev/
bt~#mount -t proc proc /mnt/backtrack/proc/
bt~#cp /boot/vmlinuz /mnt/backtrack/boot/

Now for lilo.
bt~#chroot /mnt/backtrack/ /bin/bash
bt~#nano /etc/lilo.conf

Now I like to delete all the bulls**t in the lilo config file so here is what mine would look like. (remember to set your own VGA accordingly )

lba32
boot=/dev/sda
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = backtrack3_final

Excellent. Save that and then execute lilo (I like to use the verbose flag)
bt~#lilo -v

after that exit your chroot enviorment
bt/~exit

and reboot and cross your fingers

bt~#reboot

Last edited by pureh@te; 01-22-2009 at 05:55 PM.
Reply With Quote
  #2 (permalink)  
Old 06-20-2008, 07:20 AM
wyze's Avatar
Jenkem Addict
 
Join Date: Jul 2007
Location: chmod 400
Posts: 1,596
Default

Quote:
Originally Posted by pureh@te View Post
This tutorial is going to assume a few things....

1. You have at least 2 neurons in your brain
This is the most important requirement for those that depend heavily on point/click installations btw ...time will tell how many n00bs heed this

Excellent tutorial btw
__________________
dd if=/dev/swc666 of=/dev/wyze
Reply With Quote
  #3 (permalink)  
Old 06-20-2008, 07:48 AM
drwalter's Avatar
Member
 
Join Date: Mar 2008
Location: Philadelphia
Posts: 88
Default And here's a working grub.conf file to consolidate posts

title Backtrack 3 KDE
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;kdm
boot


title Backtrack 3
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro
boot

REMEMBER: hd0,2 would be for partition 3 NOT 2. Change accordingly!
__________________
================================================== ===
Dr. Walter - Depraved linguist, Benevolent troublemaker extraordinaire
================================================== ===

Last edited by drwalter; 06-21-2008 at 02:11 AM.
Reply With Quote
  #4 (permalink)  
Old 06-20-2008, 08:16 AM
Member
 
Join Date: Jul 2007
Location: NY
Posts: 42
Send a message via AIM to punkrokk
Default

I agree w/encouraging a usb boot, but I'm sure there are reasons to want it on a hard drive... if only to have a place to play around
Reply With Quote
  #5 (permalink)  
Old 06-20-2008, 02:47 PM
Just burned his ISO
 
Join Date: Jun 2008
Posts: 3
Default

Nice Tutorial will try it when I'm done downloading BT3 Final.

Quote:
Originally Posted by drwalter View Post
title Backtrack 3 KDE
rootnoverify hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;kdm
boot


title Backtrack 3
rootnoverify hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro
boot

REMEMBER: hd0,2 would be for partition 3 NOT 2. Change accordingly!
Should it not be this? (Correct me when I'm wrong.)
You forgot the "(" before hd0,2
Quote:
title Backtrack 3 KDE
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;kdm
boot


title Backtrack 3
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro
boot
Reply With Quote
  #6 (permalink)  
Old 06-20-2008, 03:18 PM
theprez98's Avatar
Super Moderator
 
Join Date: Apr 2007
Location: Maryland
Posts: 2,556
Default

Replaced BT3b with BT3 Final using the above procedure, works like a champ.
__________________
theprez98
"I want peace on earth and goodwill toward men."
"We are the United States Government. We don't do that sort of thing!"
Reply With Quote
  #7 (permalink)  
Old 06-20-2008, 05:36 PM
xirtam's Avatar
Member
 
Join Date: Dec 2007
Location: Bangor, N.Ireland
Posts: 45
Send a message via MSN to xirtam
Default

Quote:
Originally Posted by pureh@te View Post
This tutorial is going to assume a few things....

2. Your already partitioned and ready to go. (If you need a tutorial on partitioning I cant help you)
i have partioned my drive but do i need to set up the file system e.g. mkfs.ext3 /dev/hdc1?
__________________
Think outside the box
Reply With Quote
  #8 (permalink)  
Old 06-20-2008, 06:43 PM
Member
 
Join Date: Mar 2008
Posts: 50
Send a message via AIM to eovnu87435ds Send a message via MSN to eovnu87435ds Send a message via Skype™ to eovnu87435ds
Default

Quote:
Originally Posted by punkrokk View Post
I agree w/encouraging a usb boot, but I'm sure there are reasons to want it on a hard drive... if only to have a place to play around
A hard drive installation would be good for people who rely on their flashdrives alot. Thats a lot of data being written to the flashdrive, and they only have a limited number of write cycles. I've already killed a flashdrive that way, and if someone uses it to store/transfer important files, you wouldnt want to have the chance that they might just dissapear anytime soon.



Also, what are the minimum/recommended sizes for the partitions?
__________________
Here's to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They're not fond of rules, and they have no respect for the status quo. You can praise them, disagree with them, quote them, disbelieve them, glorify or vilify them. About the only thing you can't do is ignore them, because they change things.

Last edited by eovnu87435ds; 06-20-2008 at 06:47 PM. Reason: adding question
Reply With Quote
  #9 (permalink)  
Old 06-20-2008, 06:46 PM
Junior Member
 
Join Date: Jun 2008
Posts: 14
Default For upgrading

I made a few minor changes to make a basic upgrade method:

You should already have swap so skip that part

After mounting your existing backtrack partition to /mnt/backtrack, copy any configuration files (e.g. /etc/X11/xorg.conf or individual app configs) somewhere.

When doing this part:
Quote:
cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/
DONT cp home or root but remove the other dirs first so:
Code:
rm -rf /mnt/backtrack/{bin,dev,pentest,usr,etc,lib,opt,sbin,var}
cp --preserve -R /{bin,dev,pentest,usr,etc,lib,opt,sbin,var} /mnt/backtrack/
I didn't have to touch grub (apart from change the name of my "Backtrack Beta 3" entry to "Backtrack 3 Final" so nothing major) so lilo should be ok too

Then simply cp your config files back

Last edited by jackabee; 06-21-2008 at 07:17 AM.
Reply With Quote
  #10 (permalink)  
Old 06-21-2008, 02:12 AM
drwalter's Avatar
Member
 
Join Date: Mar 2008
Location: Philadelphia
Posts: 88
Default

Quote:
Originally Posted by alexios View Post
Nice Tutorial will try it when I'm done downloading BT3 Final.
Should it not be this? (Correct me when I'm wrong.)
You forgot the "(" before hd0,2
oops good call sorry I was literally rushing out the door when i posted. Thanks I this edited it.
__________________
================================================== ===
Dr. Walter - Depraved linguist, Benevolent troublemaker extraordinaire
================================================== ===
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2