Kali linux windows installation

Kali linux windows installation

Installing Kali Linux next to a Windows installation has its benefits. However, you need to exercise caution during the setup process. First, make sure that you’ve backed up any important data on your Windows installation. Since you’ll be modifying your hard drive, you’ll want to store this backup on external media. Once you’ve completed the backup, we recommend you peruse our Kali Linux Hard Disk install guide, which explains the normal procedure for a basic Kali Linux install.

In our example, we will be installing Kali Linux alongside an installation of Windows (10), which is currently taking up 100% of the disk space in our computer. We will start by resizing our current Windows partition to occupy less space and then proceed to install Kali Linux in the newly-created empty partition.

Installation Prerequisites

This guide will make the following assumptions:

  • You have read our single boot Kali Linux install guide, as this has the same Installation Prerequisites (System requirements & setup assumptions).
  • When downloading Kali Linux, pick the live image, rather than the installer option.
  • A single disk to install to (rather than a dedicated disk per operating system).

We need to use a different image from the single boot Kali Linux install guide, as we need the live image. This is because we need to edit the disk structure without mounting any partitions (otherwise they would be in-use). After we have finished altering the disk layout, we can still install Kali Linux using the live image, but there will be a few differences such as:

Both of these can be addressed post installation, as it saves swapping to the installer image (as you will need either multiple CD/DVD/USBs or to re-image half way though).

This installation has the potential to go wrong very easily as it involves editing existing partitions. Be aware of what partitions you are modifying and where you are installing Kali Linux to.
Having a backup of your Linux files available is a good idea in the event something goes wrong.

Resize Windows Procedure

Before we can install Kali Linux, there needs to be room on the hard disk. By booting into a live Kali Linux session with your chosen installation medium, we can resize the partition to our desired size, as the disk will not be in use because Kali Linux will all be in memory.

  1. Before Resizing the disk, Make Sure Fast Startup is turned off in Windows 10 so that we don’t get an error while resizing the partition. If you don’t know how to do that:- Open Control Panel > Hardware and Sound > Power Options > On the left, click Choose what the power buttons do > Then at the top, click Change Settings that are currently unavailable (This will ask for administrator permissions) > Now Unselect the Turn on fast startup option and click Save Changes at the bottom. Now you are ready to resize the partition.
  2. To start resizing, make sure you insert your Kali Linux installation medium and power on the device. If needed, press any keyboard shortcuts for a “boot order menu” (depends on each manufacture) or boot into BIOS/UEFI and change the boot order to point to the installation medium first.
  3. When the boot menu/options appears, you should see at least one new option. Depending on the manufacture, hardware, how the system is configured and install medium, you may see more options (e.g. Can you boot into non-UEFI?).

You may need to try a few different options in order to find success.

Читайте также:  Linux red hat firewall

You may need to disable secure boot

  1. You should be greeted with the Kali Linux boot screen. Select Live, and you should be booted into the Kali Linux default desktop.

  1. Now launch GParted, which we’ll use to shrink the existing Windows partition to give us enough room to install Kali Linux in the free space.

  1. Once GParted has opened, select your Windows partition ( /dev/sda2 ) & resize it leaving enough space (we recommend at least 20 GB) for the Kali Linux installation.

Depending on your setup, it is often the second option (the largest partition). In our example, there are three partitions:

  • Window’s boot partition ( /dev/sda1 )
  • Window’s main operating system itself ( /dev/sda2 )
  • Window’s System Recovery partition ( /dev/sda3 )

If you are moving past into any non-white in the partition then you are editing a section that is in use.
Only remove from the area of the partition that is not in use.
It is normal to leave the third partition ( /dev/sda3 ), and only shrink the actual install ( /dev/sda2 ).

If you wish to organize the partition to group all the Windows partitions together, placing the free space at the end, you may do so.

  1. Once you have resized your Windows partition, ensure you “Apply All Operations” on the hard disk. Exit gparted and reboot.

Kali Linux Installation Procedure

  1. The installation procedure from this point onwards is similar to a Kali Linux Hard Disk install, until the point of the partitioning. At this point, you need to select “Guided — use the largest continuous free space(rather than “Guided — the entire disk”) which got created earlier with gparted.

  1. You can carry on following the single boot Kali Linux install guide, except you will not have the option to select desktop environment or metapackages as you are using the live image. Once the installation is done, reboot.

You should be greeted with a GRUB boot menu, which will allow you to boot either into Kali Linux or Windows.

Post Installation

Now that you’ve completed installing Kali Linux, it’s time to customize your system.

The General Use section has more information and you can also find tips on how to get the most out of Kali Linux in our User Forums.

Читайте также:  Узнать видеокарту компьютера linux

Time/System Clock

One thing that may be worth knowing about is that occasionally the time will get changed between the Windows and the Linux system. To fix this, we can do the following:

[email protected]:~$ timedatectl set-local-rtc 1 --adjust-system-clock [email protected]:~$ 

To undo this we can simply do:

[email protected]:~$ timedatectl set-local-rtc 0 --adjust-system-clock [email protected]:~$ 

Источник

Kali on the Windows Subsystem for Linux

Update : This post is outdated. For a better way of getting Kali Linux on Windows 10, install Kali Linux from the App store.

We’re always on the prowl for novel environments to run Kali on, and with the introduction of the Windows Subsystem for Linux (WSL) in Windows 10, new and exciting possibilities have surfaced. After all, if the WSL can support Ubuntu, it shouldn’t be too hard to incorporate another Debian-like distribution, right? This is especially true with the Windows Subsystem for Linux Distribution Switcher utility.

