Kali Linux – Fresh Installation Guide

Kali Linux is arguably one of the best out of the box Linux distributions available for security testing. While many of the tools in Kali can be installed in most Linux distributions, the Offensive Security team developing Kali has put countless hours into perfecting their ready to boot security distribution.

Kali Linux is a Debian based, security distribution. The distribution comes pre-loaded with hundreds of well known security tools and has gained quite a name for itself.

Kali even has an industry respected certification available called “Pentesting with Kali”. The certification is a rigorous 24 hour challenge in which applicants must successfully compromise a number of computers with another 24 hours to write up a professional penetration test report that is sent to and graded by the personnel at Offensive Security. Successfully passing this exam will allow the test taker to obtain the OSCP credential.

The focus of this guide and future articles is to help individuals become more familiar with Kali Linux and several of the tools available within the distribution.

Please be sure to use extreme caution with the tools included with Kali as many of them can accidentally be used in a manner that will break computer systems. The information contained within all of these Kali articles is intended for legal usages.

System Requirements

Kali has some minimum suggested specifications for hardware. Depending upon the intended use, more may be desired. This guide will be assuming that the reader will want to install Kali as the only operating system on the computer.

  1. At least 10GB of disk space; strongly encouraged to have more
  2. At least 512MB of ram; more is encouraged especially for graphical environments
  3. USB or CD/DVD boot support
  4. Kali Linux ISO available from https://www.kali.org/downloads/

Create a Bootable USB Using dd Command

This guide will be assuming that a USB drive is available to use as the installation media. Take note that the USB drive should be as close to 4/8GB as possible and ALL DATA WILL BE REMOVED!

The author has had issues with larger USB drives but some may still work. Regardless, following the next few steps WILL RESULT IN DATA LOSS ON THE USB DRIVE.

Please be sure to backup all data before proceeding. This bootable Kali Linux USB drive is going to be created from another Linux machine.

Step 1 is to obtain the Kali Linux ISO. This guide is going to use the current newest version of Kali with the Enlightenment Linu desktop environment.

To obtain this version, type the following into a terminal.

$ cd ~/Downloads
$ wget -c http://cdimage.kali.org/kali-2016.2/kali-linux-e17-2016.2-amd64.iso

The two commands above will download the Kali Linux ISO into the current user’s ‘Downloads’ folder.

The next process is to write the ISO to a USB drive to boot the installer. To accomplish this we can use the ‘dd’ tool within Linux. First, the disk name needs to be located with lsblk command though.

$ lsblk
Find Out USB Device Name in Linux

Find Out USB Device Name in Linux

With the name of the USB drive determined as /dev/sdc, the Kali ISO can be written to the drive with the ‘dd’ tool.

$ sudo dd if=~/Downloads/kali-linux-e17-2016.2-amd64.iso of=/dev/sdc

Important: The above command requires root privileges so utilize sudo or login as the root user to run the command. Also this command will REMOVE EVERYTHING on the USB drive. Be sure to backup needed data.

Once the ISO is copied over to the USB drive, proceed further to install Kali Linux.

Installation of Kali Linux Distribution

1. First, plug the USB drive into the respective computer that Kali should be installed upon and proceed to boot to the USB drive. Upon successful booting to the USB drive, the user will be presented with the following screen and should proceed with the ‘Install’ or ‘Graphical Install’ options.

This guide will be using the ‘Graphical Install’ method.

Kali Linux Boot Menu

Kali Linux Boot Menu

2. The next couple of screens will ask the user to select locale information such as language, country, and keyboard layout.

Once through the locale information, the installer will prompt for a hostname and domain for this install. Provide the appropriate information for the environment and continue installing.

Set Hostname for Kali Linux

Set Hostname for Kali Linux

Set Domain for Kali Linux

Set Domain for Kali Linux

3. After setting up the hostname and domain name, the root user’s password needs to be set. DO NOT FORGET THIS PASSWORD.

Set Root User Password for Kali Linux

Set Root User Password for Kali Linux

4. After setting the password is set, the installer will prompt for time zone data and then pause at the disk partitioning.

If Kali will be the only operating on the machine, the easiest option is to use ‘Guided – Use Entire Disk’ and then select the storage device you wish to install Kali.

Select Kali Linux Installation Type

