I have been trying to sort this out for a couple months now, in my spare time, and after installation could not find simple instructions for configuring my applications to 'get along' with each other. This is a gem.
i've been using wsl2 and docker on wsl2 and all the stuff since they came out, but i really learned a lot in this video a lot of basics that i am missing please to think about this kind of videos more often. thanks Scott
@@Gabriel-kl6bt It's been working well and the integration is seamless. I use it for work since we're currently targetting Linux, while I have a Windows machine.
In your drawing explaining the Windows kernel, magic and wsl1 and then you put next to Windows Kernel: VM, then linux then wsl2. Isn't the entire system sill on top of the Windows Kernel, but the tiny "VM' would sit on top of it and provide all the calls to the Linux then wsl2 in this case? Or is the "VM" really at the same level as the Windows Kernel as you have drawn there (29:00)? Very interesting keyboards shortcuts. I learn something very interesting there, thanks :) As well as what the windows version means: 1909: 2010/Sep... Very good! Thanks for a great video.
You blow my mind. This is very useful and explanation information. Hopely more stuff in the future about distro's integrate in 10. Many thanks for this amazing tutorial.
A great video, exactly what I've been looking for with my desktop machine and I was able to follow along exactly, seeing the same output as Iheanyi's. Hit a snag when it came to opening vscode through Windows Terminal (Preview) using 'code .' - no output, no errors, just nothing! VSCode is installed and on the path, I can see it when I 'echo $PATH' and I can open a wsl terminal from code. I'm not on insiders and I have confirmed that I'm on WSL v1. I've tried reinstalling VSCode, removing (the few) settings I had changed in VSCode and rebooted my machine. The only thing I can think to do is re-install my wsl Ubuntu. Perplexing!
This is exactly what I wanted. I also recently moved from mac to windows and I was having trouble writing lambda in golang on windows. I couldn't run build.sh on windows. But now this is perfect.
Super thanks for posting this!! I've mostly been a Linux and Mac guy and have just installed Windows 10 2004 to get WSL 2 and had no idea about all these configurations (nor did I know about Windows 10 PowerToys!). I've worked through this video and am going to check out your other stuff. Looking forward to more great content like this!
What awesome class! It's time to refresh it since everything were released now with 2004 release. Suffering here to migrate from Linux to Windows for gaming/work as well =D. Who would say after 15 years on Linux I would someday migrate to Windows and actually enjoy it.
At 9:39, when he snaps VS Code to the left side of the screen you can see the windows doesn't actually snap properly. It's a bit off on all sides. This happens to me more often than I'd like. Does anybody know if this is a known bug/feature or how to fix it?
@@shanselman No, most definitely not VS Code specific as it happens with pretty much all windows. It seems to me that it's happening on random times, but very often indeed.
Windows has not fixed their scaling issue hence sometimes apps open bigger than others or don’t snap correctly I found the best way to deal with it is by right click on the taskbar then cascade windows followed by show windows stacked. It resizes all open windows then snap as you pls. Hope this helps
"ctrl + f your way to glory" would make a great t-shirt. This is a super timely vid for me as I just switched from an 8 year run with Apple to a new Dell XPS. Thanks!
I think there is no good way to answer that, but I would say that using Wine is, probably, better (in terms of compatibility). Wine is an old and well polished program... but I can fell that WSL will probably get Wine as soon as possible, cos Linux being open source helps a lot the Microsoft side.
WSL one is more complete (when it comes to its overall use-case),but WINE has more use cases and is much much faster (beating windows in some cases,even in games),and more programs overall.
@@shanselman Windows Terminal (preview) - Version 0.8.10261.0 last Updated on Jan 28th, 2020. I run Git Bash as Default (guid). And also have a Subsystem Linux distro - Ubuntu. My Windows is up to date, it's on Version 1909(OS Build 18363.628).
@@m0hammedimran You would want to run the Ubuntu one by running "wsl" at the command line. Remember that git bash isn't Linux, it's an illusion that feels linuxy.
I’ll tell you I’m a Mac head that hates windows except for gaming. But I’m rethinking this because their last subset of updates really have improved the usefulness of Windows
Scott, you should really do a course on Pluralsight. I know they've partnered with Microsoft for Azure courses, but it would be great if they could have you do some development focused courses.
@@shanselman Thks for your answer. I don't use Twitter so I can't show you and it might not even be a bug. It happens only when the windows is already in full screen mode otherwise alt+enter works fine. The grey bar is actually a part of the top border that doesn't disappear. I don't know if that's clear. That's not a big deal anyway since I can avoid the problem.
For embedded Linux development WSL2 continues to exhibit file permission issues when running scripts. Enabling the extra metadata does not fix the issues so anyone running Buildroot or Yocto will be unable to use it. Unfortunate as there IS much to like.
This is really great.... can we have one of these for WSL2 and Docker? So many tools are built on top of Docker and I’ve failed so many times trying to get an acceptable Docker experience on Linux. Each time I revisit the topic all names have changed etc and it leaves my head spinning. Sounds like WSL2 sounds like final real Docker support - can we get a Hanselmanifed walk through of this please?????
After installing VIM your cursor changed to ```filledBox``` ua-cam.com/video/j0PPcUUtHlw/v-deo.html How are you writing some code? In my case, I can't do anything!!! Please HELP!
I have a noob question. Do I only need WSL if I want to make Linux OS specific apps? Or Are there benefits to using WSL instead of cmd and powershell? I just started an online course on machine learning (python,R). Also my windows doesn't support wsl2
I like using WSL as SSH/SCP-Client. It's way better and easier than setting up Putty IMO. OpenSSL is also great for creating or converting certificates - it's way more easy to find documentation for those tasks if you are using some kind of Unix.
Well, I got to the part of Ubuntu 18.04 in WSL where it is recommended to run 'sudo apt-get update; sudo apt upgrade -y' and everything exploded due to dpkg fatal errors. Confirmed my coworker hit the same thing and gave up for the time-being. And the new Terminal doesn't run on 1809 that our enterprise is pinned at for now. But hey... free Cascadia PL font from the video at least. I do appreciate the video though.
Can Microsoft please make this easier? I went through the config for this, and as a first time user, it took me days to set up. I had issue after issue, tons of Googling, tons of Github threads... It was a ton of work to do something that Mac and Linux do out of the box. As a software engineer with 15 years of experience, I was capable of fixing it. Junior devs would probably not have been able to. Even so, I even got to one point where I was literally going to give up and buy a Mac if it continued to not work. I did get it working luckily. All of this could have been set up on a fresh install of Windows by default. And I'm sorry but having to store all of my code projects inside of the Ubuntu VM in order to get decent FS performance is way too risky. If something happens and I need to reinstall, I could very easily forget to copy the project files out of the VM first (not to mention the permission issues with doing so), and lose any non-committed files. And sometimes I just have to open files that are not located in the VM, and that can take multiple seconds just to perform single cd commands. As of right now, this is just not a realistic solution. Beta testing Windows builds, complicated config processes (some of which have to be repeated to work in VSCode... like, what?), bugs, poor performance, needing to change BIOS settings, very limited support for when something goes wrong... There needs to be a better solution!
Frankly, I’d pay good money on udemy (whatever) to get windows/WSL to run seamlessly like my Mac-same file system, all packages like nvidia CUDA install, Pycharm plays nicely with virtual. I’m one of those folks who works (mostly) with data science packages installed from anaconda. Grounded in Mac-have to use windows at (new) work in military sector-know very little about windows. Ack?!
*reads the title....laughs*. I'm sorry, but I have to say it. setting up a windows machien for linux development/work is as asinine as setting up a conslow to create games..when they are CLEARLY made on the PC. Scott, I"m willing to bet you've done some great work here as well as all the other videos, but it's just too ..funny to watch. I'm not thumbs downing it good man.
You are an excellent teacher Scott. Learned so much about setting up Linux dev environment in Windows in such little time. Thanks a lot.
Scott "Humour Me" Hanselman!
Very nice video. I agree with the one who asked for more sessions like this.
Scott you are my favorite microsoft employeee! its just so great getting insights straight from a Microsoft senior guy!
We want more sessions like this!! Maybe a different topic.. but same format.
I have been trying to sort this out for a couple months now, in my spare time, and after installation could not find simple instructions for configuring my applications to 'get along' with each other. This is a gem.
I really like how you navigate Iheanyi and introduce this dev process! Thank you very much for sharing~ Very impressed!!!
You teach me stuff that makes me feel cool to use Windows, Scott. And that -- Makes Me Feel Happy.
Great tutorial for windows terminal ! One video worth than thousand blogs. Nice Job , Scott !
i've been using wsl2 and docker on wsl2 and all the stuff since they came out, but i really learned a lot in this video a lot of basics that i am missing please to think about this kind of videos more often. thanks Scott
This was really awesome and educational! This video has convinced me to try out WSL and the new Windows Terminal. Neat stuff!
How's it going so far? Still using it?
@@Gabriel-kl6bt It's been working well and the integration is seamless. I use it for work since we're currently targetting Linux, while I have a Windows machine.
Love it when Scott says "Drink this in for a second" Mind Blown! Agreed, "It is very dope!"
Dude you're freaking amazing. can't wait to do this on my corporate windows
Hey Scott
Thanks for doing this.
I wanted windows UI but linix for development. Your videos on WSLs are helping me a lot.
In your drawing explaining the Windows kernel, magic and wsl1 and then you put next to Windows Kernel: VM, then linux then wsl2.
Isn't the entire system sill on top of the Windows Kernel, but the tiny "VM' would sit on top of it and provide all the calls to the Linux then wsl2 in this case?
Or is the "VM" really at the same level as the Windows Kernel as you have drawn there (29:00)?
Very interesting keyboards shortcuts. I learn something very interesting there, thanks :) As well as what the windows version means: 1909: 2010/Sep... Very good!
Thanks for a great video.
I like the way you teach. Continue the good work.
You blow my mind. This is very useful and explanation information.
Hopely more stuff in the future about distro's integrate in 10.
Many thanks for this amazing tutorial.
Pretty neat stuff - Thanks Scott, I can't get better explanation than you did in the video
I recently started using a windows desktop again and this was helpful finding more tips and tricks. Keep up the good work.
A great video, exactly what I've been looking for with my desktop machine and I was able to follow along exactly, seeing the same output as Iheanyi's.
Hit a snag when it came to opening vscode through Windows Terminal (Preview) using 'code .' - no output, no errors, just nothing! VSCode is installed and on the path, I can see it when I 'echo $PATH' and I can open a wsl terminal from code. I'm not on insiders and I have confirmed that I'm on WSL v1. I've tried reinstalling VSCode, removing (the few) settings I had changed in VSCode and rebooted my machine.
The only thing I can think to do is re-install my wsl Ubuntu. Perplexing!
Can't wait for an updated version of this!
This is exactly what I wanted. I also recently moved from mac to windows and I was having trouble writing lambda in golang on windows. I couldn't run build.sh on windows. But now this is perfect.
Question, I have WSL2 and I know it comes with its own tiny Linux kernel but I can't get it to open. It open and disappear.
This was SO helpful, thank you, sir!
Super thanks for posting this!! I've mostly been a Linux and Mac guy and have just installed Windows 10 2004 to get WSL 2 and had no idea about all these configurations (nor did I know about Windows 10 PowerToys!). I've worked through this video and am going to check out your other stuff. Looking forward to more great content like this!
What has happened since? :D
What awesome class! It's time to refresh it since everything were released now with 2004 release. Suffering here to migrate from Linux to Windows for gaming/work as well =D. Who would say after 15 years on Linux I would someday migrate to Windows and actually enjoy it.
Awesome video. Thanks for making this Scott. Really cool.
I don't see the shortcuts on holding down the windows key. Do I need to install something ?
This is simply amazing! Thanks!
As Neo once said, "Whoa"
Scott, you convinced me to try this out and wanted to Thank you Buddy! Awesome stuff!
That's a very fun video also I learned a lot from you both. Thanks a lot!
Thanks, this was way excellent walk through!
At 9:39, when he snaps VS Code to the left side of the screen you can see the windows doesn't actually snap properly. It's a bit off on all sides.
This happens to me more often than I'd like.
Does anybody know if this is a known bug/feature or how to fix it?
Is that a VS Code bug you think?
@@shanselman No, most definitely not VS Code specific as it happens with pretty much all windows. It seems to me that it's happening on random times, but very often indeed.
Windows has not fixed their scaling issue hence sometimes apps open bigger than others or don’t snap correctly I found the best way to deal with it is by right click on the taskbar then cascade windows followed by show windows stacked. It resizes all open windows then snap as you pls. Hope this helps
Amazing ( and fun ) class!
"ctrl + f your way to glory" would make a great t-shirt. This is a super timely vid for me as I just switched from an 8 year run with Apple to a new Dell XPS. Thanks!
I just typed: "code . " inside WSL Legacy (Ubuntu 18.04), it went to install the code server, then I saw Visual Studio Code, BUT.... I got a BSOD :(
Tried to start it again (code . ), but now I get this: pastebin.com/31idKTEA
So I removed the ".vscode-server" directory and run "code ." again and I got a BSOD again, just after it showed the GUI :(
I get the BSOD when I install the vs code python extension in wsl. So frustrating.
I appreciate your videos. They teach me alot. THank you !
Damn! Was just roaming around and got hooked
Amazing Scott! Learnt sooo much. Thanks
Windows 10 Pro 1909
In my windows terminal,
Acrylic not working...?
"useAcrylic": true,
"acrylicOpacity": 0.8
You probably have transparency effects disabled in Windows settings.
Can we have these features in Visual Studio like we have is VSCode. I want to remote develop from Visual Studio
Real question, which is better WSL on Windows or Wine on Linux?
I think there is no good way to answer that, but I would say that using Wine is, probably, better (in terms of compatibility). Wine is an old and well polished program... but I can fell that WSL will probably get Wine as soon as possible, cos Linux being open source helps a lot the Microsoft side.
WSL one is more complete (when it comes to its overall use-case),but WINE has more use cases and is much much faster (beating windows in some cases,even in games),and more programs overall.
I’d say rn use whatever your comfortable with or prefer
Hey Scott. Holding down the windows key doesn't show this small cheat-sheet on screen. What might be my problem?
Wait, what was that "hold the win key for shortcut keys" thing? Doesn't seem to be a thing in "default Win 10"?
Sorry I didn't make that clear. That's github.com/microsoft/PowerToys
'useAcrylic' key isn't working on my terminal.
There is a chevron instead of a dollar sign, how do you get that.
What version of terminal do you have?
@@shanselman Windows Terminal (preview) - Version 0.8.10261.0 last Updated on Jan 28th, 2020.
I run Git Bash as Default (guid). And also have a Subsystem Linux distro - Ubuntu.
My Windows is up to date, it's on Version 1909(OS Build 18363.628).
@@m0hammedimran You would want to run the Ubuntu one by running "wsl" at the command line. Remember that git bash isn't Linux, it's an illusion that feels linuxy.
Okay. Thank you.
But I wanted to know about that Chevron at the prompt instead of $
@@m0hammedimran that's a configuration of your shell, has nothing to do with the terminal. in bash, you have to change the PS1 variable. Google it.
I’ll tell you I’m a Mac head that hates windows except for gaming. But I’m rethinking this because their last subset of updates really have improved the usefulness of Windows
This is good. I'm a Linux user and I'm considering trying Windows out, too.
How do I make vs code default when i click on settings ?
Make sure it’s the editor for your .json files. You can right click any .json file, then click Open With, select Code, and Set As Default.
Great content, Scott!
Windows has gotten so much better recently.
Scott, you should really do a course on Pluralsight. I know they've partnered with Microsoft for Azure courses, but it would be great if they could have you do some development focused courses.
:) We need more and more sessions like this !!!
Greate Job !!!
#TTTT
Great stuff, well taught, I'll be doing this right now!
Am I the only one who have a problem when I try to press alt + enter to fullscreen the terminal? There is still a grey bar in the middle.
In the middle
vertically or horizonal? Show me on Twitter?
@@shanselman Thks for your answer. I don't use Twitter so I can't show you and it might not even be a bug. It happens only when the windows is already in full screen mode otherwise alt+enter works fine. The grey bar is actually a part of the top border that doesn't disappear. I don't know if that's clear. That's not a big deal anyway since I can avoid the problem.
For embedded Linux development WSL2 continues to exhibit file permission issues when running scripts. Enabling the extra metadata does not fix the issues so anyone running Buildroot or Yocto will be unable to use it. Unfortunate as there IS much to like.
Does Windows protect itself against "sudo cp /dev/zero /mnt/c" in wsl2?
This is really great.... can we have one of these for WSL2 and Docker? So many tools are built on top of Docker and I’ve failed so many times trying to get an acceptable Docker experience on Linux. Each time I revisit the topic all names have changed etc and it leaves my head spinning. Sounds like WSL2 sounds like final real Docker support - can we get a Hanselmanifed walk through of this please?????
Happy to do it.
Right off the bat on my PC with two linuxes installed:
Bash
(So far, so good)
lsb_release -a
-bash: lsb_release: command not found
(Sigh)
Don't sigh! What Linux do you have installed? wsl --list
Anyone had any success in updating to insider build with WSL2? Anything break during WSL1 to WSL2 transition?
@Crazy Monkey nice one! Thanks.
What is Hyper?
Can you run xeyes or killbill?
btw you can access powershell or cmd by typing powershell.exe or cmd.exe in bash
Raphael get windows terminal on the ms store solves all problems
After this video I subscribed to the channel
win10 with virtualbox and docker?
After installing VIM your cursor changed to ```filledBox``` ua-cam.com/video/j0PPcUUtHlw/v-deo.html
How are you writing some code? In my case, I can't do anything!!! Please HELP!
Hi Scott , can we run ssh commands in WSL. I tried But I got a new error every time.. :)
I wonder what are the opinions on this from Iheanyi after a few months - any insight Scott?
It would be lovely to see y'all's faces during videos like this.
Wow, that is insane. Didn't really know that you can have worked and Linux distro's work like that...
I have a noob question.
Do I only need WSL if I want to make Linux OS specific apps? Or Are there benefits to using WSL instead of cmd and powershell? I just started an online course on machine learning (python,R). Also my windows doesn't support wsl2
I like using WSL as SSH/SCP-Client. It's way better and easier than setting up Putty IMO. OpenSSL is also great for creating or converting certificates - it's way more easy to find documentation for those tasks if you are using some kind of Unix.
This was super helpful. For some fun, check out the Vintage scheme with the experimental.retroTerminalEffect flag.
How about memory issues in wsl 2 ? Do that resolved ?
Yes devblogs.microsoft.com/commandline/memory-reclaim-in-the-windows-subsystem-for-linux-2/
Well, I got to the part of Ubuntu 18.04 in WSL where it is recommended to run 'sudo apt-get update; sudo apt upgrade -y' and everything exploded due to dpkg fatal errors. Confirmed my coworker hit the same thing and gave up for the time-being. And the new Terminal doesn't run on 1809 that our enterprise is pinned at for now. But hey... free Cascadia PL font from the video at least. I do appreciate the video though.
Great vid Scott, yours is the only bell I've ever smashed lol
2:33 "So you have _one_ Linux on your machine."
2:56 "And you can run as many Linux-es as make you happy."
This brings me joy.
4:48 "That way you can literally share them like Pokemon with your friends"
This is beautiful.
How do I install wsl on my windows 10 machine?
docs.microsoft.com/en-us/windows/wsl/install-win10
this is not available on my windows 10 :(
What version? Run "Winver" and tell me
Wow! Thank you so much. You made life easy. haha.
Should of installed WSL2 which is a real linux kernel
I found the concept behind this video really appealing - I found the actual video painful. I understand all the love, though... lol.
Definitely a windows JEDI ... my mind has been blown
holy ssssshh!!! this is a lot better than nice!
This is amazing where do I get some help like this? Hahaa
awesome!
The king of the Beyhive appears!
DAMN RIGHT
this is what i exactly what i wanted.
What the heck? 12 Gb of ram and high CPU load?!This is the total power of the internet navigator you use?
very nice video, you got +1 subscriber :)
The best Linux Dev env IS the same env as prod aka Linux
Windows is the best OS to work with Linux.
Can Microsoft please make this easier? I went through the config for this, and as a first time user, it took me days to set up. I had issue after issue, tons of Googling, tons of Github threads... It was a ton of work to do something that Mac and Linux do out of the box. As a software engineer with 15 years of experience, I was capable of fixing it. Junior devs would probably not have been able to. Even so, I even got to one point where I was literally going to give up and buy a Mac if it continued to not work. I did get it working luckily. All of this could have been set up on a fresh install of Windows by default. And I'm sorry but having to store all of my code projects inside of the Ubuntu VM in order to get decent FS performance is way too risky. If something happens and I need to reinstall, I could very easily forget to copy the project files out of the VM first (not to mention the permission issues with doing so), and lose any non-committed files. And sometimes I just have to open files that are not located in the VM, and that can take multiple seconds just to perform single cd commands.
As of right now, this is just not a realistic solution. Beta testing Windows builds, complicated config processes (some of which have to be repeated to work in VSCode... like, what?), bugs, poor performance, needing to change BIOS settings, very limited support for when something goes wrong... There needs to be a better solution!
Microsoft beginning the Extend phase.
7:52
LMAO
Frankly, I’d pay good money on udemy (whatever) to get windows/WSL to run seamlessly like my Mac-same file system, all packages like nvidia CUDA install, Pycharm plays nicely with virtual. I’m one of those folks who works (mostly) with data science packages installed from anaconda. Grounded in Mac-have to use windows at (new) work in military sector-know very little about windows. Ack?!
smash that bell !
i took note when i was watching this 😂, thanks
*reads the title....laughs*. I'm sorry, but I have to say it. setting up a windows machien for linux development/work is as asinine as setting up a conslow to create games..when they are CLEARLY made on the PC. Scott, I"m willing to bet you've done some great work here as well as all the other videos, but it's just too ..funny to watch. I'm not thumbs downing it good man.
I clicked the video to see the girl in the thumbnail. Where is she at?
This is so weird. Linux on Windows. I'm used to Windows on linux. But then again, the last Windows I used was XP.
😒 So what does the topless (or implied topless) woman in the clickbait image have to do with this?
Prime...