From: Jim Huang Date: Fri, 23 Jul 2021 06:02:27 +0000 (+0800) Subject: Tidy section: headers X-Git-Tag: latest~237 X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=58e55d03d0414903e848b0445072c97da31c1d76;p=lkmpg Tidy section: headers --- diff --git a/lkmpg.tex b/lkmpg.tex index 686ad02..788efae 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -142,21 +142,24 @@ Rest assured, after you get over the initial hurdle of doing it for the first ti \end{enumerate} \section{Headers} -\label{sec:org087541e} -Before you can build anything you'll need to install the header files for your kernel. On Arch Linux: -\begin{codebash} -sudo pacman -S linux-libre-headers -\end{codebash} +\label{sec:headers} +Before you can build anything you'll need to install the header files for your kernel. -On Debian: +On Ubuntu/Debian: \begin{codebash} sudo apt-get update apt-cache search linux-headers-`uname -r` \end{codebash} -This will tell you what kernel header files are available. Then for example: +On Arch Linux: +\begin{codebash} +sudo pacman -S linux-libre-headers +\end{codebash} + +This will tell you what kernel header files are available. +Then for example: \begin{codebash} -sudo apt-get install kmod linux-headers-5.6.7-1-amd64 +sudo apt-get install kmod linux-headers-5.4.0-80-generic \end{codebash} \section{Examples}