Select Kali Linux Installation Type

Select Kali Linux Installation Disk

Select Kali Linux Installation Disk

5. The next question will prompt the user to determine the partitioning on the storage device. Most installs can simply put all data on one partition though.

Install Kali Linux Files in Partition

Install Kali Linux Files in Partition

6. The final step with ask the user to confirm all changes to be made to the disk on the host machine. Be aware that continuing will ERASE DATA ON THE DISK.

Confirm Disk Partition Write Changes

Confirm Disk Partition Write Changes

7. Once confirming the partition changes, the installer will run through the process of installing the files. Once it is completed, the system will want to setup a network mirror to obtain future pieces of software and updates. Be sure to enable this functionality if you wish to use the Kali repositories.

Configure Kali Linux Package Manager

Configure Kali Linux Package Manager

8. After selecting a network mirror, the system will ask to install grub. Again this guide is assuming that Kali is to be the only operating system on this computer.

Selecting ‘Yes’ on this screen will allow the user to pick the device to write the necessary boot loader information to the hard drive to boot Kali.

Install GRUB Boot Loader

Install GRUB Boot Loader

Select Partition to Install GRUB Boot Loader

Select Partition to Install GRUB Boot Loader

9. Once the installer finishes installing GRUB to the disk, it will alert the user to reboot the machine to boot into the newly installed Kali machine.

Kali Linux Installation Completed

Kali Linux Installation Completed

10. Since this guide installed Enlightenment as the Kali desktop environment, it will likely default boot into a shell.

In order to launch Enlightenment, log in as the user ‘root‘ with the password created earlier in the installation process.

Once logged in all that needs to be issued to start Enlightenment is the command ‘startx‘.

# startx
Start Enlightenment Desktop in Kali Linux

Start Enlightenment Desktop in Kali Linux

The first time that Enlightenment is run, it will ask the user for some configuration preferences and then launch the Desktop Environment.

Kali Linux Enlightenment Desktop

Kali Linux Enlightenment Desktop

At this point, Kali is successfully installed and ready to be used! Upcoming articles will walk through the tools available within Kali and how the can be utilized to test the security posture of hosts and networks. Please feel free to post any comments or questions below.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Rob Turner

Rob Turner is an avid Debian user as well as many of the derivatives of Debian such as Devuan, Mint, Ubuntu, and Kali. Rob holds a Masters in Information and Communication Sciences as well as several industry certifications from Cisco, EC-Council, ISC2, Linux Foundation, and LPI.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

15 Responses

  1. Ron says:

    So you need to be running Linux to install linux?
    What do you do if you only have Windows?

  2. Ritesh Benjwal says:

    Thanks for this in-depth article. But i prefer virtual box for kali Linux.

    Keep sharing. .

  3. pugaz says:

    unable to ssh to my newly installed kali Linux box. Have installed and enabled ssh service, disabled ufw

  4. Heri Mosses says:

    Its a very helpful article but why do i get a problem after the keyboard selection? it says mounting Cd rom failed even-though i am using bootable usb drive?

  5. Vansh says:

    Omg thanks man this helped me so much this article is so underrated this should be on top of google. Thanks

  6. mogorosi says:

    I have installed Kali Linux, but it rejected my password what might be the problem? because I used my name as password how would I forget my name?

    • Rob Turner says:

      Mogorosi,

      Did you actually install Kali? The live version and some older versions of Kali will have a root password or ‘toor’ without the quotes. If you have forgotten your root password, there is still a way to recover it by booting into single user mode.

  7. Micael Engrácia says:

    Very nice article Rob Turner, I love the article , you made this very easy and clear instructions to install Kali. By the way I created a infographic about Kali Linux, I thought it will be a nice addition to article, if you are interested check my infographic.

    Keep up the good job Rob!

  8. OKCarl says:

    We need a follow up tutorial on the how to of carving out a big persistence partition. Penetration Testers need a lot of free space to store their dictionary / wordlists.

    • Rob Turner says:

      OKCarl,

      This guide goes through a persistent install of Kali on a hard drive not an install on a USB drive. Anything done after Kali is installed using this method, will be saved as a result.

  9. UPP says:

    Kali is great and it should be essential in the repertoire of any serious system administrator….

  10. kumar says:

    Hi, very nice article

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.