Tidy section: headers

This commit is contained in:
Jim Huang 2021-07-23 14:02:27 +08:00
parent f7f46f145d
commit 58e55d03d0

View File

@ -142,21 +142,24 @@ Rest assured, after you get over the initial hurdle of doing it for the first ti
\end{enumerate} \end{enumerate}
\section{Headers} \section{Headers}
\label{sec:org087541e} \label{sec:headers}
Before you can build anything you'll need to install the header files for your kernel. On Arch Linux: Before you can build anything you'll need to install the header files for your kernel.
\begin{codebash}
sudo pacman -S linux-libre-headers
\end{codebash}
On Debian: On Ubuntu/Debian:
\begin{codebash} \begin{codebash}
sudo apt-get update sudo apt-get update
apt-cache search linux-headers-`uname -r` apt-cache search linux-headers-`uname -r`
\end{codebash} \end{codebash}
This will tell you what kernel header files are available. Then for example: On Arch Linux:
\begin{codebash} \begin{codebash}
sudo apt-get install kmod linux-headers-5.6.7-1-amd64 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.4.0-80-generic
\end{codebash} \end{codebash}
\section{Examples} \section{Examples}