Today, I'm going to walk you through
how to install Linux in a virtualized environment.
Now, the particular virtual machine
that we're going to use is created by Oracle
called VirtualBox.
Now, simply go to VirtualBox.org
and click the big blue Download button
so we can get started.
So here, we're going to focus on the platform packages section.
This screen correlates with the operating system
that you're currently running on your machine.
Not the target operating system that you would like to use
for the virtual machine.
So we're going to click Windows hosts for me.
Now, of course, you're using a macOS,
you're going to click OS X hosts.
And if you using Linux distribution,
you're going to use that.
All right, so now that this finished downloading,
we're going to go ahead and install this.
We're going to click Yes here.
For this example of VirtualBox,
we're going to go ahead
and just go through the default settings
and keep them as is
so we can go ahead and speed up this process.
Shouldn't take too long.
All right, good to go there.
All right, now, for this version of Linux,
we're going to use CentOS 7.
So we're going to go to centos.org/download.
And for this particular architecture,
most people are going to use the x86_64.
That's for the standard 64-bit computer,
which most of our processor even.
We're just going to click the first mirror that we see here.
So on this directory,
it's going to show us different types of ISO images.
So these images are going to contain multiple features.
But for this example, we're only going to need the DVD version,
and we don't need the one with Everything,
Minimal, or the NetInstall.
We're just going to do the DVD version.
Try to save a little space
'cause this one's only 4.4 gigs
versus the size of the other ones.
And we're going to download.
It might take a little minute,
so I'll get right back to you
once I finish downloading.
All right, my ISO image is finish downloading.
Now, what we're going to do next
is just create a new virtual machine.
We're going to simply click this blue New button here,
and we're going to name it CentOS7.
Now, as you can see, VirtualBox is smart enough
to recognize what I'm typing,
and it automatically selects the type of operating system
as well as the distribution.
Now, we're going to keep this machine folder
selected as default, and click Next.
And again, as before, we're going to keep everything
very simple and keep the default settings for this example.
Going to click Create a new virtual hard disk now.
Next, keep that selected.
Eight gigs is good enough.
And alright, we have it created.
First thing we want to do is go to Settings.
And go to Storage here.
I'm going to click this optical blue disk.
What we're going to do now is we're going to select image again,
and we're going to click Choose a disk file.
Now, we're going to select the download
of the CentOS 7 that we did earlier,
and that's going to be our ISO image.
Click Open.
All right, see it highlighted there?
Click Okay, and Start.
Going to let it do its thing for a little bit.
We're just going to select Enter,
and let the installation process begin.
All right, so now we're on the main screen.
What we're going to do here,
we're going to start by configuring the localization settings.
We're just go ahead.
Select the standard keyboard, English.
It's going to be for me,
whatever language you are, you select that.
Okay, Continue.
First thing we're going to do
is select the date and time.
Now I'm in Sacramento, California
so I'm going to select the West Coast.
You select whatever region that you will like.
The next thing we're going to do
is select the software components
in the base environment.
So as far as software selection goes,
first thing we're going to select
is the server with GUI.
Now, by default, the server with GUI selection
will install most tools necessary
for the configuration and maintenance
of general server infrastructure,
Along with the GNOME as the default GUI.
Now, just a little gee whiz kid,
GNOME stands for GNU Network Object Model Environment.
It's just always easier for me
if I understand the acronym
when it comes to understanding things a little better.
It's nothing more there,
one of the basic graphical user interfaces
used by a lot of Linux distributions.
So we're going to go ahead and select that.
Now, as far as add-ons for the selected environment,
we're going to scroll down here
and we're going to select the KDE workspace.
Click Done.
We'll wait for it to finish checking its dependencies.
All right, looks like we're good to go there.
Next thing we're want to do
is wipe this storage device to start fresh.
So under the system section,
we're going to select Installation Destination.
Okay, here we see,
this is the virtual disk that we created earlier
when we was creating the machine.
So we're going to make sure we select this,
and we're going to ensure
that the automatically configure in partition is selected.
We're also going to make sure the check box
for I would like to make
additional space available is checked.
And then, we're going to select Done.
So on this screen,
to make sure we reclaim the disk space,
it's good for general practice.
We're going to ensure that we have free space,
which it should be the rough amount that we used earlier,
because the disk is still empty.
And we're just going to click Reclaim space right here.
Again, that's just for general good practice
to make sure that the disk that we're using is clear.
So now, what we're going to do
is configure the partition of scheme to use.
We're going to click the Installation Destination button again.
Now, this time, we're going to click
I will configure partitioning.
Click Done here.
Now, the first thing we want to do
is make sure that there's no other mount points
that's been using,
and we're going to use the default LVM selection.
Next thing we want to do
is to select Click here to create them automatically.
All right, so the main three volumes
that we want to make sure that were created
is the forward slash, boot, forward slash,
which is also root, and the swap partition.
All right, we see those three there.
Now, just the point of note,
sometimes if you have a hard disk
that's larger than 50 gigabytes
it will automatically create a forward slash, home for us,
but since we have less than that,
we're not going to create it,
it's going to be part of the root system.
We just want to take note of the space
that each one of the systems are using
as well as the available space.
And then, we're just going to select Done right here.
We're going to select Accept Changes,
and we're good to go.
Now, the next thing we want to do
is move on to configuring the network.
So on this installation summary page,
we're going to go select network and host name.
All right, now, on this screen,
what we're going to do is ensure that the interface
that we want to use,
which is in my case, enpOS3 is selected.
That's simply the virtual machine interface
that we're going to use to connect to the internet
that we selected earlier
when we was creating the virtual machine
when we first installed VirtualBox.
All right, now here, we see the host name.
We can leave it as a default right now
as to our localhost.
Here, we're going to go to Configure.
The next thing we want to do
is make sure we go to the IPv4 settings,
and we're going to select Manual.
So in this example, what we're going to do
is add an IP address, a static IP address,
that we're going to use to connect to the internet.
So for this example, we're going to use 10.50.1.201.
We're going to use that.
And for the netmask, we're going to use 255.255.255.0.
And the gateway is going to be 10.50.1.1.
For the DNS servers,
we're going to use the default 8.8.8.8.
For those of who do not know this,
google DNS server.
And we're going to save.
Now, last but not least,
we want to make sure that we have this ethernet connection on.
So it shows it's connected,
and we're going to click done.
All right, we're done with that.
So next thing we're going to do is click Begin Installation.
Now on this screen,
we're going to start to configure
the usernames and user accounts.
So on our user settings,
first thing we want to do is select the Root Password.
Now, of course, we should always use
the most complex and strong passwords possible,
but for the sake of this example,
we'll keep it very simple.
We have the password set there.
So the next thing we're going to do is create a user account.
And we're going to do this
by selecting the User Creation button.
Now, for this example,
I'm just going to use host1 as the username.
And, of course, we want to make this administrator.
And then as stated earlier,
in a production environment,
you want to make sure you're using a complex password
because you don't want the system to be subject
to any dictionary attacks,
where a hacker essentially collects a whole bunch
of commonly use passwords like password123,
or anything like that,
or, especially, avoid your name.
All right, we're good to go there.
And that's how you create a user account.
Now, at this point, we're waiting for the system to install.
Now, this can take up to 30 minutes,
so I'll be back as soon as everything is installed
for you, guys
it looks like that we have completed the installation.
Now, the next thing we want to click
is the Reboot button here.
Next thing we need to do is select and accept the license.
We want to select it here, click Done.
And click Finish Configuration.
We're going to log in with the password
that we used earlier for our user that we created,
whatever that is.
All right, we're in.
Keep our settings the same with English.
We have English here, keep that same.
Next, keep the default settings.
Skip this for now.
And we're going to start using CentOS Linux.
And now we're booted into our own CentOS Linux system.
And we will return to the system
as we do our hands-on demonstrations together.
Thank you for sticking with me
throughout the entire installation process,
and I will see you in the next hands-on lesson.