How to install Kali Linux on MacBook Air (Double Loading with El Capitan). How to install Kali Linux on MacBook Air (double-loaded with El Capitan) without an additional WiFi modem does not work, Kali Linux does not see WiFi no, and in

Kali Linux sees wifi module?

Hello everyone, this is another lesson to address issues on faults and incompatibilities of some installed equipment in laptops with a Linux class installed by the operating system. I do not pretend to complainity, I will show how I solved the question with a specific laptop model. Kali installed on the hard drive the main system is not a virtual! If you prefer to work in a virtual machine, consult some information to the article.

The parameters of the machine are:

  • There is a budget laptop Lenovo B590
  • On board Kali Linux version 2.0
  • Intel processor with 2 cores (then let's see the list ...)
  • Disk, the RAM does not worry us, for ...

Symptoms:

Without an additional Modem, WiFi does not work, Kali Linux does not see WiFi any, and in general the system does not understand whether the wireless connection module is installed. I will consider the solution to the problem of step bypass.

Any operations start with the team:

aPT-GET CLEAN && APT-Get Update && APT-Get Upgrade

To begin with, take a look at the list of installed equipment for receiving and broadcast signals. He is not rich:

Now take a look that is installed on board Lenovo B590 and whether it works, of course; from under the second installed on the same Lenovo B590 windows 7.WiFi works fine). We introduce the viewing command of all equipment, who does not remember - remember - it will be useful:

But this version mounted on Lenovo B590, due to which Kali Linux does not see WiFi:

02: 00.0 Network Controller: Broadcom Corporation BCM43142 802.11b / g / n

Well, the situation is familiar: the module on the spot, the driver is not. By contacting the support page of the drivers (and then it looked like this) of this family for Linux, and looking at the multicolored list of the list of supported devices, found that the device is not without any problems:

Well, do not sit with us without WiFi, and not buy a cheap module on USB (do not think about buying a different module for your laptop - 99% of the likelihood that the laptop configuration will simply do not allow you to do). And we need alpha cards for another. Let's go to Debian for a certificate and see what is new for us. It turns out, there is a long time ago. Then install the latest packages linux-image, Linux-Headers and broadcom-STA-DKMS. I will open the terminal and the prophet-friendly familiar team (some flags could be outrtole). But I will add another repository to Kali:

Leafpad /etc/apt/sources.list.

Here we write a new address from a new line:

dEB http://httpredir.debian.org/debian/ Stretch Main Contrib Non-Free

And now installation:

APT-Get Update Apt-Get Install Linux-Image - $ (Uname -R | SED "S, [^ -] * - [^ -] * -,") Linux-Headers - $ (uname -r | sed "s , [^ -] * - [^ -] * -, ") Broadcom-STA-DKMS

On the comments of the terminal in the drawing, do not look, I already have everything. Watch out for the syntax of the team (she not all got into the photo - I noticed late). Support dynamic core module DKMS. establish a new device with the name in Kali wL. Now unload the conflicting modules (if any):

ModProbe -R B44 B43 B43GACACY SSB BRCMSMAC BCMA

And finally, load a new formed module:

ModProbe WL.

If the terminal errors did not return, you do not need to restart. Check what shows NetworkManager. Cali:

The manager noticed the WiFi module in our Lenovo B590. Check if it is in the list of devices through the terminal:

iWConfig

Hi ... Novo-Foulated WLAN6 Monitoring Mode will not support, however, for a comfortable "official" job, it is abuse. If at some of the stages, the terminal cooked, do not apply to restart Cali with the command to full update:

APT-GET CLEAN && APT-Get Update && APT-Get Upgrade -Y && APT-Get Dist-Upgrade -Y

and repeat the installation. Successes.

), We recommend doing this before you begin to study today's material.
Although macos. - full-featured, Posix.-Catch operating system, not all Linux tools work on it "out of the box." To launch some programs you have to apply certain efforts, sometimes very significant. Other applications do not work at all on macos.. These include, for example, all programs related to the file system procfs., as well as many hacker tools intended for wireless networks.
Of course, possessing certain knowledge, you can port the desired program, but this is a separate project that takes a lot of time. We need all our tools to run quickly.
To not be distracted from your current project, we will use a virtual machine with an operating system. Kali Linux. This simple installation OS. Includes a lot of tools for penzes, and therefore familiar to hackers.
In this article, we will turn on how to install and run a virtual machine on macos.. If, for some reason, you do not want to use a virtual machine, Kali. You can run on many computers, and even on the usual flash drive. You can also install Kali. On a separate hard disk section MAC.

Step 1. Install the virtual machine

In order to run Kali.We will need a virtualization program. There are a lot of such programs - they are released, for example, a company Vmware.. We prefer to use the application VirtualBox. from Oracle. You can download it free from the site of the program. In our example, we will also use VirtualBox..
When the file is loaded, lock the disk image, and then double click on the VirtualBox.pkg icon inside it.

Generally installed VirtualBox. - as easy as pie. To do this, just follow the instructions on the screen, and enter a password for a couple of times.


As soon as the installation is completed, run VirtualBox. From the "Programs" folder.

Step 2. Download Kali

Images Kali. Posted on the website of the operating system. Download that of them that more matches your needs. Online OSCP. You can also download preset images of virtual machines, including for VirtualBox.. By downloading the image, double click on the file so that it opens in VirtualBox.And import all the contents by following the instructions on the screen.
Although the pre-installed images are very easy to install, and their launch does not take time at all (except for installation Extension PackIf you use a USB), the ISO image will give you more features for the configuration. Since we prefer a more lightweight environment of the desktop, we are more impressed by the image Xfce.. In this case, we will install the virtual machine "from scratch". (Hereinafter, we will show how.) The default way is Gnome.And this is an excellent environment, but somewhat heavy for our system resources.

Step 3. Create a new virtual machine

Click on the "New" button in the upper left corner of the application VirtualBox..


Here you will need to select the name of the virtual machine and the type of operating system installed on it. We called our car " Kali Linux", Chose the type" Linux.", And version" Debian 64-bit" Click "Continue".


Now you need to select a memory size. This parameter depends on the configuration of your machine. If too many RAM is involved, the system will begin to "slow down". We allocated our guest car 2 GB - this should be more than enough for Kali Linux. Deciding with the size of the memory, click "Continue".


Now choose one of the options regarding the hard disk of our guest car.
Do not connect a virtual hard disk: In this case, we can run Kali Linux In Live mode, essentially emulates the computer without a hard disk. It's like downloading Kali. from a flash drive. Changes made to the file system will not be saved.
Create a new Virtual Hard Disk: This option allows you to create a new hard drive, and install on it. Kali Linux. In this case, all changes will be stored in the system. You can, for example, store collected personal information about users in databases, tracking this data using Metasploit.. We prefer such an option.
Use a virtual hard drive: This option is suitable in case you want to download an existing hard drive. For example, if you had a hard disk image Kali LinuxYou could download it to the virtual machine.
There are different situations. In some cases, you can work in Live mode, and in others it is necessary to save files. That is why we prefer to create a virtual hard drive. So, click "Create".


Since we decided to create a virtual hard drive, we need to set some settings. Determine the type of file for the disk. It does not matter to us whether our disk will be compatible with other virtualization programs, so we select the type of file VDI. Otherwise, you should select a disk type corresponding to the software combined. Click "Continue".


Next, you need to decide how we do with the place under the hard disk. There may be two options here:
Fixed Size: In this case, the hard disk file will be the size that we specify.
Dynamic Size: The size of the hard disk file will be able to increase or decrease depending on the needs of the guest operating system.
Dynamic virtual hard disk allows you to save space on a computer, but fixed faster works. Suppose that there is enough space on your machine, which allows you to choose a fixed size. Describing its choice, click "Continue."


Now you need to decide what size will disk. Insofar as Kali Linux It takes at least 10 GB, we will take 15 GB drives to drive, so that the place "for maneuvers" remains. You also need to decide where the virtual hard disk will be saved. To save, click on the icon next to the "Name" field. You can place the disc into the folder "Documents" or somewhere else. After deciding, click on the "Create" button.


Creating a disk on a new computer takes about 12 seconds. In older machines, this process can be longer.

Step 4. Start Kali Linux

If everything passed according to plan, manager VirtualBox. Shows a new virtual machine.


Choose Kali Linux VM. and click "Start". Next you will need to select the installation image with Kali.. Click on the folder's small icon and go to the disk ISO image Kali.You downloaded, according to step 2. Select the image and click "Start".


The car starts. Select the installation mode in the menu Grub. And make installation as usual.


So on your MAC now it is Kali.!
Having at the disposal prepared macos. and virtual machine with Kali LinuxYou are ready to solve almost any security tasks. Next time we consider other tools for macos.. Do not miss!

Denial of responsibility: This article is written only for educational purposes. The author or publisher did not publish this article for malicious purposes. If readers want to take advantage of information for personal gain, the author and publisher are not responsible for any harm caused or damage.

Yesterday I updated to El Capitan (on MacBook Air 2014). Then I decided to install Kali Linux 2.0, and the boy was one problem after another, still nothing went out as it was assumed. Without going into details, some of which include (problems with download refind, combustion of ISO images on a flash drive, etc.). I think I managed to do it.

So, now I am trying to restart my Mac, after the REFIND boot screen appears, I connect the USB drive, and I get only one volume (inherited OS), and the Linux installation manual says that try installing refind and try, But I already have a refind (you need to have 3 volumes because it shows).

If I try to download a outdated folder, she says:

Starting The Legacy Loader
Using Load Options USB

Make Sure U Have the Latest Firmware Update Installed
Hit Any Key to Continue

Any help is welcome :) I'm really upset, trying to install Cali, for the first time.

Postscript there is a very high probability that I spoiled somewhere, because, as I said, I came across almost every problem there, with a search on the Internet and try to bypass it, most of the time is not even sure that I do, so What ... I may have spoiled something on the way.

Read more:

refidn is used - 0.9.2 how I set it up: I turned it on, I had to disable security settings in recovery mode, and I think it worked for me after I launched it because it should be launched as it was said in link. Long process, I do not remember all this.

6

6 Answers

I set up MacBook Air 2013 from scratch and tried to install Kali Linux 2.0. The installation was successful, but the big problem is related to the Broadcom wireless card. But this is probably the second question.

That's what I did:

  1. First I Made A Fresh Install of El Capitan 10.11.1 After Repartitioning The Internal Drive to 1 Partition with a Guid Partition Table.
  2. After Configuring El Capitan I Downloaded Kali Linux and
  3. Then i dd "Ed The Kali Iso Image To A Thumb Drive:

    First Get The Disk Identifier of The Thumb Drive and UNMOUNT IT:

    Diskutil List.

    My Thumb Drive Had The Disk Identifier Disk2.

    Diskutil unmountdisk / dev / disk2

    then DD The ISO to the Thumb Drive:

    Sudo dd if \u003d / users / your_user_name / downloads / kali-linux-2.0-amd64.iso of \u003d / dev / rdisk2 bs \u003d 1m

    The Thumb Drive Will Be Bootable WitHout Installing Refind.

    Then I Booted To Recovery HD by Holding Cmd R While Booting. Disable System Integrity Protection in Terminal WITH

    Csrutil disable

    Reboot to Internet Recovery Mode by Holding Alt Cmd R .You Will See A Spinning Globe Animation While Booting.

    Since You Probably Have A Corestorage Partition After Installing El Capitan You Have to Resize It. I Doubt That The Disk Partition Tool In The Kali Live USB Drive Succeeds With That. Open Terminal and Enter:

    Diskutil CS List Diskutil CS Resizestck Lvuuid Size

    lvuuid Is The Uuid of the Logical Volume. IT "Sue Last One Listed in the Output of Diskutil CS List. The size HAS TO BE IN T, G, M OR K. Example: If Your Main Disk HAS 250 GB and You Need 40 GB Free Space To Install Kali Linux To, Enter 210g..

    If you don "t have a corestorage stack on your mac you may choose Disk Utility To Resize The Main Volume. The Recovery HD SHOLD BE MOVED AUTOMATICALLY IN BOTH CASES.

    Reboot While Holding The Alt Key. Boot to the Windows Partition of the thumb Drive. Choose Graphical Install And Configure The Locale Settings. The Network Interface Install Will Probably Fail. Choose none. Use the Defaults of the Disk Partitioning Tool. IT Will Choose The Empty Space on Your Main Disk to Create A Small Boot Partition for Grub, a Main Partition and a Swap Partition. THEN KALI LINUX WILL BE INSTALLED. Install Grub to The MBR OF YORER MAIN DISK.

    After a reboot the Mac Will Boot to OS X. Eject The Kali Linux Installer Thumb Drive.

    Cd /users/your_user_name/downloads/refind-bin-0.9.2 ./install.sh.

    Rename The Refind Folder and The EFI File:

    CD / VOLUMES / ESP / EFI MV Refind Boot MV Boot / Refind_x64.efi boot / bootx64.efi

    Immediately After Installing Refind The EFI VOLUME IS MOUNTED AT / VOLUMES / ESP AND THE INSTALL Script Fails to UNMOUNT IT. If You Mount Disk0s1 Later Manually (E.G. After A Reboot) WITH DISKUTIL MOUNT / DISK0S1 IT WILL BE MOUNTED TO / VOLUMES / EFI! Then You Have to Use CD / VOLUMES / EFI / EFI INSTEAD.

    Quit Terminal and Reboot While Holding Alt

  4. Choose EFI BOOT AT THE MAC BOOT SCREEN AND THEN KALI LINUX AT REFIND BOOT SCREEN.
  5. SET UP KALI LINUX

Everything except the WLAN interface (and AFAIK webcam) works now.

To additionally configure Kali Linux, check the following resources:

To get a Broadcom chip, check:

Until now, I could not make WLAN work, but I study it, and I will sell the answer as soon as I succeed.

After the setup, everything will be successfully loaded in Recovery HD again and re-enable the protection of the integrity of the system in the terminal using

Csrutil Enable

First you need to receive an order.

2) Restart by holding the OPTION key when loading

3) Go to Recovery HD and create a section for Kali

I created a MacBook Air 2013 from scratch and tried to install Kali Linux 2.0. The installation was successful, but the big problem is related to the Broadcom wireless card. But this is probably the second question.

That's what I did:

  1. At first I made a new installation of EL Capitan 10.11.1 after the internal disk by 1 partitions with the GUID partition table.
  2. After setting up El Capitan downloaded Kali Linux and
  3. Then I dd "ED to Potash ISO-image on Flashke:

    first, get a flash drive ID and dismantle it:

    Diskutil List.

    My flash drive has a Disk2 disk identifier.

    Diskutil unmountdisk / dev / disk2

    then D.D. Flash drive:

    Sudo dd if \u003d / users / your_user_name / downloads / kali-linux-2.0-amd64.iso of \u003d / dev / rdisk2 bs \u003d 1m

    The large finger drive will be bootable without installing Refind.

    Then I boot with Recovery HD while holding the CMD R during the download. Disable system integrity protection in the terminal with

    Csrutil disable

    Reboot In the Internet Restore mode, holding the CMD R. You will see a rotating animation globe during boot.

    Since you probably have a Corestorage section after installing EL Capitan, you must change its size. I doubt that the disk partition tool on the Kali Live USB drive successfully copes with this. Open terminal and enter:

    Diskutil CS List Diskutil CS Resizestck Lvuuid Size

    lvuuid is a UUID logical volume. This is the last specified in the output diskutil CS LIST. The size Must be in t, g, m or k. Example. If your main disk has 250 GB and you need 40 GB of free space to install Kali Linux, enter 210g..

    If you do not have a Corestorage stack on your Mac you can choose Disk UtilityTo change the size of the main volume. In both cases, Recovery HD must automatically move.

    Reboot when conducting alt key. Load Windows Section Flash Drive. Choose Graphic installation And adjust the locale parameters. Installing the network interface is likely to fail. Choose none. Use the default disk separator settings. It will choose an empty space on your main disk to create a small boot section for GRUB, the main partition and section of the paging. Then the Kali Linux will be installed. Install GRUB on your main disk MBR.

    After rebooting Mac, it will boot in OS. Remove the Kali Linux installation storage finger.

    Installing Refind:

    Cd /users/your_user_name/downloads/refind-bin-0.9.2 ./install.sh.

    Rename the refind folder and the EFI file:

    CD / VOLUMES / ESP / EFI MV Refind Boot MV Boot / Refind_x64.efi boot / bootx64.efi

    Immediately after installing the REFIND, the EFI volume is set to / VOLUMES / ESP and install the script not to unmount it. If you later install the disk0s1 manually (for example, after rebooting) with diskutil mount / dev / disk0s1, it will be installed in / VOLUMES / EFI! Then you must use CD / VOLUMES / EFI / EFI.

    The output of the terminal and reboot, holding the alt

  4. Select EFI BOOT on the MAC boot screen, and then Kali Linux on the REFIND boot screen.
  5. Setting up Kali Linux

All except the WLAN interface (and AFAIK webcam) is currently working.

To further configure Kali Linux, check the following resources:

To get a Broadcom chip to work check.