From the course: Advanced Linux: The Linux Kernel

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Challenge: Solution

Challenge: Solution - CentOS Tutorial

From the course: Advanced Linux: The Linux Kernel

Start my 1-month free trial

Challenge: Solution

(energetic music) - [Instructor] All right, let's look at how I solved the challenges for chapter three. So at some point, for some of the things we're going to have to be root, and I'll use the sudo command, but, of course, for writing code and compiling code you don't need to be root. So it says here at the beginning you need to have installed the Linux kernel development package because we're going to be building modules for our native kernel here. Not for kernel source code that we download. I've already done that, I've installed the package for Ubuntu here, and you can look on your system to see if you've got that installed. First find out what kernel version you're running, the uname -r command tells you that. That's the kernel version. And then we can do a long list in /lib/modules/ that kernel version, and if you do, in Bash, $( you can put a command in there and it'll run it and it'll take the output and…

Contents