WSL 2: Getting started
Vložit
- čas přidán 22. 06. 2024
- The Windows Subsystem for Linux 2 (WSL 2) is here. It's now easy to get started with Linux and integrate Ubuntu 20.04 LTS quickly from within Windows 10.
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
Requirements: 1:19
Enable WSL 2: 2:36
Download Ubuntu 20.04 LTS: 3:48
Fix Error: WSL 2 requires a kernel component: 4:36
Start Ubuntu on Windows 10: 6:46
PowerShell Commands: 6:58
Download Ubuntu 18.04 LTS: 8:24
Run two versions of Ubunbu: 10:52
Use VMware Workstation Player and Virtual Box with WSL2: 12:59
Visual Studio Code, Python and Linux integration: 15:47
Connect to a Cisco switch using Python on WSL2: 19:00
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
Ubuntu 20.04
WSL 2
WSL 1
Ubuntu 18.04
windows subsystem for linux
#wsl2 #linux #windows - Věda a technologie
What a nice guy! Goes over every thing step by step like a passionate and sincere teacher.
instablaster.
second that!
there's a big difference from learning from a professional and from a random kid doing weird stuffs in a 2 hours video tutorial, thanks man, you are the best
you can tell the difference indeed
totally agreed
Menu:
Overview: 0:00
Requirements: 1:19
Enable WSL 2: 2:36
Download Ubuntu 20.04 LTS: 3:48
Fix Error: WSL 2 requires a kernel component: 4:36
Start Ubuntu on Windows 10: 6:46
PowerShell Commands: 6:58
Download Ubuntu 18.04 LTS: 8:24
Run two versions of Ubunbu: 10:52
Use VMware Workstation Player and Virtual Box with WSL2: 12:59
Visual Studio Code, Python and Linux integration: 15:47
Connect to a Cisco switch using Python on WSL2: 19:00
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/
There will be no Linux version of WSL? @davidbombal
No need to use WSL if you have Linux natively. If you want to run Linux within Linux you could use Docker, or KVM or VMware workstation for example.
Thank you
Linux running on Windows using a Apple keyboard 👌
Thanks!
combination is great actually!
Now all we need is Linux in windows in bootcamp
he was running a windows on mac and a linux on windows lol
Hate the modern apple keyboards, give me the old Quadra ones with the power button, could give them a good bash when typing.
Thank you so much, i was looking about WSL on differents french channels. But i haven't find videos like yours. Everything is explained. You are a great teacher !
Thank you Greg!
I've been waiting for my Windows laptop to upgrade to 2004 since you posted this video a few weeks back. It finally updated today so the first thing I did was install WSL2 & Ubuntu as per your instructions :) Thanks so much for this video! The integration with WSL2/Ubuntu/VSC is amazing - this is going to be so useful for me. Thanks David, I love your content.
Really happy to hear that - glad I could help!
Great video David. Thank you for the detailed introduction to wsl 2. Just installed it and really exited about putting it to some good use.
Great to hear that TJ!
Thank you VERY much, David. You are the first person on CZcams to show all small details how to get this Ubuntu-Docker stuff running i perfect harmony (on a Win 10). Thanx again!!! You truly saved my day. Best regards from Denmark
So easy to setup, other tutorials were doing weird things, thanks for this
Glad you liked it!
Absolutely fantastic WSL2 tutorial! Recently discovered how unpleasant development on Windows could be and was told to try out WSL2. I was extremely intimidated by Linux but your video absolutely proved my nerves were for nothing. Looking forward to digging through the rest of your videos!
Glad it helped! Thank you for sharing :)
Great guide. Your extended comments about version checking saved me. The only thing you needed to add was a comment about possibly needing to enable virtualization in BIOS, which is what i needed to do. I got an error when I tried to install after setting to v2. Most people might get lost, but I've been doing this for >30 years, so I just found the setting in my BIOS under CPU config and all went well. Many thanks
I very much appreciate your clear explanation and the time you spend to dive deep into things, even if they seem easy.
Thank you!
As usual, great video, Dave. Quick update. I just completed my installation of Ubuntu and it did not require the update. All is working as expected. Thanks for such excellent content!
Thank you. Great to hear that James!
The instructions are very clear, I really love this tutorial. Thanks!
super nice to go over every options and what's nice is, David goes over the error or what's needed to continue the accomplishment.
Just installed WSL 2 in my Win10 home by following your crisp and crystal clear instructions. Was waiting a lot for this upgrade. Thanks a lot.
Glad it helped!
Your videos make me get into a CCNA certification that i drop out many years ago, im not native english speaker, but your accent make your videos instructions very clear, so i keep improving my english and my networks knowledge
Thank you! I'm really happy to hear that :) Please keep on learning.
As a stone ager, I was just fascinated by seeing this guy named "Ballmer" on your show. He's looking just like our fellow Urrgh who once fought so bravely against the other tribe when they tried to capture the Great Water Pond. He fell into the water and drowned. Poor Urrgh.
Thank you for showing what we can do with WSL2 in simple e concise way.
This was a definite help. I now have WSL2 running Ubuntu 20.04.06 on my windows laptop. It is refreshing to get clear concise instructions. Thank you.
I love the way he wished us very best in the end.
Glad you liked that. And I do mean it. :)
The best tutorial in the CZcams as always! Thanks a lot David.
Thank you!
@@davidbombal So you're running Linux in a virtual machine on Windows 10, could you then virtualize another OS in Linux?
@@brandonphilander661 Yes. I'll demonstrate this using Docker :)
@@davidbombal Thank you.
Thank You David. You have made things so much easier. Wonderfully explained.
I just sorted through almost a dozen WSL 2 tutorials. None of them were as clear and concise as yours, nor as helpful. Thank you.
I already had this installed, another great video, thank you!!!
I have a dual boot on my laptop. I realize that gns3 runs better for me in Linux.
Thank you Aly. Agreed - for ultimate performance, GNS3 works best on native Linux.
yes,this man knows how each line of code works.
A really awesome video, especially covering a use case for WSL at the end of the video. Cheers man!
VERY thorough demonstration!! He didn't cut any corners and I like that he even ran into an error on the install and showed how to fix it quickly and easily! I just started a new job and they only offer Windows machines, I am really happy I saw this video today because I am doing this on my work computer. Who knows, a Windows machine may be in my future? .... naw. :-)
Running Linux over Windows on a Mac... Savage!
lol... don't want to limit myself to only one OS :)
Thank you David really appreciate this it's very helpful in troubleshooting, in the previous version you cant run WSL as well as vmware together
Agreed. This version is better, but you can still not run nested virtualization 😔 For others that are interested, I demonstrate and explain this issue at 12:59 in the video.
@@davidbombal I, too, ran into a problem running WSL version 2 and VMWare Workstation Pro. I ran into the issue when I tried to fire up my GNS3 VM after upgrading my WSL from version 1 to version 2, and I'm pretty sure that the issue is due to enabling "Virtual Machine Platform," and based on your comments here. Unfortunately, I had to revert my WSL to version 1 and disable "Virtual Machine Platform" in order for my GNS3 VM to run properly. Here is a document I created showing what happened (maybe it might be helpful):
app.box.com/s/wel5mx5tppkcpw38axwmjnzj52zhur4g
Regardless, WSL does work and it's great; I've been using it to learn how to automate my home lab based on your Udemy network automation course.
@@kielmoreland7704 Great share! And thank you. Also see here: blogs.vmware.com/workstation/2020/01/vmware-workstation-tech-preview-20h1.html and here: docs.microsoft.com/en-us/windows/wsl/wsl2-faq
So are there plans to tackle the 'nested' VMWare Workstation / WSL issues - it is a fairly restrictive issue given that a lot of people had created such environments and now find themselves having to hack & switch around their system to get over these issues?
Your videos are spectacularly clear, very well done!
Great info (as always) David ! Thanks for info...very handy! Can't wait to try it!
Thank you Dale!
Thanks David, Very Cool! I just want to study Linux. .
Linux is great. Definitely worth learning.
Very handy, thank you!
While installing WSL you may get an error 0x80370102. In such a case, you should look at your BIOS and check the virtualization features are turned on.
😉👍
I was struggling with Virtual Box to install Ubuntu, but never knew the solution is under my nose. Thanks for the video, you are a life saver. I must appreciate you.
Thank you sir, I've been always hesitant to do my development work on windows, now I'm transitiong from mac OS to windows thanks to you and this great feature.
Love your voice!!!
Thank you Joel
Thanks again, David! Also, you might find this useful. I just installed Windows Terminal (from the MS store). So much easier to use and has drop-down to choose which VM you want to use and puts them in Tabs!! So you can have PowerShell open in one tab, Ubuntu in anther and move between them easily. (I think you might be able to change the colour schemes on the terminals as well.
czcams.com/video/8gw0rXPMMPE/video.html&app=desktop
devblogs.microsoft.com/commandline/introducing-windows-terminal/
Great share!
I have been searching this for the last 6 months and somehow your video pops in on the list of recommendations. I guess i am lucky. Thanks a lot, man👍
Well done David - thank you for taking the time to help others!
Thank you Doug! Glad the video helped you :)
FYI, Steve Ballmer is fired. That's why microsoft change a lot
Another great video here David! Been using wsl for sometime now and its awesome! Especially using the new windows terminal as well :)
Thank you James!
Thank you so much! Extremely helpful. Was setting a computer up at home for a family member, and hit the Ubuntu error (needed to visit BIOS and enable Virtualization) and that did the trick. Great page!
David Bombal, THE MAN!!! 😎Thanks for all your videos. Do not stop. 👏
I can't deny that I impressed. Windows 10 is getting better and better and Linux integration is awesome. It will save a lot of time for me to start a new project on my home computer. Cool video and tidy explanation
Thanks for this David, I have been trying unsuccesfully for a long time to get any Unix distro to dual boot with Windows, this is much better. I followed your method carefully and it worked! This will be handy as I am trying to get into cybersecurity and have wanted to learn Unix for a long time. Subbed.
Thank you so much for the video, this is amazing I got linux running on my laptop within 30 mins....dual boot /VM had me dying for at least a week to make it work, this is truly amazing!
Thanks David for this excellent tutorial. You are a good teacher.
Thanks David, really useful. Nice video as always!!
Thank you and you're welcome
Very comprehensive info on WSL2. Thanks for the video!
Thank you Abhishek
Went off without a hitch. Thank you.
Loving your fat-free style. Keep that going.
David, thank you for your tutorial. Top notch!
Very good tutorial. Thank you David. Keep up the good work.
Thank you Marius
I am so impressed with your teaching style.
Seems you are a excellent professor
Students are so lucky if you are a professor
Your channel intro video is superb!! 😍🤩 , Plus the video was very much informative.
Thank you!
Amazing competence and presentation.
Impressive ...
Thanks for sharing
Fascinating. Very well put together explanation of WSL.
Glad you liked it!
Awesome tutorial! Thank you! Super helpful.
Great tutorial, glad you are home safely.
Thank you Orley! Good to see you here again.
Hey David, excellent video! more power to you!
Great tutorial, very well explained and nice structure. I am glad to suscribe to the channel.
Thank you so much for getting me started with Ubuntu and Linux!
Great video. Easy to follow and I thank you for your time.
Thanks for that great sharing. I was eager to test this update
What an awesome tutorial! Thank you so much, kind sir
I am very let for bed time but I have to write this to say Thank you Sir, You have helped me so much. keep good work up.
Thank you so much for this extremely helpful video. I only use Ubuntu for serious purposes such as programming, and have found it difficult to find a platform that runs Ubuntu seamlessly, always getting caught with some basic limitations such as with BIOS restrictions. WSL seems to be just what I am looking for. Shall start my search now to find a suitable pc.
Very Nice David! Thanks for the tips!
Thank you Adriano
Thank you sir for explaining that so clearly.
Well explained ! Thank You for sharing.
Glad you liked it!
Amazing Video ... Very professional and clear!!! Thanks
Thank you so much! Absolutely best WSL2 tutorial!!!
Thank you very much for the video, clear and concise. A tutorial for editing/debugging the code in wsl using eclipse or intellij on the windows would be awesome 😁. Thanks again.
Thank you David!!!, another great video...
Thank you
Thank you. Your videos are always awesome!!
Great video 👍.
I will start learning Linux from my Windows 10 PC
Thank you Dennis! All the best learning Linux - it's a fantastic operating system.
Thanks, that was simple and very informative. This helped a lot.
Very good. It will be extremely useful. Thanks one more, excellent video [s]
Thank you Milton
Very nice video! Thank you very much, it's been a long time since I first wanted to install WSL2 on my windows10 home.. :)
thx a lot David! helped setup WSL 2 on my laptop for some linux actions
Was following along then realised im also doing this on a VivoBook extra useful. Thanks
well explained.. especially the part of toggling btwn wsl1 and wsl2 ..thanks I enjoy your tutorials emmensely...
You are welcome and thank you!
Thank you very much for this
Thanks to this video I successfully installed wsl2 today on my system😊
Great video. Thanks a lot. I did find that on the old laptop that I tried this on, not setup for gaming, I also had to turn on virtualization in the BIOS to get WSL2. I suppose that's just one of those things that can vary.
Excellent tutorial. Thank you.
Great video 👌 . Thanks for this effort a montage & information 🇲🇦💝
Thank David - very good training.
Thanks a lot for all this information it has been very helpful!
The step by step is amazing
Great video! Keen to try it out with Ansible, especially with the nice VSCode integration.
great video, super simple and explained well
Hi David, lekker video man! Thanks! Have you managed to get your head around sharing environment variables between Windows and WSL? I can't seem to get the two to share their toys... Thank you again for the effort you put into all your content, you are a goldmine of knowledge and experience and we really appreciate you!
Penjelasan yang rinci dan sangat mudah dicerna... salam hormat dari Indonesia :)
Thank you Ramadhan!
Really nice. Good explanation
This is very useful! Thanks David
Fantastic explanation! Cheers mate!
Thank you, David, for help!
Thank you David. Excellent and helpful. Subscribing ...
Thank you Ron!
Big thanks from Belgium! Didn’t know this was possible..
Thank you Yassir
Another thanks from Belgium as well
I guess now its trendy here in IT Techheads here 😀
Thanks for your great sharing!
Thanks for watching!