Windows Terminal and WSL 2 tips

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

ความคิดเห็น • 120

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

    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: th-cam.com/video/_fntjriRe48/w-d-xo.html
    WSL2 and Docker getting started: th-cam.com/video/5RQbdMn04Oc/w-d-xo.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/

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

      i have ext partitions, can i use windows terminal to open these partitions without having to launch a virtual machine?

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

    Nice, I learned something new today: I can see the WSL2 in the explorer. Thanks!

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

      Great to hear you got it working Antonio!

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

    no bloody way, I really needed a video tutorial like this right now and you uploaded one JUST NOW. Talk about timing.

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

      lol... happy to hear that! More coming soon with an explanation of settings :)

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

    I've just started a TH-cam channel providing educational content. Your demos are crazy clean and impressive. I'm jealous and have a new goal to aspire to. You rock :)

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

    Upon opening Windows Terminal, we can tweak the config file to start Ubuntu or any other shell as default. It's good.

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

      Agreed. It's great software :)

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

    Thanks David! Your videos are evry informative. Just a minor concern, could you change the intro to something less flashy?

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

    Thank you so much for making these videos on wsl2. They help me a great deal

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

    Another lovely video... I've learnt a lot...Thanks David...

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

      Glad you enjoyed it!

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

    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

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

      Thank you James. Video on terminal customization coming soon :)

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

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

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

    Thanks David another great video. love to see a video on Terminal settings tips.

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

    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!

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

    So clearly explained David, thanks!

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

    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.

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

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

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

    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

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

    Good content and very professional. lots of thanks

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

    It took a couple decades, but Microsoft is in a fantastic position (again) 👍🏽

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

      Indeed it is! Great to see how they have changed for the better in recent times.

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

    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.

  • @SubodhKumar-qb2ze
    @SubodhKumar-qb2ze 4 ปีที่แล้ว

    Thank you very much. started learning many things from you which I wanted to learn. Thank you again.

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

    Thanks David. Windows Terminal is a beast for sure - so convenient.

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

    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?

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

      I've just recorded a video showing how to this and will have the video online soon :)

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

      @@davidbombal Yes thank you very much! I'm really looking forward to it.

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

      @@michaelanderson7902 Did you see this: th-cam.com/video/_fntjriRe48/w-d-xo.html where I am connecting to a Cisco device hosted by Cisco DevNet from within WSL?

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

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

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

    please make a video on terminal settings, it will be really helpful and thanks for the great content.

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

    This video is quite an example of inception.

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

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

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

    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?

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

      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.

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

    Yes the Windows Terminal is nice and quite similar to a Linux terminal but with multiple terminal integration and Azure cloud management shell.

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

    David! you deserve kudos *100000 and thanks for every video you share with us!

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

      Thank you Anderson! I really appreciate that.

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

    Very cool, great videos.
    Are you able to get a GUI of the OS when running in a docker container?

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

    Please make a video on windows terminal setting customization as better possible

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

    Thank you for this tutorial. It was really helpful :)

  • @luann.athayde
    @luann.athayde 4 ปีที่แล้ว

    As a developer, all I can say is: was about time! O.O

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

    Thank you, another very pedagogic video !

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

    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.

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

      lol... I don't get too worried as I have seen that attributed to multiple people. Still a nice quote :)

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

    Very helpful! Thank you very much

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

    Thanks a lot man, just what I was looking for

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

      You're very welcome!

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

    Oh boy I sure do love tups and trucks!

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

      Really happy to hear that Noah

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

    Thanks for the video ✌️

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

    i love your intro. and i love you

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

    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.

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

      Yeah it's a little annoying having to do one or the other just now. Hopefully it gets sorted soon enough!

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

      Agreed. Hopefully they can fix it soon.

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

      I undertand. You can use the Windows Terminal without WSL 2.

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

    Perfect video and better tutorial, well done

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

      Thank you very much!

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

    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

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

    you are amazing! thank you for the tips. hugs from brazil.

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

      You're welcome Jean!

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

    Love these tutorials, straight to the point! No blabbing for hours!

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

      Thanks so much for the feedback Sakib, I really appreciate it.

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

    3:35 - running Ubuntu in Ubuntu in Windows - nice :)

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

    Very useful lesson.
    I'll try this and stop dualbooting my laptop to save some space 😅

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

      It does have issues I have found with VMware Workstation or VirtualBox, so make sure you test before removing your dual boot

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

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

  • @Aliali-qg4dw
    @Aliali-qg4dw 4 ปีที่แล้ว

    tnx david , as you said please make a video about windows termianl options and settings

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

      Thank you Ali. Video will be online soon :)

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

    Thanks for this video I have learnt a lot from it. :)

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

      You're very welcome!

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

    Thank You so Much @DavidBombal

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

    Thank you. Great video 👍

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

    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 :(

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

    Can I access external drives through WSL2, like USB or D drive..... ?

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

    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.

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

    Note if this isn't working for you make sure you have the lastest windows 10 update (may)

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

    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.

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

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

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

      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.

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

    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?

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

    Thank you sir

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

    Is sudo permission required to have docker permission in order to launch image with wsl2

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

    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?

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

    thank you

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

    you know how to configure the shell to autocomplete base on history, just like iTerm on Mac ?

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

    You can do it for making another video how to use settings for WT

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

      Thank you. Video coming soon :)

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

    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

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

    Thanks David

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

      Thank you William :)

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

    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.

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

      lol... agreed - nice to see how Microsoft have changed :)

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

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

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

    Hi, I would like know how I can install the same SO in WSL2 for example two version of ubuntu 20.04

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

    sometimes I wanna do command prompt or powershell in "run as administrator" mode, but command prompt & powershell window within "Windows Terminal" cannot do that.

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

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

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

    How do you access database db3 files stored in Ubuntu WSL with SQL in windows?

  • @Scipio-Nigerianus
    @Scipio-Nigerianus 3 ปีที่แล้ว

    Thanks man
    I keep getting this error
    explorer.exe: command not found

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

    can I make a Linux version talk to another via IP ? verion 18 talk to 20 via network ? virtual IP ?

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

    👍

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

    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

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

      Please ask for help in the CML Cisco community here: learningnetwork.cisco.com/s/topic/0TO3i00000094ZjGAI/cisco-modeling-labs-personal-community

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

    its a definitive 10 what you do David

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

    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

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

    🥰🥰

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

    how to get the desktop to work ????

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

    well, idk if windows is actually pretty cool right now lol

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

    Permission denied on everywhere that huge shitii

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

    First:v

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

      Thank you for your support :)

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

    Another lovely video... I've learnt a lot...Thanks David...

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

      Thank you for watching Patrick

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

    👍