Windows Terminal and WSL 2 tips

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 121

  • @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: 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/

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

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

  • @Zippo_1234
    @Zippo_1234 2 года назад

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

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

  • @patrickimoh
    @patrickimoh 4 года назад +2

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

    • @davidbombal
      @davidbombal  4 года назад

      Thank you for watching Patrick

  • @DrillManga
    @DrillManga 3 года назад

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

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

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

  • @ronmitchell2027
    @ronmitchell2027 4 года назад

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

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

  • @WebsParaEmprender
    @WebsParaEmprender 2 года назад

    So clearly explained David, thanks!

  • @luann.athayde
    @luann.athayde 4 года назад

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

  • @SubodhKumar-qb2ze
    @SubodhKumar-qb2ze 4 года назад

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

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

  • @PS_Tube
    @PS_Tube 2 года назад

    This video is quite an example of inception.

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

  • @luigivampabbcw5172
    @luigivampabbcw5172 4 года назад

    Thank you, another very pedagogic video !

  • @karmatsering158
    @karmatsering158 2 года назад

    Good content and very professional. lots of thanks

  • @naweddiwan
    @naweddiwan 4 года назад

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

  • @himalayasinghsheoran1255
    @himalayasinghsheoran1255 3 года назад

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

  • @rahulj999
    @rahulj999 3 года назад

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

  • @noahpeltier
    @noahpeltier 4 года назад

    Oh boy I sure do love tups and trucks!

    • @davidbombal
      @davidbombal  4 года назад

      Really happy to hear that Noah

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

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

  • @JeanBragag
    @JeanBragag 4 года назад

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

  • @ten8217
    @ten8217 3 года назад

    i love your intro. and i love you

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

  • @AbdirahmanEssa
    @AbdirahmanEssa 4 года назад

    Perfect video and better tutorial, well done

  • @aprameyaaithal9071
    @aprameyaaithal9071 4 года назад

    Thanks a lot man, just what I was looking for

  • @imkir4n
    @imkir4n 4 года назад +1

    Thanks for the video ✌️

  • @pmcdonald74
    @pmcdonald74 4 года назад

    Very helpful! Thank you very much

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

  • @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: ruclips.net/video/_fntjriRe48/видео.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.

  • @juliocesarllumiquingacabez1015
    @juliocesarllumiquingacabez1015 4 года назад

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

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

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

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

  • @Slavec5
    @Slavec5 4 года назад

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

  • @techkingnepal7555
    @techkingnepal7555 4 года назад

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

  • @cyberciscowebdev8371
    @cyberciscowebdev8371 4 года назад

    Thank you. Great video 👍

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

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

  • @nelson32
    @nelson32 4 года назад

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

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

  • @AthelstanEngland
    @AthelstanEngland 4 года назад

    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

  • @ersonusaini
    @ersonusaini 4 года назад

    Thank You so Much @DavidBombal

  • @nguyentrungnghia2783
    @nguyentrungnghia2783 28 дней назад

    thank you so much

  • @nghianguyenhuu5066
    @nghianguyenhuu5066 4 года назад +1

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

  • @thetrolley
    @thetrolley 4 года назад

    Thank you sir

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

  • @williamhaddock1838
    @williamhaddock1838 4 года назад

    Thanks David

  • @barrozenman1234
    @barrozenman1234 4 года назад

    thank you

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

  • @dandogamer
    @dandogamer 4 года назад

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

  • @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?

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

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

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

  • @pravinjogdand6197
    @pravinjogdand6197 3 года назад

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

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

  • @DevThought
    @DevThought 4 года назад

    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?

  • @kulvindermehli9255
    @kulvindermehli9255 4 года назад

    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

  • @phanvanhoa
    @phanvanhoa 4 года назад

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

  • @Ki1ngOfGods
    @Ki1ngOfGods 4 года назад

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

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

  • @Scipio-Nigerianus
    @Scipio-Nigerianus 3 года назад

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

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

  • @Ki1ngOfGods
    @Ki1ngOfGods 4 года назад

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

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

  • @CosmeJunior
    @CosmeJunior 3 года назад

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

  • @trippinf472
    @trippinf472 4 года назад

    its a definitive 10 what you do David

  • @cryptorichar2977
    @cryptorichar2977 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

  • @voltmanip
    @voltmanip 4 года назад

    how to get the desktop to work ????

  • @sarmadtawsalkar3023
    @sarmadtawsalkar3023 4 года назад

    🥰🥰

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

  • @allthingssoftwarerelated7079
    @allthingssoftwarerelated7079 4 года назад +5

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

  • @orleydoss3171
    @orleydoss3171 4 года назад

    👍