Kali on … Windows? Really?

While this setup of Kali on Windows is not optimal due to various environmental restrictions (such as the lack of raw sockets and lack of customised Kali kernel), there are still many situations where having Kali Linux alongside your Windows 10 machine can be beneficial. One example that comes to mind is consolidation of workspaces, especially if Windows is your main working environment. Other useful situations that crossed our minds were standardizing tools and scripts to run across multiple environments, quick porting of Linux penetration testing command line tools to Windows, etc. For example, below is a screenshot of running the Metasploit Framework from Kali Linux, over WSL.

Setting up the Environment

While the setup is described well over at the WSL Distribution Switcher README file, we’ve made a quick 4-minute video to walk you through the setup and installation process. For an easier copy / paste operation, these are the basic steps taken:

1. Update your Windows 10 machine. Open an administrative PowerShell window and install the Windows Subsystem with this one-liner. A reboot will be required once finished:

2. Once rebooted, open a command line shell and run the following commands to install the default Ubuntu environment. This will lay down the foundations for our Kali install:

3. Setup and install the WSL Switcher, download a Kali base, and extract it to disk:

4. Now that Kali is set up on your Windows 10 machine, you can interact with it by running the “bash” command:

5. At this point, you’re inside Kali and you can use it as you normally do–install packages, use tools, etc. We strongly recommend first running an update and upgrade:

Without further ado, here’s the video demonstration of the setup described above:

Источник

Kali linux windows installation

Win-KeX provides a GUI desktop experience for Kali Linux in Windows Subsystem for Linux (WSL 2) with the following features:

  • Window mode: start a Kali Linux desktop in a dedicated window
  • Seamless mode: share the Windows desktop between Windows and Kali application and menus
  • Enhanced session mode: Similar to Hyper-V, uses RDP for a more feature rich experience
  • Sound support
  • Shared clipboard for cut and paste support between Kali Linux and Windows
  • Root & unprivileged session support
  • Multi-session support: root window & non-privileged window & seamless sessions concurrently
  • Fully compatible with WSLg
Читайте также:  Ndg linux essentials answers

Seamless mode

This page details the steps to install Win-KeX in under 2 minutes.

Installation

All installation steps, up to the point where we install Win-KeX, are also explained in the 5 minute video guide by NetworkChuck: New Kali Linux GUI on Windows 10 (WSL 2) // 2020.3 Release

Prerequisites

Install Win-KeX

Inside of Kali WSL, install Win-KeX via:

[email protected]:~$ sudo apt update [email protected]:~$ [email protected]:~$ sudo apt install -y kali-win-kex 

Run Win-KeX

Win-KeX supports the following three modes.

Window Mode

Window Mode

To start Win-KeX in Window mode with sound support, run either:

Refer to the Win-KeX Window Mode usage documentation for further information.

Enhanced Session Mode

Enhanced Session Mode

To start Win-KeX in Enhanced Session Mode with sound support and ARM workaround, run either:

  • Inside of Kali WSL: kex —esm —ip -s
  • On Window’s command prompt: wsl -d kali-linux kex —esm —ip -s

Seamless Mode

Seamless Mode

To start Win-KeX in Seamless mode with sound support, run, run either:

Refer to the Win-KeX SL usage documentation for further information.

Optional Steps

Kali’s Default Tools

If you have the space, why not install “Kali with the lot”? This will also give you the traditional “default” tools of Kali that you may expect:

sudo apt install -y kali-linux-large 

Windows Terminal

Choose amongst these options:

Basic Win-KeX in window mode with sound:

", "hidden": false, "name": "Win-KeX", "commandline": "wsl -d kali-linux kex --wtstart -s", >, 

Advanced Win-KeX in window mode with sound — Kali icon and start in kali home directory:

Copy the kali-menu.png icon across to your windows picture directory and add the icon and start directory to your WT config:

", "hidden": false, "icon": "file:///c:/users//pictures/icons/kali-menu.png", "name": "Win-KeX", "commandline": "wsl -d kali-linux kex --wtstart -s", "startingDirectory" : "//wsl$/kali-linux/home/" >, 

Basic Win-KeX in seamless mode with sound:

", "hidden": false, "name": "Win-KeX", "commandline": "wsl -d kali-linux kex --sl --wtstart -s", >, 

Advanced Win-KeX in seamless mode with sound — Kali icon and start in kali home directory:

Copy the kali-menu.png icon across to your windows picture directory and add the icon and start directory to your WT config:

", "hidden": false, "icon": "file:///c:/users//pictures/icons/kali-menu.png", "name": "Win-KeX", "commandline": "wsl -d kali-linux kex --sl --wtstart -s", "startingDirectory" : "//wsl$/kali-linux/home/" >, 

Basic Win-KeX in ESM mode with sound:

", "hidden": false, "name": "Win-KeX", "commandline": "wsl -d kali-linux kex --esm --wtstart -s", >, 

Advanced Win-KeX in ESM mode with sound — Kali icon and start in kali home directory:

Copy the kali-menu.png icon across to your windows picture directory and add the icon and start directory to your WT config:

", "hidden": false, "icon": "file:///c:/users//pictures/icons/kali-menu.png", "name": "Win-KeX", "commandline": "wsl -d kali-linux kex --esm --wtstart -s", "startingDirectory" : "//wsl$/kali-linux/home/" >, 

Help

For more information, ask for help via:

Updated on: 2023-May-15
Author: Re4son

Источник

Оцените статью
Adblock
detector