Kernel Upgrade "Backtrack 4 Pre Release" - HowTo
Backtrack releases are most of the time (when installed on a system) outdated. So if you have Backtrack installed on a system and you want to have the newest packages (and maybe the newest kernel) installed then this is a article you can use.
In this article i will give you the commands or/and a bash script to execute the kernel upgrade by yourself of you backtrack system installation.
This upgrade script only works for “linux-image-18.104.22.168_22.214.171.124-10.00.Custom_i386” If there is a new version available just change the file name in the bash script.
To upgrade your Backtrack release. Just use the following commands.
apt-get update apt-get install -d linux-image cd /var/cache/apt/archives/ dpkg -i --force-all linux-image-126.96.36.199_188.8.131.52-10.00.Custom_i386.deb apt-get dist-upgrade apt-get install madwifi-drivers apt-get install r8187-drivers reboot fix-splash
To lazy to execute the commands yourself? Just run this shell script I created.
#!/bin/bash echo "This script will start a upgrade procedure for" echo "Backtrack to kernel version: 184.108.40.206_220.127.116.11-10.00.Custom_i386." echo "" echo "REMEMBER TO EXECUTE THE COMMAND fix-splash AFTER THE REBOOT!" echo "" #Ask for upgrade permission read -p "Start upgrade procedure (y/n)?" if [ "$REPLY" == "y" ]; then #Start upgrade procedure apt-get update #Download the new linux-image apt-get install -d linux-image #Go to the folder containing the new image cd /var/cache/apt/archives/ #Install (forced) the new image. #If there is a new kernel image just change the file name #(linux-image-18.104.22.168_22.214.171.124-10.00.Custom_i386.deb) dpkg -i --force-all linux-image-126.96.36.199_188.8.131.52-10.00.Custom_i386.deb #Execute a distribution upgrade apt-get dist-upgrade #Ask for permission to update the wireless drivers #This isn't necessary when using a vmware environment #or no wireless devices are and never will be active read -p "Upgrade wireless drivers (y/n)?" if [ "$REPLY" == "y" ]; then echo "Updating wifi drivers!" #Updating the wadwifi drivers apt-get install madwifi-drivers #Updating the r8187 drivers (aircrack) apt-get install r8187-drivers else #The drivers will not be updated echo "No driver update executed!" fi echo "Update script executed!" #Ask for permission for a automated reboot read -p "Reboot (y/n)?" if [ "$REPLY" == "y" ]; then #Start rebooting echo "Rebooting!" reboot else #Don't reboot the system. echo "No reboot executed!" echo "You need to reboot manually to finish the kernel upgrade!" fi #Upgrade completed! echo "Upgrade procedure finished!" else #Cancel upgrade! echo "Upgrade canceled!" exit fi exit
_To give the shell script execution permission execute: chmod + x _
Good luck and have fun!