Fix headers 3.2.6 (vbox modules, ati catalyst, wifi drivers, etc)
I have read of users complained that not compiled the vbox modules in the new kernel. I had the same problem installing ati catalyst for hashcat xD.
I do not know if it affects all bt r2 or just those who should upgraded from r1 to r2, I should not had time for more tests.
If you been having problems to build things that require headers, here is the solution, tested in a physical amd64 and a 32-bit vm
First we need the tools, not all are necessary, but if I personally recommend: (some tools are in bt defaults)
Code:
apt-get install build-essential fakeroot dh-make libstdc++6 gcc-4.4-base dkms module-assistant linux-headers linux-headers-3.2.6 xserver-xorg xserver-xorg-core file-roller
You have to make sure the kernel source is in /usr/src, but you should download it from the repository
Code:
ls /usr/src | grep linux-source-3.2.6.tar.bz2
Now do the symlinks and prepare to compile kernel-sources
64bits:
Code:
rm /usr/src/linux
ln -s /usr/src/linux-source-3.2.6 /usr/src/linux
rm /usr/src/linux-headers-3.2.6/include/asm
ln -s /usr/src/linux-source-3.2.6/arch/ia64/include/asm /usr/src/linux-headers-3.2.6/include/asm
ln -s /usr/src/linux-headers-3.2.6 /lib/modules/3.2.6/build
32bits:
Code:
rm /usr/src/linux
ln -s /usr/src/linux-source-3.2.6 /usr/src/linux
rm /usr/src/linux-headers-3.2.6/include/asm
ln -s /usr/src/linux-source-3.2.6/arch/x86/include/asm /usr/src/linux-headers-3.2.6/include/asm
ln -s /usr/src/linux-headers-3.2.6 /lib/modules/3.2.6/build
ln -s /usr/src/linux-source-3.2.6/arch/x86/Makefile_32.cpu /usr/src/linux-headers-3.2.6/arch/x86/Makefile_32.cpu
Now we can compile things like wifi drivers, vbox, etc. This also would serve us for the guest additions in a bt vm
To virtualbox, you must ensure that the vbox symlink in /usr/src/, if it is not, Create symlink /var/lib/dkms/vboxhost/4.1XXX/source/ to usr/src/vboxhost-4.1XXXX, depending on your vbox version.
Code:
/etc/init.d/vboxdrv setup
For the fglrx ( 8.961 ) I use the amdcatalyst, is downloaded from their website and just run with an error such as: a problem has occurred, find the solution as you can xDD) in the log you can see the problem, the headers!
Code:
repare-kernel-sources
cd /usr/src/linux
cp -rf include/generated/* include/linux/
Code:
chmod +x amd-driver-installer-12-4-x86.x86_64.run
./amd-driver-installer-12-4-x86.x86_64.run
follow the steps or make in /usr/src/glrx-8.961/
The current version of catalyst has no problem, and previous to this it should work fine
You can check which video driver you are using with the command
Code:
cat /var/log/Xorg.0.log
If you have any issue with xserver since you have catalyst, you can do:
Code:
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
aticonfig --initial -f
reboot
Enjoy and hashcat it!!!
Re: Fix headers 3.2.6 (vbox modules, ati catalyst, wifi drivers, etc)
whats the difference from your amd vs ati-driver-installer-11-12-x86.x86_64.run
Respuesta: Re: Fix headers 3.2.6 (vbox modules, ati catalyst, wifi drivers, etc)
Quote:
Originally Posted by
Eatme
whats the difference from your amd vs ati-driver-installer-11-12-x86.x86_64.run
ati its no longer called ati, now called amd graphics, your version is 11-12, its old.
Re: Fix headers 3.2.6 (vbox modules, ati catalyst, wifi drivers, etc)