WEBVTT

00:05.430 --> 00:09.530
Now, the next thing that we need to do is to install Linux kernel headers.

00:09.540 --> 00:14.910
So Linux kernel header file is required to compile kernel code that we shall be going to write in this

00:14.910 --> 00:15.810
course.

00:15.810 --> 00:21.000
So on your machine, just run the command u name hyphen r it will show you the kernel version that your

00:21.000 --> 00:23.310
machine is running now.

00:23.760 --> 00:30.240
Now go into the directory slash user slash source and run the command LS minus L.

00:30.360 --> 00:34.380
It will show you the Linux headers which is currently installed on your machine.

00:34.380 --> 00:42.810
So note that you must have a Linux header installed whose 500 slash 36 slash generic must match exactly

00:42.810 --> 00:46.110
with the output of the command uname hyphen.

00:46.110 --> 00:47.400
R right.

00:48.040 --> 00:53.110
So if these Linux headers are present on your machine, then you don't need to do anything else.

00:53.140 --> 00:59.350
If it is not present, then just run the command sudo apt update followed by sudo apt install linux

00:59.350 --> 01:03.280
header hyphen dollar and within the bracket you can mention your name.

01:03.280 --> 01:04.210
Hyphen r.

01:05.710 --> 01:11.560
So this command, we're going to install the required Linux headers, which is actually compatible with

01:11.560 --> 01:14.380
the kernel version that you are running on your machine.

01:15.040 --> 01:16.470
So fairly simple.

01:16.480 --> 01:21.190
Now we will going to start with writing our first Hello World Linux kernel program.
