Instructor: In this lecture,
I'm going to show you how to install Kali Linux
as a virtual machine inside Linux.
Skip this lecture if you have it already installed
and revise the previous lectures to see how to install it
on Windows or Apple Mac OS.
Now I already have it downloaded in here in My Downloads.
And as you can see, this is an archive
with a 7 Z extension.
The actual virtual image is compressed inside this archive.
We did this to reduce its size
so you can download it quicker.
But in order to use this virtual image,
we're going to have to un-compress the archive.
To do that, you simply have to right click it
and click on Extract here.
You're going to need to give it some time to fully
un-compress the archive and reveal its content.
Perfect. Once this is done,
you're going to see a new directory in here
that contains the actual image.
And you'll notice that this folder ends with dot vmwarevm.
So in order to run this virtual image of Kali Linux,
we need to install a virtualization software.
And the software that we're going to use is called VMware.
I'm going to include it's download link in the resources
of this lecture.
And all you're going to have to do is simply scroll down
and click on the Linux version in here.
We're going to save it.
Once they download this complete, we're going to be able
to see it here in our downloads.
This is the installer for VMware,
the software that we're going to use to run virtual machines
inside our current operating system.
And to install it, we're first going to need
to open our terminal and navigate to the location
where we have this installer downloaded,
which is in My Downloads.
So I'm going to use the CD command
to change my working directory, to Downloads.
And if I do LS to list all of the files,
you'll see we have the file in here.
And before running this file,
we need to change its permissions to an executable.
So to do that, we're going to do chmod + x
followed by the file name.
I'm gonna hit Enter.
And now if I do LS, you'll notice that the file name
is listed in green, meaning that this is an executable.
Now before running this executable,
we're going to have to install the Build Essentials Package
because it is required by this installer
to install VMware for us.
Now I'm doing all of these steps on Ubuntu
but installing VMware should be pretty much the same
on most Linux and especially Debian-based distributions.
So in order to install the Build Essentials,
I'm first going to have to update the list of sources
that I can download packages from.
And to do that, we're going to do sudo apt-get update.
I'm going to input my password.
Once the sources are updated,
we're ready to install the Build Essentials.
So we're going to do sudo apt-get install build essential.
We're going to hit Enter.
I've already installed this
that's why it's automatically installing it for me.
But in your case, it's going to ask you to confirm.
And all you'll have to do is simply hit Enter
to confirm that you want to install it.
If you don't see any errors at all,
it means everything got installed properly.
So I'm going to clear the screen
and I'm going to do LS one more time
just to show you what we want to run.
We want to run this executable, which is the same file
as this one.
And to run executable in Linux, you simply have to do
dot forward slash followed by the executable name.
Now also, we need to run this as admin.
Therefore, I'm going to type sudo before the command.
I'm going to hit Enter and we're going to give it sometime
to extract the installer.
And once it's done, we're going to go to all of our software
and we're going to run VMware Player.
We're going to accept the agreement and click Next.
Accept the license.
Next we're going to say,
we don't want to share data and we click on Finish.
We're going to put the password.
And perfect. Here we go.
During the installation, you might also get an option
to either use the free or the paid version.
Make sure you select the free one
because we're using it for non-commercial use.
So right now we're ready to create or open
ready virtual machines using VMware.
So I'm going to close my terminal window.
And the virtual machine that we actually want to run
is the customized version of Kali
that we just downloaded at the start of the video.
So to do that,
we're simply going to click on 'Open A Virtual Machine'
or go to file and open virtual machine.
We're going to navigate to the location
where we downloaded this virtual machine.
And as you can see, it's in the downloads.
So we're going to go to downloads.
We're going to double click it in here
and select the only file that we can select,
which is the dot VMX file.
We're going to double-click it.
And here we go, we have it imported in here in VMware
and we can easily start it now by clicking
on Power On in here.
Now before doing that,
I just want to show you
how to modify the virtual machine settings.
You do not need to do this.
I'm simply showing you how to do that so you get an idea
on how to modify the settings
because modifying virtual machine settings is always
the same regardless of what type of virtual machine it is.
So we're going to click on 'Edit Virtual Machine Settings'
in here, to modify the settings.
And as you can see, the first thing that you can modify
is the amount of memory that the virtual machine has
and you can increase it or decrease it by moving the slider.
It's set to two gigabytes by default
and that is good so I'm going to keep it at that.
Next you can modify the number of processors
that the machine has.
Again, it's set to two by default.
I'm going to keep it at that because that's pretty good.
You can also modify the network settings.
And as you can see right now,
it's set to 'Use A NAT Network.'
We're also going to keep this as NAT.
This is great because this setting will basically
create a virtual network where my host machine
is going to be the router for this network.
And then all the virtual machines are going to be clients
connected to this network.
So they're going to get internet connection
from my host machine.
And at the same time, all of my virtual machines
will be connected to the same virtual network.
This is very handy because my virtual machines will be able
to communicate with each other.
And therefore we'll be able to use the Kali machine
to hack into the others.
We'll be able to test network attacks and do much more.
So this setting will first allow my virtual machines
to have internet connection and it will also allow them
to communicate with each other
through this virtual NAT network.
Now this virtual network will rely on the connection
of your host computer.
So it will not need any extra interfaces.
It will not need any extra adapters.
And as far as the virtual machines are concerned,
they are connected to on ethernet network,
but in reality, they are connected through the host machine.
Finally, you can also modify the display settings in here.
And I usually like to take this option
to accelerate 3D graphics.
If you get issues with it, you can untick it.
But usually it gives you nicer and smoother animations
with virtual machines.
So we're going to save the settings and we can go ahead
and start this virtual machine by selecting it
and clicking on Power On in here.
We're going to say 'I copied it.'
And we're just going to give it some time to load.
Now, this custom image of Kali already comes
with VMware tools, which is a set of plugins
that improve the experience of using virtual machines.
If you get a popup like this,
you can click on Download and Install
to install the latest one.
Or you can simply click on Remind Me Later
to install it later.
And as you can see, if everything goes as expected,
you should get the default login screen for Kali.
So I'm going to click in here
and I'm going to put the username as root, R-O-O-T.
Hit Enter and the password is the reverse of that.
So it's T-O-O-R.
We're going to hit Enter and give it some time.
And great.
As you can see, now we have another operating system.
Kali Linux installed as a virtual machine
inside our own main host operating system.
Now we can put this in full screen
by going to virtual machine in here
and clicking on Enter Full Screen.
The screen should automatically resize,
as you can see in here.
And in most cases, the icons should look normal.
But in my case they look small because I have a 4K display.
So we're going
to need to manually modify the display settings.
And to do that, we're going to right click, go to Settings,
click on Display in here from the left.
And we're going to set this scale 200.
I'm going to click on Apply, we're keep the changes.
And perfect. Now Kali looks normal for me.
You don't have to do this if Kali looked normal
from the start.
Only if you have a high resolution screen,
you might have to do this.
Now I know this operating system
might look a little bit confusing and scary,
but don't worry about it at all.
I will teach you how to use it step by step
as we go through the course.
If you face any issues while installing Kali,
check out the featured questions first
and if you don't see your answer,
feel free to ask us in the Q and A or in the forums
and we will respond to you within a maximum of 15 hours.