- 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.
推薦閱讀
- ABB工業(yè)機器人編程全集
- 輕松學PHP
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- Visual C# 2008開發(fā)技術(shù)實例詳解
- 工業(yè)機器人入門實用教程(KUKA機器人)
- 最簡數(shù)據(jù)挖掘
- Associations and Correlations
- Docker High Performance(Second Edition)
- 基于單片機的嵌入式工程開發(fā)詳解
- 網(wǎng)絡布線與小型局域網(wǎng)搭建
- Salesforce for Beginners
- 氣動系統(tǒng)裝調(diào)與PLC控制
- 手機游戲程序開發(fā)
- Microsoft Dynamics CRM 2013 Marketing Automation
- 菜鳥起飛五筆打字高手