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

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 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 ....

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Yo! This video was 100% watchable. Congratulations.

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

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

    This is actually amazing
    Kudos Microsoft team

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

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

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

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

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

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

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

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

    Thank you for this walk through. Love you Scott!

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

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

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

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

    Mind blown like always with Scott's videos

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

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

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

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

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

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

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

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

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

    • @トヤマトカナワ
      @トヤマトカナワ 5 ปีที่แล้ว

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

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

      Tribalism is real.

    • @トヤマトカナワ
      @トヤマトカナワ 5 ปีที่แล้ว

      @M T y y

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

      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

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

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

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

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

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

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

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

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

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

    Scott you are the man....!

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

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

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

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

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

    fantastic Scott. Can we replace the powershel integrated in VSC by windows terminal?

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

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

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

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

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

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

    Hey I just found out about the existence of WSL2 via your video.
    I'm just a beginner and the video is 2 years old but maybe someone can answer my beginner questions :)
    How would the actual project workflow look like?
    If you create a project inside your Linux, will the files be accessible from Windows (when Linux is not running) or will it be saved in some kind of image only available if Linux is running via the network access?
    Or would you create your projects on your windows drives, D:// for example, and access it via Linux?
    Thanks in advance :)

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

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

    Can you please share your settings.json for windows terminal.

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

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

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

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

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

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

    Great video. But let's say I am running a database server in windows. Can I use database using localhost as address or do I need to go through IP? Similarly, what if my database is running inside wsl ubuntu. Can I connect it using localhost from windows or do I need to go through IP?

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

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

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

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

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

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

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

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

    In my case windows subsystem for Linux is no showing in window 10 feacher what I do

  • @feryardiant
    @feryardiant 5 ปีที่แล้ว +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 5 ปีที่แล้ว

      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

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

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

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

    Great video! Scott do you know how to use WSLENV to allow values instead of paths from environment variables in windows for use in Ubuntu?

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

    i installed wsl 2, but i had to disable hyper-v to use virtualbox, and now my wsl machines, ubuntu and debiain, won't start. how to downgrade form wsl 2 to wsl 1, because it seems wsl 1 works fine with hyper-v disabled
    please give a solution

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

    Beautiful. Already had WLS 2 set up (on the new Win 10 v2004) but I didn't know about the Terminal. My dropdown control does not have all the entries yours does, maybe b/c yours was some type of fancy Beta? Anyway thanks!

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

    When will it be available for public ?.

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

    #KVM #Docker support on Windows and #WSL hardware discovery with kernel modules?

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

    Does anyone know how he added VS Code as a drop down option in the Windows Terminal?

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

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

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

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

    Great video. But I have a question, I am running out of space in my C driver, and I am pretty sure that these VMs or whatever you call are storing it's data in C drive. So, my question is how can I change these VMs storing data directory? Thanks.