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.
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 !
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.
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.
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.
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.
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.
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!
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.
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.
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.
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.
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...
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.
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.
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)
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.
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.
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!!
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
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
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?
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
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.
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...
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
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.
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!
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.
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.
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.
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.
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.)
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
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?
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?
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...
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.
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.
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.
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.
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
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.
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?
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?
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
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).
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
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.
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.
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...
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.
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 .
It's the year of Linux on the Desktop... Brought to you by windows... What a time to be alive.
I want to kill myself
Lol, indeed
My guess was, that MS will buy Canonical and will release MS Linux 10. Maybe in the future.
@@deadeye1982a Maybe even developers will appreciate this to evade the Linux kernel development code of conduct, simply to chose the lesser evil?
@@raymundhofmann7661 I haven't read the Code of Conduct, but let me guess: They are also on the gendermainstreaming / feminism train like many others?
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.
🤣 aaahh games.. and then windows.. it ruined my life. XD
Hope you get well soon
Sounds like this might have came from a place of truth. Got anything else you need to tell us before we break for Prayer?
/r/copypasta
haha, very good
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 !
What about now?
The most informative, well-explained video on WSL I have seen so far ....
Switching from writing code on macOS to Windows after almost 6 years. This video was really useful and informative. Thank you, I've subscribed 👏👏
Damn dude. I've been searching for an easy explanation about WSL2 and yours is so far the easiest to follow. Well done!.
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.
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.
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.
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.
Thank you for sharing your knowledge and having a positive impact on the community.
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.
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.
Scott - thanks for turning me on to the new Windows Terminal! I love it.
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!
I never understood the pp-sizing over different environments. It's like pp-sizing over nano, Vim, and emacs.. pointless.
I have learnt a lot within a very short time; thank you so much Scott.
Can you imagine knowing this is where we’d be 10 years ago? Simply amazing!
Amazing because MS waiting for destroy Linux? Are you crazy and blind?
@Game Over I hope so.
@@snackers7 I really really hope MS does that.
@@diablo.the.cheater You hope MS do that? Dont like free and open source software?
@@snackers7 No, free and open-source software is evil, software should be as closed as a black hole and as expensive as a rocket.
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.
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.
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.
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.
@@DieterGribnitz Tnx for your comment! :)
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...
@@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!
You pour such a massive stream of useful and structured information in this vid! I'm greatly impressed and thankful!
Mind blown like always with Scott's videos
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.
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.
Thank you for this walk through. Love you Scott!
I have a feeling we're all going back full circle to Windows very soon after all these years. This is amazing.
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.
ever heard of linux ?
@@OsmoZchannel Yeah
I'm in exactly the same situation as you.
I'm a linux fan boy, but most of my people are complete idiots. This is the market M$ is actually going after.
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!
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". 😮
Yo! This video was 100% watchable. Congratulations.
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)
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.
that terminal is so slick. Thanks man! Great vid :)
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.
just wanted to say my thanks for putting this up and keep them coming.
Great video! Absolutely loved this. I'm now set up and ready to go.
It is amazing. I have been worked on macos for 8 years. It is time to go back windows
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!!
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
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
You are the master. Thx for the great explanation. Hopely more about WSL2
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?
I just got a job where I need to work on a windows machine. I usually work in linux, so this is great!
Same for me, I'm forced to use windows, that I'm using only to ssh to Linux where I don't feel limited.
This is actually amazing
Kudos Microsoft team
This is a great... havent seen most of this broken down simply before
This is amazing Scott!
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
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 :)
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.
I am not a MS-Fanboy (using Arch Linux), but this impressed me and it's not easy to impress me.
Great video Scott. Mind blown 😍‼️👍
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...
This is mind blowing! How have I not heard of this before!!!
Amazing features . I am gonna try this in my PC .Thanks Scott for explaning.
this was a great video and you style really works well
12:00 What happens for things like debugging and core dumps? Whose core is it at that point?
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
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.
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!
ThousandtyOne Software LLP It's (Embrace, Extend, Extinguish) strategy of Microsoft.
plan 9 network server.....@ 9:02, what does that mean?
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.
You are a boss dude. Thanks for showcasing WSL 2.
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.
Excellent tutorial for excellent features!
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.
Scott you are the man....!
this is just fantastic. I can't wait for wsl 2 to be available in the slow insiders.
Loved it. Thank you. Amazing video. If possible do a tutorial on this topic.
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.
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.
what is the first step and needed application or OS for developing software for embedded Linux device such as Hand Terminals ?
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.)
This is a very important video. Amazing, thank you!
Great overview of whats coming for WSL, thanks!
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
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?
Loved this but I am not seeing the option Subsystem for linux, assume the bios settings for virtualization is already set.
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?
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...
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.
When i type ls in wsl the directory background color is green how to change it.
Please make a video on ittt
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.
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.
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.
Correct. But, Hyper-V can replace everything you are doing with VirtualBox.
Hyper-V is needed only for Docker integration into WSL
Is there a way to access local host 3390 from another computer in the same network?
How did you solve the wsl 2 connecting to internet issue? I had to switch to wsl 1.
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
I use Windows, OS X, and Linux. Each has its purpose.
the only reason I suspect that you use OSX is Xcode :))
Yea except os x its just for girls
@@ichaa3tech linux was invented in os x
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.
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?
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?
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
“If you’re watching this video in the future” I feel so cool at this moment! Where is my DeLorean?!
This is a very awesome staff , thank you! 😎👍
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).
@Scott Hanselman is the IO performance fixed in WSL 2 ?
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
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.
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.
A lot of developers prefer to use Windows and sometimes have to develop for Unices, so this is a fantastic feature.
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...
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.
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 .