The kernel cannot be compiled when Backtrack5R2 is installed with VMware8.
Source: Internet
Author: User
With the release of bt5r2, I tapped update. after reboot, we found that Vmplayer could not be opened. uninstalling the old kernel reminds me of the cause of Backtrack itself. when running, the system prompts that the LinuxkernelHeader is missing. remember that prepare-linux-sources was used in r1... with the release of bt5 r2, I tapped update. after reboot, we found that Vmplayer could not be opened. uninstalling the old kernel reminds me of the cause of Backtrack itself. when running, the system prompts that the Linux kernel Header is missing. I remember that the prepare-linux-sources script was used in r1 to solve the problem. however, R2 seems to have deleted the script. it cannot be found in/usr/bin.
I have no choice but to look for the Backtack-Linux official forum. I found that some people wrote this script badly and posted its code. I am a dead horse doctor. I will try again first.
Root @ bt:/usr/src/linux # more/usr/bin/prepare-kernel-sources
#! /Bin/bash
VER = 'uname-R'
Echo "[*] apt-getting linux-source ..."
Apt-get install linux-source
Cd/usr/src/
Echo "[*] extracting sources, please wait"
Tar jxpf linux-source-1_ver.tar.bz2
Echo "[*] doing stuff ..."
Rm-rf linux
Ln-s linux-source-$ VER linux
Cd linux
Zcat/proc/config.gz>. config
Cp/boot/
Make scripts
Make prepare
Ln-s/usr/src/linux/lib/modules/$ VER/build
Echo "[*] tada! "
Save to/usr/bin then run bash .. after All done, enable Vmplayer and automatically compile it later. However, when it comes to the Network project, it prompts that the compilation is wrong and you are too lazy to read the log. you have to continue google hell our! _!
Also find the answer in the official forum
The Post says that another patch is required (the same as the previous Vm7 installation, but this patch is unofficial .)
# Prepare-kernel-sources
# Cd/tmp
# Wget http://weltall.heliohost.org/wordpress/wp-content/uploads/2012/01/vmware802fixlinux320.tar.gz
# Tar vxzf vmware802fixlinux320.tar.gz
#./Patch-modules_3.2.0.sh
After completing the patch, you can run it...
Here, I will also write my notes for those who need them. it is estimated that there may be some questions about why VBox is not used, and open source is compatible with Linux... I can only say that I am used to problems and historical problems, so I am too lazy to switch to Vmdisk... Hv fun
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.