1 00:00:00,630 --> 00:00:02,640 ‫Instructor: Hi, within this lecture 2 00:00:02,640 --> 00:00:06,690 ‫we're gonna see how to install Kali Linux to the VirtualBox 3 00:00:06,690 --> 00:00:08,670 ‫using the ISO file 4 00:00:08,670 --> 00:00:11,970 ‫that we have downloaded in the previous one. 5 00:00:11,970 --> 00:00:15,120 ‫So if you have the Kali Linux working, 6 00:00:15,120 --> 00:00:17,610 ‫then you should skip this lecture 7 00:00:17,610 --> 00:00:20,640 ‫because this is only for people experiencing problem 8 00:00:20,640 --> 00:00:22,590 ‫in the OVA file. 9 00:00:22,590 --> 00:00:26,940 ‫So as I said before, sometimes OVA is great. 10 00:00:26,940 --> 00:00:28,620 ‫So most of the times it's great, 11 00:00:28,620 --> 00:00:31,110 ‫but sometimes it does not work. 12 00:00:31,110 --> 00:00:34,320 ‫So if you want to, you can remove the OVA, 13 00:00:34,320 --> 00:00:36,420 ‫deleting all the files, okay? 14 00:00:36,420 --> 00:00:39,870 ‫It will just completely remove the virtual machine 15 00:00:39,870 --> 00:00:43,980 ‫that you have created and you can even empty the trash. 16 00:00:43,980 --> 00:00:48,330 ‫And then, you can just go ahead and install the ISO file 17 00:00:48,330 --> 00:00:52,230 ‫to have a working copy of Kali Linux. 18 00:00:52,230 --> 00:00:55,530 ‫Okay, again, if your Kali Linux is already working, 19 00:00:55,530 --> 00:00:57,330 ‫then you shouldn't do that. 20 00:00:57,330 --> 00:00:59,670 ‫Now I'm gonna go to New, 21 00:00:59,670 --> 00:01:03,750 ‫and I'm going to name this virtual machine Kali Linux. 22 00:01:03,750 --> 00:01:04,680 ‫Okay. 23 00:01:04,680 --> 00:01:06,180 ‫So I'm gonna add ISO, 24 00:01:06,180 --> 00:01:08,550 ‫so that I can keep track what's going on 25 00:01:08,550 --> 00:01:09,960 ‫inside of my VirtualBox. 26 00:01:09,960 --> 00:01:12,030 ‫You can name this anything you want. 27 00:01:12,030 --> 00:01:14,130 ‫However, type will be Linux 28 00:01:14,130 --> 00:01:16,740 ‫and version will be Debian 64-bit 29 00:01:16,740 --> 00:01:19,170 ‫as the previous one as usual. 30 00:01:19,170 --> 00:01:22,020 ‫So I'm gonna allocate one gigabyte of RAM. 31 00:01:22,020 --> 00:01:25,500 ‫And as you know, we can change this afterwards. 32 00:01:25,500 --> 00:01:29,940 ‫And I'm going to come over here to the hard disk part. 33 00:01:29,940 --> 00:01:33,480 ‫And in the hard disk part, I'm going to say 34 00:01:33,480 --> 00:01:35,250 ‫as you can see, there are a couple of options, 35 00:01:35,250 --> 00:01:38,670 ‫I'm gonna say create a virtual hard disk. 36 00:01:38,670 --> 00:01:42,030 ‫So this virtual hard disk will be saved 37 00:01:42,030 --> 00:01:44,280 ‫to this file location. 38 00:01:44,280 --> 00:01:47,310 ‫I don't think you can change or you should change that, 39 00:01:47,310 --> 00:01:50,100 ‫if you want, you can always change that. 40 00:01:50,100 --> 00:01:54,240 ‫For the file size, I'm gonna allocate 40 gigabytes, okay? 41 00:01:54,240 --> 00:01:57,300 ‫This will be used by the Kali Linux. 42 00:01:57,300 --> 00:02:00,210 ‫This will be deducted from your own hard drive. 43 00:02:00,210 --> 00:02:03,270 ‫And again, if you delete it later on, it'll be free. 44 00:02:03,270 --> 00:02:04,800 ‫Don't worry about it. 45 00:02:04,800 --> 00:02:06,960 ‫You shouldn't change anything over here 46 00:02:06,960 --> 00:02:08,820 ‫for the hard disk file type, 47 00:02:08,820 --> 00:02:10,650 ‫I'm gonna go with the VDI 48 00:02:10,650 --> 00:02:13,140 ‫and dynamically allocate it. 49 00:02:13,140 --> 00:02:15,390 ‫Obviously it creates the virtual machine, 50 00:02:15,390 --> 00:02:17,430 ‫but we are gonna have to go into the Settings 51 00:02:17,430 --> 00:02:18,570 ‫and adjust something. 52 00:02:18,570 --> 00:02:22,530 ‫Because we haven't even connected with the ISO yet. 53 00:02:22,530 --> 00:02:26,040 ‫So what I'm going to do, I'm gonna go into the System, 54 00:02:26,040 --> 00:02:28,710 ‫and if you want you can change the processors, 55 00:02:28,710 --> 00:02:30,570 ‫the memory and stuff. 56 00:02:30,570 --> 00:02:34,200 ‫And obviously, I'm gonna take it to the NetNetwork, 57 00:02:34,200 --> 00:02:36,780 ‫and allow all to the promiscuous mode 58 00:02:36,780 --> 00:02:38,040 ‫as we have done before. 59 00:02:38,040 --> 00:02:40,950 ‫Don't forget to do that please. 60 00:02:40,950 --> 00:02:44,310 ‫But this time, we're gonna go into the Storage, 61 00:02:44,310 --> 00:02:47,190 ‫and make sure the ISO is connected. 62 00:02:47,190 --> 00:02:48,780 ‫So this controller thing, 63 00:02:48,780 --> 00:02:53,550 ‫Kali Linux ISO.vdi thing the virtual machine hard drive 64 00:02:53,550 --> 00:02:56,760 ‫that we have created in the previous step. 65 00:02:56,760 --> 00:02:59,280 ‫But right now we have to make sure that 66 00:02:59,280 --> 00:03:03,240 ‫ISO is also included in this machine. 67 00:03:03,240 --> 00:03:04,680 ‫As you can see, 68 00:03:04,680 --> 00:03:08,640 ‫if you come to this empty controller over here, okay, 69 00:03:08,640 --> 00:03:11,670 ‫the disk over here, empty disk over here, 70 00:03:11,670 --> 00:03:16,650 ‫you can click on the choose a virtual optical disk icon 71 00:03:16,650 --> 00:03:19,830 ‫and choose a disk file, okay? 72 00:03:19,830 --> 00:03:21,840 ‫Then you're gonna have to find the ISO 73 00:03:21,840 --> 00:03:23,100 ‫that you have downloaded. 74 00:03:23,100 --> 00:03:27,120 ‫Mine is on the desktop and just choose the ISO. 75 00:03:27,120 --> 00:03:28,830 ‫That's all you got to do 76 00:03:28,830 --> 00:03:33,830 ‫to connect the ISO with your Kali Linux virtual machine. 77 00:03:34,380 --> 00:03:38,250 ‫So remember, this is where we have downloaded that, okay? 78 00:03:38,250 --> 00:03:42,570 ‫So make sure your ISO has been finished downloading 79 00:03:42,570 --> 00:03:44,343 ‫and then say OK. 80 00:03:45,660 --> 00:03:48,150 ‫Great, now I can just start this. 81 00:03:48,150 --> 00:03:49,410 ‫The obvious reasons 82 00:03:49,410 --> 00:03:54,410 ‫why we are not preferring the ISO over OVA 83 00:03:54,540 --> 00:03:56,370 ‫in the first place is that 84 00:03:56,370 --> 00:03:59,370 ‫because we're gonna have to install it manually. 85 00:03:59,370 --> 00:04:03,120 ‫As you can see, Kali Linux starts with this screen, 86 00:04:03,120 --> 00:04:06,510 ‫and if you don't choose anything or if you just hit Enter, 87 00:04:06,510 --> 00:04:10,470 ‫it will guide you through the installation process, 88 00:04:10,470 --> 00:04:13,080 ‫which will take a little bit of time. 89 00:04:13,080 --> 00:04:17,100 ‫Now, as you can see, it asks you to select the language. 90 00:04:17,100 --> 00:04:18,540 ‫I'm gonna go with English, 91 00:04:18,540 --> 00:04:19,800 ‫but if you want, 92 00:04:19,800 --> 00:04:22,410 ‫you can choose your own local language as well. 93 00:04:22,410 --> 00:04:26,190 ‫I generally don't want to change this language. 94 00:04:26,190 --> 00:04:27,960 ‫But for keyboard, for example, 95 00:04:27,960 --> 00:04:30,000 ‫I'm gonna go with the Turkish keyboard 96 00:04:30,000 --> 00:04:31,920 ‫because that's what I'm using. 97 00:04:31,920 --> 00:04:35,220 ‫But over here I'm just gonna leave it as English 98 00:04:35,220 --> 00:04:40,020 ‫and I would suggest you to do so if you speak English, okay? 99 00:04:40,020 --> 00:04:42,990 ‫Because it's much more clearer in menus, 100 00:04:42,990 --> 00:04:47,100 ‫in like error messages, and something like that. 101 00:04:47,100 --> 00:04:48,450 ‫And for the location, 102 00:04:48,450 --> 00:04:51,570 ‫hackers don't tend to give out their location, 103 00:04:51,570 --> 00:04:53,760 ‫don't wanna do that many times. 104 00:04:53,760 --> 00:04:56,310 ‫So I'm gonna just go with the United States. 105 00:04:56,310 --> 00:04:58,620 ‫Of course, we are not gonna do anything illegal, 106 00:04:58,620 --> 00:05:01,740 ‫so you can choose your own country as well. 107 00:05:01,740 --> 00:05:04,650 ‫So for the keyboard, I'm gonna look for the Turkish one, 108 00:05:04,650 --> 00:05:07,470 ‫because I'm using a Turkish keyboard right now 109 00:05:07,470 --> 00:05:09,000 ‫with the Q layout. 110 00:05:09,000 --> 00:05:13,470 ‫So I'd suggest that you choose your own keyboard over here 111 00:05:13,470 --> 00:05:15,870 ‫rather than only English. 112 00:05:15,870 --> 00:05:19,260 ‫So what I'm gonna do, I'm gonna wait, 113 00:05:19,260 --> 00:05:23,100 ‫because this will just go for like a half an hour 114 00:05:23,100 --> 00:05:25,050 ‫just to install this stuff. 115 00:05:25,050 --> 00:05:29,370 ‫And in the middle of the process and between the process, 116 00:05:29,370 --> 00:05:32,550 ‫it will ask you for some questions like, 117 00:05:32,550 --> 00:05:33,690 ‫where to install it, 118 00:05:33,690 --> 00:05:37,500 ‫what kind of selections that we want for installation. 119 00:05:37,500 --> 00:05:40,380 ‫I'm gonna walk you through all of them. 120 00:05:40,380 --> 00:05:42,630 ‫But to keep in mind, 121 00:05:42,630 --> 00:05:46,080 ‫I'm just going to go with the default selections every time. 122 00:05:46,080 --> 00:05:47,160 ‫Okay? 123 00:05:47,160 --> 00:05:48,540 ‫Just over here, 124 00:05:48,540 --> 00:05:53,220 ‫it asks us to give like a host name for this system. 125 00:05:53,220 --> 00:05:56,550 ‫And as you can see, this is like a single word, okay? 126 00:05:56,550 --> 00:06:00,030 ‫It should be a single word that identifies our system. 127 00:06:00,030 --> 00:06:02,220 ‫So I'm just gonna make it Kali. 128 00:06:02,220 --> 00:06:06,390 ‫And for the network, this is the domain name. 129 00:06:06,390 --> 00:06:08,460 ‫Okay, it's asking for a domain name. 130 00:06:08,460 --> 00:06:11,010 ‫If you're working for a company, for example, 131 00:06:11,010 --> 00:06:14,520 ‫like Atil Sec company for example, 132 00:06:14,520 --> 00:06:18,030 ‫you should come over here and write atilsec.com, 133 00:06:18,030 --> 00:06:19,230 ‫or anything like that. 134 00:06:19,230 --> 00:06:23,340 ‫I'm just gonna give it my name, okay, .com, okay? 135 00:06:23,340 --> 00:06:25,650 ‫So you can do that as well. 136 00:06:25,650 --> 00:06:27,390 ‫Give it your name .com, 137 00:06:27,390 --> 00:06:31,620 ‫or you can just give like kali.org or something like that. 138 00:06:31,620 --> 00:06:33,840 ‫It doesn't matter at this point. 139 00:06:33,840 --> 00:06:34,740 ‫What I'm gonna do, 140 00:06:34,740 --> 00:06:39,093 ‫again I'm going to give like my name .com, atil.com. 141 00:06:40,140 --> 00:06:41,820 ‫So this is important, 142 00:06:41,820 --> 00:06:44,730 ‫It's gonna ask us for a user and a password. 143 00:06:44,730 --> 00:06:47,280 ‫So remember we are using Kali, Kali. 144 00:06:47,280 --> 00:06:49,860 ‫Now I'm gonna use my name Atil 145 00:06:49,860 --> 00:06:53,430 ‫and again it's asking for a username. 146 00:06:53,430 --> 00:06:55,980 ‫I believe the previous one was our full name, 147 00:06:55,980 --> 00:06:59,490 ‫so it doesn't matter, I'm just gonna go with Atil, okay? 148 00:06:59,490 --> 00:07:02,520 ‫You should write your own name obviously 149 00:07:02,520 --> 00:07:04,350 ‫over here for your username. 150 00:07:04,350 --> 00:07:07,350 ‫And this is the username that you're going to be using 151 00:07:07,350 --> 00:07:10,590 ‫in order to log into the Kali from now on. 152 00:07:10,590 --> 00:07:13,590 ‫Because we are, since we are using this for the first time 153 00:07:13,590 --> 00:07:15,450 ‫installing this for the first time, 154 00:07:15,450 --> 00:07:19,893 ‫we get to actually choose our username and password. 155 00:07:20,730 --> 00:07:23,430 ‫Okay, right now it's asking for a password. 156 00:07:23,430 --> 00:07:25,260 ‫And as you might remember 157 00:07:25,260 --> 00:07:28,920 ‫the password is either T-O-O-R or Kali. 158 00:07:28,920 --> 00:07:31,620 ‫I'm just gonna give some password over here. 159 00:07:31,620 --> 00:07:34,080 ‫I'm choosing my own password. 160 00:07:34,080 --> 00:07:36,270 ‫I'm choosing my own username. 161 00:07:36,270 --> 00:07:37,920 ‫I'm going to use them to log in. 162 00:07:37,920 --> 00:07:40,440 ‫So make sure you don't give something 163 00:07:40,440 --> 00:07:43,020 ‫that you wouldn't remember later on. 164 00:07:43,020 --> 00:07:45,276 ‫So I'm just gonna say continue. 165 00:07:45,276 --> 00:07:48,630 ‫It's asking for the time zone, for the clock, 166 00:07:48,630 --> 00:07:50,790 ‫I'm just gonna go with default option. 167 00:07:50,790 --> 00:07:54,420 ‫I don't care about the time on my Kali Linux. 168 00:07:54,420 --> 00:07:56,010 ‫And here you go. 169 00:07:56,010 --> 00:07:59,400 ‫Now it's going to take some time 170 00:07:59,400 --> 00:08:01,439 ‫and it's gonna ask some questions like, 171 00:08:01,439 --> 00:08:02,272 ‫here we go. 172 00:08:02,272 --> 00:08:06,270 ‫It says that if you wanna use the entire disk, 173 00:08:06,270 --> 00:08:07,860 ‫and by entire disk, 174 00:08:07,860 --> 00:08:11,490 ‫it means that 40 gigabyte disk that we have created. 175 00:08:11,490 --> 00:08:13,230 ‫I'm just gonna say yes 176 00:08:13,230 --> 00:08:15,420 ‫and I'm just gonna say Continue. 177 00:08:15,420 --> 00:08:16,920 ‫I don't wanna create like 178 00:08:16,920 --> 00:08:20,580 ‫different partitions for any of the hard drives. 179 00:08:20,580 --> 00:08:23,010 ‫So I'm just gonna go for all files. 180 00:08:23,010 --> 00:08:26,310 ‫And as you can see, I'm not even changing anything, right? 181 00:08:26,310 --> 00:08:29,910 ‫I'm just choosing the default options. 182 00:08:29,910 --> 00:08:30,930 ‫So here we go. 183 00:08:30,930 --> 00:08:33,840 ‫It says that write the changes. 184 00:08:33,840 --> 00:08:35,730 ‫Yeah, I should have changed that one. 185 00:08:35,730 --> 00:08:37,530 ‫I should have said yes. 186 00:08:37,530 --> 00:08:40,080 ‫If it's asks for write the changes, 187 00:08:40,080 --> 00:08:41,760 ‫then we're gonna say yes. 188 00:08:41,760 --> 00:08:43,500 ‫And just continue. 189 00:08:43,500 --> 00:08:46,050 ‫And by writing the changes it means that, 190 00:08:46,050 --> 00:08:48,630 ‫it's gonna use the hard drive that we created, 191 00:08:48,630 --> 00:08:51,600 ‫It's gonna install everything into that hard drive 192 00:08:51,600 --> 00:08:53,370 ‫and we will be using it. 193 00:08:53,370 --> 00:08:57,420 ‫Okay, that's not something that we should say no to. 194 00:08:57,420 --> 00:09:01,380 ‫But for the other options, as you might have witnessed, 195 00:09:01,380 --> 00:09:04,050 ‫I haven't changed a single thing. 196 00:09:04,050 --> 00:09:06,562 ‫So if you see some kind of, 197 00:09:06,562 --> 00:09:10,590 ‫I don't know, funny option that you don't see here, 198 00:09:10,590 --> 00:09:13,143 ‫then you should go for the default one anyway. 199 00:09:14,340 --> 00:09:18,450 ‫And many of these options can be changed later on. 200 00:09:18,450 --> 00:09:22,320 ‫Okay, and remember that this is just a virtual machine. 201 00:09:22,320 --> 00:09:26,340 ‫I like deleted and installed virtual machines 202 00:09:26,340 --> 00:09:27,900 ‫like thousand times now. 203 00:09:27,900 --> 00:09:31,380 ‫'Cause it's a virtual machine, don't get attached to it. 204 00:09:31,380 --> 00:09:35,070 ‫You may wanna delete it and just reinstall it 205 00:09:35,070 --> 00:09:36,693 ‫for some reason later on. 206 00:09:37,620 --> 00:09:41,220 ‫Okay, so it asks for what kind of software selection 207 00:09:41,220 --> 00:09:43,920 ‫do we want to install to the Kali Linux. 208 00:09:43,920 --> 00:09:47,430 ‫I'm just gonna go with the default ones, okay? 209 00:09:47,430 --> 00:09:51,300 ‫We are already going to see how to use the package manager 210 00:09:51,300 --> 00:09:54,453 ‫to install what we need during this classes. 211 00:09:55,320 --> 00:09:59,490 ‫So our username and password will be different 212 00:09:59,490 --> 00:10:03,510 ‫than what we have seen before like Root or Kali, 213 00:10:03,510 --> 00:10:04,440 ‫and it doesn't matter. 214 00:10:04,440 --> 00:10:06,360 ‫We're gonna see what kind of things, 215 00:10:06,360 --> 00:10:08,700 ‫what kind of problems we may run into, 216 00:10:08,700 --> 00:10:10,500 ‫if you are using different usernames 217 00:10:10,500 --> 00:10:13,620 ‫and what kind of permissions they have. 218 00:10:13,620 --> 00:10:17,940 ‫We're gonna learn how to use Linux, don't worry about it. 219 00:10:17,940 --> 00:10:19,110 ‫So here you go. 220 00:10:19,110 --> 00:10:21,990 ‫It says that Enter device manually, 221 00:10:21,990 --> 00:10:23,340 ‫or choose your own device. 222 00:10:23,340 --> 00:10:25,170 ‫Yeah, I'm gonna choose only one, 223 00:10:25,170 --> 00:10:27,540 ‫there's only one option anyway. 224 00:10:27,540 --> 00:10:30,360 ‫So make sure you choose it and hit Continue. 225 00:10:30,360 --> 00:10:33,450 ‫And for some reason my mouse does not seem to work, 226 00:10:33,450 --> 00:10:37,440 ‫so I'm just gonna hit Tab and hit Enter to continue. 227 00:10:37,440 --> 00:10:38,273 ‫Here you go. 228 00:10:39,660 --> 00:10:43,500 ‫And we are going to, I believe we're coming to the end. 229 00:10:43,500 --> 00:10:46,530 ‫Okay, we are finishing the installation.. 230 00:10:46,530 --> 00:10:49,890 ‫We've been doing this for like more than 10 minutes 231 00:10:49,890 --> 00:10:53,280 ‫and I even pause that sometimes 232 00:10:53,280 --> 00:10:57,720 ‫so that I can just wait for installation to be completed. 233 00:10:57,720 --> 00:11:01,050 ‫Again, it's going to take like a half an hour for you. 234 00:11:01,050 --> 00:11:04,500 ‫Don't worry about it. It's the normal way. 235 00:11:04,500 --> 00:11:07,350 ‫So let's wait until it asks something more. 236 00:11:07,350 --> 00:11:08,790 ‫Here you go. 237 00:11:08,790 --> 00:11:10,260 ‫It says that, yeah, 238 00:11:10,260 --> 00:11:13,830 ‫if you wanna finish the installation, just hit Continue. 239 00:11:13,830 --> 00:11:15,000 ‫Hit the Continue. 240 00:11:15,000 --> 00:11:17,703 ‫Of course we wanna finish the installation. 241 00:11:19,140 --> 00:11:22,530 ‫And I believe it's going to reboot once it's done. 242 00:11:22,530 --> 00:11:23,640 ‫Yeah, here you go. 243 00:11:23,640 --> 00:11:27,420 ‫Now it's rebooting and it will just take us to the Kali. 244 00:11:27,420 --> 00:11:28,380 ‫Here you go. 245 00:11:28,380 --> 00:11:31,090 ‫This is exactly the same thing that we have seen 246 00:11:31,980 --> 00:11:33,300 ‫when we installed the OVA 247 00:11:33,300 --> 00:11:36,210 ‫because it was working for me anyway. 248 00:11:36,210 --> 00:11:37,140 ‫Great. 249 00:11:37,140 --> 00:11:41,130 ‫Now it's going to ask us for our username and password. 250 00:11:41,130 --> 00:11:44,190 ‫And over here you should give your username and password 251 00:11:44,190 --> 00:11:48,000 ‫that you have created while installing this. 252 00:11:48,000 --> 00:11:49,440 ‫Great. 253 00:11:49,440 --> 00:11:52,860 ‫Now I'm going to log in with my username and password 254 00:11:52,860 --> 00:11:55,200 ‫And let's see if we can see the background, 255 00:11:55,200 --> 00:11:57,120 ‫if we can see the desktop. 256 00:11:57,120 --> 00:11:57,990 ‫Here you go. 257 00:11:57,990 --> 00:11:59,910 ‫Everything seems to be working. 258 00:11:59,910 --> 00:12:02,130 ‫Once you make this big screen by the way, 259 00:12:02,130 --> 00:12:04,677 ‫if it doesn't go full screen, don't worry about it. 260 00:12:04,677 --> 00:12:08,670 ‫I'm gonna show you how to change it later on. 261 00:12:08,670 --> 00:12:12,360 ‫But right now, you can just close it down 262 00:12:12,360 --> 00:12:17,220 ‫and you can just go with the next lectures. 263 00:12:17,220 --> 00:12:19,740 ‫And again, if it didn't work out for you, 264 00:12:19,740 --> 00:12:23,070 ‫if the ISO didn't work out for you, 265 00:12:23,070 --> 00:12:26,820 ‫then just refer to the solution documentation. 266 00:12:26,820 --> 00:12:30,630 ‫Maybe you can see something different over there. 267 00:12:30,630 --> 00:12:33,510 ‫Just make sure your virtualization is enabled, 268 00:12:33,510 --> 00:12:34,920 ‫otherwise it wouldn't work. 269 00:12:34,920 --> 00:12:37,500 ‫Make sure you try different options 270 00:12:37,500 --> 00:12:40,170 ‫and make sure you try VMware as well, 271 00:12:40,170 --> 00:12:42,570 ‫if nothing else works for you. 272 00:12:42,570 --> 00:12:43,680 ‫And most important, 273 00:12:43,680 --> 00:12:47,370 ‫don't forget that hundreds of thousands of students 274 00:12:47,370 --> 00:12:48,750 ‫solve those issues, 275 00:12:48,750 --> 00:12:49,743 ‫you can too.