‫Attil: Hi, within this lecture, we are gonna focus
‫on solving Kali Linux installation problems on MacBooks.
‫So if you have Windows
‫or if you already have a working Kali Linux,
‫you may skip this lecture.
‫So depending on your Mac operating system,
‫or actually depending on your processor,
‫the things that you should do can vary in this lecture.
‫So if you're using an Intel-based MacBook,
‫not M1 chip or ARM chip.
‫If you're using an Intel chip,
‫then it should work out for you.
‫But if it didn't, then let me show you what you should do.
‫You should check for this security.
‫You should check for the permissions.
‫Because in the Intel chips, it should be already compatible.
‫The virtualization should already have been enabled,
‫and everything should be in order.
‫There is nothing much to do over there.
‫But if you're using M1 chip,
‫M1 chip like ARM chips, ARM processors,
‫then most probably, the VirtualBox
‫will cause you some problems.
‫And we're gonna use something called UTM.
‫It's kind of an alternative to the VirtualBox itself.
‫And then we are going to install the Kali Linux
‫inside of that UTM machine.
‫Again, it might work.
‫You can try to install the ISO
‫like we did in the previous lecture
‫in the VirtualBox as well,
‫but it may cause some problems.
‫So what I'm going to do,
‫I'm going to show you how to deal
‫with the UTM machine as well.
‫Because it's a little bit different than the VirtualBox.
‫So if you're using Intel chip,
‫then you're gonna have to go to the System Preferences
‫and find the Security & Privacy icon like that.
‫And click on it.
‫And once you do that, you can go to General tab.
‫and if you see something like a permission for Oracle
‫or permission for a VirtualBox over here,
‫then you should give that permission.
‫You can just click on this key,
‫give your password or your fingerprint,
‫give that permission, and then that's it.
‫Then you should just try it one more time.
‫And it should work out for you.
‫If you're using Intel chip MacBooks,
‫then nothing's gonna happen.
‫So I'm going to open the Kali Linux
‫or open the Google to show you something else.
‫If you're using M1 chips,
‫you're gonna have to google this: Mac get UTM.
‫Just Google search it and here you go.
‫This is virtual machines for Mac.
‫So this is completely free.
‫You can download it from here
‫or from the Mac App Store as well.
‫So this works in M1 chips as well.
‫So as you can see, the website is mac.getutm.com.
‫But again, you can just download it from the App Store.
‫So I have downloaded it already.
‫And I'm just going to show you how to install it.
‫It's pretty easy.
‫You're just gonna have to drag and drop the application
‫to the Applications folder, and that's it.
‫So there is nothing specific to installation,
‫but the usage of the UTM is a little bit different
‫than the VirtualBox itself.
‫So let me go to Applications and find the UTM for you.
‫Yeah, here you go.
‫Double-click on it.
‫Double-click on the UTM.
‫It will ask you if you really wanna open that up.
‫And just open that up and here you go.
‫Now, the next thing that you should do,
‫you should create a new virtual machine.
‫And just virtualize the ISO
‫that we are going to download now.
‫Or you can just emulate it.
‫But it's not what we are looking for.
‫Really, we're looking for it to virtualize it.
‫So over here we are going to choose the Linux
‫as the operating system, as you might imagine.
‫And over here we are just going to select
‫the Browse the ISO image.
‫And obviously, this is not only for Linux.
‫You can virtualize Windows over here.
‫You can virtualize other virtual machines as well.
‫But our OVA does not work in this case.
‫We have to find the ISO image
‫like we have done in the previous lecture.
‫And the good thing is Kali Linux
‫already provides us with that kind of images,
‫like ISO specifically created for M1 chips.
‫Where to get them?
‫Obviously, we're gonna get them in the Kali DOS Arch.
‫So forget about the OVAs.
‫You can use the OVAs inside of VMware, inside of VirtualBox.
‫But in the UTM, it causes some problems.
‫It's better to use ISO images.
‫So I'm just gonna go to kali.org as usual.
‫And I'm going to show you where to find it.
‫So let me go to kali.org and find it, Download section.
‫And over here, rather than the virtual machines,
‫if you see the UTM in the virtual machines in the future,
‫obviously you can download it and use it.
‫But right now they do not have that option.
‫So I'm gonna go for the Bare Metal again.
‫So in the Bare Metal, we have downloaded the regular 64-bit,
‫but this time I'm gonna go with the Apple M1 chip.
‫And again, when you're looking for this,
‫you may see some other alternatives
‫rather than only the installer, weekly and stuff.
‫But we are just gonna go for the default option,
‫and not for 64-bit this time.
‫We are gonna go with Apple M1 chip.
‫So just go over here,
‫select the Apple M1 chip,
‫and find the installer or the default option
‫and just download it.
‫It should be like 2 gigabytes, 3 gigabytes,
‫4 gigabytes at most.
‫When you're watching this right now,
‫it's 2 gigabytes,
‫2 and a 4 gigabytes for me.
‫And I'm just going to download it.
‫And I have already downloaded it
‫in order not to make your wait.
‫And I'm just going to choose it from here.
‫So let me find it and open just this thing on my desktop.
‫And again, we are going to go for ISO, not the OVA.
‫So I'm going to browse this
‫and select the ISO image that I have downloaded
‫for M1 chip and click Next.
‫So it will ask us for the memory location
‫as in the VirtualBox.
‫So I'm just gonna go with 2 gigabytes.
‫You can go with 1 gigabyte.
‫And by the way, CPU cores, I'm gonna go with two.
‫You can go with one if you want.
‫So for the storage, 64 gigabytes.
‫Maybe you can go with 40.
‫I'm not gonna change anything else.
‫Maybe I can just name this Kali Linux rather than Linux.
‫And here you go.
‫However, if we start this right now,
‫clicking on the Play button,
‫you will see some kind of problems.
‫As you can see,
‫we are inside of something called EFI Shell right now.
‫E-F-I Shell right now.
‫We need to disable this.
‫So I'm just gonna close this down,
‫and I'm gonna right-click on here and say Edit.
‫So if we say Edit, we can see the options.
‫So if you go to System, you can obviously change the memory.
‫You can obviously change the architecture and stuff.
‫First of all, I'm gonna find
‫the ARM64 architecture from here.
‫And if you click on the Show Advanced Settings,
‫you can disable the UEFI boot, U-E-F-I boot from here.
‫That's what it's going to take us from the official.
‫But right now, if I play it,
‫I'm still getting errors as you can see.
‫It should have to do something with the storage.
‫So I'm gonna go back to the system,
‫and make sure over here
‫you find the latest version of the QEMU.
‫So what I'm going to do, I'm gonna find the 6.2 ARM.
‫If you cannot find the latest version,
‫you can try to use mine as well, like 6.2.
‫So we're still getting this error.
‫So let me go back to here and let me check the drives.
‫Yeah, here you go. That is the problem.
‫As you can see, there are a couple of drives over here.
‫What we need to do,
‫we need to set it up in a way that this ISO image
‫is actually connected in a correct order.
‫So I'm going to delete everything over here.
‫And I'm going to show you how to create it from scratch.
‫You're gonna have to say Import,
‫and choose the ISO folder, ISO file.
‫If you double-click on it,
‫you can just come over here to the drive
‫and change the image type to this.
‫So DVD ISO.
‫And for the interface, I'm just gonna go with USB.
‫So we are going to only use this ISO one time
‫to install the Kali Linux.
‫Then we're going to change it later on.
‫But make sure you do that.
‫So after that I'm just gonna go with New Drive.
‫And this time I'm gonna go with NVMe, this one.
‫And for this size,
‫I'm just gonna go with something like 40 gigabytes.
‫It's gonna be enough.
‫I'm gonna say Create.
‫And right now I have the USB drive
‫with the CD/DVD thingy.
‫And for here I have the NVMe.
‫So I'm going to use this USB drive
‫to install the Kali Linux
‫into the NVMe that we have created.
‫And after the installation,
‫I'm just actually going to delete the USB,
‫or just make it down.
‫And here you go.
‫As you can see, once we open that, now it opens.
‫Now, it will take us a little bit
‫to install this ISO to this virtual machine.
‫Just click on Enter,
‫and it will ask you some kind of questions,
‫and it's gonna take some time.
‫All you gotta do is just follow along.
‫And most of the time we are just gonna go
‫with the default options.
‫So here you go.
‫Right now, let me show you my machine,
‫my architecture one last time,
‫so that if you're having some problems,
‫you can compare it with yourself.
‫But right now we are just gonna have to wait
‫until it starts to install something,
‫and it starts to ask us questions.
‫By the way, it's gonna take something
‫like a half an hour to complete this.
‫So that is why we have tried the VirtualBox first.
‫And by the way, after you install this,
‫it won't take this much
‫to just start your Kali Linux, obviously.
‫Now it's asking for my country, my language.
‫I'm just gonna go with the defaults
‫like English, United States.
‫Over here it's asking for the keyboard.
‫I'm just actually going to go for the Turkish one
‫because I'm using Turkish keyboard, Q layout.
‫If you're using your own local keyboard,
‫make sure you find it, then hit Enter.
‫And that's it.
‫Now it's going to start installation.
‫And after a while it may ask you some questions.
‫I'm gonna walk you all through it.
‫But most of the time, again,
‫I'm just gonna go with the default selections.
‫So if you see any questions
‫that you cannot see in the lecture,
‫just go with the default option.
‫Many of those can be changed later on anyway.
‫This is just for installing the Kali Linux.
‫So here it asks for a host name.
‫You can say Kali in the host name.
‫But it really doesn't matter.
‫It should have only one word.
‫I'm just gonna leave it as Kali and hit on Continue.
‫And just choose to continue.
‫Domain name can be something
‫like an organizational domain like kali.org,
‫or if you're working for a company, company name.org.
‫I'm just gonna write something like attil.com or Attil.
‫It really doesn't matter.
‫it's just configuring the domain name.
‫So I'm just gonna write my own name
‫over here like attil.com.
‫It's not even like a real website for me.
‫And you can just write whatever you want and hit Continue.
‫Once we do that, it will ask
‫for the full name of the user.
‫So if you don't wanna give your full name, that's okay.
‫Just give your nickname and something like that.
‫I'm just gonna say Attil.
‫It's gonna ask me for a username.
‫I'm gonna leave it as Attil.
‫It's gonna ask me for a password.
‫I'm just gonna give a password.
‫And by the way,
‫we are gonna use this username and password
‫in order to log into the Kali Linux.
‫So make sure you choose something relevant.
‫These are not just for typing purposes.
‫We are actually going to use that information later on.
‫So I gave my password. I gave my username.
‫It's asking for my timezone and stuff.
‫I'm just gonna go with the default options.
‫I don't like to give away my location this easily.
‫And after that, let's see.
‫Yeah, here you go.
‫It says that I'm gonna use the entire disk?
‫Yeah, go ahead and use the entire disk.
‫And entire disk refers to the NVMe that we created.
‫So just hit Enter.
‫If you see something
‫asking for using the entire disk and like that,
‫I'm gonna just hit Enter.
‫I'm not even going to change anything.
‫I'm just going to go for the default stuff.
‫So you should do the same thing as well.
‫Here it says that, yeah, I'm gonna write this.
‫I'm going to say Enter.
‫By writing, it means that, yeah,
‫here you can say "Yes, write changes to the disk."
‫By writing, it means that installing this Kali Linux
‫to the actual NVMe that we have specified.
‫So it's gonna install the thing.
‫And here you go.
‫Now, the installation has been completed,
‫but it took me back to the installation thingy.
‫So the reason, I'm going to just close it down
‫and I'm gonna show you the reason.
‫I'm gonna edit the Kali Linux.
‫The reason is we still have this USB drive over here
‫connected to the ISO.
‫What we need to do instead,
‫we need to just make sure that USB drive is gone.
‫And we are going to use the NVMe drive
‫to launch the application.
‫In order to do that,
‫I'm just gonna say Move Up,
‫and NVMe drive will be moving up.
‫And then I can just run this.
‫Now it should actually take us to the page
‫where we actually log in with the username and the password
‫that we have chosen once we installed this.
‫And remember, we used the Kali-Kali or route and tour
‫in the previous lectures while we used the VirtualBox.
‫In this case, we're going to use our own username,
‫but it doesn't matter.
‫I'm going to explain the different kind of users
‫in Kali Linux and in Linux in general.
‫So you will have no kind of difficulty
‫adjusting to the course or any other lecture
‫that we will be doing.
‫So here you go.
‫Finally, it asks me for the username and the password.
‫So I'm just gonna go with Kali.
‫I can try to log in with the Kali-Kali,
‫but most probably it won't work
‫because we haven't specified that username.
‫Let's try to log in with that.
‫But it won't accept it most probably.
‫Yeah, it kind of stuck for me.
‫Yeah, here you go. It didn't accept that.
‫So I'm just gonna give the Attil and my password over here
‫and hit Enter.
‫Here you go. Now it accepted it.
‫So if you are here, then you have a working Kali Linux.
‫As you can see, it's a little bit laggy for me.
‫It got stuck now again.
‫It seems like it got stuck.
‫If you come across in a situation like this,
‫what you need to do,
‫you need to close down the Kali Linux,
‫go into the settings and try to give it more RAM,
‫more CPUs from the settings,
‫and maybe less RAM and less CPUs.
‫Again, you have to optimize your own host computer RAM
‫and this virtual machine RAM as well.
‫So I'm gonna make this a little bit bigger,
‫and wait until Kali Linux actually gathers these things.
‫Here you go. It started to appear.
‫And here you go. We see the desktop.
‫If you see the desktop, then it's okay.
‫We are gonna see how to adjust the views,
‫how to adjust the screen resolution,
‫how to change the keyboards,
‫how to do the general setting stuff.
‫But if you see this section,
‫if you see the desktop, then it's okay:
‫you have your Kali Linux.
‫Obviously, anytime you can just close this down
‫and you can open it again.
‫This is now your virtual machine. Hold onto it.
‫But if you have any problems,
‫feel free to delete it and then install it,
‫reinstall it later on.
‫Again, I have installed virtual machines like 1,000 times.
‫And again, it doesn't matter.
‫We can just delete and reinstall it as much as we want.
‫So by the way, if you go to Terminal, like this icon,
‫you don't have to do that right now.
‫I'm just going to explain what a Terminal is later on.
‫But in the lectures,
‫you will see that your username appears over here,
‫whereas we will see that I'm using Kali or Root.
‫And I will explain the differences between them.
‫Don't worry about it.
‫Again, we are going to use,
‫we are going to learn how to use Linux in general.
‫So it won't depend on the username.
‫It won't depend on the desktop picture.
‫It won't depend on the menus and stuff.
‫So if you have a working Kali Linux, that is okay.
‫So what I'm going to do,
‫I'm going to close this down,
‫and I will be meeting you within the next lecture.