Connecting USB devices to WSL on Windows with usbipd-win for Linux IoT device support!

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

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

  • @TotiTolvukall
    @TotiTolvukall 2 года назад +12

    Moreover, what makes this immensely useful in professional setting is that you can now use Windows+WSL2 in data rescue scenarios where you're working with MD RAID, LVM, partitions within partitions, XFS, ext* whatnots you're good to go without any dualbooting.
    I rescued data from within a ext4 filesystem in a logical volume (LVM) in a volume group stored inside a partition stored inside a LVM volume stored in a volume group that was in an MD RAID volume stored on a physical disk. And under WSL2 it worked flawlessly.
    Perhaps I should make a video of it as it does sound like a fairytale...

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

      Please do make a video on this.

  • @sachin.sh3973
    @sachin.sh3973 2 года назад +3

    I might not understand everything but this nerdy stuff is so exicting scott. This is what I love about your channel. Keep it nerdy ✌️

  • @VictorOrdu
    @VictorOrdu 2 года назад +6

    WSL is a game-changer. Good job guys!

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

    All this WSL stuff is just so awesome

  • @cem_kaya
    @cem_kaya Год назад +1

    This helps a lot thank you everyone who made this work.

  • @geewiz70
    @geewiz70 2 года назад +2

    That is so awesome! Now I can flash QMK firmware updates to my keyboards right from WSL where I build it.

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

    Exited to try this! It's a lot easier to work with the esp32 in Linux compared to windows. Now I should be able to flash my esp32 projects from Linux. Thanks Scott!

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

    Craig Loewen is a very good engineer.

  • @dotnetdevni
    @dotnetdevni 2 года назад +2

    Its crazy how young pms our in microsoft well done on wsl

  • @cem_kaya
    @cem_kaya Год назад +1

    btw very good presentation story and real world applications was great

  • @tyroneslothdrop9155
    @tyroneslothdrop9155 2 года назад +2

    Hey Scott, It would be great if you could put together a tutorial for setting this up on Windows 10, as I hear the process is considerably more complex, requiring users to build a custom kernel.

    • @robmooreproductions7160
      @robmooreproductions7160 Год назад +1

      I second this. I tried following these steps being on Windows 10 and everything looks like it's working until I try to actually access the usb device

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

    Great stuff am new to wsl with kali linux usb are working 💪.

  • @ericvenneker
    @ericvenneker 2 года назад +1

    this is very cool, i might need this to develop a small printer service voor a zebra compatible printer that needs to run on a RPi. Thanks!

  • @ae5au
    @ae5au 2 года назад +1

    Scott: Instead of sharing the com port from Windows to WSL, couldn't you share the virtual UART USB device into WSL and let Linux enumerate it as a USB to serial adapter?

    • @shanselman
      @shanselman  2 года назад +1

      Good idea! Lemme try that.

  • @whiteLine01
    @whiteLine01 2 года назад +2

    It would be great if the Linux password worked with Windows Hello.

  • @islamkaram463
    @islamkaram463 2 года назад +1

    How about USB wireless adapter.

  • @Steve-tz6ex
    @Steve-tz6ex Год назад

    Hyper-V on Windows 2022 how in the video does t know what Linux distro to connect to? I never saw you tell it what Linux VM(?) to connect to. So if I have 5 Linux VMs running on Hyper-V how does it know which one I want it to "tunnel" to?

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

    when i try to run usbipd wsl --busid , i get an error saying : usbipd: error: The specified WSL distribution is not running.what do i do

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

    I still use windows 10 instead of the recommended windows 11. Can my wsl2 still connect to usb? And how? For many developers,out of IT internal policy, no freedom to upgrade OS as we would like.

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

    I did this but nothing happens. I do the attach procedure but I still get Not attached. I don't get any errors or anything. Do you know what could be wrong or what am I missing?

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

    Greetings. I am attempting to install WSL on my Windows machine that has Windows 10 Pro installed Version 20H2 (OS Build 19042.1415) and I cannot get the Microsoft App store to download Ubuntu. Ive enabled the Windows/Linux connection. The App Store says "The thing that you are looking for isn't here." What gives? I can find this app on the store with my slightly newer laptop

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

    I tried connecting raspberry pi pico (micropython) but it didn't work.

  • @Eddyi0202
    @Eddyi0202 2 года назад +1

    Do you need Windows 11 to make use of this feature?

    • @anshsharma3964
      @anshsharma3964 2 года назад +1

      nope, wsl is available on windows 10 as well

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

    Any1 get PTP (photo transfer protocol) working via gphoto2? I get PTP transfer errors though the device does show with gphoto2 --auto-detect when mounted with usbipd

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

    Will this work with dedicated Network adapters?
    so that I can use Wireshark or airmon-ng etc...

  • @jonaskuliesius6802
    @jonaskuliesius6802 4 месяца назад

    Sadly doesn't work on Windows 10 :(

  • @scarface16134
    @scarface16134 7 месяцев назад

    why not just make it a exe all contained in window and have a simple GUI to select the USB device to transfer or maybe anchor is a better term.

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

    How about Ethernet connector?

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

    can we forward a usb hub this way?

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

    Scott, we are at home, we dont use USBs

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

    Friend can you share the template of that awesome Terminal? looks sick

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

      Yes details on my blog and in earlier videos here

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

      @@shanselman checking them right now, thanks!

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

    Nice, but this should not be done via 3rd party.

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

    WSL2 is nice, there are problems though, and nobody seems to fix them from MS side. For example, the wsl2 VM suddenly eats the whole RAM without anything stopping it OR the shell becomes laggy, believe me, that happens without an obvious reason. My point is that apart from tutorials like this one, WSL2 just does not seem to be capable of covering a Linux system 24/7, which makes it just a convenient replacement of Linux only in specific simple cases.