So guys, now let us go through the exercise regarding how to set up the development environment.
So the Linux distribution that I'm running as a virtual machine on my system can be obtained from this
URL.
So it's a 19.04 Ubuntu operating system for 64 bit.
So if your processor is AMD or Intel, it really do not matter.
This image is compatible with both.
However, your system should be 64 bit system.
I will share all the URLs as discussed in this slide in the resource section.
Now, when it comes to browsing the kernel source code, you can do that in two ways.
Either you can browse the source code by downloading the entire kernel source code on your machine,
or you can browse the source code using web.
But since there are many kernel versions and kernel version changes really fast, you should navigate
and browse the source code which is actually closest to the kernel version which you are running.
So in order to find which kernel version you are running, just run the command uname hyphen r on your
terminal.
It will show you the kernel version.
So for example, in my case it shows 500 slash 36 slash generic, right?
So five is the kernel version which I am running.
Zero is the major number and the second zero is the minor number and the 36 is the bugfix number.
So what is important here is the first three digits.
That is 500, right?
In fact, as long as you are browsing the source code, which belongs to the kernel version five, it
hardly matters.
So web link to browse the kernel source code which belongs to the kernel version five is the following
URL.
Just copy paste this URL in your browser and see that you will be able to browse the source code.
For example, I have just copy pasted the URL in the browser and you can see that now I'm able to browse
the source code which belongs to the kernel version 5.0.
Right.
And in case if you want to download the kernel source code locally on your machine, then you can simply
download the source code from this URL.
Right?
So it's a zip file, you just have to unzip it and then you can browse the source code locally on your
machine using kscope tool.
So if you have not used Kscope tool till now, then it's an opportunity for you to install this beautiful
Kscope tool which is used for source code navigation and now make your own notes whatever you feel like.
GitHub is the best place for note making and preserving all your source codes.
You should be able to revise the code that you have written after a couple of years if you happen to
work in system programming domain.
Right.
So preserve all the codes that you are learning as a part of doing online courses.
You may forgot to write a particular type of kernel source code if you do not do this on a regular basis.
But what you will never forget is the conceptual understanding that you will get.