Menu: Overview: 0:00 Windows Terminal Install: 0:51 Windows Terminal Overview: 1:27 Docker Integration: 2:46 Settings: 4:46 Access Windows files from Linux: 5:26 Access Linux files from Windows Explorer: 7:31 Use VSCode to open Linux Subsystem Files: 9:34 Previous videos: WSL 2 getting started: ruclips.net/video/_fntjriRe48/видео.html WSL2 and Docker getting started: ruclips.net/video/5RQbdMn04Oc/видео.html Documentation: Windows Terminal: docs.microsoft.com/en-us/windows/terminal/ Window Terminal Introduction: devblogs.microsoft.com/commandline/introducing-windows-terminal/ Windows Terminal GitHub: github.com/microsoft/terminal What is WSL? docs.microsoft.com/en-us/windows/wsl/about WSL documentation: docs.microsoft.com/en-us/windows/wsl/ WSL 2 Announcement: devblogs.microsoft.com/commandline/announcing-wsl-2/
I've just started a RUclips channel providing educational content. Your demos are crazy clean and impressive. I'm jealous and have a new goal to aspire to. You rock :)
all the things in this video are things i know about but i kept watching the video since it was directly to point, but will all the details necessary... it felt like talking to a passionate developer rather than a content creator, no extras to make longer videos or any other nonsense, or clickbait titles... keep up the good work...
Thx David! Great video, detailed and clearly exposed. Congrats. And also congrats to Windows... as linux users I could have never imaged one day this integration could have been never happened :-)
The goodies started at 5:30 for me.. Note: I learned you have to add VS Code to the system Path to use that 'code' command, just in case someone else here has an issue with it not working. Cheers
Hi, David. Thanks for the video. I am a newbie in the world of technology, and I would really like to see a video about terminal settings. Thanks in advance.
Thank you very much David as always very helpful, I was wondering can I use wsl2 ubuntu docker to connect to my physical cisco switches to practice network automation using python scripts?
@@michaelanderson7902 Did you see this: ruclips.net/video/_fntjriRe48/видео.html where I am connecting to a Cisco device hosted by Cisco DevNet from within WSL?
@@davidbombal David Bombal Yes David, I had issues with the wsl ubuntu docker: 'server error' it seemed it had trouble with the wsl so I unchecked the wsl from the windows features and enabled it again and it's working now, I really wanna thank you for uploading these videos it's really helpful.
Awesome video David and yes, do a video on the Windows Terminal, that would be nice and also Visual Studio if you could, it would be good to learn it from you. Btw I'm not getting my distros pop up in docker desktop even though the integration is enabled under resources so I cannot proceed very far on a few things from your video, do you know what could cause the issue. Docker documentation didn't really provide enough help. Thanks David!
These videos are very good and quite helpful but one thing I find myself having to say: The quote "The best way to predict the future is to create it" was never said by Abraham Lincoln. Most scholars will say something like that never appeared in his writings. The earliest example of it is attributed to engineer/physicist Dennis Gabor in his 1963 book Inventing the future.
Great Video - Thanks for sharing. 😀😀😀 I'd like to run a Windows Command Line App on a Raspberry Pi. I know about WINE, but I want to simply start the Windows Command Line App from a Linux Command line. Do you have any advice - Thanks !!!!
The top answer in this thread will explain explorer needing the .exe extension. As for the "code" part of your question: when I typed "code" in my WSL2 (Ubuntu 20.04 LTS) shell, it looked like something was downloading. At first I thought it was downloading VS Code somewhere within WSL. But when I typed "which code" into the shell to see the path of the "code" file that it was executing, to my surprise, it gave me a path to a file named "code" within my Windows directory (/mnt/c/Users/myusername/AppData/Local/Programs/Microsoft VS Code/bin/code). So I believe it is indeed running the VS Code already installed on my Windows instead of what I believed was a VS Code that was inside the WSL. NOTE: I'm not entirely sure if this is because I have the "Remote - WSL" VS Code extension downloaded.
This was really useful for me thank you. I do have a question if anyone can answer. I've just downloaded Docker for the first time. I'm new to Docker and to Linux. I'm running Windows 10 Pro with all latest updates. I configured WSL2 and got a MariaDB container running with a persistent volume, created tables etc and it all works great. It appears to be running MariaDB under Linux which is what I want but I've not downloaded any Linux distros. I've left Docker using Linux Containers in settings. Using your wsl -l -v it only shows the two Docker entries no Linux. As said everything works great, but all the examples I can find of installing Docker on Windows indicate you need to download a distro. The only thing I can assume is that because Windows 10 now includes Ubuntu bundled into the kernel that the Docker container is referencing that and I don't need to download Debian or CentOs etc. Does that make sense? Am I losing anything by not having a full distro downloaded? Thanks
WSL Q - i've been using WSL for years now - can you change from WSL1 - to 2 ? How ? Windows terminal is Nice - looks slick - its a shame it doesn't have multi window - where you can run a command in several different windows at the same time :(
Thank you very much David. But I have an issue. WSL 2 seems to NAT it's virtual network, instead of making it bridged to the host NIC. My host IP address is different with my WSL (Kali). So I can't access to Internet or join any device on my local network. Could you help me?
sometimes I wanna do command prompt or powershell in "run as administrator" mode, but command prompt & powershell window within "Windows Terminal" cannot do that.
Hi David, thanks for a great information. Could you pls help me with this error in WSL-2 shell "mtr-packet: Failure to open IPv4 sockets: Permission denied" ? When i m trying to run MTR, its showing above error.
Great tutorial, the ones about installing WSL 2 as well! My problem is that the space on my C: drive is limited (as I have a dual-boot system and the Ubuntu root partition is located right after the C: partition and I cannot move/delete it yet), but I have a very large D: partition. How can I change the storage location of the WSL 2 images and move my existing WSL 2 Ubuntu to that location? I want to use it for development and have some quite large PHP projects. So the image can grew up to 50GB for me.
@@LS-qs9ju thanks for your suggestion. But the recommendation from the developer tools I use is "Make sure you put your projects in the Linux filesystem (e.g. /home/), not in the Windows filesystem (/mnt/c), because you'll get vastly superior performance on the Linux filesystem." Or in other words, putting the project files into the Windows file system and inside Ubuntu using (or symlinking) them from /mnt/c or /mnt/d has performance impacts on NGinx, PHP etc.
As far as I know, the WSL image is stored as .vhd file somewhere on C:. So creating another .vhd file for my projects on D: and mount this into WSL should be an alternative if that works.
Hi David, I am using wsl2 for web development, when I delete my files from the repo, I don't know where the files are? I thought they will be in trash bin windows. Any tips?
I have wsl2 setup with Ubuntu etc. What I have found is that with a wsl2 Ubuntu I can cannot ssh to another machine. However I can ssh to another machine with Ubuntu on wsl1
I have issues in adding the path variable in wsl. step done: following line is added into .bashrc file "export PATH=\\wsl$\Ubuntu\usr\local\mbdyn\bin:$PATH " error: Command not found Why does this happen? screenshot attached below: @t
@@davidbombal Yes who would've thought they'd become so enamoured with open source, freedom, Linux and their single purchase lifetime OS updates / sales model.
Menu:
Overview: 0:00
Windows Terminal Install: 0:51
Windows Terminal Overview: 1:27
Docker Integration: 2:46
Settings: 4:46
Access Windows files from Linux: 5:26
Access Linux files from Windows Explorer: 7:31
Use VSCode to open Linux Subsystem Files: 9:34
Previous videos:
WSL 2 getting started: ruclips.net/video/_fntjriRe48/видео.html
WSL2 and Docker getting started: ruclips.net/video/5RQbdMn04Oc/видео.html
Documentation:
Windows Terminal: docs.microsoft.com/en-us/windows/terminal/
Window Terminal Introduction: devblogs.microsoft.com/commandline/introducing-windows-terminal/
Windows Terminal GitHub: github.com/microsoft/terminal
What is WSL? docs.microsoft.com/en-us/windows/wsl/about
WSL documentation: docs.microsoft.com/en-us/windows/wsl/
WSL 2 Announcement: devblogs.microsoft.com/commandline/announcing-wsl-2/
i have ext partitions, can i use windows terminal to open these partitions without having to launch a virtual machine?
Nice, I learned something new today: I can see the WSL2 in the explorer. Thanks!
Great to hear you got it working Antonio!
no bloody way, I really needed a video tutorial like this right now and you uploaded one JUST NOW. Talk about timing.
lol... happy to hear that! More coming soon with an explanation of settings :)
I've just started a RUclips channel providing educational content. Your demos are crazy clean and impressive. I'm jealous and have a new goal to aspire to. You rock :)
all the things in this video are things i know about but i kept watching the video since it was directly to point, but will all the details necessary... it felt like talking to a passionate developer rather than a content creator, no extras to make longer videos or any other nonsense, or clickbait titles... keep up the good work...
Thank you so much for making these videos on wsl2. They help me a great deal
Upon opening Windows Terminal, we can tweak the config file to start Ubuntu or any other shell as default. It's good.
Agreed. It's great software :)
Another lovely video... I've learnt a lot...Thanks David...
Thank you for watching Patrick
Thanks David. Windows Terminal is a beast for sure - so convenient.
Thx David! Great video, detailed and clearly exposed. Congrats. And also congrats to Windows... as linux users I could have never imaged one day this integration could have been never happened :-)
It took a couple decades, but Microsoft is in a fantastic position (again) 👍🏽
Indeed it is! Great to see how they have changed for the better in recent times.
Thanks David another great video. love to see a video on Terminal settings tips.
Great video David! Amazing what you can now do with wsl2 and terminal. Would love to see more of what you can do terminal with customisation etc
Thank you James. Video on terminal customization coming soon :)
So clearly explained David, thanks!
As a developer, all I can say is: was about time! O.O
Thank you very much. started learning many things from you which I wanted to learn. Thank you again.
David! you deserve kudos *100000 and thanks for every video you share with us!
Thank you Anderson! I really appreciate that.
This video is quite an example of inception.
Yes the Windows Terminal is nice and quite similar to a Linux terminal but with multiple terminal integration and Azure cloud management shell.
Thank you, another very pedagogic video !
Good content and very professional. lots of thanks
please make a video on terminal settings, it will be really helpful and thanks for the great content.
Thank you for this tutorial. It was really helpful :)
Thanks David! Your videos are evry informative. Just a minor concern, could you change the intro to something less flashy?
Oh boy I sure do love tups and trucks!
Really happy to hear that Noah
The goodies started at 5:30 for me.. Note: I learned you have to add VS Code to the system Path to use that 'code' command, just in case someone else here has an issue with it not working. Cheers
Hi, David. Thanks for the video. I am a newbie in the world of technology, and I would really like to see a video about terminal settings. Thanks in advance.
you are amazing! thank you for the tips. hugs from brazil.
You're welcome Jean!
i love your intro. and i love you
Love these tutorials, straight to the point! No blabbing for hours!
Thanks so much for the feedback Sakib, I really appreciate it.
Perfect video and better tutorial, well done
Thank you very much!
Thanks a lot man, just what I was looking for
You're very welcome!
Thanks for the video ✌️
My pleasure!
Very helpful! Thank you very much
Very useful lesson.
I'll try this and stop dualbooting my laptop to save some space 😅
It does have issues I have found with VMware Workstation or VirtualBox, so make sure you test before removing your dual boot
@@davidbombal Gave me problems too. The GNS3 VM didn't work with WSL and Hyper-V enabled. Had to disable those features to get it running again.
Thank you very much David as always very helpful, I was wondering can I use wsl2 ubuntu docker to connect to my physical cisco switches to practice network automation using python scripts?
I've just recorded a video showing how to this and will have the video online soon :)
@@davidbombal Yes thank you very much! I'm really looking forward to it.
@@michaelanderson7902 Did you see this: ruclips.net/video/_fntjriRe48/видео.html where I am connecting to a Cisco device hosted by Cisco DevNet from within WSL?
@@davidbombal David Bombal Yes David, I had issues with the wsl ubuntu docker: 'server error' it seemed it had trouble with the wsl so I unchecked the wsl from the windows features and enabled it again and it's working now, I really wanna thank you for uploading these videos it's really helpful.
Thanks for this video I have learnt a lot from it. :)
You're very welcome!
Awesome video David and yes, do a video on the Windows Terminal, that would be nice and also Visual Studio if you could, it would be good to learn it from you. Btw I'm not getting my distros pop up in docker desktop even though the integration is enabled under resources so I cannot proceed very far on a few things from your video, do you know what could cause the issue. Docker documentation didn't really provide enough help. Thanks David!
Good Job David. Is it possible to set up Windows network interfaces from the WSL ? If yes, we would like to have a video on it.
These videos are very good and quite helpful but one thing I find myself having to say: The quote "The best way to predict the future is to create it" was never said by Abraham Lincoln. Most scholars will say something like that never appeared in his writings. The earliest example of it is attributed to engineer/physicist Dennis Gabor in his 1963 book Inventing the future.
lol... I don't get too worried as I have seen that attributed to multiple people. Still a nice quote :)
3:35 - running Ubuntu in Ubuntu in Windows - nice :)
Please make a video on windows terminal setting customization as better possible
Thank you. Great video 👍
Glad you liked it!
Great Video - Thanks for sharing. 😀😀😀
I'd like to run a Windows Command Line App on a Raspberry Pi.
I know about WINE, but I want to simply start the Windows Command Line App from a Linux Command line.
Do you have any advice - Thanks !!!!
Excellent content and exactly what I was needing right now! Thanks. One question though: why did explorer need the .exe extension and code didn't?
The top answer in this thread will explain explorer needing the .exe extension. As for the "code" part of your question: when I typed "code" in my WSL2 (Ubuntu 20.04 LTS) shell, it looked like something was downloading. At first I thought it was downloading VS Code somewhere within WSL. But when I typed "which code" into the shell to see the path of the "code" file that it was executing, to my surprise, it gave me a path to a file named "code" within my Windows directory (/mnt/c/Users/myusername/AppData/Local/Programs/Microsoft VS Code/bin/code). So I believe it is indeed running the VS Code already installed on my Windows instead of what I believed was a VS Code that was inside the WSL. NOTE: I'm not entirely sure if this is because I have the "Remote - WSL" VS Code extension downloaded.
Very cool, great videos.
Are you able to get a GUI of the OS when running in a docker container?
tnx david , as you said please make a video about windows termianl options and settings
Thank you Ali. Video will be online soon :)
This was really useful for me thank you. I do have a question if anyone can answer.
I've just downloaded Docker for the first time. I'm new to Docker and to Linux. I'm running Windows 10 Pro with all latest updates. I configured WSL2 and got a MariaDB container running with a persistent volume, created tables etc and it all works great. It appears to be running MariaDB under Linux which is what I want but I've not downloaded any Linux distros. I've left Docker using Linux Containers in settings.
Using your wsl -l -v it only shows the two Docker entries no Linux.
As said everything works great, but all the examples I can find of installing Docker on Windows indicate you need to download a distro. The only thing I can assume is that because Windows 10 now includes Ubuntu bundled into the kernel that the Docker container is referencing that and I don't need to download Debian or CentOs etc. Does that make sense? Am I losing anything by not having a full distro downloaded? Thanks
Thank You so Much @DavidBombal
thank you so much
Can I access external drives through WSL2, like USB or D drive..... ?
Thank you sir
I'll be holding off on exploring WSL2 until the hypervisor issues with VMware are worked out. Having GNS3 is more valuable to me at the moment.
Yeah it's a little annoying having to do one or the other just now. Hopefully it gets sorted soon enough!
Agreed. Hopefully they can fix it soon.
I undertand. You can use the Windows Terminal without WSL 2.
Thanks David
Thank you William :)
thank you
WSL Q - i've been using WSL for years now - can you change from WSL1 - to 2 ? How ?
Windows terminal is Nice - looks slick - its a shame it doesn't have multi window - where you can run a command in several different windows at the same time :(
Note if this isn't working for you make sure you have the lastest windows 10 update (may)
Thank you very much David.
But I have an issue. WSL 2 seems to NAT it's virtual network, instead of making it bridged to the host NIC. My host IP address is different with my WSL (Kali). So I can't access to Internet or join any device on my local network. Could you help me?
sometimes I wanna do command prompt or powershell in "run as administrator" mode, but command prompt & powershell window within "Windows Terminal" cannot do that.
Hi David, thanks for a great information. Could you pls help me with this error in WSL-2 shell "mtr-packet: Failure to open IPv4 sockets: Permission denied" ?
When i m trying to run MTR, its showing above error.
Great tutorial, the ones about installing WSL 2 as well!
My problem is that the space on my C: drive is limited (as I have a dual-boot system and the Ubuntu root partition is located right after the C: partition and I cannot move/delete it yet), but I have a very large D: partition. How can I change the storage location of the WSL 2 images and move my existing WSL 2 Ubuntu to that location? I want to use it for development and have some quite large PHP projects. So the image can grew up to 50GB for me.
@@LS-qs9ju thanks for your suggestion. But the recommendation from the developer tools I use is "Make sure you put your projects in the Linux filesystem (e.g. /home/), not in the Windows filesystem (/mnt/c), because you'll get vastly superior performance on the Linux filesystem." Or in other words, putting the project files into the Windows file system and inside Ubuntu using (or symlinking) them from /mnt/c or /mnt/d has performance impacts on NGinx, PHP etc.
As far as I know, the WSL image is stored as .vhd file somewhere on C:. So creating another .vhd file for my projects on D: and mount this into WSL should be an alternative if that works.
Is sudo permission required to have docker permission in order to launch image with wsl2
You can do it for making another video how to use settings for WT
Thank you. Video coming soon :)
Hi David, I am using wsl2 for web development, when I delete my files from the repo, I don't know where the files are? I thought they will be in trash bin windows. Any tips?
I have wsl2 setup with Ubuntu etc. What I have found is that with a wsl2 Ubuntu I can cannot ssh to another machine. However I can ssh to another machine with Ubuntu on wsl1
you know how to configure the shell to autocomplete base on history, just like iTerm on Mac ?
How do you access database db3 files stored in Ubuntu WSL with SQL in windows?
Hi, I would like know how I can install the same SO in WSL2 for example two version of ubuntu 20.04
Thanks man
I keep getting this error
explorer.exe: command not found
I have issues in adding the path variable in wsl.
step done:
following line is added into .bashrc file
"export PATH=\\wsl$\Ubuntu\usr\local\mbdyn\bin:$PATH "
error: Command not found
Why does this happen?
screenshot attached below:
@t
Is there a way to access local host 3390 from another computer in the same network?
Its quite small, only 6 MB.
Laughs from my comfy, non my bloat linux setup :P
Still windows and ms seem to be improving and ill credit them for that.
lol... agreed - nice to see how Microsoft have changed :)
@@davidbombal Yes who would've thought they'd become so enamoured with open source, freedom, Linux and their single purchase lifetime OS updates / sales model.
can I make a Linux version talk to another via IP ? verion 18 talk to 20 via network ? virtual IP ?
its a definitive 10 what you do David
👍
Pleaae can you help to answer my question i had CML personal edition for the Virl and i can not boot xr ios and the nx switches can you help
Please ask for help in the CML Cisco community here: learningnetwork.cisco.com/s/topic/0TO3i00000094ZjGAI/cisco-modeling-labs-personal-community
how to get the desktop to work ????
🥰🥰
well, idk if windows is actually pretty cool right now lol
Permission denied on everywhere that huge shitii
First:v
Thank you for your support :)
Another lovely video... I've learnt a lot...Thanks David...
Glad you enjoyed it!
👍