Kali Linux: WSL 2 install and GUI setup

Sdílet
Vložit
  • čas přidán 27. 06. 2024
  • Learn how to get Kali Linux installed and running on WSL 2 on a Windows 10 computer. I'll also show you how to install applications like nmap and get a GUI working with Kali Linux. By default, when you install Kali Linux with WSL 2, you won't have a GUI, but in this video I'll show you how to get that installed and configured. Go from zero to hero with Kali Linux on WSL 2.
    WSL2 is part of Windows 10, version 2004 which was released in May 2020. Rather than using a translation or compatibility layer between Linux and Windows which was used in WSL 1, WSL 2 uses virtual machine technology to allow you to run a real Linux kernel directly on Windows 10. This also allows you to run Docker within Ubuntu running on Windows 10.
    Menu:
    Overview: 0:00
    Lab setup: 0:50
    Kali website feedback: 1:01
    Install Kali: 1:56
    Ping network devices: 3:19
    View WSL Virtual Machines: 3:40
    Install nmap: 4:00
    Use nnamp to scan ports: 4:28
    Install Kali GUI: 6:33
    Use Remote Desktop (RDP) to connect to Kali: 7:32
    WSL 2 Playlist:
    • WSL 2 (Windows Subsyst...
    Useful commands:
    nmap: sudo nmap -sS -A --open --top-ports 500 192.168.1.249
    GUI install:
    sudo apt install xfce4
    sudo apt install xrdp
    sudo /etc/init.d/xrdp start
    Good Links:
    What is WSL? docs.microsoft.com/en-us/wind...
    WSL documentation: docs.microsoft.com/en-us/wind...
    WSL 2 Announcement: devblogs.microsoft.com/comman...
    WSL2
    Kali Linux
    Ubuntu 20.04
    WSL 2
    WSL 1
    Ubuntu 18.04
    windows subsystem for linux
    #wsl2 #kalilinux #windows
  • Věda a technologie

Komentáře • 348

  • @davidbombal
    @davidbombal  Před 4 lety +28

    Menu:
    Overview: 0:00
    Lab setup: 0:50
    Kali website feedback: 1:01
    Install Kali: 1:56
    Ping network devices: 3:19
    View WSL Virtual Machines: 3:40
    Install nmap: 4:00
    Use nnamp to scan ports: 4:28
    Install Kali GUI: 6:33
    Use Remote Desktop (RDP) to connect to Kali: 7:32
    WSL 2 Playlist:
    czcams.com/play/PLhfrWIlLOoKNMHhB39bh3XBpoLxV3f0V9.html
    Good Links:
    What is WSL? docs.microsoft.com/en-us/windows/wsl/about
    WSL documentation: docs.microsoft.com/en-us/windows/wsl/
    WSL 2 Announcement: devblogs.microsoft.com/commandline/announcing-wsl-2/

    • @Eugensson
      @Eugensson Před 4 lety

      You must install Windows Terminal on your Win10 host!

    • @csp405
      @csp405 Před 4 lety

      The best way to predict the future is to create it
      David Bombal wall

    • @kymaeryk
      @kymaeryk Před 4 lety

      Hey David I know you're busy, but Ibam really new to all of this and when it gets to the part where you type in the wsl -l -v command my powershell doesn't display the same results yours does.

    • @kymaeryk
      @kymaeryk Před 4 lety

      Instead what it does is show the following:
      Usage: wsl.exe [Argument] [Options...] [CommandLine]
      Arguments to run Linux binaries:
      If no command line is provided, wsl.exe launces the default shell
      And it continues on into what I assume are some boilerplate options. I am not really certain as to how to effectively research this problem in order to solve it myself or what to do based off this video. Could you or anyone who knows point me in the right direction or tell me what I am doing incorrect. It was fine up until this point.

    • @X400DYL
      @X400DYL Před 3 lety

      @@kymaeryk just use wsl -l

  • @patrickimoh
    @patrickimoh Před 4 lety +6

    Another great use of my time... Glad I got a notification for this video... Thanks for this David - very informative...

  • @user-st2cn8ye7e
    @user-st2cn8ye7e Před 4 lety +4

    Excellent video very detailed, accurate ,tons of information!!! Though I haven't learned any Linux operating system!!!

  • @billapatigoutham6066
    @billapatigoutham6066 Před 3 lety +1

    Finally, I have installed Kali Linux with GUI. Thank you so much !!

  • @chukwukafestus4940
    @chukwukafestus4940 Před 3 lety +1

    David always at it best thanks for this very informative content

  • @sanddeeprudhra5597
    @sanddeeprudhra5597 Před 4 lety

    Thank God, you are finally back to the UK, you must have missed your family terribly.

  • @nigel3270
    @nigel3270 Před 4 lety +2

    Awesome video David, I also use xrdp/rdp to remote into my Raspberry Pi. Keep up the great work!

    • @davidbombal
      @davidbombal  Před 4 lety +2

      Thank you Nigel! Agreed xrdp/rdp is great for remote management :)

  • @AbdirahmanEssa
    @AbdirahmanEssa Před 4 lety

    Best video, top of the top and no need to reboot the machine to Linux

  • @jesso6670
    @jesso6670 Před 3 lety

    So far best CZcams channel for studying networking.

    • @davidbombal
      @davidbombal  Před 3 lety

      Thank you for that amazing compliment!

  • @User_jkjsbbk
    @User_jkjsbbk Před 2 lety

    I used vncserver with vncviewer. But now I see I could save my time with Remote Desktop , thank you for gui tutorial

  • @jacquesmahoudeaux9783
    @jacquesmahoudeaux9783 Před 4 lety

    Nice video !
    Thank you for the rdp tips to connect GUI :D

  • @networktastic
    @networktastic Před 4 lety +3

    Hey David, really cool... Nice to see that WSL2 is a quantum leap from v1, and thanks for showing how to to use its new abilities. I would be interested in configuring Kali and its provided apps effectively (WSL, VBox, Player, Pro) for network and vulnerability scanning. Network scanning specifically for discovery of rouge and unknow devices and to run a basic fingerprint against those discovered devices to at least know if they were Linux, Windows, or another device. Zenmap is a little messy (at least to me)... But keep the WSL Series up it is great!

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Thank you Kevin. I had issues with WSL 2 and VMware / VirtualBox with nested virtualization. Until they fix the issues, we are stuck using one or the other :(

  • @tenmaxim1904
    @tenmaxim1904 Před 4 lety

    Very good content as always! Biiig thanks!

  • @madaraekouta8058
    @madaraekouta8058 Před 4 lety +2

    I realy appreciate what you do.Awesome Content

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Thank you Madara. I appreciate that!

  • @icibranc
    @icibranc Před 3 lety

    Thank you so much. As always, a new usefull video.

  • @jdesu
    @jdesu Před 4 lety +1

    Great Video , this thing mostly important for Us

  • @rick98765
    @rick98765 Před 4 lety

    Wonderful tutorial, thank you!

  • @imkir4n
    @imkir4n Před 4 lety +5

    Thank you for the video ❤️✌️

  • @tau124
    @tau124 Před 4 lety

    Great video as always David. Question - does Kali on WSL2 have undercover mode? :)

  • @krah8052
    @krah8052 Před 4 lety

    Excellent video! Thank you!

  • @juswatv94
    @juswatv94 Před 4 lety

    Very helpful, thanks David

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Glad you found the video useful Joshua!

  • @kap5ul
    @kap5ul Před 3 lety

    I love your video, it's awesome!

  • @otto_nichele
    @otto_nichele Před 3 lety

    Thanks from Brazil!!!!!!! :)

  • @Pannu_Short_Vibes
    @Pannu_Short_Vibes Před rokem

    Thanku so much David❤

  • @stevecross9159
    @stevecross9159 Před 2 lety

    Just what I wanted thanks

  • @bsummer
    @bsummer Před 2 lety

    You are just amazing

  • @taras1783
    @taras1783 Před 4 lety

    wow, i've randomly found this vid, cuz i trynna to install macos-x in docker in wsl on w10 2004. But this definently, what i'm gonna try after that.

  • @chariafdev4148
    @chariafdev4148 Před 4 lety

    Great video

  • @taimouralkabili815
    @taimouralkabili815 Před 3 lety

    Great 👍 from New York

  • @SumoTheCaneCorso
    @SumoTheCaneCorso Před 3 lety +2

    Good video, will I still be able to put wifi adapters into monitor mode using this method?

  • @ibrahimabdeltawab6418
    @ibrahimabdeltawab6418 Před 4 lety +1

    Thanks so much David

  • @MrSegersall
    @MrSegersall Před 2 lety +1

    Loving your videos. Specific to this one: is there any way to set a static IP address to WSL distro/instances so I can have rdp files named/set for them and double click to connect? Thank you in advance.

  • @vaishalipatil5155
    @vaishalipatil5155 Před 3 lety +1

    thx man very informative

  • @user-qs6iy6ly4x
    @user-qs6iy6ly4x Před 8 měsíci

    Great. Thanks!

  • @vishwpatel8362
    @vishwpatel8362 Před 4 lety

    Big Fan From India ✌️

  • @mariusavram7823
    @mariusavram7823 Před 4 lety

    Thank you! Very useful video. Can we install Ubuntu GUI and GNS3 in wsl2?

  • @yaserbasaad7984
    @yaserbasaad7984 Před 4 lety

    Awesome .. Thanks alot Bombal

  • @davidccrespi
    @davidccrespi Před 4 lety +2

    Great video as usual, next video you could deep further of Kali Linux trough WSL2

    • @davidbombal
      @davidbombal  Před 4 lety

      Thank you David. What do you want to know about Kali?

    • @tikshuv-ccna
      @tikshuv-ccna Před 4 lety +2

      @@davidbombal I want to know what can we actually do on WSL2 and what can't we do, can we use it to learn CEH? Make layer 2 attacks etc. Is it a toy for learning commands (and we should run it on VMWARE or clean), or can we actually use it to learn hacking? thanks

  • @kevinjgoff
    @kevinjgoff Před 3 lety +2

    Great video -- very helpful. I am unable to ping or access any machines on my local subnet. Kali tools (nmap for example) cannot see beyond the gateway device. Any suggestions on how to be able to access the local subnet?

  • @hanskadenge5951
    @hanskadenge5951 Před 3 lety

    Thanks man

  • @bluesdog88
    @bluesdog88 Před 3 lety +3

    After messing around with WSL for hours, I went back to my favorite subsystem for Linux: Linux ;)

  • @Alex-un5tl
    @Alex-un5tl Před 3 lety

    this is amazing

  • @Shoult55
    @Shoult55 Před 4 lety +2

    The command you used to install XFCE only installs an empty GUI. Yes it a Linux GUI running under WSL under Windows, but it's just an empty GUI. It serves no purpose other than as a proof of concept. If you want a useful Kali GUI use
    sudo apt install kali-desktop-xfce -y
    This installs XFCE with a bunch of Kali's tools already to go which is what you probably want in the first place if you're installing Kali.

  • @matthewg.garcia9415
    @matthewg.garcia9415 Před 2 lety +1

    Thanks for the content! One question, if Windows 10 already has a GUI, why do we need a GUI for Kali? Thanks! (not rhetorical, actually wondering what the benefits - if any - to having multiple GUIs on one desktop.)

  • @ManzarSahil
    @ManzarSahil Před 4 lety +3

    dnet: Failed to open device wifi0

  • @ozzybushwookie
    @ozzybushwookie Před 4 lety +2

    Could you do another vid showing how to use external usb wireless network cards please?

  • @USAhealthInsReform
    @USAhealthInsReform Před 4 lety +1

    is there a way to get the sound going through the rdp of Kali on Windows 10? It is some sort of pulse audio update and reboot or?

  • @jashondracrockett9624
    @jashondracrockett9624 Před 3 lety

    It worked! Yay!!!
    Now I can use Kali without breaking windows!!
    -_- I have a problem huh...?

  • @vinaysatishaddagarla5011
    @vinaysatishaddagarla5011 Před 4 lety +3

    Hi David it is a really nice video . I have a question ? If It works on virtualization then it will only share the logical network adapter created by windows machine ? What about the wireless network ?

    • @jax_66213
      @jax_66213 Před rokem

      What im wondering also, probably need to install Kali compatible drivers...

  • @ahmedharoon2740
    @ahmedharoon2740 Před 3 lety

    thanks a bunch for "nmap" and Kali gui, in same way, can we install xfce + xrdp in Ubuntu for gui? how to? will you please guide us steps and command in coming video?

  • @Rogosan100
    @Rogosan100 Před 4 lety

    Remenber...remain yours ports closed in your servers...on the contrary You'll be the next to be scanned rsss and...after that...enunerated...and then exploited!!! Nice vídeo David...

  • @BangFey890
    @BangFey890 Před 4 lety +1

    Usefull video for beginner like me

  • @saudia646
    @saudia646 Před 4 lety

    Love u bro....

  • @ivosavov3169
    @ivosavov3169 Před 4 lety +1

    Thank you for the great video, David. I have a question: I'm currently using Kali Linux under WSL 1. If I install WSL2, will I be able to run the same Kali and access the tools that I'm using under my Kali WSL 1, or I will have to install the tools again for WSL 2 Kali? Thank you!

    • @LewisDonofrio
      @LewisDonofrio Před 4 lety

      if you want the "Physical access tools" that Kali has then you'll need to reinstall in WSL2 wsl1 is just like 32 kernel api mappings using the Pico Driver (userspace) for all the kernel you need wsl2 (I don't use it because I think vm's are walled off machines - and excluded from domain policies and the like - more corp than home logic but yah.)

  • @niveds9090
    @niveds9090 Před 4 lety

    Very helpful.thanks a lot. But how can I get back to windows, after getting into kali GUI

  • @hecey1
    @hecey1 Před 3 lety

    Great job. I already tried this. Could you maybe install gparted and format some usb. I have got some issues with that at the moment which I don't understand. Gparted doesn't run.

  • @tuxjunkie
    @tuxjunkie Před 4 lety

    What impact does the SSD optimization bug have on WSL2 in the Win 10 2004 version? Is it even a concern? Thanks for the information.

  • @ryanten6475
    @ryanten6475 Před rokem

    Excellent video though i only watch it in 2023 👍👍👍😘😘😘

  • @Artyrian_Tyler
    @Artyrian_Tyler Před 4 lety

    А ранiше було набагато складнiше встановити Лiнукс, дякую за вiдео.

  • @sanjaykumarsingh2211
    @sanjaykumarsingh2211 Před 4 lety +2

    Luv you from india you are motivation keep doing

  • @darkoneforce2
    @darkoneforce2 Před 4 lety

    Can you do that with Cinnamon ?
    If yes, how (don't know how to use CLI instruction at all) ?

  • @LordHog
    @LordHog Před 3 lety

    I haven’t tried the released version of WSL v2, but the preview versions didn’t play well with hardware device like USB. I have not used v2 since

  • @aarondaniele4141
    @aarondaniele4141 Před rokem

    Mine works perfectly I've.also got.ubuntu on windows

  • @amarashfaq8359
    @amarashfaq8359 Před 4 lety +1

    Another great video! David, would you be able to make a video on how to get windows 10 on Mac?

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Do you mean getting Windows 10 running on VMware Fusion on a Mac?

    • @amarashfaq8359
      @amarashfaq8359 Před 4 lety

      @@davidbombal Yes! that's right :D

    • @goosuck8272
      @goosuck8272 Před 4 lety

      That's Easy just youtube it

  • @KashmirHuntOfficial
    @KashmirHuntOfficial Před 3 lety

    can i use the same process for ubuntu for gui installation / any other wsl2 / similar distro

  • @roswell2320
    @roswell2320 Před 4 lety +3

    Is there a GUI for Ubuntu to use with WSL2?
    Love you your videos by though way.

  • @manyoeur
    @manyoeur Před 4 lety

    hello David, can we install ububtu as graphics interface in wsl?

  • @kevineverall8894
    @kevineverall8894 Před 4 lety

    Hi David I love this video and your content. But I get the following error can you help please? Failed to open directory "keverall"
    error when getting information for file "/home/keveall-thinclient_drives": Transport endpoint is not connected

  • @tommck2386
    @tommck2386 Před 3 lety +3

    Is this safe on my windows machine or can it open a backdoor for malware etc?

  • @BaconRanch
    @BaconRanch Před rokem

    Hi David thank you for this....I have watched this 100 times today lol, I was finally able to get the GUI using info from here and different sites but I can not enable network connections in the GUI. What am I missing? Any help please?

  • @sourabhyadav9252
    @sourabhyadav9252 Před 4 lety

    what is the difference between wsl 2 running kali and a VM software running kali, and like a vm, does it give a separate hard disk space as a virtual hard disk assigned in a virtual machine software

  • @luigivampabbcw5172
    @luigivampabbcw5172 Před 3 lety

    Hi thank you very much ! i really like your videos.
    I have a question, does anyone, get some trouble with the sound generally and with videos on youtube they are not smouth

  • @mitch_the_-itch
    @mitch_the_-itch Před rokem

    A good next step if you have an Nvidia graphics card is to install the Cuda core driver. That made it much snappier. So snappy in fact that Id like to have a gnome4 desktop. Is there an nmap app with a gui?

  • @vilasjacob4097
    @vilasjacob4097 Před 3 lety

    Can you please guide me on how to enable the wireless adapter on Kali on WSL 2. Thank you.

  • @smign5975
    @smign5975 Před 2 lety

    can you make a video on how to set up arch gui

  • @kurdi2959
    @kurdi2959 Před 4 lety

    Well done

  • @anonymous25ja
    @anonymous25ja Před 4 lety

    🔥🖤

  • @muneeshwarmuneesh281
    @muneeshwarmuneesh281 Před 3 lety

    what is the ip you have given to ping ?..
    whether its a system default ip or u have given simply?...

  • @moondoggspicoli1583
    @moondoggspicoli1583 Před rokem

    Do you think KEX is better or XRDP?
    I think that I like XRDP better, but I had to run "apt install -y dbus-x11" to fix an error. After that it works fine.
    My only issue now is that my Kali instance gets a new IP address every time I launch it.
    It's not a big deal, just an inconvenience to have to go get the new IP and insert it into Windows RDP client.
    What is the best solution for that?

  • @abelgarrido2871
    @abelgarrido2871 Před 3 lety

    How would I connect my wsl kali to the wifi so I can watch network traffic? Haven't found a lot of material on this on google.

  • @slickace1862
    @slickace1862 Před 4 lety +1

    For some reason, my rdp disconnects on all my wsl distros once i login with xorg

  • @moinakdey9268
    @moinakdey9268 Před 3 lety

    Hello sir. My question is that it still doesn't provide us with any tools but we get all the tools when we run the .iso file in virtual box so what can we do about it?

  • @anikhil2774
    @anikhil2774 Před 4 lety +4

    Can we use Network adapter in MONITOR MODE, to run Wifite in kali ( WSL)...?
    & is it possible to run Yersinia Attacks in kali ( WSL)..?

    • @MidnightPixies
      @MidnightPixies Před 3 lety +1

      unfortunately no , its only use Ethernet virtual remote desktop connect only , try install linux with boot or virtual box instead

  • @vbcasimir3016
    @vbcasimir3016 Před 11 měsíci

    hi think your video. so could you make a video in relation to the operation of the WSL network I made an ip address on the WSL kali post I see a bridge card which is not activated yet I can ping the other machines on the network: my physical positions
    and also if it is possible to create a private network with the other WSL machines without being able to access the host? THANKS

  • @mtgmtgyoutube221
    @mtgmtgyoutube221 Před 3 lety +1

    Thanks a lot for the video. It seems to me that I did pretty much what was described in the video. I found the video after my install. However, I have 2 issues. My ip address changes all the time and I need to start the xrdp everyday, find the new ip address and then I can have my RDP session with Kali. This is not so annoying. The second issue I have is that I cannot make the bluetooth work. I have found a few things on the net but it never seems to work in my case. Anyway, I will keep searching.

    • @FancyLais
      @FancyLais Před rokem

      I do have the same prob, and I am ok with it
      but everytime that I run kali the GUI disappears, any possible fixes for this?

  • @sunilpimpalkhare9850
    @sunilpimpalkhare9850 Před 3 lety

    David Bombal : I have done all the steps as shown but my kali linux system shows that I dont have networkmanager installed on that and hence i am unable to browse through that kali linux using wsl 2. Kindly guide me in this

  • @Ki1ngOfGods
    @Ki1ngOfGods Před 3 lety

    Is there a way to access local host 3390 from another computer in the same network?

  • @alijarkas7
    @alijarkas7 Před 3 lety +1

    I'm getting a message when i lunch kali that , ( this is the minimal installation of kali linux and you likely want to install supplementary tools )
    how to fix that ?

  • @sanjeewasamaranayake
    @sanjeewasamaranayake Před 4 lety

    Managed to remote access Kali GUI. However web broswer does not load in the GUI? Does it work for you>

  • @calvin4983
    @calvin4983 Před 3 lety

    Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

  • @itzzbayzz
    @itzzbayzz Před 3 lety

    david how do i access the network manager within this as it dosnt recognize it

  • @iakashx
    @iakashx Před 4 lety

    is there any advantage using kali linux this way over VNware.?

  • @bijanmilitarey2213
    @bijanmilitarey2213 Před 3 lety +1

    which one is better or say safer: run kali on VMWare or wsl2

  • @ivanpolchenko
    @ivanpolchenko Před 3 lety

    I have both ubuntu and kali on my machine. how do I configure xrdp for both?

  • @amitmalur
    @amitmalur Před 4 lety

    Hi David - I was able to connect to Kali Linux through Remote Desktop using a third party Wrapper. But Once I log in to Kali Linux, nothing works, network is disabled, terminal emulator shows an error, browser if opened crashes...

  • @xibr
    @xibr Před 4 lety +1

    ❤❤

  • @anmolbhandari3263
    @anmolbhandari3263 Před 3 lety

    @David Bombal where shuld we type the code written in 6:46

  • @ganeshchippa1
    @ganeshchippa1 Před 4 lety

    Thank You 😊

    • @davidbombal
      @davidbombal  Před 4 lety +1

      I hope the video helps you :)

    • @ganeshchippa1
      @ganeshchippa1 Před 4 lety

      @@davidbombal Every video you post is beneficial to us.
      You are Superb Sir

  • @modemfox
    @modemfox Před 4 lety

    Could the same thing work with Ubuntu and Gnome/Unity?

  • @Raima888s
    @Raima888s Před 4 lety +15

    I had a strange (high threat - imddos botnet user-Agent kav) network trojan event come up on my threat management detection system that came from my windows machine within a couple of days after installing Kali wsl. Copied the packet capture collected from siem for further investigation. Ended up rebuilding the windows machine without Kali wsl and everything is ok again. Going to stick with just a normal Kali install running in vm's. I would advise caution on installing Kali wsl in general.