Developing on Windows with WSL2 (Subsystem for Linux), VS Code, Docker, and the Terminal

แชร์
ฝัง

ความคิดเห็น • 597

  • @n4rzul
    @n4rzul 5 ปีที่แล้ว +927

    It's the year of Linux on the Desktop... Brought to you by windows... What a time to be alive.

    • @Cyber_Lanka
      @Cyber_Lanka 5 ปีที่แล้ว +48

      I want to kill myself

    • @Tux0xFF
      @Tux0xFF 5 ปีที่แล้ว +4

      Lol, indeed

    • @deadeye1982a
      @deadeye1982a 4 ปีที่แล้ว +17

      My guess was, that MS will buy Canonical and will release MS Linux 10. Maybe in the future.

    • @raymundhofmann7661
      @raymundhofmann7661 4 ปีที่แล้ว +4

      @@deadeye1982a Maybe even developers will appreciate this to evade the Linux kernel development code of conduct, simply to chose the lesser evil?

    • @deadeye1982a
      @deadeye1982a 4 ปีที่แล้ว +5

      @@raymundhofmann7661 I haven't read the Code of Conduct, but let me guess: They are also on the gendermainstreaming / feminism train like many others?

  • @kdietz65
    @kdietz65 5 ปีที่แล้ว +512

    The start of the video is like an AA meeting. "Hi, my name is Scott and I'm a Windows developer". Audience refrain ... "Hiiii Scoootttt"
    I'm not exactly sure how I got here. I was raised in a good home. My parents taught me right from wrong. My professors used UNIX. I was taught to treat everything as a file, have redirectable I/O, compose command line programs into small, reusable pieces, give everything a man page, have instant access to ssh, and use a resizable command shell with mutliple tabs and panes that gave me a full suite of OS tools and used a Turing complete command line interface. I knew all of those things. Then my parents got divorced when I was in high school and I felt kind lost. Like I didn't belong anywhere. Started hanging out with the wrong crowd. I saw a friend of mine using Windows 95 and he asked me if I wanted to try it. I still remember that first taste. God it tasted so bad.But I was just mesmorized. It's all a blur after that. The blue screen of deaths got so bad I had to start hiding my laptops in the back of my underwear drawer. It was just a downward spiral. Windows 98, Windows ME, Windows NT, XP, and then, oh God, Vista!!! I just couldn't find my way back.

    • @teknastyk
      @teknastyk 5 ปีที่แล้ว +10

      🤣 aaahh games.. and then windows.. it ruined my life. XD

    • @ahmadkhudai
      @ahmadkhudai 4 ปีที่แล้ว +4

      Hope you get well soon

    • @dorion9111
      @dorion9111 4 ปีที่แล้ว +7

      Sounds like this might have came from a place of truth. Got anything else you need to tell us before we break for Prayer?

    • @octavianc.2569
      @octavianc.2569 4 ปีที่แล้ว +6

      /r/copypasta

    • @marsrover7952
      @marsrover7952 4 ปีที่แล้ว

      haha, very good

  • @dinhof
    @dinhof 3 ปีที่แล้ว +31

    After roughly my entire backend development career working on osx, I'm giving this a try on a new cheaper and more powerful notebook.
    I'm honestly excited to have access to games and other great software on my dev machine.
    Well played, Microsoft.

  • @MrChickenpoulet
    @MrChickenpoulet 5 ปีที่แล้ว +105

    This is really amazing ! Even though I am (and I guess I'll stay) on linux, I find this evolution amazing.
    The microsoft team did an awesome work on WSL, the new console, vscode and so on !

  • @fooked1
    @fooked1 5 ปีที่แล้ว +138

    Perfect timing by MS. I've been developing on MacBook Pros for years, but Apple has really trashed them with the touchbar and keyboard fiasco. I'm a vim user and they've taken away the physical esc key. Plus they're really expensive. Nice to know I can switch to windows yet feel right at home in a *nix system.

    • @OsmoZchannel
      @OsmoZchannel 5 ปีที่แล้ว +20

      ever heard of linux ?

    • @fooked1
      @fooked1 5 ปีที่แล้ว +3

      @@OsmoZchannel Yeah

    • @ThePandaGuitar
      @ThePandaGuitar 5 ปีที่แล้ว +1

      I'm in exactly the same situation as you.

    • @kevcoder
      @kevcoder 5 ปีที่แล้ว +6

      I'm a linux fan boy, but most of my people are complete idiots. This is the market M$ is actually going after.

    • @ghostinc7
      @ghostinc7 5 ปีที่แล้ว +2

      if I was you. I would load up linux. get used to it. microsoft is eventually going toward an linux style OS. You heard it hear first!

  • @DieterGribnitz
    @DieterGribnitz 5 ปีที่แล้ว +50

    This looks very promising. Over the last ~10 years I have migrated from Windows to macOs to LInux. Seems like the time might finally have arrived for me to go full circle and migrate back to Windows. As a web developer the Windows file system and lack of terminal was a dealbreaker for me. I also see there is a solution for the 260 character path limit now. I think this checks all the boxes now. Can't wait to be able to use some dearly missed windows software again.

    • @DieterGribnitz
      @DieterGribnitz 4 ปีที่แล้ว +7

      Lics Norgi Adobe and Autodesk products like 3D studio max and Photoshop etc. and the windows version of navicat as well. I bought a new PC to try WSL out and really regretted trying to use windows as my primary os. WSL is not ready for serious web developers in my opinion and has a long way to go. Plus windows does a lot of small things wrong that really messed with my workflow. Especially relating to multiple workspaces and screens. I really tried but had nothing but issues. My new Razen 3600 felt a lot slower with windows on it than my 6 year old core2duo feels running linux. I installed linux on a new 1tb NVMe on the new pc this morning and am duel booting again with windows running in virtual box when needed for apps. The windows drive has now become a dedicated drive for gaming. I found Virtual box is really slow when running it from windows but it is much faster the other way around. WSL issues I had include: file permissions stuck on 777 666 when creating files with explored; Many packages won't run like sshfs and the windows counterpart is much slower causing my intelisense not to work when editing files on a live server; My one project is now littered with CRLF instead of LF; Multiple docker containers I use just won't run; getting docker to work along side virtualbox is a nightmare; Illogical file structure and navigation especially relating to desktop, home directory and search results with nonsensical parent paths; The list goes on but you get the idea. It was not the welcome home I expected and everything I did felt somehow dirty. Slapping ubuntu on windows is no compromise for a native unix environment. This is just a word of warning to anyone thinking of trying the same thing. Your experience may differ but it did nothing but introduce issues where none existed for me. I really missed crtl+alt+t, logical file structures, working file permissions and my sanity. Seems like I am officially a linux fanboy now.

    • @DieterGribnitz
      @DieterGribnitz 4 ปีที่แล้ว +2

      Lics Norgi And that is the short version. LoL. It all depends on what you use it for. Best to use the right tool for the job, they both have their place and use case. Trying to use windows for web development is like using a chainsaw to spread butter on a sandwich. It can be done but it will be messy, much more difficult and someone might get injured. Just like you wouldn't use a butter knife to cut down a tree.

    • @Oswee
      @Oswee 4 ปีที่แล้ว

      @@DieterGribnitz Tnx for your comment! :)

    • @bbmatfreddy
      @bbmatfreddy 4 ปีที่แล้ว

      Powershell is as powerful as any command-line tool in Linux to fully configure clients, servers, server-nodes, hardware components, ...and that for years now...

    • @Anhar001
      @Anhar001 4 ปีที่แล้ว +1

      @@DieterGribnitz I used to use 3D Studio Max, take a look at Blender it has come a huge way, I still can't believe how good Blender is right now!

  • @Tout-Le-Monde02
    @Tout-Le-Monde02 4 ปีที่แล้ว +8

    The most informative, well-explained video on WSL I have seen so far ....

  • @user-cc8kb
    @user-cc8kb 5 ปีที่แล้ว +63

    The next logical step is to get rid of windows entirely. This makes the Linux experience even smoother!

    • @СергейЗакордонец-и6р
      @СергейЗакордонец-и6р 4 ปีที่แล้ว

      next step is to make the same thing on linux! (don't even try to mention vine)

    • @pijushgupta1988
      @pijushgupta1988 4 ปีที่แล้ว +4

      Tribalism is real.

    • @СергейЗакордонец-и6р
      @СергейЗакордонец-и6р 4 ปีที่แล้ว

      @M T y y

    • @itznukeey
      @itznukeey 4 ปีที่แล้ว

      Dunno, like Linux for me lacks all the features i use on windows, sure it may be better for you but I wasnt able to get any program to change saturation of my monitor or play certain games windows can, think this is way better than having to dual boot everytime you need something from linux

  • @benfeisttoronto
    @benfeisttoronto 5 ปีที่แล้ว +17

    Great stuff, scott. Thanks for getting me started with all of this. I can't believe I'm running my python processors on linux on my windows computer. All of the reasons I prefer mac for python just went away.

  • @xC-db6st
    @xC-db6st 3 ปีที่แล้ว +1

    Switching from writing code on macOS to Windows after almost 6 years. This video was really useful and informative. Thank you, I've subscribed 👏👏

  • @ghostinc7
    @ghostinc7 5 ปีที่แล้ว +14

    Being a linux user for a while. This video prompted me to load up windows and test it out. After a few hours. I was like nope can't do it.. back full time on linux.
    Its still to clunky and doesnt have the flow of a true linux term environment for me.
    But it was better then before. I will give them that!

  • @MorneWolfaardt
    @MorneWolfaardt 5 ปีที่แล้ว +14

    Mind blown like always with Scott's videos

  • @bbmatfreddy
    @bbmatfreddy 4 ปีที่แล้ว +3

    Funny how Scott explicitly mentioned that this video might not be for those with a dislike for Windows, yet 3/4 of the comments section is trashed by windows haters. Ironically, the video is all about VS Code working within a Linux environment. The same that happened to musical composing/arranging software, architectural software, and CAD/BIM applications, is happening now in other areas as well: Mac die-hards had it handed to them by MS/Windows. Most every modern musical software is developed first and foremost for Windows OS, architectural software on Windows (Autocad, Revit, Chief Architect, ...), and CAD applications as well. Where are all the artsy Windows haters? Right, they all use Windows now because the newest software applications run nowhere else but on Windows, some on Mac. And now Microsoft is making code development for Windows users easier than ever.
    Nobody is peeing on Linux, yet each time MS/Windows comes up with innovative ways to increase productivity for developers on Windows machines an avalanche of Linux folks are descending on the Windows space and start attacking. Someone feels threatened it almost appears...

  • @MykeBates
    @MykeBates 5 ปีที่แล้ว +5

    Can you imagine knowing this is where we’d be 10 years ago? Simply amazing!

    • @snackers7
      @snackers7 5 ปีที่แล้ว

      Amazing because MS waiting for destroy Linux? Are you crazy and blind?

    • @snackers7
      @snackers7 4 ปีที่แล้ว

      @Game Over I hope so.

    • @diablo.the.cheater
      @diablo.the.cheater 4 ปีที่แล้ว

      @@snackers7 I really really hope MS does that.

    • @snackers7
      @snackers7 4 ปีที่แล้ว +1

      @@diablo.the.cheater You hope MS do that? Dont like free and open source software?

    • @diablo.the.cheater
      @diablo.the.cheater 4 ปีที่แล้ว

      @@snackers7 No, free and open-source software is evil, software should be as closed as a black hole and as expensive as a rocket.

  • @807800
    @807800 3 ปีที่แล้ว +1

    Damn dude. I've been searching for an easy explanation about WSL2 and yours is so far the easiest to follow. Well done!.

  • @matthewzecchini9951
    @matthewzecchini9951 4 ปีที่แล้ว +1

    Thank you for sharing your knowledge and having a positive impact on the community.

  • @ThePandaGuitar
    @ThePandaGuitar 5 ปีที่แล้ว +2

    I have a feeling we're all going back full circle to Windows very soon after all these years. This is amazing.

  • @reachsatish
    @reachsatish 4 ปีที่แล้ว +2

    Scott, thanks for the vid. I have been using WSL at home and it is wonderful to get the best of both worlds. I have stopped thinking about switching Mac. Keep those videos coming.

  • @thousandtyonesoftware
    @thousandtyonesoftware 5 ปีที่แล้ว +3

    It's amazing that Microsoft is focusing on Linux and making the interop possible. If Linux focused enough on wine, and gave options of running office, live writer, SQL management studio and visual studio 2019, that would be the ultimate gift folks at Ubuntu and Microsoft can give programmers. Complete freedom - use a functional Linux inside windows or a functional windows inside Linux. That would be so awesome!

    • @xphumanikus
      @xphumanikus 5 ปีที่แล้ว +2

      ThousandtyOne Software LLP It's (Embrace, Extend, Extinguish) strategy of Microsoft.

  • @tehsimo
    @tehsimo 5 ปีที่แล้ว +24

    This is a great... havent seen most of this broken down simply before

  • @AndrewKwabula
    @AndrewKwabula 2 ปีที่แล้ว

    Thank you, Scott. You are an absolute legend. I went through Microsoft's explanation of WSL but it remained greek to me. You broke it into tiny pieces and explained every piece by doing.

  • @robl39
    @robl39 4 ปีที่แล้ว +4

    Scott - thanks for turning me on to the new Windows Terminal! I love it.

  • @mmmmigs
    @mmmmigs 4 ปีที่แล้ว +2

    kind of refreshing hearing someone take this perspective and vlog about it when you see so much windows hate out there. there are a few little things that bug me about windows but overall i really like it especially with these "developer"/linux friendly additions. great video, thanks for sharing!

    • @MrDubs
      @MrDubs 4 ปีที่แล้ว +1

      I never understood the pp-sizing over different environments. It's like pp-sizing over nano, Vim, and emacs.. pointless.

  • @krkode8765
    @krkode8765 2 ปีที่แล้ว

    great demo! i couldn't piece together why i needed wsl and its actual relationship to the separate linux app from the online documentation but this vid totally clarified there'd be a lot of painful manual configuration to get windows and linux to play nice.

  • @0xggbrnr
    @0xggbrnr 3 ปีที่แล้ว

    I can't thank you enough for this. Long-time software engineer, just started diving into the Windows 10 WSL2. Excellent overview here. Thanks a lot.

  • @WinstonCodesOn
    @WinstonCodesOn 4 ปีที่แล้ว +2

    Thank you so much for this tutorial! Incredibly useful information for someone like me switching back to Windows after doing development on the Mac for a few years. A lot has changed at Microsoft! (and Apple too, but not in a good way)

  • @danielnderitu5886
    @danielnderitu5886 2 ปีที่แล้ว

    I have learnt a lot within a very short time; thank you so much Scott.

  • @BrandonSchenz
    @BrandonSchenz 5 ปีที่แล้ว +5

    Thank you for this walk through. Love you Scott!

  • @VinceAggrippino
    @VinceAggrippino 4 ปีที่แล้ว +5

    I switched to Linux from Windows primarily because the Insiders Program requires frequent updates with multiple reboots each time. I can't work like that.

  • @TheDustin151
    @TheDustin151 4 ปีที่แล้ว +55

    I use Windows, OS X, and Linux. Each has its purpose.

    • @TienHuynh5312
      @TienHuynh5312 4 ปีที่แล้ว +11

      the only reason I suspect that you use OSX is Xcode :))

    • @ichaa3tech
      @ichaa3tech 4 ปีที่แล้ว +3

      Yea except os x its just for girls

    • @sdolo222
      @sdolo222 4 ปีที่แล้ว

      @@ichaa3tech linux was invented in os x

  • @gaius_marius
    @gaius_marius 5 ปีที่แล้ว +3

    Thanks Scott, very informative video. I've been using WSL for Linux development for a while now. I mainly do Java back-end and scripting stuff, so WSL1 works great for me. I switched to the new Windows Terminal and I'm very happy with it. Creating new color schemes is a bit difficult, but I like the ones that it ships with well enough.

  • @kenchang3456
    @kenchang3456 5 ปีที่แล้ว +2

    THIS IS GREAT!!! Thank you very much. It pretty much describes what I had in my head and now I know it can be done, and very easily thanks to you.

  • @garrettkim2429
    @garrettkim2429 4 ปีที่แล้ว +2

    This is awesome. I've been using WSL and the stable version of Docker so I couldn't access my containers via linux. Gonna install the technical preview tonight.

  • @svenmalvik
    @svenmalvik ปีที่แล้ว

    Yarn + WSL was extremely slow for me - at first. Now that I know what to watch out for, I’m looking forward to find more NEED TO KNOW "issues". 😮

  • @jammrock9286
    @jammrock9286 3 ปีที่แล้ว

    On the Insider fast (DEV channel) you can type "wsl --install" and all the steps necessary to install and configure WSL will happen. I believe it pulls down Ubuntu automatically as part of the process, or you can specify a different distro using -d.

  • @feryardiant
    @feryardiant 4 ปีที่แล้ว +3

    I think it's worth to mention that (in case there's someone didn't know)
    - Docker for Windows (GUI) and Windows "Virtual Machine Platform" are only available in Pro version of Windows
    - The WSL 2 is currently only available on Insider build of Windows
    - VS Code Remote debugging is require Windows 10 build 1903.
    - Windows Terminal is currently still in Preview, it's works well except you're working with TMUX. It's simply painful.
    If you're using Windows Home and you didn't have plan to join Insider Built, but want to use Docker & WSL,
    - Utilize Virtual Box instead of Hyper-V for virtualization and docker-machine, no need to enable "Virtual Machine Platform", it's just works.
    - Install docker, docker-machine and docker-compose through Chocolatey and use PowerShell to manage all docker-related stuffs. You can make it work from WSL but, require more works to be done.
    I've been using WSL as my daily-basis since Windows Fall Creators update, working with Node.js and PHP projects. It works really well so far, but still there's some issue you need to be aware of.
    - You'll see annoying log output on PHP-FPM or Apache if you configure them to use TCP connection
    - If you're working with Node.JS project from WSL using VS-Code Remote Debugging, you'll noticed that sometimes your file system (under your project folder) is locked, then you can't rename or delete any files or even you can't install or remove any dependency you'd like to add to your project when VS-Code scans your project files.
    - and more
    For me, not really a big deal, just annoying, but at least I can get the job done.

    • @PipBoy2300
      @PipBoy2300 4 ปีที่แล้ว

      Well I have windows Home and I can see the the Virtual Machine Platform, the said that WSL 2 will run on a subset of hyper-v, so it can be run con every Windows sku... Im just waiting for it to exit the windows insiders zone, windows releases are unstable enough

  • @andrewsquest628
    @andrewsquest628 ปีที่แล้ว

    You pour such a massive stream of useful and structured information in this vid! I'm greatly impressed and thankful!

  • @vjcspy
    @vjcspy 3 ปีที่แล้ว

    It is amazing. I have been worked on macos for 8 years. It is time to go back windows

  • @erikkalkoken3494
    @erikkalkoken3494 4 ปีที่แล้ว +1

    Btw. Most of this works on WSL 1 too. I am using WSL 1 + VSC to develop in Python on Ubuntu. The only thing I have not tried so far is Docker on WSL 1.

  • @Ersaurabhsaxena
    @Ersaurabhsaxena 4 ปีที่แล้ว

    WSL2 is marvelous engineering and game changing stuff from Microsoft guys...they got left behind for sometime in the open source world..but first with vscode and now with this awesome linux subsystem they are definitely back in the game...kudos

  • @kimlianlopez5282
    @kimlianlopez5282 3 ปีที่แล้ว +1

    that terminal is so slick. Thanks man! Great vid :)

  • @jayhu6075
    @jayhu6075 5 ปีที่แล้ว +1

    You are the master. Thx for the great explanation. Hopely more about WSL2

  • @marcocerrato9014
    @marcocerrato9014 5 ปีที่แล้ว +2

    Loved it. Thank you. Amazing video. If possible do a tutorial on this topic.

  • @deadeye1982a
    @deadeye1982a 4 ปีที่แล้ว

    I am not a MS-Fanboy (using Arch Linux), but this impressed me and it's not easy to impress me.

  • @mike-barber
    @mike-barber 5 ปีที่แล้ว +1

    This is going to be awesome! Thanks for the video. I can't wait for my corporate bureaucrats to update from 1803 so I can get started with this stuff; as it is currently, I'm running Docker in Linux on VirtualBox, and scraping by using VS Code Remote (ssh). WSL2 will definitely make my life quite a bit easier.

  • @daniloloko5
    @daniloloko5 5 ปีที่แล้ว +6

    This is amazing Scott!

  • @_DUx
    @_DUx 3 ปีที่แล้ว

    “If you’re watching this video in the future” I feel so cool at this moment! Where is my DeLorean?!

  • @c7hompson
    @c7hompson 3 ปีที่แล้ว

    I just got a job where I need to work on a windows machine. I usually work in linux, so this is great!

    • @bartek...
      @bartek... 3 ปีที่แล้ว

      Same for me, I'm forced to use windows, that I'm using only to ssh to Linux where I don't feel limited.

  • @scotttang6229
    @scotttang6229 3 ปีที่แล้ว

    I recently switched back to windows for my personal dev environment and loving these new tools! PS 7 is pretty sweet also. I'm sick of not able to run software and games that I want on Linux and having to dual boot! I wouldnt be surprised to see win 11 running on MS Linux...

  • @mloskot
    @mloskot 4 ปีที่แล้ว

    At 13:15 is the major takeway about Docker and WSL2, that it is shell agnostic, what actually seems missing from the official docs of both :)

  • @HumbertoRamosCosta
    @HumbertoRamosCosta 4 ปีที่แล้ว

    A lot of developers prefer to use Windows and sometimes have to develop for Unices, so this is a fantastic feature.

  • @realjoakim1337
    @realjoakim1337 2 ปีที่แล้ว

    Great video! Absolutely loved this. I'm now set up and ready to go.

  • @folorunso
    @folorunso 5 ปีที่แล้ว +17

    Switching to mac now really unnecessary. This looks weird but seriously amazing !!

  • @iamviduranishantha
    @iamviduranishantha 4 ปีที่แล้ว

    Amazing features . I am gonna try this in my PC .Thanks Scott for explaning.

  • @paolo_in_corsivo
    @paolo_in_corsivo 5 ปีที่แล้ว

    Thankyou so much! a very useful video. This is the kind of setup that I was already about to set to my everyday working environment, but the multi-tab-multi-machine shell interface will bring it to new hights

  • @MazinHakeem
    @MazinHakeem 5 ปีที่แล้ว +1

    This is pretty awesome. The only sad and annoying part is that the new Docker doesn't work on Window 10 Home. Using Docker Toolbox as a workaround was a pain.

    • @realGBx64
      @realGBx64 5 ปีที่แล้ว

      I mean Home is for the home users, if you wanna do serious stuff, spend some money on the Enterprise edition or what.
      Or, also, you can get Linux for free.

  • @sing10407
    @sing10407 5 ปีที่แล้ว

    WSL2 also have some internet features are under developing, it will cause problems when you need inbound connections. Instead, I using vscode with remote-ssh + Linux on hyper-v(or VirtualBox), it works very well for me.

  • @greggard5825
    @greggard5825 5 ปีที่แล้ว +3

    just wanted to say my thanks for putting this up and keep them coming.

  • @natetronn
    @natetronn 4 ปีที่แล้ว

    Great walk through. Now if we can get wsl --mount for mounting Linux ext4 drives I'll be happy. It was in the recent Insiders Build but, they pulled it due to a bug so, I'll have to wait for the next update (or that build to be released again.)

  • @RobMeijerUk
    @RobMeijerUk 5 ปีที่แล้ว +2

    This is so close to being my perfect development environment. The only thing I'm still missing, is support for other IDEs besides VSCode, and have it be usable.
    Also, a weird thing is that it only works if you run docker from Windows, as you did here. If you run docker-compose, it tries to connect to the old Docker Engine running in Windows, rather than the one in WSL2.
    But that said, this is all still under development, so hopefully it will continue to improve in the coming months.

    • @shanselman
      @shanselman  5 ปีที่แล้ว

      Did you set your docker context manually? Docker-compose doesn't respect that?

    • @RobMeijerUk
      @RobMeijerUk 5 ปีที่แล้ว

      @@shanselman yeah ... it doesn't for some reason. it's a known issue.

    • @tomek.z
      @tomek.z 5 ปีที่แล้ว

      That's the main problem with WSL for me. Why bother installing and configuring all the apps in both Windows and WSL if it simply works on Windows itself? What exactly is more efficient to run/develop on Linux/WSL than on Windows?

    • @pilotboba
      @pilotboba 5 ปีที่แล้ว +1

      @@tomek.z My tought would be, because your production deployment environment is linux. So, you can develop on windows and basically run/test in linux without the overhead of setting up a full VM locally or in the cloud.

    • @tomek.z
      @tomek.z 5 ปีที่แล้ว

      @@pilotboba That's what Docker is for and it works perfectly on Windows without WSL. Besides the only problem I encountered in last 10 years of developing on Windows and deploying on Linux is files/folders permissions. That's something you can set with one command on the server after the deployment so I don't see much point of using additional tools for that and waste time and resources to maintain everything twice.

  • @VamsiMohanKrishnaVadrevu
    @VamsiMohanKrishnaVadrevu 4 ปีที่แล้ว

    This is mind blowing! How have I not heard of this before!!!

  • @kettenbach
    @kettenbach 5 ปีที่แล้ว +2

    Great video Scott. Mind blown 😍‼️👍

  • @michaelwplde
    @michaelwplde 4 ปีที่แล้ว

    2:00 Partially true... I had a devil of a time with it until updating to the W10 2004 version. Then I could run the, apparently now standalone WSL2 MSI... 2:30 Also requires virtualization be enabled, which if you haven't in the BIOS, reboot and do so. WSL2 and WSL I think require Hyper-Visor be enabled.

  • @lukehero
    @lukehero 5 ปีที่แล้ว

    This is great stuff. I was using a Macbook before but it was getting a bit old and Apple don't offer any reliable laptops these days, picked up a regular laptop and was using Linux but my hardware was so poorly optimised on it. Now on Win10 and laptop runs very nice, really glad I can still work with a Unix system for server stuff! MS are doing good things for devs with WSL and the new terminal.

  • @masiafmasiaf2204
    @masiafmasiaf2204 2 ปีที่แล้ว

    I do use Wsl to development, so I don’t have to install a lot of program on win, now I can do gaming of my only win/mac platform games on windows, and still do development on Linux!!

  • @tharshan09
    @tharshan09 4 ปีที่แล้ว

    Thanks for the great video. I been really on the fence about ditching macOS and going to Windows, but this has really sold me. They solved all the issues with WSL1.

  • @oneeyedphotographer
    @oneeyedphotographer 2 ปีที่แล้ว

    I'm on Windows 11.
    Windows Terminal was a great surprise.
    So was WSL 2, I installed Debian with its graphics console. Linux apps appear in Windows menus, automatically, I have been using libvirtd stuff to work on virtual machines on other computers.
    Debian has its own network "card," sadly it's NAT, bridging isn't available.
    On Linux, I have used -profile on Firefox, it's not been so easy on Windows, but running Firefox on virtualised Linux with its window on Windows is attractive.

  • @CXensation
    @CXensation 4 ปีที่แล้ว +2

    Like I just saw a painting of a new style.
    Dont really understand it, dont really see its purpose, but understands all the efforts put in to it.
    I got tired - and a bit scared - of what Windows has evolved into and switched to Linux.
    And now this ...

  • @OfferoC
    @OfferoC 5 ปีที่แล้ว

    this is just fantastic. I can't wait for wsl 2 to be available in the slow insiders.

  • @Scott.Jones608
    @Scott.Jones608 4 ปีที่แล้ว

    Important note on Docker: It only works on Windows 10 PRO (which he has). It won't run on Windows 10 Home.
    Also, although you can install it on WSL Linux directly, you can't run it because WSL isn't *real* Linux & won't allow you to use the 'systemctl' commands necessary to start it.
    So, if you want to run Docker (and you don't want to pay quite a bit to upgrade to Pro) you should probably look into a dual boot with a real Linux distro.

  • @MichaelLockhart
    @MichaelLockhart 3 ปีที่แล้ว

    Hello Scot, I just want to leave some appreciation here. This is a fairly old video now, but I'm revisiting it because I'm exploring setting up some development with Docker/Python/Ruby in my home PC. I usually run OpenSUSE on the PC (it's makes me happy), but I recently had to stop after I replaced a fried motherboard and didn't research the chipset -- it's B550 network interface isn't supported by Linux drivers (at least, not in any SUSE installers I have found, yet). So, I can't run Linux on the metal, for now.
    Instead, I'll be exploring setting up a dev environment in my Windows 10 dual-boot, and playing with it to maybe get a Python dev system in SUSE on WSL, talking to a Minecraft with Raspberry Jam server in Windows, and hacking codes from Code. Should be a lot of fun and get me back to hacking on my PC instead of just gaming with it. If it goes well, I may even look at running GitLab in WSL, for the giggles.
    So, thank you for some inspiration, I hope this finds you well.

  • @kCuFfication
    @kCuFfication 3 ปีที่แล้ว

    Yo! This video was 100% watchable. Congratulations.

  • @Cryosxify
    @Cryosxify 4 ปีที่แล้ว +1

    Setup my desktop with wsl2 and windows openssh. Use my MacBook with code insiders to ssh to my windows computer and develop inside of wsl2 :D
    Only problem is I have to Port proxy the ports I'm going to use inside wsl2 from windows host to the vm's internal ip though. This is when I want to be able to reach my node app on wsl2 from my MacBook.

  • @lordhriley
    @lordhriley 4 ปีที่แล้ว +1

    Scott you are the man....!

  • @trentsteel9416
    @trentsteel9416 4 ปีที่แล้ว +1

    This is a very important video. Amazing, thank you!

  • @AssadKhan1
    @AssadKhan1 2 ปีที่แล้ว

    This is actually amazing
    Kudos Microsoft team

  • @softwayre
    @softwayre 4 ปีที่แล้ว

    Also if anyone wants to do it a different way, you can always install vscode on the WSL2 and run an xserver such as xming.

  • @SaravanaJ1
    @SaravanaJ1 4 ปีที่แล้ว

    Exciting times. The insider preview is a little rough around the edges. Can't wait for a stable WSL 2 release.

  • @kumarsaurabhraj2538
    @kumarsaurabhraj2538 4 ปีที่แล้ว

    oh my god... this really blew my mind... its gonna be a huge thing for student developers like me who cannot afford mac..

  • @TheHaykokalipsis
    @TheHaykokalipsis 4 ปีที่แล้ว +1

    Can anyone explain me why we need this? Not trying to say we dont, i just watched 4 videos explaining how to install and run this, but i never did catch the idea why. Im fullstack web developer, never tried linux or mac so i just dont get it. What does it give me as a developer that i dont have on windows? I apologise for my English.

  • @jasincolegrove6651
    @jasincolegrove6651 5 ปีที่แล้ว

    With the release of ConPTY and Alacritty as a native windows app development has never been better in windows using WSL. I love and use neovim for all my development locally and through ssh.
    If you haven’t download alacritty and enable ConPty support you should. You also get true 24 bit color as well. Never will I go back to using Linux as my OS with all of these changes Microsoft has made. They asked and they listened and it’s beautiful

  • @smallmoneybigmoney
    @smallmoneybigmoney 5 ปีที่แล้ว +1

    You are a boss dude. Thanks for showcasing WSL 2.

  • @sdolo222
    @sdolo222 3 ปีที่แล้ว

    And now the home folder on Ubuntu is actually the home folder on your desktop, which is awesome :)

  • @ZeusFaucon
    @ZeusFaucon 5 ปีที่แล้ว +7

    thank you satya nadella.

  • @brennorris1720
    @brennorris1720 5 ปีที่แล้ว

    Great overview of whats coming for WSL, thanks!

  • @stevemulholland5643
    @stevemulholland5643 4 ปีที่แล้ว +3

    This is great. No more XAMPP or CygWin!

  • @SocialFoam
    @SocialFoam 5 ปีที่แล้ว +3

    Nice video, can't wait for Microsoft to release this build. What's that VS Code's theme you're using there?

    • @mariop7440
      @mariop7440 5 ปีที่แล้ว +1

      Any release date ?

  • @epictetusjr.7581
    @epictetusjr.7581 2 ปีที่แล้ว

    this was a great video and you style really works well

  • @MarcelDempers
    @MarcelDempers 5 ปีที่แล้ว +2

    Awesome video! I'm keen to make WSL videos after my Kubernetes series is done 🐧🐳

  • @raghobadesai5515
    @raghobadesai5515 4 ปีที่แล้ว

    Hi Scott
    Thanks for the Nice overview of possibilities in WSL2.
    Could you please share the links to articles in video description ?

  • @lusrinu
    @lusrinu 4 ปีที่แล้ว

    goog video Scott but have a critique on wsl2. Each editor has its ecosystem where it works best. Trying to make a mainframe instead of keeping lego like decoupled

  • @christerjohanzzon
    @christerjohanzzon 3 ปีที่แล้ว +1

    This is great stuff! I used to run WAMP, XAAMP, VirtualBox, Vagrant and then Docker. Now I am considering this instead. How is the performance for a Wordpress installation over a WSL2 box?

  • @marouane55
    @marouane55 5 ปีที่แล้ว +5

    @Scott Hanselman is the IO performance fixed in WSL 2 ?

  • @ohdude6643
    @ohdude6643 3 ปีที่แล้ว +1

    "First they ignore you, then they laugh at you, then they fight you, then you win"

  • @nguyenhoangminh6775
    @nguyenhoangminh6775 3 ปีที่แล้ว

    Excellent tutorial for excellent features!

  • @Xanixade
    @Xanixade 4 ปีที่แล้ว +8

    If I were to work for Microsoft, I would like windows too.

    • @stevecarter8810
      @stevecarter8810 4 ปีที่แล้ว +3

      I think your brain is getting a little hot under your tinfoil hat there

  • @kyouhyung
    @kyouhyung 4 ปีที่แล้ว

    wow I've been using wsl and code for a while, but I didn't know you could even use the explorer from the wsl. thx

  • @yetAnotherGuyOnTheInternet
    @yetAnotherGuyOnTheInternet 2 ปีที่แล้ว

    I use the latest gcc Emacs on UBUNTU 20.04 via Wsl2 and i don't have to install any drivers...
    Microsoft has really hit the sweet spot between open source and proprietary stuff...
    True freedom without losing my privacy...
    Heaven for a lazy guy like me...

  • @lutherdang4008
    @lutherdang4008 4 ปีที่แล้ว

    That's so great!! Maybe I haven't to use parallel Ubuntu Linux and Windows 10 anymore, it has made pressing on my storages for many months XD.
    Thanks for sharing!!

  • @yuriykazmirchuk9641
    @yuriykazmirchuk9641 4 ปีที่แล้ว

    This is a very awesome staff , thank you! 😎👍