Blog
Jul 2, 2010
BackTrack ISO Kernel 2.6.34 Upgrade
BackTrack ISO Kernel 2.6.34 Upgrade
3 min read
Last night we moved a new kernel package (2.6.34) out of the testing repositories, and into the official ones. This kernel update marks a huge improvement in hardware support and desktop responsiveness. In addition to the kernel, we have added several external wireless drivers – madwifi-ng (ath_pci), broadcom-sta (wl, no injection), r8187 drivers and rt73 k2wrlz drivers.
The following guide will walk you through a BackTrack 4 Final ISO update, which will include the new kernel into your build. The original customise script neglected to take into account kernel changes. Ideally, the ISO update process should be done from within an already updated BackTrack installation.
[cc lang=”bash”]
apt-get update && apt-get dist-upgrade
cd ~ && mkdir ISO && cd ISO
wget offsec.com/bt4.sh && chmod 755 bt4.sh
[/cc]
Then move the bt4-final.iso into the ISO directory you just created and run the customization script. This will bring you into the edited ISO’s chroot environment.
[cc lang=”bash”]
mv /location/of/bt4-final.iso ~/ISO/
./bt4.sh
##############################################################
#[*] BackTrack 4 Final customisation script
#[*] Setting up the build environment…
#[*] Copying over files, please wait …
[/cc]
Once the copy is complete and you are entered into the chroot environment, update and upgrade the chrooted environment.
[cc lang=”bash”]
##############################################################
# [*] Once you have finished your modifications, type “exit”
##############################################################
apt-get update && apt-get dist-upgrade
[/cc]
The upgrade will take a while – you are essentially downloading all the package updates we released since BT4 final. This update will include the new 2.6.34 kernel. Once the upgrade is done, clean out all downloaded deb files and download additional drivers and kernel sources.
[cc lang=”bash”]
apt-get install madwifi-drivers broadcom-sta r8187-drivers linux-source-2.6.34
apt-get clean
[/cc]
Now prepare your kernel sources:
[cc lang=”bash”]
apt-get install madwifi-drivers broadcom-sta r8187-drivers linux-source-2.6.34
depmod -a
apt-get clean
cd /usr/src/
rm -rf linux linux-source-2.6.30.9*
rm -rf /lib/modules/2.6.30.9/
tar jxpf linux-source-2.6.34.tar.bz2
ln -s linux-source-2.6.34 linux
cd linux
cp /boot/config-2.6.34 .config
ln -s /usr/src/linux /lib/modules/2.6.34/build
make scripts && make prepare
apt-get clean && updatedb && history -c
[/cc]
At this point you can modify, add or remove any other tools you wish. When done, exit the chroot by typing:
[cc lang=”bash”]
exit
# [*] Exited the build environemnt, unmounting images.
# [*] Building manifest
# Removing any system startup links for /etc/init.d/inetutils-inetd …
# …
# Max brk space used 0
# 796020 extents written (1554 MB)
# [*] Your modified BT4 is in /root/ISO/bt4-mod.iso
##############################################################
[/cc]
The updated iso will take a while to build, and will be located in the ISO directory (bt4-mod.iso). If you have any issues with the script, post a comment or catch us in the backtrack IRC channel.
Cybersecurity leader resources
Sign up for the Secure Leader and get the latest info on industry trends, resources and best practices for security leaders every other week
Latest from OffSec
Enterprise Security
The Role of Leadership in Cultivating a Resilient Cybersecurity Team
Learn about the role that leadership plays in cultivating a resilient cybersecurity team.
Sep 13, 2024
5 min read
Community Spotlight
Navigating the Leap: My Journey from Software Engineering to Offensive Security
A software engineer’s journey into offensive security, sharing insights and tips for transitioning careers and thriving in the infosec field.
Sep 13, 2024
17 min read
OffSec News
Become a Certified Threat Hunter with OffSec’s New Foundational Threat Hunting Course (TH-200)
Everything you need to know about OffSec’s new course and certification – TH:200 – Foundational Threat Hunting.
Sep 9, 2024
4 min read