Several people have been asking for instructions on updating hard drive installs of BackTrack – here’s a quick set of commands to upgrade your machine and prepare the kernel sources. This is required for VMWare tools or VirtualBox tools module compilations, for example.
Start by updating and upgrading your local BackTrack install. IMPORTANT – If asked if you want to proceed with the kernel updates,agree, by typing “n”.
Install new drivers as needed, as well as kernel sources:
Now prepare your kernel sources:
rm -rf linux linux-source-220.127.116.11*
rm -rf /lib/modules/18.104.22.168/
tar jxpf linux-source-2.6.34.tar.bz2
ln -s linux-source-2.6.34 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
reboot # dont forget to reboot!
Your BackTrack Install is now fully updated and kernel sources are in place. Running a VMWare / VirtualBox tools install should complete without a problem.