WSL 2: Getting started

Поділитися
Вставка
  • Опубліковано 30 чер 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
  • Наука та технологія

КОМЕНТАРІ • 928

  • @davidbombal
    @davidbombal  4 роки тому +127

    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/

    • @ibal3616
      @ibal3616 4 роки тому

      There will be no Linux version of WSL? @davidbombal

    • @davidbombal
      @davidbombal  4 роки тому +2

      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.

    • @samuelmatheson9655
      @samuelmatheson9655 3 роки тому

      Thank you

  • @pranjalsingh9154
    @pranjalsingh9154 3 роки тому +181

    What a nice guy! Goes over every thing step by step like a passionate and sincere teacher.

  • @wassimmefteh401
    @wassimmefteh401 3 роки тому +115

    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

  • @bap9394
    @bap9394 4 роки тому +402

    Linux running on Windows using a Apple keyboard 👌

    • @davidbombal
      @davidbombal  4 роки тому +28

      Thanks!

    • @KaushalBeladiya
      @KaushalBeladiya 4 роки тому +15

      combination is great actually!

    • @samuelmatheson9655
      @samuelmatheson9655 3 роки тому +3

      Now all we need is Linux in windows in bootcamp

    • @caionakai3134
      @caionakai3134 3 роки тому +12

      he was running a windows on mac and a linux on windows lol

    • @neiltaylor513
      @neiltaylor513 3 роки тому +1

      Hate the modern apple keyboards, give me the old Quadra ones with the power button, could give them a good bash when typing.

  • @luigivampabbcw5172
    @luigivampabbcw5172 3 роки тому +12

    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 !

  • @WifiNigel
    @WifiNigel 3 роки тому +4

    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.

    • @davidbombal
      @davidbombal  3 роки тому +2

      Really happy to hear that - glad I could help!

  • @justicepeltier9001
    @justicepeltier9001 3 роки тому +14

    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!

    • @davidbombal
      @davidbombal  3 роки тому +1

      Glad it helped! Thank you for sharing :)

  • @brianhansen8876
    @brianhansen8876 3 роки тому

    Thank you VERY much, David. You are the first person on UA-cam 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

  • @reedlinares
    @reedlinares 4 роки тому +5

    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!

    • @davidbombal
      @davidbombal  4 роки тому +1

      Thank you. Great to hear that James!

  • @ryanwolf2558
    @ryanwolf2558 4 роки тому +21

    So easy to setup, other tutorials were doing weird things, thanks for this

  • @CodeWarrior01
    @CodeWarrior01 3 роки тому +1

    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

  • @TJKhara
    @TJKhara 4 роки тому +4

    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.

  • @muhammadamirulsamsulbahar2544
    @muhammadamirulsamsulbahar2544 3 роки тому +6

    The instructions are very clear, I really love this tutorial. Thanks!

  • @juanpcc5892
    @juanpcc5892 4 роки тому +16

    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

    • @davidbombal
      @davidbombal  4 роки тому +1

      Thank you! I'm really happy to hear that :) Please keep on learning.

  • @ms365developer3
    @ms365developer3 4 роки тому +2

    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.

  • @murats5863
    @murats5863 8 місяців тому

    I very much appreciate your clear explanation and the time you spend to dive deep into things, even if they seem easy.
    Thank you!

  • @antonurmensch4090
    @antonurmensch4090 3 роки тому +8

    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.

  • @tigerfanxiao
    @tigerfanxiao 4 роки тому +6

    The best tutorial in the UA-cam as always! Thanks a lot David.

    • @davidbombal
      @davidbombal  4 роки тому +1

      Thank you!

    • @brandonphilander661
      @brandonphilander661 4 роки тому +2

      @@davidbombal So you're running Linux in a virtual machine on Windows 10, could you then virtualize another OS in Linux?

    • @davidbombal
      @davidbombal  4 роки тому +2

      @@brandonphilander661 Yes. I'll demonstrate this using Docker :)

    • @brandonphilander661
      @brandonphilander661 4 роки тому

      @@davidbombal Thank you.

  • @sanjeevpenupala
    @sanjeevpenupala 3 роки тому

    A really awesome video, especially covering a use case for WSL at the end of the video. Cheers man!

  • @TiagoSilva4171
    @TiagoSilva4171 3 роки тому +1

    Thank you for showing what we can do with WSL2 in simple e concise way.

  • @alyfraga9923
    @alyfraga9923 4 роки тому +14

    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.

    • @davidbombal
      @davidbombal  4 роки тому +6

      Thank you Aly. Agreed - for ultimate performance, GNS3 works best on native Linux.

  • @Reforitor
    @Reforitor 4 роки тому +10

    I love the way he wished us very best in the end.

    • @davidbombal
      @davidbombal  4 роки тому +5

      Glad you liked that. And I do mean it. :)

  • @dougdecoursin9919
    @dougdecoursin9919 4 роки тому +2

    Well done David - thank you for taking the time to help others!

    • @davidbombal
      @davidbombal  4 роки тому

      Thank you Doug! Glad the video helped you :)

  • @haciendadad
    @haciendadad 2 роки тому

    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. :-)

  • @juancarlosgonzalez4161
    @juancarlosgonzalez4161 3 роки тому +7

    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.

  • @josethemacho
    @josethemacho 4 роки тому +45

    Running Linux over Windows on a Mac... Savage!

    • @davidbombal
      @davidbombal  3 роки тому +2

      lol... don't want to limit myself to only one OS :)

  • @ldx8492
    @ldx8492 3 роки тому

    Your videos are spectacularly clear, very well done!

  • @sumitsingh3534
    @sumitsingh3534 2 роки тому

    Thank You David. You have made things so much easier. Wonderfully explained.

  • @umairm8595
    @umairm8595 4 роки тому +4

    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

    • @davidbombal
      @davidbombal  4 роки тому +4

      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.

    • @kielmoreland7704
      @kielmoreland7704 4 роки тому +1

      @@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.

    • @davidbombal
      @davidbombal  4 роки тому +2

      @@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

    • @ciscomoto
      @ciscomoto 4 роки тому

      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?

  • @akshaysb526
    @akshaysb526 3 роки тому +3

    yes,this man knows how each line of code works.

  • @user-we7of6ow6h
    @user-we7of6ow6h 11 місяців тому

    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.

  • @kracksmith4ejm1
    @kracksmith4ejm1 2 місяці тому

    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.

  • @ambarsanghi
    @ambarsanghi 4 роки тому +4

    Thanks David, I am definitely gonna work on this.🙂

    • @davidbombal
      @davidbombal  4 роки тому

      Thank you Ambar. It's a nice easy way to get started :)

  • @wonerkang4034
    @wonerkang4034 4 роки тому +3

    Thanks David, Very Cool! I just want to study Linux. .

    • @davidbombal
      @davidbombal  4 роки тому +1

      Linux is great. Definitely worth learning.

  • @oldmansaturn972
    @oldmansaturn972 3 роки тому

    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.

  • @priyabratdash2629
    @priyabratdash2629 3 роки тому

    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👍

  • @joeljosephpaul9269
    @joeljosephpaul9269 4 роки тому +3

    Love your voice!!!

  • @EyeIn_The_Sky
    @EyeIn_The_Sky 4 роки тому +9

    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.
    ua-cam.com/video/8gw0rXPMMPE/v-deo.html&app=desktop
    devblogs.microsoft.com/commandline/introducing-windows-terminal/

  • @dalebarnett9318
    @dalebarnett9318 4 роки тому

    Great info (as always) David ! Thanks for info...very handy! Can't wait to try it!

  • @alexperea6604
    @alexperea6604 3 роки тому

    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.

  • @KangJangkrik
    @KangJangkrik 4 роки тому +7

    FYI, Steve Ballmer is fired. That's why microsoft change a lot

  • @jamesdietsch7868
    @jamesdietsch7868 4 роки тому

    Another great video here David! Been using wsl for sometime now and its awesome! Especially using the new windows terminal as well :)

  • @datag1199
    @datag1199 Рік тому

    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!

  • @JSL180
    @JSL180 4 роки тому +1

    Thanks David, really useful. Nice video as always!!

  • @ahmedsalman3294
    @ahmedsalman3294 3 роки тому

    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.

  • @olloffdenuyschen4233
    @olloffdenuyschen4233 4 роки тому

    David Bombal, THE MAN!!! 😎Thanks for all your videos. Do not stop. 👏

  • @zachsandvik1867
    @zachsandvik1867 3 роки тому

    David, thank you for your tutorial. Top notch!

  • @home-uf3tg
    @home-uf3tg 4 роки тому

    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

  • @MegaBruceh
    @MegaBruceh 3 роки тому +2

    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.

  • @AlbrechtJ
    @AlbrechtJ 2 роки тому

    Thanks David for this excellent tutorial. You are a good teacher.

  • @AbhishekNigam
    @AbhishekNigam 4 роки тому

    Very comprehensive info on WSL2. Thanks for the video!

  • @Chunda8
    @Chunda8 8 місяців тому

    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.

  • @mariusavram7823
    @mariusavram7823 4 роки тому

    Very good tutorial. Thank you David. Keep up the good work.

  • @krishnabala8403
    @krishnabala8403 3 роки тому

    Awesome tutorial! Thank you! Super helpful.

  • @Flora-ec4qz
    @Flora-ec4qz Рік тому

    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!

  • @tom23j
    @tom23j 3 роки тому

    Thank you. Your videos are always awesome!!

  • @antonlota9210
    @antonlota9210 3 роки тому

    Hey David, excellent video! more power to you!

  • @niled.r.1639
    @niled.r.1639 2 роки тому

    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.

  • @samola2803
    @samola2803 4 роки тому

    Thank you David!!!, another great video...

  • @shreeramyadav837
    @shreeramyadav837 4 роки тому

    Your channel intro video is superb!! 😍🤩 , Plus the video was very much informative.

  • @44mod
    @44mod 3 роки тому

    Great video. Easy to follow and I thank you for your time.

  • @hariprasadoo
    @hariprasadoo Рік тому

    Thank you so much! Absolutely best WSL2 tutorial!!!

  • @andrewgreen1970
    @andrewgreen1970 Рік тому

    Went off without a hitch. Thank you.
    Loving your fat-free style. Keep that going.

  • @orleydoss3171
    @orleydoss3171 4 роки тому

    Great tutorial, glad you are home safely.

    • @davidbombal
      @davidbombal  4 роки тому

      Thank you Orley! Good to see you here again.

  • @cyberwolfie7344
    @cyberwolfie7344 Рік тому

    What an awesome tutorial! Thank you so much, kind sir

  • @bruceliu9808
    @bruceliu9808 2 роки тому

    Thank you so much for getting me started with Ubuntu and Linux!

  • @geoffreyhibon2651
    @geoffreyhibon2651 Рік тому

    Amazing Video ... Very professional and clear!!! Thanks

  • @adrianoos1977
    @adrianoos1977 4 роки тому

    Very Nice David! Thanks for the tips!

  • @parameswarb8717
    @parameswarb8717 2 роки тому

    I am so impressed with your teaching style.
    Seems you are a excellent professor
    Students are so lucky if you are a professor

  • @wingwing2683
    @wingwing2683 2 роки тому

    This is very useful! Thanks David

  • @buildfrom
    @buildfrom 4 роки тому

    Fascinating. Very well put together explanation of WSL.

  • @candyman5185
    @candyman5185 4 роки тому +1

    Well explained ! Thank You for sharing.

  • @rahulxcr
    @rahulxcr Рік тому

    Thanks, that was simple and very informative. This helped a lot.

  • @gustavoleo8946
    @gustavoleo8946 4 роки тому

    Fantastic explanation! Cheers mate!

  • @JawwadHafeez
    @JawwadHafeez 2 місяці тому

    Amazing competence and presentation.
    Impressive ...
    Thanks for sharing

  • @smarty007us
    @smarty007us 4 роки тому

    Thank you sir for explaining that so clearly.

  • @anirbellahcen5551
    @anirbellahcen5551 Рік тому

    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.

  • @lucasasafe
    @lucasasafe 3 роки тому

    Thanks for that great sharing. I was eager to test this update

  • @alexisrs127
    @alexisrs127 3 роки тому

    Great tutorial, very well explained and nice structure. I am glad to suscribe to the channel.

  • @gaius_marius
    @gaius_marius 3 роки тому

    Excellent tutorial. Thank you.

  • @karmatsering158
    @karmatsering158 2 роки тому

    much love, simply outstanding

  • @TheCezerian
    @TheCezerian 3 роки тому

    Thank David - very good training.

  • @marioandresheviacavieres1923
    @marioandresheviacavieres1923 3 роки тому

    Thanks a lot for all this information it has been very helpful!

  • @dimon.digital
    @dimon.digital 2 роки тому

    Thank you, David, for help!

  • @SurfFishingFan66
    @SurfFishingFan66 2 роки тому

    Wow, I learned alot from this one video, thank you!

  • @lucaterraneo7274
    @lucaterraneo7274 10 місяців тому

    Very nice video! Thank you very much, it's been a long time since I first wanted to install WSL2 on my windows10 home.. :)

  • @dencam
    @dencam 4 роки тому +2

    Great video 👍.
    I will start learning Linux from my Windows 10 PC

    • @davidbombal
      @davidbombal  4 роки тому +2

      Thank you Dennis! All the best learning Linux - it's a fantastic operating system.

  • @viaualexis27
    @viaualexis27 Рік тому

    thx a lot David! helped setup WSL 2 on my laptop for some linux actions

  • @kiooshiro3955
    @kiooshiro3955 2 роки тому

    thank you ! excellent tutorial.

  • @philipvarghese2098
    @philipvarghese2098 4 роки тому +2

    Thanks David! I installed it.

  • @miovieira
    @miovieira 4 роки тому

    Very good. It will be extremely useful. Thanks one more, excellent video [s]

  • @FedericoElinger
    @FedericoElinger 3 роки тому

    thank you for the video. Cheers from Argentina.

  • @Ahmed-AWS
    @Ahmed-AWS Рік тому

    The step by step is amazing

  • @RogerGay
    @RogerGay 3 роки тому

    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.

  • @anobody5708
    @anobody5708 2 роки тому

    Very informative. Thanks

  • @leethengwei
    @leethengwei 4 роки тому

    Thanks for the video, it is very helpful.

  • @thecaley2092
    @thecaley2092 3 роки тому

    Very clear and helpful video :)

  • @Smackindaface
    @Smackindaface 2 роки тому

    great video, super simple and explained well

  • @christophermaisch
    @christophermaisch 4 роки тому

    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!

  • @lyleclassen4698
    @lyleclassen4698 3 роки тому

    Was following along then realised im also doing this on a VivoBook extra useful. Thanks