- Kali Linux Cookbook
- Willie L. Pritchett David De Smet
- 128字
- 2021-07-23 16:08:06
Preparing kernel headers
There will occasionally be times where we'll face the need to compile code which requires kernel headers. Kernel headers are the source code of the Linux kernel. In this first recipe, we'll explain the steps required to prepare kernel headers for later use.
Getting ready
An Internet connection is required to complete this recipe.
How to do it...
Let's begin the process of preparing kernel headers:
- We begin first by updating our distribution by executing the following command:
apt-get update
- Next, we must use
apt-get
again to prepare the kernel headers. Execute the following command:apt-get install linux-headers - `uname –r`
- Copy the following directory and its entire contents:
cd /usr/src/linux cp -rf include/generated/* include/linux/
- We're now ready to compile code that requires kernel headers.
推薦閱讀
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- 數(shù)據(jù)庫原理與應(yīng)用技術(shù)學(xué)習(xí)指導(dǎo)
- 工業(yè)機器人入門實用教程(KUKA機器人)
- Mastering Elastic Stack
- 大數(shù)據(jù)安全與隱私保護
- 具比例時滯遞歸神經(jīng)網(wǎng)絡(luò)的穩(wěn)定性及其仿真與應(yīng)用
- Ruby on Rails敏捷開發(fā)最佳實踐
- 大數(shù)據(jù)驅(qū)動的機械裝備智能運維理論及應(yīng)用
- R Machine Learning Projects
- 青少年VEX IQ機器人實訓(xùn)課程(初級)
- Xilinx FPGA高級設(shè)計及應(yīng)用
- Machine Learning in Java
- Python語言從入門到精通
- Practical Network Automation
- 大數(shù)據(jù):從基礎(chǔ)理論到最佳實踐