1 00:00:00,360 --> 00:00:01,410 Instructor: All right. 2 00:00:01,410 --> 00:00:03,990 We have made a big step. 3 00:00:03,990 --> 00:00:08,220 We have created our virtual machine in the previous lecture. 4 00:00:08,220 --> 00:00:09,900 All that we're left to do right now 5 00:00:09,900 --> 00:00:12,513 is to install the Kali Linux operating system. 6 00:00:13,350 --> 00:00:15,390 Now, it should be rather easy. 7 00:00:15,390 --> 00:00:17,160 I will guide you through all the steps. 8 00:00:17,160 --> 00:00:19,230 So let's start it straight away. 9 00:00:19,230 --> 00:00:23,190 To start your VM, simply just click on the VM. 10 00:00:23,190 --> 00:00:24,660 You can either double click it 11 00:00:24,660 --> 00:00:28,743 or you could select it and click on this start button. 12 00:00:30,240 --> 00:00:31,740 It will take a few seconds. 13 00:00:31,740 --> 00:00:34,800 On the right, you should see "Powering VM up," 14 00:00:34,800 --> 00:00:38,553 and in just a few seconds, this small window will open. 15 00:00:39,390 --> 00:00:42,690 Now, the first thing that we see is this Kali Linux window, 16 00:00:42,690 --> 00:00:44,580 asking us which type of installation 17 00:00:44,580 --> 00:00:46,680 do we want to proceed with. 18 00:00:46,680 --> 00:00:48,780 Now, the two options that interest us 19 00:00:48,780 --> 00:00:52,140 are graphical install and install. 20 00:00:52,140 --> 00:00:54,570 Now, since this window is quite small, 21 00:00:54,570 --> 00:00:58,230 what I'm going to do is I'm going to click on View 22 00:00:58,230 --> 00:01:00,630 and I'm going to enter Scaled Mode, 23 00:01:00,630 --> 00:01:03,330 which will enlarge this window a little bit. 24 00:01:03,330 --> 00:01:05,610 Now, to enter Scaled Mode, 25 00:01:05,610 --> 00:01:07,320 you can simply just do what I did, 26 00:01:07,320 --> 00:01:09,090 and to leave Scaled Mode, 27 00:01:09,090 --> 00:01:13,350 you use right Control button and C. 28 00:01:13,350 --> 00:01:18,120 So right Control button and C will enter Scaled Mode 29 00:01:18,120 --> 00:01:21,270 and it will also leave Scaled Mode. 30 00:01:21,270 --> 00:01:24,660 From here, I can just enlarge this screen a little bit 31 00:01:24,660 --> 00:01:26,580 so we can see everything better. 32 00:01:26,580 --> 00:01:28,050 And now, we're good to go. 33 00:01:28,050 --> 00:01:30,840 So I'm going to select graphical install. 34 00:01:30,840 --> 00:01:32,460 I'm going to press Enter. 35 00:01:32,460 --> 00:01:35,700 And just a quick note, inside the virtual machine, 36 00:01:35,700 --> 00:01:38,730 during the installation, your mouse will not work 37 00:01:38,730 --> 00:01:43,410 so make sure to navigate with arrow keys on your keyboard. 38 00:01:43,410 --> 00:01:45,570 Now, this mostly refers to certain parts 39 00:01:45,570 --> 00:01:47,370 since at the beginning of the installation, 40 00:01:47,370 --> 00:01:51,540 the mouse key will work, but if you find it not working, 41 00:01:51,540 --> 00:01:55,110 simply just use your arrow keys to navigate up and down 42 00:01:55,110 --> 00:01:58,410 and Enter to continue to the next step. 43 00:01:58,410 --> 00:02:00,030 So the first thing that we're prompted 44 00:02:00,030 --> 00:02:03,120 is to select the language, and you can simply just select 45 00:02:03,120 --> 00:02:04,920 whichever language that you want. 46 00:02:04,920 --> 00:02:06,810 I'm going to proceed with English 47 00:02:06,810 --> 00:02:09,780 and I'm going to press Enter to continue. 48 00:02:09,780 --> 00:02:11,760 Same here, the location, 49 00:02:11,760 --> 00:02:13,890 you can find your country right here. 50 00:02:13,890 --> 00:02:16,440 If you do not see it on the official list right here, 51 00:02:16,440 --> 00:02:20,100 you can just click on other and select it from there. 52 00:02:20,100 --> 00:02:22,200 Now, since this is not an important step, 53 00:02:22,200 --> 00:02:25,200 I'm just going to proceed with United States 54 00:02:25,200 --> 00:02:28,110 and I'm going to click on Continue. 55 00:02:28,110 --> 00:02:29,910 And configuring the keyboard, 56 00:02:29,910 --> 00:02:32,040 I'm going to select American English. 57 00:02:32,040 --> 00:02:34,500 You can select whichever keyboard configuration 58 00:02:34,500 --> 00:02:38,100 that you want, or you can proceed same way as me 59 00:02:38,100 --> 00:02:40,710 with American English keyboard. 60 00:02:40,710 --> 00:02:42,063 Let's click on Continue. 61 00:02:43,680 --> 00:02:46,560 It will perform a few steps 62 00:02:46,560 --> 00:02:49,293 so let's wait for it to get to the next step. 63 00:02:51,720 --> 00:02:55,230 Okay, so here's the next question that we get asked 64 00:02:55,230 --> 00:02:57,487 and that is to configure the network. 65 00:02:57,487 --> 00:03:00,330 "Please enter the hostname for this system. 66 00:03:00,330 --> 00:03:01,980 The hostname is a single word 67 00:03:01,980 --> 00:03:05,040 that identifies your system to the network. 68 00:03:05,040 --> 00:03:07,620 If you don't know what your hostname should be, 69 00:03:07,620 --> 00:03:10,020 consult your network administrator. 70 00:03:10,020 --> 00:03:12,780 If you are setting up your own home network, 71 00:03:12,780 --> 00:03:14,700 you can make something up here." 72 00:03:14,700 --> 00:03:17,460 Now, since most of us are in our home network, 73 00:03:17,460 --> 00:03:19,590 we can simply just make something up here. 74 00:03:19,590 --> 00:03:23,520 So I'm just going to type kali, simple as that. 75 00:03:23,520 --> 00:03:25,323 And I'm going to press Continue. 76 00:03:26,640 --> 00:03:28,710 We get one more configuration of network, 77 00:03:28,710 --> 00:03:30,750 but this time, it is domain name. 78 00:03:30,750 --> 00:03:34,050 And here, the domain name, we can simply just leave empty. 79 00:03:34,050 --> 00:03:38,910 So just delete whatever is inside this input bar 80 00:03:38,910 --> 00:03:41,643 and proceed to the next step. 81 00:03:43,230 --> 00:03:46,770 Okay, so here is where we set up the full name 82 00:03:46,770 --> 00:03:50,100 for the new user on the Kali Linux system. 83 00:03:50,100 --> 00:03:52,200 And since we are hackers, 84 00:03:52,200 --> 00:03:55,500 of course, we are not going to use our full name. 85 00:03:55,500 --> 00:03:57,450 We could just make something up here. 86 00:03:57,450 --> 00:04:00,093 I'm going to call my new user, MrHacker. 87 00:04:00,990 --> 00:04:04,770 Now, you can call your user whatever you want. 88 00:04:04,770 --> 00:04:06,450 This is not that important step, 89 00:04:06,450 --> 00:04:08,583 just make sure to remember it for later. 90 00:04:09,690 --> 00:04:11,130 Once you name your user, 91 00:04:11,130 --> 00:04:15,060 click on Continue and it will ask you to select the username 92 00:04:15,060 --> 00:04:16,410 for that new user. 93 00:04:16,410 --> 00:04:19,797 I will just leave it as mrhacker right here 94 00:04:19,797 --> 00:04:21,903 and I will proceed to the next step. 95 00:04:23,310 --> 00:04:26,940 The next step is giving the password to our new user. 96 00:04:26,940 --> 00:04:30,300 So in the first field, type in the password 97 00:04:30,300 --> 00:04:31,900 that you want your user to have. 98 00:04:32,760 --> 00:04:35,280 I'll type it like this, and if you want, 99 00:04:35,280 --> 00:04:37,410 you can make sure that you typed it properly 100 00:04:37,410 --> 00:04:41,190 by clicking Show Password in Clear. 101 00:04:41,190 --> 00:04:43,650 Here, we want to reenter the same password 102 00:04:43,650 --> 00:04:44,883 just to confirm it. 103 00:04:46,560 --> 00:04:49,950 And fun fact, make sure that you add a strong password 104 00:04:49,950 --> 00:04:54,030 because in the history, many of the black hat hackers 105 00:04:54,030 --> 00:04:57,450 have been caught by having weak passwords. 106 00:04:57,450 --> 00:04:59,520 Now, of course, we are not black hat hackers, 107 00:04:59,520 --> 00:05:01,140 we are white hat hackers 108 00:05:01,140 --> 00:05:03,720 but we still want to have a strong password 109 00:05:03,720 --> 00:05:05,610 for our Kali Linux machine. 110 00:05:05,610 --> 00:05:09,090 So once again, once you type your password in 111 00:05:09,090 --> 00:05:12,333 and you confirm it, you can click on Continue. 112 00:05:14,580 --> 00:05:16,920 Here, it asks us to configure the clock. 113 00:05:16,920 --> 00:05:18,720 I will proceed with Eastern. 114 00:05:18,720 --> 00:05:21,780 You can choose your time zone accordingly. 115 00:05:21,780 --> 00:05:23,523 I'll just proceed with Eastern. 116 00:05:24,900 --> 00:05:28,500 And here, we come to the partitioning of disks. 117 00:05:28,500 --> 00:05:30,840 Now, under this step, if you're a beginner, 118 00:05:30,840 --> 00:05:33,930 simply just click on Guided - use entire disk 119 00:05:33,930 --> 00:05:36,030 and click on Continue. 120 00:05:36,030 --> 00:05:37,440 It will give you this one option, 121 00:05:37,440 --> 00:05:39,600 which is your hard disk that you created 122 00:05:39,600 --> 00:05:41,040 in the previous lecture. 123 00:05:41,040 --> 00:05:43,560 For me, it is the 40 gigabytes large hard disk. 124 00:05:43,560 --> 00:05:45,330 For you, it might be different 125 00:05:45,330 --> 00:05:49,323 but just select it right here and click on Continue. 126 00:05:50,820 --> 00:05:52,560 Again, partitioning disks. 127 00:05:52,560 --> 00:05:55,020 Here, it says, "The disk can be partitioned 128 00:05:55,020 --> 00:05:57,510 using one of several different schemes. 129 00:05:57,510 --> 00:05:59,970 If you're unsure, choose the first one." 130 00:05:59,970 --> 00:06:03,180 Since we are beginners and it does say right here, 131 00:06:03,180 --> 00:06:04,860 recommended for new users. 132 00:06:04,860 --> 00:06:08,100 Let's select this one, which is all files in one partition, 133 00:06:08,100 --> 00:06:10,203 and let's click on Continue. 134 00:06:11,400 --> 00:06:12,233 We want to select 135 00:06:12,233 --> 00:06:14,670 Finish partitioning and write changes to disk, 136 00:06:14,670 --> 00:06:16,950 and click on Continue once again. 137 00:06:16,950 --> 00:06:21,950 And here, we want to click on Yes and click on Continue. 138 00:06:22,050 --> 00:06:25,260 And it finally finished partitioning our disks 139 00:06:25,260 --> 00:06:29,223 and it will start installing the base system for Kali Linux. 140 00:06:30,360 --> 00:06:32,493 Let's wait for the next step. 141 00:06:33,930 --> 00:06:37,170 And after a minute or two, here is the next step. 142 00:06:37,170 --> 00:06:38,610 Software selection. 143 00:06:38,610 --> 00:06:41,550 Now, ideally here, you don't want to change anything, 144 00:06:41,550 --> 00:06:44,400 you can simply just leave it as it is. 145 00:06:44,400 --> 00:06:46,203 So let's go to Continue. 146 00:06:47,100 --> 00:06:49,950 And after this step, this next step, 147 00:06:49,950 --> 00:06:52,170 which is selecting and installing software 148 00:06:52,170 --> 00:06:54,960 can take some time even up to an hour 149 00:06:54,960 --> 00:06:57,960 or, in some cases, over an hour. 150 00:06:57,960 --> 00:07:01,710 So just sit back and enjoy, grab a cup of coffee, 151 00:07:01,710 --> 00:07:04,893 and I will see you as soon as next step pops up. 152 00:07:06,210 --> 00:07:09,780 Okay, here we are at the next step. 153 00:07:09,780 --> 00:07:12,330 This installation took quite some time. 154 00:07:12,330 --> 00:07:16,050 Now, for me personally, it took about 15 to 20 minutes. 155 00:07:16,050 --> 00:07:18,990 For you, it might have been more or less. 156 00:07:18,990 --> 00:07:22,590 Now, for anyone that might have encountered an issue 157 00:07:22,590 --> 00:07:25,920 during the last step or during the software installation, 158 00:07:25,920 --> 00:07:29,670 double check if you have provided enough free space 159 00:07:29,670 --> 00:07:31,290 for the Kali Linux machine. 160 00:07:31,290 --> 00:07:34,020 Make sure that you provided at least 30 gigabytes 161 00:07:34,020 --> 00:07:35,400 of free space. 162 00:07:35,400 --> 00:07:37,710 Now, if you didn't encounter any error 163 00:07:37,710 --> 00:07:39,420 and you're at this step, 164 00:07:39,420 --> 00:07:43,260 it asks us whether we want to install the GRUB boot loader. 165 00:07:43,260 --> 00:07:44,827 And here is the simple explanation. 166 00:07:44,827 --> 00:07:46,710 "It seems that this new installation 167 00:07:46,710 --> 00:07:50,070 is the only operating system on this computer. 168 00:07:50,070 --> 00:07:53,220 If so, it should be safe to install the GRUB boot loader 169 00:07:53,220 --> 00:07:54,930 to your primary drive." 170 00:07:54,930 --> 00:07:57,720 Now, don't let this confuse you. 171 00:07:57,720 --> 00:07:59,910 Remember that this is a virtual machine 172 00:07:59,910 --> 00:08:03,300 and it doesn't know of any other operating systems 173 00:08:03,300 --> 00:08:05,190 other than Kali Linux. 174 00:08:05,190 --> 00:08:06,337 Since you might be wondering, 175 00:08:06,337 --> 00:08:09,210 "Well, it isn't the only operating system on this computer. 176 00:08:09,210 --> 00:08:11,550 I'm running Windows on my host machine," 177 00:08:11,550 --> 00:08:14,160 but this virtual machine does not know that. 178 00:08:14,160 --> 00:08:17,550 For it, this is the only operating system, 179 00:08:17,550 --> 00:08:19,290 which we're currently installing. 180 00:08:19,290 --> 00:08:22,440 So since we're installing Kali Linux as a virtual machine, 181 00:08:22,440 --> 00:08:25,980 we can install the GRUB boot loader to our primary drive. 182 00:08:25,980 --> 00:08:28,620 Just select here Yes or leave it at Yes 183 00:08:28,620 --> 00:08:32,732 because it's the default option, and click on Continue. 184 00:08:34,020 --> 00:08:36,059 And it will ask us once again 185 00:08:36,059 --> 00:08:39,179 the device for boot loader installation. 186 00:08:39,179 --> 00:08:41,490 We don't want to enter device manually 187 00:08:41,490 --> 00:08:44,100 so just navigate to the lower option, 188 00:08:44,100 --> 00:08:47,763 which is this one right here, and click on Continue. 189 00:08:50,970 --> 00:08:53,340 This will finish up the installation, 190 00:08:53,340 --> 00:08:55,200 and once the installation is done, 191 00:08:55,200 --> 00:08:58,290 it should boot into our Kali Linux machine. 192 00:08:58,290 --> 00:09:01,200 And here, it notifies us, "Installation is complete 193 00:09:01,200 --> 00:09:03,630 so it is time to boot into our new system. 194 00:09:03,630 --> 00:09:05,820 Make sure to remove any installation media 195 00:09:05,820 --> 00:09:07,770 so that you boot into the new system 196 00:09:07,770 --> 00:09:10,260 rather than restarting the installation." 197 00:09:10,260 --> 00:09:12,510 Now, since we don't have any installation media, 198 00:09:12,510 --> 00:09:16,353 such as CD or USB, we can simply just click on Continue. 199 00:09:20,490 --> 00:09:24,840 And this should open up our Kali Linux virtual machine. 200 00:09:24,840 --> 00:09:27,753 Let's wait for a few seconds for it to boot up. 201 00:09:32,820 --> 00:09:34,020 And here it is. 202 00:09:34,020 --> 00:09:36,330 Here is our login window. 203 00:09:36,330 --> 00:09:39,300 Now, at this point, I will leave the Scaled Mode 204 00:09:39,300 --> 00:09:42,930 by pressing right Control and C 205 00:09:42,930 --> 00:09:45,990 and you will notice that my window will get smaller 206 00:09:45,990 --> 00:09:48,510 but this will be fixed in just a second. 207 00:09:48,510 --> 00:09:49,863 Let us first log in. 208 00:09:50,970 --> 00:09:54,480 My username, if you remember, is mrhacker. 209 00:09:54,480 --> 00:09:56,370 For you, just type in your username 210 00:09:56,370 --> 00:09:58,710 and then type in your password 211 00:09:58,710 --> 00:10:01,620 that you used during the installation. 212 00:10:01,620 --> 00:10:06,620 Click on Log In and this will open the Kali Linux desktop. 213 00:10:06,960 --> 00:10:10,290 Now, to enlarge this window, usually, all you need to do 214 00:10:10,290 --> 00:10:12,810 is simply just enlarge this window, 215 00:10:12,810 --> 00:10:16,680 lower it once again, and enlarge it once again. 216 00:10:16,680 --> 00:10:18,660 But here is our first error. 217 00:10:18,660 --> 00:10:22,350 You might have noticed that my screen went black 218 00:10:22,350 --> 00:10:24,510 and that can happen to you as well. 219 00:10:24,510 --> 00:10:26,730 Now, what I would do in this case 220 00:10:26,730 --> 00:10:28,443 is I would lower the screen, 221 00:10:29,400 --> 00:10:32,130 I would close the virtual machine, 222 00:10:32,130 --> 00:10:34,140 and I can do that by clicking on X 223 00:10:34,140 --> 00:10:36,290 and then clicking on Power off the machine. 224 00:10:37,650 --> 00:10:41,520 Navigating back to my VirtualBox, selecting my machine, 225 00:10:41,520 --> 00:10:46,200 navigating on settings, navigating on display settings. 226 00:10:46,200 --> 00:10:48,210 And under the video memory, 227 00:10:48,210 --> 00:10:51,660 I want to enlarge this to, let's say, 80. 228 00:10:51,660 --> 00:10:54,003 And I want to click on OK. 229 00:10:54,870 --> 00:10:57,183 Now, if I start the VM again, 230 00:10:58,650 --> 00:11:01,323 it will once again take a few seconds to boot up. 231 00:11:08,190 --> 00:11:09,450 Here is the login window. 232 00:11:09,450 --> 00:11:12,813 Once again, I'll type in my password. 233 00:11:13,920 --> 00:11:17,130 And now you see that my virtual machine 234 00:11:17,130 --> 00:11:19,230 went in full screen mode. 235 00:11:19,230 --> 00:11:21,120 Okay, awesome. 236 00:11:21,120 --> 00:11:23,640 Now, if you have encountered the same error 237 00:11:23,640 --> 00:11:25,260 of getting the black screen 238 00:11:25,260 --> 00:11:27,150 on your Kali Linux virtual machine, 239 00:11:27,150 --> 00:11:30,000 just remember, navigate to your virtual machine, 240 00:11:30,000 --> 00:11:33,420 navigate to settings, navigate to display settings, 241 00:11:33,420 --> 00:11:36,030 and increase video memory. 242 00:11:36,030 --> 00:11:38,730 This should fix the issue. 243 00:11:38,730 --> 00:11:40,530 All right, awesome. 244 00:11:40,530 --> 00:11:44,313 So this is our Kali Linux virtual machine. 245 00:11:45,210 --> 00:11:47,130 Looks quite cool, right? 246 00:11:47,130 --> 00:11:48,570 Here is the desktop. 247 00:11:48,570 --> 00:11:51,090 Here are certain apps that we have. 248 00:11:51,090 --> 00:11:52,800 We can find even more apps 249 00:11:52,800 --> 00:11:56,670 by clicking on this Kali Linux icon that says Applications. 250 00:11:56,670 --> 00:11:57,960 And you can experiment 251 00:11:57,960 --> 00:12:00,600 and research a little bit if you want. 252 00:12:00,600 --> 00:12:02,280 But in the next lecture, 253 00:12:02,280 --> 00:12:04,770 we're going to take a look at how we can set up 254 00:12:04,770 --> 00:12:08,343 network settings for our Kali Linux virtual machine.