WSL-Distribution-Switcher: install Kali Linux (any Linux distro) on Windows Subsystem
Windows Subsystem for Linux Distribution Switcher
The purpose of this project is to let you easily download and install new Linux distributions under Windows Subsystem for Linux and seamlessly switch between them.
The rootfs archives are currently downloaded from Docker Hub’s official images’ repositories (“source”) or published image layers (“prebuilt”).
If you want to read about some of the challenges I faced while implementing the scripts, you can check out this blog post. This readme only contains usage information and some troubleshooting.
Usage
The scripts provided here are written in Python 3, and they need to be run from Windows, NOT from WSL. You can download a Python 3 installer from their official website, or you can use the one bundled with Cygwin. Since WSL is stored in %LocalAppData%
for each user, you don’t need admin rights in order to use any of the scripts.
To begin, clone the repository or download a copy of it.
Obtaining tarballs
get-source.py
This script can download the tarballs for the official images in Docker Hub.
The first argument of the script is the name of the image, optionally followed by a colon and the desired tag: get-source.py image[:tag]
. For example, to get the rootfs tarball for Debian Sid, just run get-source.py debian:sid
. If you don’t specify a tag, latest
will be used, which is generally the stable edition of the distribution.
For presentation purposes, the following images and tags are available as of August 18th:
- debian – 8.5, 8, jessie, latest | jessie-backports | oldstable | oldstable-backports | sid | stable | stable-backports | stretch |testing | unstable | 7.11, 7, wheezy | wheezy-backports | rc-buggy | experimental
- ubuntu – 12.04.5, 12.04, precise-20160707, precise | 14.04.5, 14.04, trusty-20160802, trusty | 16.04, xenial-20160809, xenial, latest | 16.10, yakkety-20160806.1, yakkety, devel
- fedora – latest, 24 | 23 | 22 | 21 | rawhide | 20, heisenbug
- centos – latest, centos7, 7 | centos6, 6 | centos5, 5 | centos7.2.1511, 7.2.1511 | centos7.1.1503, 7.1.1503 | centos7.0.1406, 7.0.1406 | centos6.8, 6.8 | centos6.7, 6.7 | centos6.6, 6.6 | centos5.11, 5.11
- opensuse – 42.1, leap, latest | 13.2, harlequin | tumbleweed
- mageia – latest, 5
- oraclelinux – latest, 7, 7.2 | 7.1 | 7.0 | 6, 6.8 | 6.7 | 6.6 | 5, 5.11
- alpine – 3.1 | 3.2 | 3.3 | 3.4, latest | edge
- crux – latest, 3.1
- clearlinux – latest, base
To install Kali Linux, you can do as below
Demo
Kali on Windows 10 via Windows Subsystem for Linux from Offensive Security on Vimeo.
More info, please visit here.
Copyright (c) 2016 RoliSoft <root@rolisoft.net>
Source: https://github.com/RoliSoft/