Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,000 --> 00:00:01,000
In this lecture,
2
00:00:01,000 --> 00:00:04,020
I'm going to show you how to install Kali Linux
3
00:00:04,020 --> 00:00:07,073
as a virtual machine inside Linux.
4
00:00:08,150 --> 00:00:11,610
Skip this lecture if you have it already installed
5
00:00:11,610 --> 00:00:15,370
and revise the previous lectures to see how to install it
6
00:00:15,370 --> 00:00:18,233
on Windows or Apple Mac OS.
7
00:00:19,220 --> 00:00:23,110
Now I already have it downloaded in here in My Downloads.
8
00:00:23,110 --> 00:00:25,690
And as you can see, this is an archive
9
00:00:25,690 --> 00:00:28,370
with a 7 Z extension.
10
00:00:28,370 --> 00:00:32,880
The actual virtual image is compressed inside this archive.
11
00:00:32,880 --> 00:00:34,760
We did this to reduce its size
12
00:00:34,760 --> 00:00:36,600
so you can download it quicker.
13
00:00:36,600 --> 00:00:39,260
But in order to use this virtual image,
14
00:00:39,260 --> 00:00:42,260
we're going to have to un-compress the archive.
15
00:00:42,260 --> 00:00:44,830
To do that, you simply have to right click it
16
00:00:44,830 --> 00:00:47,630
and click on Extract here.
17
00:00:47,630 --> 00:00:49,930
You're going to need to give it some time to fully
18
00:00:49,930 --> 00:00:53,733
un-compress the archive and reveal its content.
19
00:00:54,870 --> 00:00:56,347
Perfect. Once this is done,
20
00:00:56,347 --> 00:00:59,410
you're going to see a new directory in here
21
00:00:59,410 --> 00:01:02,170
that contains the actual image.
22
00:01:02,170 --> 00:01:07,170
And you'll notice that this folder ends with dot vmwarevm.
23
00:01:07,540 --> 00:01:11,180
So in order to run this virtual image of Kali Linux,
24
00:01:11,180 --> 00:01:14,290
we need to install a virtualization software.
25
00:01:14,290 --> 00:01:18,540
And the software that we're going to use is called VMware.
26
00:01:18,540 --> 00:01:21,340
I'm going to include it's download link in the resources
27
00:01:21,340 --> 00:01:22,510
of this lecture.
28
00:01:22,510 --> 00:01:26,540
And all you're going to have to do is simply scroll down
29
00:01:26,540 --> 00:01:29,623
and click on the Linux version in here.
30
00:01:31,530 --> 00:01:32,703
We're going to save it.
31
00:01:34,970 --> 00:01:37,250
Once they download this complete, we're going to be able
32
00:01:37,250 --> 00:01:39,850
to see it here in our downloads.
33
00:01:39,850 --> 00:01:42,250
This is the installer for VMware,
34
00:01:42,250 --> 00:01:45,540
the software that we're going to use to run virtual machines
35
00:01:45,540 --> 00:01:48,570
inside our current operating system.
36
00:01:48,570 --> 00:01:50,570
And to install it, we're first going to need
37
00:01:50,570 --> 00:01:55,570
to open our terminal and navigate to the location
38
00:01:55,750 --> 00:01:57,800
where we have this installer downloaded,
39
00:01:57,800 --> 00:01:59,610
which is in My Downloads.
40
00:01:59,610 --> 00:02:01,360
So I'm going to use the CD command
41
00:02:01,360 --> 00:02:04,033
to change my working directory, to Downloads.
42
00:02:04,870 --> 00:02:07,800
And if I do LS to list all of the files,
43
00:02:07,800 --> 00:02:10,430
you'll see we have the file in here.
44
00:02:10,430 --> 00:02:12,120
And before running this file,
45
00:02:12,120 --> 00:02:16,260
we need to change its permissions to an executable.
46
00:02:16,260 --> 00:02:20,700
So to do that, we're going to do chmod + x
47
00:02:20,700 --> 00:02:22,193
followed by the file name.
48
00:02:23,270 --> 00:02:24,750
I'm gonna hit Enter.
49
00:02:24,750 --> 00:02:28,610
And now if I do LS, you'll notice that the file name
50
00:02:28,610 --> 00:02:33,610
is listed in green, meaning that this is an executable.
51
00:02:33,670 --> 00:02:35,750
Now before running this executable,
52
00:02:35,750 --> 00:02:40,080
we're going to have to install the Build Essentials Package
53
00:02:40,080 --> 00:02:43,280
because it is required by this installer
54
00:02:43,280 --> 00:02:46,250
to install VMware for us.
55
00:02:46,250 --> 00:02:49,260
Now I'm doing all of these steps on Ubuntu
56
00:02:49,260 --> 00:02:53,210
but installing VMware should be pretty much the same
57
00:02:53,210 --> 00:02:58,190
on most Linux and especially Debian-based distributions.
58
00:02:58,190 --> 00:03:01,090
So in order to install the Build Essentials,
59
00:03:01,090 --> 00:03:04,520
I'm first going to have to update the list of sources
60
00:03:04,520 --> 00:03:06,850
that I can download packages from.
61
00:03:06,850 --> 00:03:11,850
And to do that, we're going to do sudo apt-get update.
62
00:03:12,550 --> 00:03:14,273
I'm going to input my password.
63
00:03:16,030 --> 00:03:17,950
Once the sources are updated,
64
00:03:17,950 --> 00:03:20,630
we're ready to install the Build Essentials.
65
00:03:20,630 --> 00:03:25,630
So we're going to do sudo apt-get install build essential.
66
00:03:28,720 --> 00:03:30,033
We're going to hit Enter.
67
00:03:30,890 --> 00:03:32,130
I've already installed this
68
00:03:32,130 --> 00:03:35,330
that's why it's automatically installing it for me.
69
00:03:35,330 --> 00:03:37,970
But in your case, it's going to ask you to confirm.
70
00:03:37,970 --> 00:03:39,980
And all you'll have to do is simply hit Enter
71
00:03:39,980 --> 00:03:42,700
to confirm that you want to install it.
72
00:03:42,700 --> 00:03:44,610
If you don't see any errors at all,
73
00:03:44,610 --> 00:03:47,000
it means everything got installed properly.
74
00:03:47,000 --> 00:03:48,660
So I'm going to clear the screen
75
00:03:48,660 --> 00:03:50,550
and I'm going to do LS one more time
76
00:03:50,550 --> 00:03:52,410
just to show you what we want to run.
77
00:03:52,410 --> 00:03:55,520
We want to run this executable, which is the same file
78
00:03:55,520 --> 00:03:56,810
as this one.
79
00:03:56,810 --> 00:04:00,910
And to run executable in Linux, you simply have to do
80
00:04:00,910 --> 00:04:04,483
dot forward slash followed by the executable name.
81
00:04:05,350 --> 00:04:08,000
Now also, we need to run this as admin.
82
00:04:08,000 --> 00:04:11,573
Therefore, I'm going to type sudo before the command.
83
00:04:12,590 --> 00:04:16,010
I'm going to hit Enter and we're going to give it sometime
84
00:04:16,010 --> 00:04:18,540
to extract the installer.
85
00:04:18,540 --> 00:04:22,220
And once it's done, we're going to go to all of our software
86
00:04:22,220 --> 00:04:24,543
and we're going to run VMware Player.
87
00:04:25,480 --> 00:04:28,580
We're going to accept the agreement and click Next.
88
00:04:28,580 --> 00:04:30,243
Accept the license.
89
00:04:31,400 --> 00:04:33,630
Next we're going to say,
90
00:04:33,630 --> 00:04:37,800
we don't want to share data and we click on Finish.
91
00:04:37,800 --> 00:04:39,403
We're going to put the password.
92
00:04:40,960 --> 00:04:43,240
And perfect. Here we go.
93
00:04:43,240 --> 00:04:46,360
During the installation, you might also get an option
94
00:04:46,360 --> 00:04:48,820
to either use the free or the paid version.
95
00:04:48,820 --> 00:04:50,730
Make sure you select the free one
96
00:04:50,730 --> 00:04:53,940
because we're using it for non-commercial use.
97
00:04:53,940 --> 00:04:56,840
So right now we're ready to create or open
98
00:04:56,840 --> 00:05:00,640
ready virtual machines using VMware.
99
00:05:00,640 --> 00:05:02,810
So I'm going to close my terminal window.
100
00:05:02,810 --> 00:05:05,650
And the virtual machine that we actually want to run
101
00:05:05,650 --> 00:05:07,970
is the customized version of Kali
102
00:05:07,970 --> 00:05:11,640
that we just downloaded at the start of the video.
103
00:05:11,640 --> 00:05:12,610
So to do that,
104
00:05:12,610 --> 00:05:15,440
we're simply going to click on 'Open A Virtual Machine'
105
00:05:15,440 --> 00:05:18,660
or go to file and open virtual machine.
106
00:05:18,660 --> 00:05:20,460
We're going to navigate to the location
107
00:05:20,460 --> 00:05:22,660
where we downloaded this virtual machine.
108
00:05:22,660 --> 00:05:24,790
And as you can see, it's in the downloads.
109
00:05:24,790 --> 00:05:26,720
So we're going to go to downloads.
110
00:05:26,720 --> 00:05:28,700
We're going to double click it in here
111
00:05:28,700 --> 00:05:31,380
and select the only file that we can select,
112
00:05:31,380 --> 00:05:33,720
which is the dot VMX file.
113
00:05:33,720 --> 00:05:35,850
We're going to double-click it.
114
00:05:35,850 --> 00:05:39,280
And here we go, we have it imported in here in VMware
115
00:05:39,280 --> 00:05:41,760
and we can easily start it now by clicking
116
00:05:41,760 --> 00:05:44,320
on Power On in here.
117
00:05:44,320 --> 00:05:45,700
Now before doing that,
118
00:05:45,700 --> 00:05:47,030
I just want to show you
119
00:05:47,030 --> 00:05:49,820
how to modify the virtual machine settings.
120
00:05:49,820 --> 00:05:51,660
You do not need to do this.
121
00:05:51,660 --> 00:05:55,340
I'm simply showing you how to do that so you get an idea
122
00:05:55,340 --> 00:05:57,160
on how to modify the settings
123
00:05:57,160 --> 00:06:00,400
because modifying virtual machine settings is always
124
00:06:00,400 --> 00:06:05,060
the same regardless of what type of virtual machine it is.
125
00:06:05,060 --> 00:06:08,040
So we're going to click on 'Edit Virtual Machine Settings'
126
00:06:08,040 --> 00:06:10,060
in here, to modify the settings.
127
00:06:10,060 --> 00:06:12,880
And as you can see, the first thing that you can modify
128
00:06:12,880 --> 00:06:16,090
is the amount of memory that the virtual machine has
129
00:06:16,090 --> 00:06:20,270
and you can increase it or decrease it by moving the slider.
130
00:06:20,270 --> 00:06:22,290
It's set to two gigabytes by default
131
00:06:22,290 --> 00:06:25,360
and that is good so I'm going to keep it at that.
132
00:06:25,360 --> 00:06:27,850
Next you can modify the number of processors
133
00:06:27,850 --> 00:06:29,200
that the machine has.
134
00:06:29,200 --> 00:06:31,700
Again, it's set to two by default.
135
00:06:31,700 --> 00:06:35,140
I'm going to keep it at that because that's pretty good.
136
00:06:35,140 --> 00:06:37,620
You can also modify the network settings.
137
00:06:37,620 --> 00:06:39,260
And as you can see right now,
138
00:06:39,260 --> 00:06:42,340
it's set to 'Use A NAT Network.'
139
00:06:42,340 --> 00:06:44,870
We're also going to keep this as NAT.
140
00:06:44,870 --> 00:06:47,540
This is great because this setting will basically
141
00:06:47,540 --> 00:06:51,360
create a virtual network where my host machine
142
00:06:51,360 --> 00:06:54,440
is going to be the router for this network.
143
00:06:54,440 --> 00:06:58,080
And then all the virtual machines are going to be clients
144
00:06:58,080 --> 00:07:00,390
connected to this network.
145
00:07:00,390 --> 00:07:02,670
So they're going to get internet connection
146
00:07:02,670 --> 00:07:04,960
from my host machine.
147
00:07:04,960 --> 00:07:08,380
And at the same time, all of my virtual machines
148
00:07:08,380 --> 00:07:12,920
will be connected to the same virtual network.
149
00:07:12,920 --> 00:07:16,500
This is very handy because my virtual machines will be able
150
00:07:16,500 --> 00:07:18,600
to communicate with each other.
151
00:07:18,600 --> 00:07:21,370
And therefore we'll be able to use the Kali machine
152
00:07:21,370 --> 00:07:22,810
to hack into the others.
153
00:07:22,810 --> 00:07:27,070
We'll be able to test network attacks and do much more.
154
00:07:27,070 --> 00:07:29,600
So this setting will first allow my virtual machines
155
00:07:29,600 --> 00:07:32,650
to have internet connection and it will also allow them
156
00:07:32,650 --> 00:07:34,450
to communicate with each other
157
00:07:34,450 --> 00:07:37,630
through this virtual NAT network.
158
00:07:37,630 --> 00:07:41,630
Now this virtual network will rely on the connection
159
00:07:41,630 --> 00:07:43,260
of your host computer.
160
00:07:43,260 --> 00:07:45,950
So it will not need any extra interfaces.
161
00:07:45,950 --> 00:07:48,200
It will not need any extra adapters.
162
00:07:48,200 --> 00:07:51,520
And as far as the virtual machines are concerned,
163
00:07:51,520 --> 00:07:54,690
they are connected to on ethernet network,
164
00:07:54,690 --> 00:07:58,803
but in reality, they are connected through the host machine.
165
00:07:59,710 --> 00:08:03,380
Finally, you can also modify the display settings in here.
166
00:08:03,380 --> 00:08:05,940
And I usually like to take this option
167
00:08:05,940 --> 00:08:08,360
to accelerate 3D graphics.
168
00:08:08,360 --> 00:08:10,660
If you get issues with it, you can untick it.
169
00:08:10,660 --> 00:08:14,320
But usually it gives you nicer and smoother animations
170
00:08:14,320 --> 00:08:15,623
with virtual machines.
171
00:08:16,580 --> 00:08:20,020
So we're going to save the settings and we can go ahead
172
00:08:20,020 --> 00:08:23,050
and start this virtual machine by selecting it
173
00:08:23,050 --> 00:08:25,603
and clicking on Power On in here.
174
00:08:27,060 --> 00:08:29,590
We're going to say 'I copied it.'
175
00:08:29,590 --> 00:08:32,520
And we're just going to give it some time to load.
176
00:08:32,520 --> 00:08:35,460
Now, this custom image of Kali already comes
177
00:08:35,460 --> 00:08:39,020
with VMware tools, which is a set of plugins
178
00:08:39,020 --> 00:08:42,360
that improve the experience of using virtual machines.
179
00:08:42,360 --> 00:08:44,010
If you get a popup like this,
180
00:08:44,010 --> 00:08:46,030
you can click on Download and Install
181
00:08:46,030 --> 00:08:47,520
to install the latest one.
182
00:08:47,520 --> 00:08:49,720
Or you can simply click on Remind Me Later
183
00:08:49,720 --> 00:08:51,310
to install it later.
184
00:08:51,310 --> 00:08:54,650
And as you can see, if everything goes as expected,
185
00:08:54,650 --> 00:08:58,300
you should get the default login screen for Kali.
186
00:08:58,300 --> 00:08:59,970
So I'm going to click in here
187
00:08:59,970 --> 00:09:04,440
and I'm going to put the username as root, R-O-O-T.
188
00:09:04,440 --> 00:09:07,740
Hit Enter and the password is the reverse of that.
189
00:09:07,740 --> 00:09:10,620
So it's T-O-O-R.
190
00:09:10,620 --> 00:09:13,513
We're going to hit Enter and give it some time.
191
00:09:14,360 --> 00:09:15,193
And great.
192
00:09:15,193 --> 00:09:18,400
As you can see, now we have another operating system.
193
00:09:18,400 --> 00:09:21,580
Kali Linux installed as a virtual machine
194
00:09:21,580 --> 00:09:26,510
inside our own main host operating system.
195
00:09:26,510 --> 00:09:28,260
Now we can put this in full screen
196
00:09:28,260 --> 00:09:30,840
by going to virtual machine in here
197
00:09:30,840 --> 00:09:33,033
and clicking on Enter Full Screen.
198
00:09:34,100 --> 00:09:36,100
The screen should automatically resize,
199
00:09:36,100 --> 00:09:37,730
as you can see in here.
200
00:09:37,730 --> 00:09:41,430
And in most cases, the icons should look normal.
201
00:09:41,430 --> 00:09:46,430
But in my case they look small because I have a 4K display.
202
00:09:46,500 --> 00:09:47,400
So we're going
203
00:09:47,400 --> 00:09:50,050
to need to manually modify the display settings.
204
00:09:50,050 --> 00:09:53,823
And to do that, we're going to right click, go to Settings,
205
00:09:55,530 --> 00:09:58,900
click on Display in here from the left.
206
00:09:58,900 --> 00:10:01,617
And we're going to set this scale 200.
207
00:10:03,320 --> 00:10:08,280
I'm going to click on Apply, we're keep the changes.
208
00:10:08,280 --> 00:10:11,150
And perfect. Now Kali looks normal for me.
209
00:10:11,150 --> 00:10:13,360
You don't have to do this if Kali looked normal
210
00:10:13,360 --> 00:10:14,280
from the start.
211
00:10:14,280 --> 00:10:16,600
Only if you have a high resolution screen,
212
00:10:16,600 --> 00:10:18,690
you might have to do this.
213
00:10:18,690 --> 00:10:20,490
Now I know this operating system
214
00:10:20,490 --> 00:10:24,470
might look a little bit confusing and scary,
215
00:10:24,470 --> 00:10:26,700
but don't worry about it at all.
216
00:10:26,700 --> 00:10:29,470
I will teach you how to use it step by step
217
00:10:29,470 --> 00:10:31,760
as we go through the course.
218
00:10:31,760 --> 00:10:34,770
If you face any issues while installing Kali,
219
00:10:34,770 --> 00:10:36,830
check out the featured questions first
220
00:10:36,830 --> 00:10:38,360
and if you don't see your answer,
221
00:10:38,360 --> 00:10:41,670
feel free to ask us in the Q and A or in the forums
222
00:10:41,670 --> 00:10:45,973
and we will respond to you within a maximum of 15 hours.
18442
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.