From 5cfa9aa58af90bcea90ee1848ddccbe4a7cf804a Mon Sep 17 00:00:00 2001 From: "lion.chan" Date: Tue, 29 Mar 2022 03:34:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=86=85=E6=A0=B8=E5=A4=B4=E6=96=87=E4=BB=B6=E5=92=8C=E6=BA=90?= =?UTF-8?q?=E7=A0=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lion.chan --- .../System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md b/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md index 2696060..ec343fb 100644 --- a/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md +++ b/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md @@ -111,6 +111,17 @@ sudo apt install bison build-essential make gcc gcc-multilib global git-core git sudo pip3 install kconfiglib ``` +### 安装内核头文件和源码 + +```bash +# 安装内核头文件到 /usr/src 路径下。 +sudo apt install linux-headers-$(uname -r) +# 运行软件包管理,并允许安装 Source Code。 +software-properties-gtk +# 将内核源码下载到当前路径下。 +sudo apt source linux-image-$(uname -r) +``` + ## 提升权限 普通用户可能无法访问某些设备,需要提升权限: