How to properly install Kali Linux on MacBook Air (dual boot with El Capitan). How to properly install Kali Linux on MacBook Air (dual boot with El Capitan) Kali linux does not see keyboard on macbook


Yesterday I upgraded to El Capitan (on a MacBook Air 2014). Then I decided to install Kali Linux 2.0 and boy it was one problem after another, still nothing worked as expected. Without going into details, some of which include (rEFInd boot problems, burning iso image to flash drive, etc.). I think I managed to do it.

So now I'm trying to restart my Mac, after the rEFInd loading screen appears, I plug in the USB drive and I only get one volume (legacy OS) and the Linux installation guide says try installing rEFInd and try again, but I already have rEFInd (you need to have 3 volumes as it shows).

If I try to download a legacy folder it says:

Starting the Legacy Loader
Using Load Options USB

Make sure you have the latest firmware update installed
Hit any key to continue

Any help is appreciated :) I'm really getting frustrated trying to install Kali for the first time.

Postscript There is a very high chance that I messed up somewhere, because like I said, I've run into almost every problem there, with searching the internet and trying to work around it, most of the time not even sure what I'm doing, so that... I may have messed something up along the way.

More details:

rEFIdn used - 0.9.2 How I set it up: I enabled it, I had to disable security settings in recovery mode and I think it worked for me after I started it as it should be running as stated in link. It's a long process, I don't remember all of it.

6

6 answers

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

Here'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=/Users/your_user_name/Downloads/kali-linux-2.0-amd64.iso of=/dev/rdisk2 bs=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 resizeStack lvUUID size

    lvUUID is the UUID of the Logical Volume. It"s the 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 should 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 your 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 /dev/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 the webcam) works now.

To further configure Kali Linux, check out the following resources:

To get the Broadcom chip, check:

So far I haven't been able to get the WLAN to work, but I'm looking into it and I'll update with an answer as soon as I succeed.

Once configured, everything will successfully boot into Recovery HD again and re-enable System Integrity Protection in the terminal using

Csrutil enable

First you must receive your order.

2) Reboot by holding the Option key while booting

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

), we recommend doing this before starting to study today's material.
Although macOS– fully functional, POSIX-compatible operating system, not all Linux tools work on it out of the box. To run some programs you have to put in some effort, sometimes quite significant. Other applications do not work at all macOS. These include, for example, all programs associated with the file system procfs, as well as many hacking tools designed for wireless networks.
Of course, if you have 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 launch quickly.
In order not to be distracted from our current project, we will use a virtual machine with the operating system Kali Linux. This one is easy to install OS includes many tools for pentesting, and is therefore well known to hackers.
In this article we will take a step-by-step look at how to install and run a virtual machine on macOS. If, for some reason, you do not want to use a virtual machine, Kali can be run on many computers, and even on a regular flash drive. You can also install Kali to a separate hard drive partition Mac.

Step 1: Install the virtual machine

In order to run Kali, we need a virtualization program. There are many similar programs - they are produced, for example, by the company VMware. We prefer to use the application VirtualBox from Oracle. You can download it for free from the program website. In our example we will also use VirtualBox.
Once the file has downloaded, mount the disk image and then double-click the VirtualBox.pkg icon inside it.

In general, install VirtualBox- as easy as pie. To do this, you just need to follow the instructions on the screen and enter the password a couple of times.


Once the installation is complete, run VirtualBox from the "Programs" folder.

Step 2: Download Kali

Images Kali posted on the operating system website. Download the one that best suits your needs. On the site OSCP you can also download pre-installed images of virtual machines, including for VirtualBox. After downloading the image, double-click on the file to open it in VirtualBox, and import all content following the onscreen instructions.
Although pre-installed images are very easy to install, and launching them does not take any time at all (except for installation Extension Pack, if you are using USB), the ISO image will give you more configuration options. Since we prefer a more lightweight desktop environment, we are more impressed by the image XFCE. In this case, we will install the virtual machine from scratch. (We'll show how next.) The default image is Gnome, and it's a great environment, but a bit heavy on our system's 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 to install on it. We named our car " Kali Linux", selected the type " Linux", and version " Debian 64-bit" Click “Continue”.


Now you need to select the memory size. This setting depends on your machine configuration. If too much RAM is used, the system will start to slow down. We allocated 2 GB to our guest machine - this should be more than enough for Kali Linux. Once you have decided on the memory size, click “Continue”.


Now let's select one of the options regarding the hard drive of our guest machine.
Do not mount the virtual hard disk: In this case we will be able to run Kali Linux in live mode, essentially emulating a computer without a hard drive. It's like loading 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 disk and install on it Kali Linux. In this case, all changes will be saved in the system. You will be able, for example, to store collected personal information about users in databases, tracking this data using Metasploit. We prefer this option.
Use a virtual hard disk: This option is suitable if you want to boot an existing hard disk. For example, if you already had a hard disk image Kali Linux, you could download it to a virtual machine.
Situations are different. In some cases, you can work in live mode, but in others, you need to save files. This is why we prefer to create a virtual hard disk. So, click “Create”.


Since we decided to create a virtual hard disk, we need to set some settings. Let's determine the file type for the disk. It doesn't matter to us whether our disk will be compatible with other virtualization programs, so we choose the file type VDI. Otherwise, you should select a disk type that matches the software you are compatible with. Click Continue.


Next, we need to decide what we will do with the space for the hard drive. There may be two options here:
Fixed size: In this case, the file on the hard drive will be the size that we specify.
Dynamic size: The size of the file on the hard drive will be able to grow or shrink depending on the needs of the guest operating system.
A dynamic virtual hard disk saves space on your computer, but a fixed one works faster. Let's say you have enough space on your machine to allow you to choose a fixed size. Having indicated your choice, click “Continue”.


Now you need to decide what size the disk will be. Because the Kali Linux takes up at least 10 GB, we will allocate 15 GB for the disk so that there is room for maneuvers. 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 in your Documents folder or somewhere else. Once you have decided, click on the “Create” button.


Creating a disk on a new computer takes about 12 seconds. On older machines this process may take longer.

Step 4: Launch Kali Linux

If everything went according to plan, the manager VirtualBox will show the new virtual machine.


Select Kali Linux VM and click "Start". Next, you will need to select the installation image with Kali. Click on the small folder icon and navigate to the ISO disk image Kali, which you downloaded according to Step 2. Select the image and click “Start”.


The machine will start. Select installation mode from menu GRUB and install as usual.


So, on your Mac now it is Kali!
Having at your disposal a prepared macOS and a virtual machine with Kali Linux, you are ready to solve almost any security problem. Next time we'll look at other tools for macOS. Do not miss!

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

Fair, not overpriced and not underestimated. There should be prices on the Service website. Necessarily! without asterisks, clear and detailed, where technically possible - as accurate and concise as possible.

If spare parts are available, up to 85% of complex repairs can be completed in 1-2 days. Modular repairs require much less time. The website shows the approximate duration of any repair.

Warranty and responsibility

A guarantee must be given for any repairs. Everything is described on the website and in the documents. The guarantee is self-confidence and respect for you. A 3-6 month warranty is good and sufficient. It is needed to check quality and hidden defects that cannot be detected immediately. You see honest and realistic terms (not 3 years), you can be sure that they will help you.

Half the success in Apple repair is the quality and reliability of spare parts, so a good service works directly with suppliers, there are always several reliable channels and your own warehouse with proven spare parts for current models, so you don’t have to waste extra time.

Free diagnostics

This is very important and has already become a rule of good manners for the service center. Diagnostics is the most difficult and important part of the repair, but you don't have to pay a penny for it, even if you don't repair the device based on its results.

Service repairs and delivery

A good service values ​​your time, so it offers free delivery. And for the same reason, repairs are carried out only in the workshop of a service center: they can be done correctly and according to technology only in a prepared place.

Convenient schedule

If the Service works for you, and not for itself, then it is always open! absolutely. The schedule should be convenient to fit in before and after work. Good service works on weekends and holidays. We are waiting for you and working on your devices every day: 9:00 - 21:00

The reputation of professionals consists of several points

Company age and experience

Reliable and experienced service has been known for a long time.
If a company has been on the market for many years and has managed to establish itself as an expert, people turn to it, write about it, and recommend it. We know what we are talking about, since 98% of incoming devices in the service center are restored.
Other service centers trust us and refer complex cases to us.

How many masters in areas

If there are always several engineers waiting for you for each type of equipment, you can be sure:
1. there will be no queue (or it will be minimal) - your device will be taken care of right away.
2. you give your Macbook for repair to an expert in the field of Mac repairs. He knows all the secrets of these devices

Technical literacy

If you ask a question, a specialist should answer it as accurately as possible.
So that you can imagine what exactly you need.
They will try to solve the problem. In most cases, from the description you can understand what happened and how to fix the problem.

Kali Linux does not see the wifi module?

Hello everyone, this is another lesson on resolving issues regarding malfunctions and incompatibility of some installed equipment in laptops with the Kali Linux operating system installed. I don’t pretend to be comprehensive, I’ll show you how I resolved the issue with a specific laptop model. Kali is installed on the hard drive by the main system - not a VIRTUAL! If you prefer to work in a virtual machine, please refer to the article for some information

The machine parameters are:

  • There is a budget laptop Lenovo B590
  • On board Kali Linux version 2.0
  • Intel processor with 2 cores (we'll look at the list later...)
  • We don’t care about disk or RAM, because...

Symptoms:

Without an additional modem, wifi does not work, Kali Linux does not see any wifi, and in general the system does not understand whether a wireless connection module is installed inside. I'll look at the solution to the problem step by step.

We start any operations with the command:

apt-get clean && apt-get update && apt-get upgrade

First, let's take a look at the list of installed equipment for receiving and broadcasting signals. He is not rich:

Now let's take a look at what is installed on board the Lenovo B590 and whether it works (yes it works, of course; from under the second one installed on the same Lenovo B590 windows 7, wifi works fine). Let’s enter a command to view all equipment; for those who don’t remember, remember – it will come in handy:

And here is the module installed on the Lenovo B590 of this version, 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 is in place, but the driver is not. Having turned to the driver support page (and then it looked like this) of this family for Linux, and looking closely at the multi-colored plate of the list of supported devices, I discovered that the device on the list was not without problems:

Well, we can’t sit without wifi, and don’t buy a cheap USB module (don’t even think about buying another module for your laptop without thinking - there’s a 99% chance that the laptop’s configuration simply won’t allow you to do this). But we need alpha cards for something else. Let's go to Debian for help and see what's new for us. It turns out that there has been for a long time. Then install the latest versions of packages linux-image, linux-headers And broadcom-sta-dkms. Let's open a terminal and use the familiar command (some flags might be outdated). But first, let’s add another repository to Kali:

Leafpad /etc/apt/sources.list

Here we will write the new address on a new line:

deb http://httpredir.debian.org/debian/ stretch main contrib non-free

And now the installation:

Apt-get update apt-get install linux-image-$(uname -r|sed "s,[^-]*-[^-]*-,") linux-headers-$(uname -r|sed "s ,[^-]*-[^-]*-,") broadcom-sta-dkms

Don’t look at the terminal comments in the picture, I already have everything. Follow the syntax of the command (it didn’t all fit into the photo - I noticed it too late). Dynamic module core support DKMS will install a new device in Kali called wl. Now let's unload the conflicting modules (if any):

Modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

And finally, load the newly formed module:

Modprobe wl

If the terminal does not return any errors, there is no need to reboot. Let's check what it shows NetworkManager Kali:

The manager noticed the wifi module in our Lenovo B590. Let's check if it is in the list of devices via the terminal:

iwconfig

Hello... The newly created wlan6 monitoring mode will not be supported, but it is sufficient for comfortable “official” work. If at any stage the terminal curses, do not restart Kali with the command for a full update:

Apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

and repeat the installation. Good luck.







2024 gtavrl.ru.