Instructor: In this video we are going to download
and install Linux operating system.
Now you're probably thinking,
hey, can I use any other Linux operating system
such as Ubuntu, Kali
or any other Linux operating system for that matter?
Well, the answer is yes.
You could use any of these Linux distribution,
however, I would recommend that you stick with CentOS.
And the primary reason behind this
is because 80% of the corporate world today
uses RHEL, which is Red Hat Enterprise Linux,
and Red Hat Enterprise Linux is exactly the same
as CentOS.
And CentOS is of course is open source.
It's free to download.
Now if you are going with other Linux distribution,
that is fine, but please note about 90% of the command
that I'm covering in CentOS can be applicable
on other Linux distributions as well.
Alright, now comes to the CentOS version.
What version are you going to use?
There is different version 7, 8, and 9.
The answer is you could go with any
of these operating system version 7 or 8 or 9.
The instructions are included.
Some of the features by Red Hat
that were introduced in CentOS 8 and 9
such as containers and stuff.
So if you are going to use 7,
then later in this course you would have to install CentOS 8
or 9 in order to use those containers
or some of the newer features.
Alright, so going back to our diagram,
we have our laptop or our desktop
running Windows or Mac,
and then we install virtualization software,
VMware player or Oracle Virtual Box.
Then we created a virtual machine.
Now in this video, this is the time to install
Linux operating system and the Linux distribution
or flavor that we are using is CentOS.
And in this video we are going with version 7.
If you wanted to go with version 8,
skip this video right now and go to the next one.
If you want to go with the CentOS 9 stream, skip this one
and the one after that
and go straight to CentOS 9 stream.
All right, so the very first thing we do
regarding the CentOS ISO is to download it.
And for that you have to go to CentOS website.
So pick a browser of your choice.
I'm picking my browser, which is Firefox.
Or you could pick any one of your choice.
Go to Google and type download CentOS 7.
Alright, click on the first one there
where it says CentOS.org download click here
and it will bring you to CentOS Linux 7
already selected, select x86_64.
If you do not see version 7,
then simply go with the most recent version
available right here.
Now it'll give you all the different mirrors
from where you could download the ISO image.
Pick the first one
and 99% of the time you'll get the ISO from the first link.
Click on it and it will bring you to the next page
where you have to go to the ones
that says the highest size right now is 9.5
and it says Everything ISO, click on it
and it will start to download it.
Now I have already downloaded this file to save time.
You could pause the video right now
and complete the download and come back.
So anyway, assuming that you have downloaded the file
and now it's time to attach that file
to our Oracle Virtual Box.
Alright, so for that let's go to Oracle Virtual Box
and let's go to the virtual machine that we created.
Alright, my Linux VM and click on start.
Alright, as soon it starts, it's gonna ask you
where is the ISO image that you want to have attached
and install the operating system.
Right here it says by default host drive D,
which means you'll have to insert the DVD into the DVD ROM
which is not the case.
We have downloaded the ISO image.
So click on this folder
and specify where is your ISO image.
So click on add.
This is something that I've added earlier,
so don't worry about it.
Just click on add and go to your desktop
where you have downloaded the CentOS 7 ISO image.
Here it is.
Click open and choose.
And now go ahead and click on start.
So now this is going to start your virtual machine
and it will start up the welcome screen of CentOS 7.
So you have to click inside of this window here.
So you have to click inside of the window
in order to move or select the choice that is given to you.
So install CentOS 7 or test this media
and install CentOS 7.
So pick the first one right now
as you can see it is highlighted.
You would have to use up and down arrow
because the mouse is not gonna work.
Select the first one and hit enter.
Now if you are going with the VMware workstation player,
then go open up the VMware workstation player.
Right here we have our virtual machine.
So right click on it, go to setting
and go to where it says CD/DVD
and click here where it says use ISO image file
and click browse
and pick the file or ISO image which you had downloaded
for CentOS 7.
Select that one.
Click open and click OK.
And then you could simply click here,
which will power on or play virtual machine.
Either one will perform the same function.
So let's say if you click on it
and you will see as soon as it detected the ISO image,
then you will see the welcome CentOS 7 screen.
Go ahead and click inside of the window
and then move your cursor up to do the install CentOS 7.
By the way, while you have your mouse captured
inside of this window,
you could hit Alt and Control
or right control key on your keyboard
to get rid of the captured mouse.
So see you got your mouse back.
That's how you could do release your mouse.
If you click inside again, then it will capture it again.
That's how the behavior of Oracle Virtual Box.
So not to worry.
Alright, it's telling you the same thing.
The virtual machine supports mouse point integration stuff,
stuff, stuff, blah blah blah.
That's fine.
Click cancel this right here,
cancel this notification as well.
Let's wait for the installation wizard
to come and we will go through step by step
how the installation wizard is going to work.
Alright, so here you will have a GUI
or graphical user interface type of installation.
Welcome to CentOS 7.
Select the language.
I'm selecting United States.
That's where I am.
If you are anywhere else, pick the according to your region.
Click continue.
All right, date and time.
America's New York.
I am in New York.
So it is selecting a New York by default keyboard,
getting a list of keyboards, it's selected English,
United States.
Language support, United States.
Installation Media, local media
because we have attached to ISO image.
Software selection, minimal install.
Click on that and pick server with GUI
because you do want the desktop type of environment
or GUI, not just a command line.
Click done.
Alright, it's checking the software selection,
meaning it's checking whether it has the required packages
or software to install server with GUI selection that I did.
Alright, so while it's going through that, it's checking it.
Let's come down to the installation destination.
It says automatic partitioning selected.
So simply select it and it says 10 gig.
Just click on it and click again.
So it will check mark and click done.
All right, it's checking, making sure it has everything.
All right, so local media is done, server with GUI is done.
Installation destination is done.
KDUMP is enabled by default.
Leave it as is.
What it means is if kernel something goes wrong
with the kernel, it will create the logs.
And do you want those logs?
So that's why we have enabled it.
Alright, network and host name.
Click on that.
It says not connected.
First of all, specify the host name
that you want it to pick for your virtual machine.
We'll pick my Linux VM
or you could pick any host name of your choice.
Click apply and you will see right now it says localhost.
It will change to my Linux VM.
Click apply.
There you go, apply is done.
Now click on configure
and go to general
and click on automatically connect to this network
when it is available.
Check mark, save, now connecting
and it is automatically on and simply click done.
Alright, network and host name is done.
Security policy, no content found.
That is fine.
Leave it as is, as a default
and click on begin installation.
Alright, so next step is to define
or create a root password.
Click on root password.
This is like an administrator password for you.
Just like when Windows window has a administrator password
in Linux, the administrator is called root password.
So please make sure you pick a password
that you could remember.
All right, another thing if you are picking a weak password
at the bottom is gonna tell you
the password you have provided is weak.
The password fails the dictionary check.
It is based on a dictionary word.
You'll have to press done twice to confirm it.
So it says it is weak, but I will allow you, that's fine,
but simply click done twice.
One and two.
Alright, user creation.
Now this was the administrator.
Now you could create a regular user on Linux.
Let's click on it and full name.
I'm going to create my username.
In your case, you could create your first name
and last name.
So full name is Imran Afzal.
And you see automatically it defines a username for me,
which is Iafzal, first name initial, and last name.
Make this user administrator.
That's fine.
Require a password to use this account.
So define a password for your account now.
Now this could be, you could pick the same password
as you picked for root,
or if you're picking a different password,
then please remember your passwords.
All right.
Same way if you picked weak, click done twice.
All right, so now it's going through
the package installation
and the entire operating system installation.
Right now as you could see, it needs 348 packages
to be installed and we are at 149.
This could take anywhere from five minutes
to 20 minutes depending on your system speed.
So I am going to fast forward from this point,
and once the installation is fully completed,
then we'll come back.
All right, CentOS is now successfully installed
and ready for you to use.
Go ahead and reboot to start using it, click reboot.
All right, so now you have to accept the license.
So click on license information
and click on accept the license agreement.
And click done.
All right, so that is completed.
Click on finish configuration.
Okay, so you have a login screen.
Go ahead and click on either your name
or if you wanted to log in as root,
you could click on not listed,
and then enter your root,
right here username root,
and then click next and it will ask you for root password.
So now let's click cancel,
and let's log in as your regular yourself
and enter password.
Okay, so right here is your desktop
and you need to use a terminal.
So if you're logging in for the first time
you'll get this welcome screen.
Simply click next.
Next, location services.
You could turn it off.
Next,
and skip this one and start using CentOS Linux.
All right, so now you're gonna get the desktop back again.
Right click on the desktop.
Oops, it got the GNOME started.
That's fine.
You could close this.
All right, right click and click on open terminal.
This is your terminal that you're gonna be using
to run all the commands.
Now this completes your installation
of your Linux system.
Congratulations.