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

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 597

  • @n4rzul
    @n4rzul 5 років тому +928

    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 5 років тому +17

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

    • @raymundhofmann7661
      @raymundhofmann7661 5 років тому +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 5 років тому +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 років тому +513

    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 роки тому +5

      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

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

  • @Tout-Le-Monde02
    @Tout-Le-Monde02 4 роки тому +8

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

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

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

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

  • @dinhof
    @dinhof 4 роки тому +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.

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

  • @reachsatish
    @reachsatish 5 років тому +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.

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

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

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

  • @0xggbrnr
    @0xggbrnr 4 роки тому

    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.

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

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

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

  • @mmmmigs
    @mmmmigs 5 років тому +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.

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

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

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

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

  • @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 5 років тому +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 5 років тому +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!

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

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

  • @MorneWolfaardt
    @MorneWolfaardt 5 років тому +14

    Mind blown like always with Scott's videos

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

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

  • @BrandonSchenz
    @BrandonSchenz 5 років тому +5

    Thank you for this walk through. Love you Scott!

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

  • @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 років тому +7

      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!

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

    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". 😮

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

    Yo! This video was 100% watchable. Congratulations.

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

  • @tharshan09
    @tharshan09 5 років тому

    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.

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

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

  • @garrettkim2429
    @garrettkim2429 5 років тому +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.

  • @greggard5825
    @greggard5825 5 років тому +3

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

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

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

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

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

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

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

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

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

    Read more on how to customize Windows Terminal:
    www.hanselman.com/blog/ItsTimeForYouToInstallWindowsTerminal.aspx
    At 5:40, Scott's profiles.json sample:
    gist.github.com/shanselman/4d954449914664024ee20ba10c2aaa0d?WT.mc_id=-blog-scottha

  • @jayhu6075
    @jayhu6075 5 років тому +1

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

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

    at 08:00 when I try to follow your instructions I get a message below the command: "/mnt/c/Users/Yatz_ZZZ/AppData/Local/Programs/Microsoft VS Code/bin/code: 46: cannot create /tmp/remote-wsl-loc.txt: Permission denied" and I can only seem to open VSCode in Restricted Mode. Can help please?

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

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

    This is actually amazing
    Kudos Microsoft team

  • @tehsimo
    @tehsimo 5 років тому +24

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

  • @daniloloko5
    @daniloloko5 5 років тому +6

    This is amazing Scott!

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

  • @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 :)

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

  • @deadeye1982a
    @deadeye1982a 5 років тому

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

  • @kettenbach
    @kettenbach 5 років тому +2

    Great video Scott. Mind blown 😍‼️👍

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

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

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

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

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

  • @epictetusjr.7581
    @epictetusjr.7581 3 роки тому

    this was a great video and you style really works well

  • @michaelpowell2350
    @michaelpowell2350 5 років тому +3

    12:00 What happens for things like debugging and core dumps? Whose core is it at that point?

    • @noutkleef4458
      @noutkleef4458 5 років тому

      When I was running a C executable on WSL, I was not able to get a core dump to show up anywhere. I have not attempted to fix this issue by running it through the WSL remote in VSCode, though

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

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

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

    plan 9 network server.....@ 9:02, what does that mean?

  • @TheHaykokalipsis
    @TheHaykokalipsis 5 років тому +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.

  • @smallmoneybigmoney
    @smallmoneybigmoney 5 років тому +1

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

  • @Cryosxify
    @Cryosxify 5 років тому +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.

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

    Excellent tutorial for excellent features!

  • @softwayre
    @softwayre 5 років тому

    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.

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

    Scott you are the man....!

  • @OfferoC
    @OfferoC 5 років тому

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

  • @marcocerrato9014
    @marcocerrato9014 5 років тому +2

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

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

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

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

    what is the first step and needed application or OS for developing software for embedded Linux device such as Hand Terminals ?

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

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

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

  • @brennorris1720
    @brennorris1720 5 років тому

    Great overview of whats coming for WSL, thanks!

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

    How can I monitor windows programs and bandwidth from WSL? nload doesn't read anything and htop only monitors the linux programs. I don't like how task manager is set up as I like to see both the internet usage and cpu usage at the same time. I can't run two instances of task manager

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

    hi, thanks very much for your efforts. have 2 questions: -1) what extension you have used at --10:07-- (is it node exec which executes with F8 - you pressed F5 - or another one) and- (first one solved and its now Strikeout) 2) if a person created dev environment, created app, worked an hour or 2 (didn't yet backed-up) and suddenly windows crashed, the developer will lost everything he/she created on WSL ?? IMO in case of dual boot or a VM he/she can have all things to continue his/her efforts. Just wants to know what you or people are saying for this situation?

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

    Loved this but I am not seeing the option Subsystem for linux, assume the bios settings for virtualization is already set.

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

    How do you allow the localhost to get through the firewall? I could only get a server to run if I disable the firewall on windows 10. Where is my tylenol at?

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

  • @3um
    @3um 5 років тому

    Are there any perks of running docker under the linux (wsl)? I always used Vagrant for development on Windows, now I'm trying to get into something new. I thought about WSL, and Docker, but never even thought of using Docker under WSL, lol.

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

    When i type ls in wsl the directory background color is green how to change it.
    Please make a video on ittt

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

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

    In windows, Where is the best place to host your vscode Docker project? I assume it should be some Linux directories? Because if not, every code changes means you have to transfer your local windows files to Linux system which can be extremely slow in wsl2.

  • @PaulPushkarov
    @PaulPushkarov 5 років тому +3

    My understanding is that now wsl requires hyper-v enabled... And you won't be able to take advantage of both this and, say, virtualBox at the same time. Is it correct? Thank you for the video.

    • @pilotboba
      @pilotboba 5 років тому

      Correct. But, Hyper-V can replace everything you are doing with VirtualBox.

    • @dpjb78
      @dpjb78 5 років тому

      Hyper-V is needed only for Docker integration into WSL

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

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

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

    How did you solve the wsl 2 connecting to internet issue? I had to switch to wsl 1.

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

  • @TheDustin151
    @TheDustin151 5 років тому +55

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

    • @TienHuynh5312
      @TienHuynh5312 5 років тому +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

  • @martin777xyz
    @martin777xyz 5 років тому

    I tried the slow ring in order to get access to WSL 2 and use it with docker. Unfortunately the latest edge build of docker for desktop now requires a build of windows only on the fast ring. I'm wondering what the risk of going on the fast ring is.

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

    Does wsl support Nvidia extension to docker? This only worked on Linux before. So pytorch docker images using GPU meant booting into Linux does wsl change this?

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

    Coming from a Mac environment, I’m struggling with WSL. At work , I cant run native Linux. 2 questions: How do you run data science tools like CUDA in WSL? Does vscode recognize anaconda environments running WSL (Pycharm doesn’t) This was so simple on Mac. How can I make this simple on Windows?

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

    Why do you see the windows terminal icons at the top of each tab?
    Mine windows terminal says just Ubuntu and at the left side time the penguin linux mascot

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

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

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

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

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

    I am not getting something.. If you had to install Docker on Ubuntu, why stopping it in Windows would affect it in Ubuntu? Is that because the one on Windows works through WSL? (I remembered it asked me if I want to use WSL when installing it).

  • @marouane55
    @marouane55 5 років тому +5

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

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

    Is it possible to change something in order to be able to access the simple node.js at ip:3000 instead of localhost in order to be able to access the site from a remote machine? I updated the code as follows http.createServer(function(req, res) .....}).listen(3000, '0.0.0.0'); but still can't access from another laptop, thanks

  • @erikkalkoken3494
    @erikkalkoken3494 5 років тому +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.

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

  • @HumbertoRamosCosta
    @HumbertoRamosCosta 5 років тому

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

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

  • @RichardBronosky
    @RichardBronosky 5 років тому

    Any idea why I cannot run Windows EXEs (like powershell) as the root user inside WSL2? I can run it as the default admin user created when I installed [Debian] Linux.

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

    Hello Mr. Scott,
    Thanks for the insightful and quick introductionary video.
    I do have some question if you don't mind.
    Currently to go d disk or any other disk we must write cd /mnt/d/xyz_folder and so on
    I want to do it as cd /d/xyz_folder
    Is there any way to do ?
    Thanks a lot in advance .