WSL2: Code faster on the Windows Subsystem for Linux! | Tabs vs Spaces

  Рет қаралды 208,255

Microsoft Developer

4 жыл бұрын

Learn all about WSL2, the new version of the Windows Subsystem for Linux, and what changes have been made to improve performance.
Craig Loewen will show you how to get things installed and set up a Linux development workflow that is integrated with Windows and VS Code. Check out the faster IO performance and system call compatibility, then watch Craig run an app from inside a container using Docker Desktop for Windows and debug it using VS Code.
Here are some links to learn more:
- Install WSL2 docs.microsoft.com/windows/wsl/install-win10?WT.mc_id=windows-c9-niner
- Compare WSL 2 and WSL 1 docs.microsoft.com/en-us/windows/wsl/compare-versions?WT.mc_id=windows-c9-niner
- Set-up your dev environment on Windows docs.microsoft.com/windows/dev-environment/?WT.mc_id=windows-c9-niner
- File issues, search existing issues, get help with WSL github.com/microsoft/wsl/issues/?WT.mc_id=windows-c9-niner
- Windows Command Line Blog (WSL News) devblogs.microsoft.com/commandline/?WT.mc_id=windows-c9-niner
- Follow Craig Loewen craigaloewen or Windows Developer Docs WindowsDocs on Twitter
- Create an Azure Account (12 months free + $200 credit) azure.microsoft.com/free/?WT.mc_id=windows-c9-niner
- Source code for the Ghost Game demo github.com/craigloewen-msft/ghostgame
- Get started using Docker containers with WSL2 and NodeJS docs.microsoft.com/windows/nodejs/containers/?WT.mc_id=windows-c9-niner
- Install Docker Desktop for Windows docs.docker.com/docker-for-windows/install/?WT.mc_id=windows-c9-niner
- Install VS Code code.visualstudio.com/download/?WT.mc_id=windows-c9-niner
#wsl #wsl2 #windows #linux #vscode #docker

