Install Kali VM + Alfa WIFI adapter + fix fetch and Linux header errors (2022)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
have you been struggling with kali linux headers for the best couple of hours and you couldn't find actually a good resource that will tell you what to do in this case well then you've come to the right place today i'm going to install kali linux as a vm in my machine and i'm going to set up my alpha adapter so we can get ready for some ethical hacking let's get started so the first step to installing k linux is to grab one of their ready virtual machines that we can install by clicking over here make sure to grab the version that's correct for the virtual hypervisor that you would like to use for me i use virtualbox so i'm going to go ahead and download this version now the beautiful thing about downloading a virtual machine directly so if downloading the iso and doing all the handy work yourself is that with a double click you already have something to work with i'm going to go ahead and open this with virtualbox that will already spare some of the work that we will need to do in the case that we would go for the iso image i like to give it always a bit more cpu so i have 12 so i not give it six and also a bit more ram very handy then click on import well this will take a moment so we'll be back when this is done all right let's go ahead and start it so the first thing you need to do is to log in the default username and password are just kali yeah once you're in you can actually give yourself a bit more viewing room so you can resize this to whatever fits your screen in my case you should do it all right awesome stuff next let's work on installing our alpha adapter for me i'm going to be working today with this alpha model to get my ethical hacking gear ready so if your adapter is already connected make sure to disconnect it before we go through these steps grab a terminal the first step always when you go on a new virtual machine is to make sure that your sources are updated so apt update remember the password just cali now next we're going to also upgrade our packages so sudo apt upgrade awesome everything is upgraded because we just downloaded the most recent version now the next step is to upgrade the distribution of this kali linux so uh let's see we're standing now name minus r cali7 5.16 it's probably the most recent one but either way is our sudo apt distribution upgrade perfect sorry latest one let's start installing the driver that we will need for our alpha first of all let's check the model by connecting it to a usb to make sure that your adopter is actually connected to the virtual machine you will have to click here over on devices usb and then add that router by clicking on it now your virtual machine have access to this wi-fi adapter next type ls usb this will list all the usb devices that are connected to this operating system all right awesome we can see our alpha adapter over here now we can install a driver that's suitable for this adapter you can see that the model is 88 12au so we go sudo apt install real tech this is the suitable model because it has xx over here because this could be 12 14 or any other model so let's go and select it and hit that enter button all right yes and we already ran into some trouble in 2022 so the main issue that we're facing over here is that we couldn't find a source to give us this header and fix our sources by typing sudo nano nano is a small editor that will allow us to access files on our hard drive and then go for etc slash apt sources now over here in the sources i want to add this mirror from berkeley this is very accessible and has most of the missing files that we won't be able sometimes to find on the calendar repository directly you will need to add dip at the beginning and then copy the kali rolling main contribution contrib and non-free ctrl o enter and ctrl x to exit now let's try it again well we're still having the same issue and that's because once you add the new source to your sources list you will need to run sudo apt update again to update the sources that are available you can see that we've retrieved a whole new list that wasn't available to us before once you've run the update command you can go ahead and try to install the driver again and voila it works so now if we plug in our adapter again and make sure it's enabled using the usb it's still not showing up and that's because we still need to download the aircrack nj driver for this adapter grab the aircrack nj adapter from their github we can do that by clicking over here on code taking this https and typing git clone and voila perfect next we will have to go into the folder and go for sudo make and now we have the missing linux headers built you can see it over here that it cannot find this such file or directory so the next logical step would be try to install those linux headers directly from apt to sudo apt install linux headers and then let's see well the main issue here is that we don't have access to any kali 7 headers the only ones we can see over here are three and five so we will have to go ahead and install the headers ourselves manually so to install the kernel headers you would have to go to this link you're gonna find a bunch of headers they are for multiple modules but they are also for multiple versions so we need to pick exactly the one that we were asked to install at least we will have to go back to make and see which error it was giving us so it was missing the 5.16 chaos 7 amd 64. so let's look for that one notice that this is the apci module the stuff where we're looking for we're looking for the linux headers all right there you go linux headers 5.16 k7 amd yeah this is probably the one you can save this file once it completes downloading open a terminal over here and type sudo d package minus i and then give it the headers and of course just like everything with computers it doesn't go well from the first time so we've got a couple of dependencies that we still need to meet so we have to install linux header kelly common let's look for this one all right this is the rt version this is not what we're looking for this should probably be it all right same as before d package minus i this time we went for the linux headers the common one all right perfect this works let's try the installation again i think we're still missing one more header yeah so we still have a dependency over here on linux build 5.16 well let's find it so linux k build not the dpg system let's find out if they have other ones yes so we have other ones over here look this is 5.16 underscore five and let's go for 14. we're looking for that 18 one right yeah so we're looking for the 18. and that's basically this one don't forget to unplug your adapter now again for go for sudo d package minus i what we installed this time the k builds awesome and now we try again the original oh my god it's working all right so once the installation of all the headers complete you'll need to go back to the aircrack driver folder and run sudo make again and you can see that we're actually managing to install something it's not just crashing the moment that we started i was actually really surprised to see that kali linux is missing headers through the apps like how is it possible all right now the installation is complete we can go ahead and block in our adapter again make sure that it's activated over here in the devices so usb realtek well once you finish executing the make command you still need to run make install and this will actually allow you to use the wi-fi adapter before we couldn't actually access this available networks unless we execute this sudo make install and those are all the steps that you will need in 2022 to install linux headers and your alpha adapter and make it run well happy ethical hacking and until next time
Info
Channel: Nour's tech talk
Views: 13,137
Rating: undefined out of 5
Keywords:
Id: 8A-scMfJDT8
Channel Id: undefined
Length: 8min 54sec (534 seconds)
Published: Fri Jul 15 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.