Kali Linux: WSL 2 install and GUI setup
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
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/
You must install Windows Terminal on your Win10 host!
The best way to predict the future is to create it
David Bombal wall
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.
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.
@@kymaeryk just use wsl -l
Another great use of my time... Glad I got a notification for this video... Thanks for this David - very informative...
Glad it was helpful Patrick!
Excellent video very detailed, accurate ,tons of information!!! Though I haven't learned any Linux operating system!!!
Finally, I have installed Kali Linux with GUI. Thank you so much !!
Glad it helped!
@@davidbombal where shuld we type the code written in 6:46
David always at it best thanks for this very informative content
Thank God, you are finally back to the UK, you must have missed your family terribly.
Awesome video David, I also use xrdp/rdp to remote into my Raspberry Pi. Keep up the great work!
Thank you Nigel! Agreed xrdp/rdp is great for remote management :)
Best video, top of the top and no need to reboot the machine to Linux
So far best CZcams channel for studying networking.
Thank you for that amazing compliment!
I used vncserver with vncviewer. But now I see I could save my time with Remote Desktop , thank you for gui tutorial
Nice video !
Thank you for the rdp tips to connect GUI :D
Glad it helped you Jacques!
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!
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 :(
Very good content as always! Biiig thanks!
I realy appreciate what you do.Awesome Content
Thank you Madara. I appreciate that!
Thank you so much. As always, a new usefull video.
Great Video , this thing mostly important for Us
Thank you
Wonderful tutorial, thank you!
Thank you for the video ❤️✌️
My pleasure 😊
Great video as always David. Question - does Kali on WSL2 have undercover mode? :)
Excellent video! Thank you!
Very helpful, thanks David
Glad you found the video useful Joshua!
I love your video, it's awesome!
Thanks from Brazil!!!!!!! :)
Thanku so much David❤
Just what I wanted thanks
You are just amazing
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.
Great video
Great 👍 from New York
Good video, will I still be able to put wifi adapters into monitor mode using this method?
Thanks so much David
Thank you for watching Ibrahim
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.
thx man very informative
Glad it helped
Great. Thanks!
Big Fan From India ✌️
Thank you Vishw!
Thank you! Very useful video. Can we install Ubuntu GUI and GNS3 in wsl2?
Awesome .. Thanks alot Bombal
You're welcome Yaser 😊
Great video as usual, next video you could deep further of Kali Linux trough WSL2
Thank you David. What do you want to know about Kali?
@@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
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?
Thanks man
After messing around with WSL for hours, I went back to my favorite subsystem for Linux: Linux ;)
this is amazing
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.
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.)
dnet: Failed to open device wifi0
Could you do another vid showing how to use external usb wireless network cards please?
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?
It worked! Yay!!!
Now I can use Kali without breaking windows!!
-_- I have a problem huh...?
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 ?
What im wondering also, probably need to install Kali compatible drivers...
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?
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...
Usefull video for beginner like me
Glad to hear that
Love u bro....
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!
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.)
Very helpful.thanks a lot. But how can I get back to windows, after getting into kali GUI
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.
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.
Excellent video though i only watch it in 2023 👍👍👍😘😘😘
А ранiше було набагато складнiше встановити Лiнукс, дякую за вiдео.
Glad the video was helpful :)
Luv you from india you are motivation keep doing
Thank you! Will do!
Can you do that with Cinnamon ?
If yes, how (don't know how to use CLI instruction at all) ?
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
Mine works perfectly I've.also got.ubuntu on windows
Another great video! David, would you be able to make a video on how to get windows 10 on Mac?
Do you mean getting Windows 10 running on VMware Fusion on a Mac?
@@davidbombal Yes! that's right :D
That's Easy just youtube it
can i use the same process for ubuntu for gui installation / any other wsl2 / similar distro
Is there a GUI for Ubuntu to use with WSL2?
Love you your videos by though way.
Yeah, he has another video on it
hello David, can we install ububtu as graphics interface in wsl?
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
Is this safe on my windows machine or can it open a backdoor for malware etc?
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?
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
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
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?
Can you please guide me on how to enable the wireless adapter on Kali on WSL 2. Thank you.
can you make a video on how to set up arch gui
Well done
Thank you
🔥🖤
what is the ip you have given to ping ?..
whether its a system default ip or u have given simply?...
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?
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.
For some reason, my rdp disconnects on all my wsl distros once i login with xorg
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?
Can we use Network adapter in MONITOR MODE, to run Wifite in kali ( WSL)...?
& is it possible to run Yersinia Attacks in kali ( WSL)..?
unfortunately no , its only use Ethernet virtual remote desktop connect only , try install linux with boot or virtual box instead
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
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.
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?
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
Is there a way to access local host 3390 from another computer in the same network?
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 ?
Managed to remote access Kali GUI. However web broswer does not load in the GUI? Does it work for you>
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
david how do i access the network manager within this as it dosnt recognize it
is there any advantage using kali linux this way over VNware.?
which one is better or say safer: run kali on VMWare or wsl2
I have both ubuntu and kali on my machine. how do I configure xrdp for both?
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...
❤❤
@David Bombal where shuld we type the code written in 6:46
Thank You 😊
I hope the video helps you :)
@@davidbombal Every video you post is beneficial to us.
You are Superb Sir
Could the same thing work with Ubuntu and Gnome/Unity?
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.