Пікірлер: 432
@bharcooldude
@bharcooldude 4 жыл бұрын
I'd love to have GPU hardware support for WSL versions in the future to run my deep learning algorithms on linux environment.
@anonymoususer6801
@anonymoususer6801 4 жыл бұрын
That is the only reason why don't use it yet
@yisonpylkita6006
@yisonpylkita6006 4 жыл бұрын
GPU passthrough should be doable since other VMs also has it
@paulstelian97
@paulstelian97 4 жыл бұрын
Hyper-V doesn't have PCI passthrough support at all for now.
@AB-fp8xo
@AB-fp8xo 4 жыл бұрын
@@paulstelian97 PCI passthrough is available for years in Hyper-V via discrete device assignment
@log5426
@log5426 4 жыл бұрын
@@paulstelian97 So you could technically use WSL2 for machine learning?
@shahamir13
@shahamir13 3 жыл бұрын
What you guys have done with your WSL is phenomenal. Kudos to all of you and Microsoft.
@rolmops883
@rolmops883 Жыл бұрын
Translation: Running Linux is phenomenal, finally Windows users get to experience the benefits :D
@rano12321
@rano12321 Жыл бұрын
@@rolmops883 While not deal with the headaches that come with running Linux desktop.
@rolmops883
@rolmops883 Жыл бұрын
@@rano12321 headaches like what? I've been running Linux for years now, and I honestly can't think of anything
@zubinix
@zubinix 4 жыл бұрын
This is seriously awesome! Light years from how Bill and Steve would try their hardest to block unix/windows interoperability. Oh how times change.. for the better.
@rparker061
@rparker061 4 жыл бұрын
actually that is an incorrect statement. Bill and Steve were best of friends.. so obviously NOT what you believe. MS actually bailed out Apple a couple of times, they were not counter, they just have different ways of doing things. Both wanted to be a front runner so of course they could let the other side win, but there was very little they interfered with. Both OS has it's merits.
@BogdanNasalean
@BogdanNasalean 4 жыл бұрын
​@@rparker061 I think zubinix was referring to Steve Ballmer not Steve Jobs.
@USGrant21st
@USGrant21st 2 жыл бұрын
instead of fighting Linux, Microsoft decided to absorb it
@cookiemonster208
@cookiemonster208 2 жыл бұрын
@@USGrant21st Because Linux actually won the OS wars, if you look at how many installations and the various ways it is being used. Microsoft, in my opinion and the opinion of many others, is turning Windows into a Linux distro. Linux has stood the test of time, and by doing so Microsoft is going to save a shit load of money. The future of Windows is just as an emulation layer on top of Linux.
@TheoWillemse
@TheoWillemse 4 жыл бұрын
Nice video, but the guitars between subjects are way to loud.
@barabimbaraboom7830
@barabimbaraboom7830 4 жыл бұрын
Screw you microsoft! ;-) nothing personal Theo
@J3lueHawK
@J3lueHawK 4 жыл бұрын
I started laughing every time ... So damn annoying
@shubhamsinha6829
@shubhamsinha6829 3 жыл бұрын
lol
@guyincognito1985
@guyincognito1985 3 жыл бұрын
LEGALIZE RANCH!
@conea6891
@conea6891 3 жыл бұрын
U damn right. The girl next door had to knock my door. lol
@changtimwu
@changtimwu 4 жыл бұрын
Thanks for the introduction. I just switch from Mac to Windows. WSL completes the last missing piece. From my engineering sense, simulation via translating system calls is supposed to be faster than via running entire OS on a VM. Interestingly, you got different result.
@cookiemonster208
@cookiemonster208 2 жыл бұрын
This is a years old comment, but, yes! This definitely makes Windows a better dev environment than mac for most developers. When I started to work on Mac primarily, I was anticipating being able to access the underlying Unix infrastructure. I was sorely disappointed when I realized that MacOs doesn't allow that, hence the existence of tools like Homebrew. But Microsoft has now fulfilled that desire and elevated Windows as the best OS, imo.
@aashishdhiman5847
@aashishdhiman5847 4 жыл бұрын
Super excited for the release of WSL 2!!
@slowtyper95
@slowtyper95 4 жыл бұрын
Oh its not release yet?
@Tux0xFF
@Tux0xFF 4 жыл бұрын
@@slowtyper95 it is but you need to be on the buggy version of windows , its like a beta windows 10, not the regular windows 10
@BattousaiHBr
@BattousaiHBr 3 жыл бұрын
@@Tux0xFF i mean, is there a difference? haha
@harou22
@harou22 4 жыл бұрын
Love the progress so far. Next step is ditching for in Windows O:)
@buzifalus
@buzifalus 3 жыл бұрын
haha this will never happen
@pluralcloud1756
@pluralcloud1756 4 жыл бұрын
Thank you for this-- more to come please....
@arturskarlovics9929
@arturskarlovics9929 4 жыл бұрын
Damn this is impressive... Can't wait until it get's released - I can't sign up to be an insider on my work computer.
@ukiyo_studio
@ukiyo_studio 6 ай бұрын
Late to this video but this was a great overview of WSL2 for windows
@rlking12
@rlking12 4 жыл бұрын
wsl is just awesome, I'm using it since day 1
@davi_ufop
@davi_ufop 4 жыл бұрын
WSL need of Xserver native.
@Ruptured_AU
@Ruptured_AU 4 жыл бұрын
I've had x server working on wsl1 and ran php storm from it. Just follow a guide to setup x server
@James-ln6li
@James-ln6li 4 жыл бұрын
I would not be surprised if this is something Microsoft is working on next. I assume the goal of this update was focusing on 100% compatibility and performance. Next definitely could be a native Xserver, but we are probably a year away sadly.
@BennoKushnir
@BennoKushnir 4 жыл бұрын
xming should be good enough
@SahilP2648
@SahilP2648 4 жыл бұрын
@@BennoKushnir can you point me to a user friendly guide for that? Currently I am developing a website on my virtualbox linux machine since I have to work with windows as well and can't really dual boot. Using WSL would be better for me along with VNC or xserver or xming.
@techzerker8900
@techzerker8900 4 жыл бұрын
@@SahilP2648 I'll post details in a few minutes on my site at https:\\techzerker.com , as with WSL1, I use a quick and dirty .vbs script w/ VcXsrv on windows to use a full i3 Desktop on my Windows 10.
@ash_ish
@ash_ish 3 жыл бұрын
I loved that guitar sound lol. That was so good and catch me off guard.
@bimalchandrakarmakar1427
@bimalchandrakarmakar1427 4 жыл бұрын
WSL is Awesome. I Love it... And with WSL2, specially the Much Better File I/O Performance, it's even better. I liked the way you explained why you prefer Spaces to Tabs and it's a very very good point... Thanks a Lot and Keep Developing and Improving WSL... From India
@anuragstutorials9484
@anuragstutorials9484 4 жыл бұрын
Why not just use Linux
@bimalchandrakarmakar1427
@bimalchandrakarmakar1427 4 жыл бұрын
@@anuragstutorials9484 Because my workflow requires Windows Apps and I love them. Example: Office, One Note, To Do etc
@SantoLucasST
@SantoLucasST 4 жыл бұрын
The weird thing is that i prefer tabs for the exact same reason, you can configure how wide you want the tabs to display so if one person prefer 2 spaces and the other one prefer 4, then they just configure they editor to display now much they want. Using spaces don't allow this. So weird that this debates still exists since tabs can do the same thing and more, and also require less button pressing.
@Noobtaco
@Noobtaco 4 жыл бұрын
Tab vs Spaces. It's ok that you are wrong :) Thanks for the video on WSL 2.
@rafaelfez
@rafaelfez 4 жыл бұрын
Wow, thats awesome !
@treadless_co
@treadless_co 2 жыл бұрын
Liking the iron ring sir!
@MrAndyll96
@MrAndyll96 4 жыл бұрын
I hope they're working on performance of working on files on the windows file structure. Would love to have my code sync to my google drive, makes working across different machines a lot easier
@morrolan
@morrolan 4 жыл бұрын
So you are showing Docker in Windows is available in the WSL2 does that mean it still required Hyper-V ? I was hoping that I could install Docker in Ubuntu/WSL2 while still not have Hyper-V enabled so that I can continue to also run vmware.
@francootaola9172
@francootaola9172 4 жыл бұрын
hello, i am having issue to run .exe from windows directly from wsl, if i do notepad.exe it opens correctly, but when i type paraview.exe (that is the exe i want to run) it says command not found :/
@udonwadon2045
@udonwadon2045 4 жыл бұрын
This looks really cool. I've tried it for ruby but the plugins like solargraph, rubocop, never work because they're still looking in the windows system for those gems I've installed. would love it if the plugins were also working for vscode
@evstigneevigorv
@evstigneevigorv 4 жыл бұрын
We need USB support for engineering tasks - FPGA Development, DSP Programming and so on ...
@kursatyakupkukul7670
@kursatyakupkukul7670 3 жыл бұрын
definately agree ! With usb support I could let go of linux!
@carlosanaya198555
@carlosanaya198555 4 жыл бұрын
When are we getting the full WSLconf 2020 recordings?
@romulobrandino
@romulobrandino 4 жыл бұрын
Great video
@emanueol
@emanueol 4 жыл бұрын
gratz on great video
@MaxAlonso
@MaxAlonso 2 жыл бұрын
I love the information in the video is very clear, in a side note I also love how lame the music is :D
@ICT_Notion
@ICT_Notion 3 жыл бұрын
can someone help on how to have the 202 build ? i tried everything looked everywhere nobody talks abt it
@rparker061
@rparker061 4 жыл бұрын
What are the specs of the laptop you were doing demos on? Just wondering for comparison sake. Do you have SSD and what is the RAM \ CPU configuration. Just basics. Also very good presentation, explanations and details. Nice video. Thank you.
@Marcel-dt5du
@Marcel-dt5du 4 жыл бұрын
Hey, can I access USB devices from wsl2 yet? I need to access my yubikey
@MattWojo
@MattWojo 4 жыл бұрын
I believe that this is on the team's backlog to build in support for, but currently not officially supported. github.com/microsoft/WSL/issues/2195 That said, been meaning to try this to see if it works, just need to make the time... github.com/microsoft/WSL/issues/2195
@grindinglcmeow
@grindinglcmeow 4 жыл бұрын
The transition guitar soundtrack tho lol
@dendihndn
@dendihndn 4 жыл бұрын
I have tried Docker Desktop on WSL2 installed machine. I thought it will not create a virtual machine no more, but it still there.
@sushantsrivastav3251
@sushantsrivastav3251 3 жыл бұрын
which software are you using to get all the terminals at one place
@Ruptured_AU
@Ruptured_AU 4 жыл бұрын
The file i/o speed increase I'm guessing are only when running on the WSL file system. Given its now a vm guessing it will actually be slower accessing ntfs files in Windows folders?
@paulstelian97
@paulstelian97 4 жыл бұрын
It shouldn't be too bad as the 9P protocol is actually pretty efficient. It's possible it's even slightly faster (as in only twice or three times as slow as native, in-VM access)
@Ruptured_AU
@Ruptured_AU 4 жыл бұрын
​ Paul-Stelian Olaru quick google search shows a lot of complaints about how slow WSL2 file performance is. And some comparing to WSL1. THInk showing the IO performance inside the vm is a bit dumb as you will want to be using the mounted NTFS drives for your work.
@JaskoonerSingh
@JaskoonerSingh 4 жыл бұрын
does ubuntu flatpak work and do you need w10 professional to run docker in wsl2 ?
@10minutegamers
@10minutegamers 4 жыл бұрын
docs.docker.com/docker-for-windows/install-windows-home/ This is a new article showing that with WSL2 you can run it on home
@sweetcoolluvaboy
@sweetcoolluvaboy Жыл бұрын
Is there a way to keep the TOP command results shown a browser or windows client ? I would like one place I can view the resources of all my servers.
@educobuci
@educobuci 4 жыл бұрын
Nice! The tab part is totally random though :)
@asandax6
@asandax6 4 жыл бұрын
I still have no idea why they put it there I don't think it was supposed to be part of the video but the editors decided what the heck put it in.
@deeppatel2819
@deeppatel2819 3 жыл бұрын
Hey buddy, I looked over many blogs and stuffs but never found any solutions for that, When i run my JavaScript projects on wsl2 like react and node the auto-completion code suggestion (vs-code intellisense) becomes slow...Please help me out if any solution Thanks in advance
@freaker126
@freaker126 4 жыл бұрын
i love wsl!
@eriklundstedt9469
@eriklundstedt9469 4 жыл бұрын
So wsl on windows 10 is just like a reverse wine?
@henninghoefer
@henninghoefer 4 жыл бұрын
WSL1 was a bit like that. WSL2 is a real Linux Kernel running in a Hyper-V VM behind the scenes and some nice tooling around it.
@prashand4899
@prashand4899 4 жыл бұрын
It's better
@ml_serenity
@ml_serenity 4 жыл бұрын
@@prashand4899 worse actually, since Wine allows to run apps with graphical UI and even games
@chezchezchezchez
@chezchezchezchez 4 жыл бұрын
@@ml_serenity F LOVE IT!
@DaveSohan
@DaveSohan 4 жыл бұрын
@@ml_serenity so what? You want to run Linux games on Windows now?
@arsnakehert
@arsnakehert 4 жыл бұрын
Have they fixed the problem where if you try to run Node.js in WSL after the VS Code SSH server is installed it tries to start the actual Windows installation of Node? That has driven me mad to a point where I simply stopped using WSL and started using an Ubuntu virtual machine instead. The fixes/workarounds seemed long and complicated and risky to my environment.
@christoslytras7912
@christoslytras7912 4 жыл бұрын
I installed NVM on WSL2 Ubuntu and I didn't have any issues when connecting from VSCode and working with node, even changing versions. Maybe you experienced an issue that you haven't installed nodejs in Ubuntu and WSL picked it up from Windows.
@LordHog
@LordHog 4 жыл бұрын
Is WSL v2 on par with v1 in terms of hardware support now? If I recall correctly WSL didn't have some USB functionality along with other hardware support like serial.
@MattWojo
@MattWojo 4 жыл бұрын
docs.microsoft.com/en-us/windows/wsl/wsl2-faq#can-i-access-the-gpu-in-wsl-2-are-there-plans-to-increase-hardware-support
@rickytik-devops
@rickytik-devops 3 жыл бұрын
I can't ping from wsl2 to the my vpn network? In wsl1, it works fine.
@pawelp8567
@pawelp8567 4 жыл бұрын
Does VS Code support WSL out of the box or some special plugins are required to make things work? Can I use other IDE's like Clion?
@dadestor
@dadestor 4 жыл бұрын
it auto installs or recommends (dont remember) the wsl plugin when it detects it's installation
@gazoonman
@gazoonman 4 жыл бұрын
How do i integrate WSL 2 using IntelliJ?
@Ruptured_AU
@Ruptured_AU 4 жыл бұрын
Just shange the the shell terminal in your settings to the WSL command no path needed just "WSL"
@abhishekdanej
@abhishekdanej 3 жыл бұрын
Great video. Can some wsl2 user comment on how much extra resources CPU, ram and disk are used by wsl2?I don't have wsl now.
@uroskolaric
@uroskolaric 2 жыл бұрын
Does any body know what is the tool that he used to switched between different shells?
@Loppy2345
@Loppy2345 4 жыл бұрын
About time that Docker came to windows home!
@mukundhbhushan6709
@mukundhbhushan6709 4 жыл бұрын
Loppy2345 it has literally yesterday
@franciscosusana2292
@franciscosusana2292 4 жыл бұрын
So I will be able to use the Docker that I install in my WSL2 as my Docker engine? Because I do not want to rely on Docket Toolbox anymore!
@workaccount7587
@workaccount7587 2 жыл бұрын
Ok so if WSL2 has a full blown linux kernal, doesnt there still have to be an interface/compatibility layer to interface with Windows to access the files/folders/ and executables? How does that work now? BTW I am a fresh engineer.
@hamzakhallati5742
@hamzakhallati5742 4 жыл бұрын
that's awesome
@moiarmio4863
@moiarmio4863 4 жыл бұрын
I am using Version 1909 ( OS Build 18363.900) I believe I am not able to install WSL2? Could you please help me with this?
@imadelachiri5475
@imadelachiri5475 4 жыл бұрын
any idea on how to install the wifi driver?
@BennoKushnir
@BennoKushnir 4 жыл бұрын
So, would WindowsDefender find malware in linux-binaries?
@asandax6
@asandax6 4 жыл бұрын
Linux doesn't have that many malware which is why Most people use linux without any anti-virus.
@lluism200
@lluism200 4 жыл бұрын
did WindowsDefender ever find ANY malware?
@BattousaiHBr
@BattousaiHBr 3 жыл бұрын
lmao i don't know if that was a serious question or not, but it's still funny to even think about the prospect.
@DavidSmith-ef4eh
@DavidSmith-ef4eh Жыл бұрын
Moved away from MacOS. Keep up the good work, windows seems to be having a bright future (until linux devs figure out how to do fractional scaling in 50 years from now)
@vizz2328
@vizz2328 3 жыл бұрын
Can I do cuda programming in wsl2?
@elCoronelCC
@elCoronelCC 4 жыл бұрын
what is the tool that allows to have different shells and select them? It reminds me of cmdr but but it does not seem to be that?
@davidwestern3878
@davidwestern3878 4 жыл бұрын
It's the new Windows Terminal. You can find it in the Windows Store.
@jdubeau007
@jdubeau007 4 жыл бұрын
How to do you assign an IP number to wsl2? I had a lot errors after installing Postgres. I can't see the port for example. Installing Postgres on CentOS VPS is pretty straight forward. pgAdmin works fine on Windows 10. WSL2 still needs alot of work. Powershell works just fine the way it is. The new windows terminal is beta a best.
@rparker061
@rparker061 4 жыл бұрын
um.. you obviously don't have a clue. WSL 2 is a vehicle. nothing more. They have pre-built install of certain Linux versions (you can choose between a few). Linux RUNS as a NATIVE OS inside hyper-v but it's integrated at the command level with Windows. has ZERO to do with WSL 2 being a different method of installing Linux. Linux runs and it works great, you clearly just want to keep your Windows the way it is and have no interest in trying to work with Linux. That much is abundantly clear. CentOS, Redhat, Debian, Ubuntu any of those can install in WSL 2, natively. Don't understand your complaint. They didn't change ANY Linux code it's the same as always so if Postgres works it will work in WSL 2 as well.
@jameshagooddesigndevelopme7819
@jameshagooddesigndevelopme7819 4 жыл бұрын
Do you not have issues with webpack not reloading?
@AlexAegisOfficial
@AlexAegisOfficial 4 жыл бұрын
12:30 that's the point
@grainfrizz
@grainfrizz 4 жыл бұрын
Still wondering why WSL1 didn't go straight to VM archi and went with translation/wrapper thingy.
@paulstelian97
@paulstelian97 4 жыл бұрын
There are machines where VM-based WSL cannot work and WSL1 is the only thing remaining.
@RishabhDeepSingh
@RishabhDeepSingh 4 жыл бұрын
Still can't run GUI Using wsl :(
@carlossoriano4010
@carlossoriano4010 4 жыл бұрын
What version of powershell is that? Mine is blue and doesn't have tabs or that dropdown. Can someone explain how to enable that?
@carlossoriano4010
@carlossoriano4010 4 жыл бұрын
for anyone else who is interested, i found it www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab
@dimitriskatsoulis4986
@dimitriskatsoulis4986 4 жыл бұрын
Great news! One question though: will enabling the virtual machine feature of windows conflict with any other vm client installed on the same machine, like virtualbox for example???
@raithelkarasu4889
@raithelkarasu4889 4 жыл бұрын
Someone else correct me if I am wrong, but If the Linux kernel is running in A windows hyperv virtualization environment. Then I believe this will interfere with any other virtualization software that would be used to run vms in windows. (like vmware or virtualbox) normally most processors (Intel and Amd) will not let you run multiple virtualization solutions at the same time on one operating system.
@christoslytras7912
@christoslytras7912 4 жыл бұрын
Δημήτρη το VirtualBox δεν μπορεί να δουλέψει μαζί με το HyperV, αλλά μπορείς να χρησιμοποιήσεις το HyperV για να φτιάξεις δικά σου VMs όπως κάνεις και με το VirtualBox. Εγώ έχω στήσει Windows XP, Windows 7 μέχρι και Ubuntu έχει να βάλεις που είναι optimized.
@dimitriskatsoulis4986
@dimitriskatsoulis4986 4 жыл бұрын
The feature you are supposed to enable is the "virtual machine" and not hyper V. If you enable hyper V in windows it surely isn't going to work with another VM proprietary client like VMware or VirtualBox, but what about this specific windows virtual machine feature..? (Το ξέρω Χρηστάρα, ευχαριστώ!)
@Ruptured_AU
@Ruptured_AU 4 жыл бұрын
It uses hyper-v so yes it will interfear.
@christoslytras7912
@christoslytras7912 4 жыл бұрын
@@dimitriskatsoulis4986 το feature "Virtual Machine" χρησιμοποιεί το Hyper-V. Σε προηγούμενες εκδόσεις δεν υπήρχε καν virtual machine και έπρεπε να βάλεις HyperV και WSL. Σου προτείνω να το δοκιμάσεις το HyperV. Και εγώ δούλευα VirtualBox αλλά από τότε που το docker το γύρισε σε HyperV μετέτρεψα όλα τα VMs και σε HyperV και το ξήλωσα το VB
@mitch_the_-itch
@mitch_the_-itch Жыл бұрын
I hope WSL3 gives us even more integration. I can run a XFCE desktop through RDP but the experience isn't all that great.
@vodoo6665
@vodoo6665 4 жыл бұрын
What is better WSL Vs Docker Vs VM? Please enlighten me!
@ThatSilentGuy
@ThatSilentGuy 4 жыл бұрын
Since WSL2 will use Hyper-V architecture, will I be able to use WSL2 and VirtualBox at the same time? VirtualBox only works when all Hyper-V functionalities are disabled.
@henninghoefer
@henninghoefer 4 жыл бұрын
Using Hyper-V and VirtualBox together has been possible for over a year now (since VirtualBox 6.0) - for more info see forums.virtualbox.org/viewtopic.php?f=6&t=90853
@mosth8ed
@mosth8ed 4 жыл бұрын
This would be great if I could only use it at the same time as Virtualbox / VMWare Workstation instead of having to restart several times to disable Hyper-V, then virtualization Guard or whatever any time I want to use one or the other.
@BudaSuyasa
@BudaSuyasa 3 жыл бұрын
Agree
@habtiephys
@habtiephys 4 жыл бұрын
Could you test it with installation and launch of Anaconda? I found that it's possible to install but not to launch the anaconda from WSL1.
@paulstelian97
@paulstelian97 4 жыл бұрын
Anaconda, Haskell should all work just fine under it since it's actual Linux. The only things that still don't work are the things that require custom hardware drivers, including USB, GPU.
@habtiephys
@habtiephys 4 жыл бұрын
@@paulstelian97 thanks, I will give it a try.
@vishnuthamizharasan6192
@vishnuthamizharasan6192 4 жыл бұрын
Is WS2 is available for windows 10 home edition
@emreis7127
@emreis7127 4 жыл бұрын
Would it be possible now to use virtualbox and docker simultaneously on Windows pro ?
@christoslytras7912
@christoslytras7912 4 жыл бұрын
You don't need VirtualBox. You can use HyperV to mount .iso files and create as many VMs you want.
@paulstelian97
@paulstelian97 4 жыл бұрын
Yeah, WSL2 and Docker for Windows both use Hyper-V which is incompatible with VMware and Virtualbox products. docker-machine can be made to use either Hyper-V or Virtualbox.
@Neto-gs3xw
@Neto-gs3xw 6 ай бұрын
Game changer for the best!
@b0nzai1
@b0nzai1 4 жыл бұрын
Now I want know ho he managed to enable tmux mouse support in windows terminal ...
@ambarmutha8504
@ambarmutha8504 4 жыл бұрын
Was it tmux? Windows terminal does have its own split panes feature.
@nishantkumar3997
@nishantkumar3997 4 жыл бұрын
Hi , Can we access GPU with wsl 2 ???
@Yggdrasil42
@Yggdrasil42 4 жыл бұрын
Nishant Kumar Not yet.
@roozbeh18
@roozbeh18 4 жыл бұрын
"But, However I use Tab key and make editor insert spaces for me" :) If you watched till the end.
@haxkrp
@haxkrp 4 жыл бұрын
Crazy 😂
@maverickmadison7392
@maverickmadison7392 4 жыл бұрын
Translation layer VS VM, which one has a higher overhead?
@paulstelian97
@paulstelian97 4 жыл бұрын
With hardware acceleration, VM should have a lower overhead, especially since it's a lightweight VM. You'd see RAM usage get a bit higher though.
@eugenem4854
@eugenem4854 4 жыл бұрын
what about restrictions?
@grimonce
@grimonce 4 жыл бұрын
How come MS Developer got a pet and it is a rabbit now? Also I am using WSL 2 at work, works great so far. I enjoy the Docker Desktop integration.
@shubhamagarwal97
@shubhamagarwal97 4 жыл бұрын
What is the terminal you are using? How are you able to get multiple tabs?
@al048604
@al048604 3 жыл бұрын
It's called Windows Terminal kzfaq.info/get/bejne/bcihort5zr64eHU.html
@James-ln6li
@James-ln6li 4 жыл бұрын
Did I see JS code using double equals instead of triple?!?!?
@PhanorColl
@PhanorColl 4 жыл бұрын
when will it be released? I want to use it without setting my box to the windows developer program
@naikrovek
@naikrovek 4 жыл бұрын
With the first release of Windows this year. April, I think.
@PhanorColl
@PhanorColl 4 жыл бұрын
@@naikrovek I cant wait, I've been enjoying coding using WSL, Windows has won me over again.
@MattWojo
@MattWojo 4 жыл бұрын
Hard to say for sure... things are crazy over here currently with the COVID-19 outbreak, but should be this year.
@dmsnm
@dmsnm 4 жыл бұрын
They said first half of 2020. So as late as June if not earlier
@dimamaharika3361
@dimamaharika3361 4 жыл бұрын
I've been using WSL2 for about a month. But it needs me to join the Windows 10 Insider Program to have the latest Windows Update.
@01296501923654
@01296501923654 4 жыл бұрын
Is it possible to have Windows apps that call command line programs like Git use those programs if they are installed in WSL? This would make it so that I don't have to have the same programs installed both in Windows and Linux with duplicated configs.
@iAnarchy89
@iAnarchy89 4 жыл бұрын
what terminal is that?
@mrdewes
@mrdewes 4 жыл бұрын
Since WSL2 needs Hyper-V, does it run on windows home edition?
@marlo3898
@marlo3898 4 жыл бұрын
I don't think so.
@SergioBerlinches
@SergioBerlinches 4 жыл бұрын
It does
@rparker061
@rparker061 4 жыл бұрын
Do you people NOT know how to 'google'? docs.microsoft.com/en-us/windows/wsl/wsl2-install
@iamworstgamer
@iamworstgamer 2 жыл бұрын
but wsl2 takes a lot of memory whereas VirtualBox is not increasing memory indefinitely, I have to throttle up in .wslconfig to 4 GB ram but I cannot run a script which requires more than 4 GB ram
@babakbanijamali5130
@babakbanijamali5130 4 жыл бұрын
So just to confirm, I was hoping that WSL2 would alleviate us from using HyperV. Seems you've still managed to keep HyperV busy, just with a more lightweight kernel and no translation layer. So WSL2 doesn't mean the dependency on HyperV is going away?
@rparker061
@rparker061 4 жыл бұрын
Hyper-V works, what is the problem exactly? WSL 2 works, if you use Windows I have news for you.. hyper-V will be even MORE dependent later. I imagine there will be an embedded ROM chip that boots and you choose to run any OS you want... virtually. It will be come the future. Phones I suspect will do the same. You buy a phone run whatever OS you want, iOS, Android, Blackberry, Windows, whatever.. it's just a VM. So what is the problem as long as it works.. plus with Virtual you can have many OS on same hardware, no dual booting not complicated install just scripts that switch \ install and integrate. Don't understand the resistance to using Hyper-V. It's stable and its natively a part of Windows. Even if you 'turn off' it's not really off..it's just dormant.
@mrwang420
@mrwang420 4 жыл бұрын
Or give wsl the ability to load up and run a linux distributions you have installed via dual boot. So that gives you the ability to run linux seperate or run windows and then tell it to also sideload the linux os as a workspace or in a container window as if the os was a program.
@Terzaghi12
@Terzaghi12 4 жыл бұрын
Ok, but when it's coming for stable releases?
@josejuliansalazarlopez724
@josejuliansalazarlopez724 4 жыл бұрын
First half of 2020, so when the 20h1 update rolls out
@dmytrolev
@dmytrolev 3 жыл бұрын
tabs vs spaces - both!
@hemachandrang6284
@hemachandrang6284 4 жыл бұрын
What is the terminal window you are using?
@uethyav9755
@uethyav9755 4 жыл бұрын
Windows terminal,you can get it on Microsoft Store
@ml_serenity
@ml_serenity 4 жыл бұрын
So... What WSL brings to the table except for better terminal?
@andreujuanc
@andreujuanc 4 жыл бұрын
Didn't know it was build on top of Hypervisor.
@ambarmutha8504
@ambarmutha8504 4 жыл бұрын
Does that mean that wsl2 won't be coming to Windows 10 home?
@bohrasdf
@bohrasdf 4 жыл бұрын
can I run minikube on wsl2?
@paulstelian97
@paulstelian97 4 жыл бұрын
Should work.
@zhang_han
@zhang_han 2 жыл бұрын
The ring on his right pinky tells me he's a Canadian engineer. And if I had to guess, probably U Waterloo.
@amramrasi
@amramrasi 4 жыл бұрын
In WSL 2 Debian Distro & Ubuntu-20.04 apt update not working. first fix this.
@venerminyazev4375
@venerminyazev4375 4 жыл бұрын
7:27 is anyone knows what font used in VScode?
@sssssalva1
@sssssalva1 4 жыл бұрын
Cascadia Code I'd say
@venerminyazev4375
@venerminyazev4375 4 жыл бұрын
@@sssssalva1 no, at least "g" letter is different. But thanks for replying
@zuaipel-ck3694
@zuaipel-ck3694 3 жыл бұрын
Did wsl work offline
@Arokhantos
@Arokhantos 4 жыл бұрын
All nice but what would be really nice if you stopped hogging up cpu in the background i am seeing huge drop in performance with wsl2 installed in cinebench my score go's from 7450 down to 7200 max and 400 point drop in 3dmark, all i would use it for is to compile ipxe kernel im better off using virtual box if its gonna sacrifice performance.
@TheMustafa5233
@TheMustafa5233 4 жыл бұрын
Could it work on GPUs directly now?
@paulstelian97
@paulstelian97 4 жыл бұрын
No. PCI passthrough is not supported by Hyper-V. Would have been nice though. Hardware must support GPU passthrough and Hyper-V must be updated to have this.
@linuxtardis
@linuxtardis 4 жыл бұрын
yes: www.phoronix.com/scan.php?page=news_item&px=Microsoft-DX12-WSL2
@Chrisknot94
@Chrisknot94 4 жыл бұрын
What is that terminal they're using?
@henninghoefer
@henninghoefer 4 жыл бұрын
It's the Windows Terminal Preview (www.microsoft.com/en-us/p/windows-terminal-preview/9n0dx20hk701). Source code and more info on github.com/microsoft/terminal
@fernandolamp
@fernandolamp 4 жыл бұрын
Wsl2 was released? Or are a preview feature?
@chezchezchezchez
@chezchezchezchez 4 жыл бұрын
lol
@jonatasalmeida4196
@jonatasalmeida4196 2 жыл бұрын
Why use WSL instead coding on Windows? There is any benefits? I tried here using Intellij + Java openjdk on WSL2, but the performance is ugly.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 64 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 11 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,1 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 529 М.