
The examples below are from a system running Windows Insider build 1.1. PrerequisitesĪt the time of writing this blog post you must run Windows 10 build 18917 or higher, which means that you need to be at least on the slow ring of the Windows Insiders builds. Now let me be honest here all the information described below does already exist across various websites and forums, the primary objective of this blog post is to put it all in one place to provide others and myself with all the necessary instructions to get kali linux up and running in WSL 2.0 and use RDP to connect to the kali desktop.


What’s nice about running kali in WSL is that you get easy and quick access to linux tools without having to setup and start a complete virtual machine.īut what if you want to run a tool with a GUI? Well with a few tricks that works as well.

Here in this setup, we will simply use venv based approach.Since Microsoft introduced WSL ( Windows Subsystem for Linux) I’ve been playing with it occasionally, in the beginning however some of the tools I wanted to use like nmap and hping3 would not work due to issues with networking in WSL 1.0, however with WSL 2.0 these issues seem to be resolved so gave it another try earlier this year in June and all worked as expected. Managing packages using virtual environments is aa a new chore here to do things more proficiently. Python setup can be fun, to begin with, but can go tricky when you pursue advanced stuff in it. If this works, you have just confirmed your python setup is working properly. Type python3 and you will get an interactive environment. We would certainly get python3 pre-installed in the Linux system, but if not, then just install using sudo apt install python3 in the terminal. To work on WSL with VS Code together, VS Code is installed in Windows and called from the WSL system as simple as a code command. Also, the plus is it keeps evolving and getting better over time. I have been using Visual Studio Code for a long time (since 2016), and I realized programming experience is lit💯. For some cases, like in the apache2 server, it has been found that loopback for works properly even when running the g Apache server on WSL2. You can get the IP address using ip route command in your Linux terminal. This is better to know when you are working with WSL2.

Please be noted that the whole or a part of the article is applicable in the full Linux installation.īefore beginning be sure to check the IP address of your VM and the host machine.
