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

  Рет қаралды 20,531

Scott Hanselman

Scott Hanselman

Күн бұрын

We can now connect physical USB devices to WSL (Windows Subsystem for Linux)! I can now follow the Linux DFU firmware flashing instructions for my devices but still use the Windows OS that I enjoy. Scott is joined by Microsoft WSL PM Craig Loewen who shows us what's up!
Big thanks to Nelson Daniel Troncoso Aldas, Ben McMorran, Ben Hillis, the WSL team, and especially Frans van Dorsselaer for their help and hard work!
github.com/dorssel/usbipd-win

Пікірлер: 39
@VictorOrdu
@VictorOrdu 2 жыл бұрын
WSL is a game-changer. Good job guys!
@AssumedSam
@AssumedSam 2 жыл бұрын
All this WSL stuff is just so awesome
@sachin.sh3973
@sachin.sh3973 2 жыл бұрын
I might not understand everything but this nerdy stuff is so exicting scott. This is what I love about your channel. Keep it nerdy ✌️
@TotiTolvukall
@TotiTolvukall 2 жыл бұрын
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.
@cem_kaya
@cem_kaya Жыл бұрын
This helps a lot thank you everyone who made this work.
@geewiz70
@geewiz70 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.
@cem_kaya
@cem_kaya Жыл бұрын
btw very good presentation story and real world applications was great
@stevecross9159
@stevecross9159 2 жыл бұрын
Great stuff am new to wsl with kali linux usb are working 💪.
@dotnetdevni
@dotnetdevni 2 жыл бұрын
Its crazy how young pms our in microsoft well done on wsl
@ericvenneker
@ericvenneker 2 жыл бұрын
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!
@tyroneslothdrop9155
@tyroneslothdrop9155 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 Жыл бұрын
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
@cipherswami
@cipherswami 2 жыл бұрын
Will this work with dedicated Network adapters? so that I can use Wireshark or airmon-ng etc...
@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.
@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?
@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?
@whiteLine01
@whiteLine01 2 жыл бұрын
It would be great if the Linux password worked with Windows Hello.
@ae5au
@ae5au 2 жыл бұрын
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 жыл бұрын
Good idea! Lemme try that.
@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
@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
@islamkaram463
@islamkaram463 2 жыл бұрын
How about USB wireless adapter.
@simmosideways
@simmosideways 2 жыл бұрын
can we forward a usb hub this way?
@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
@Eddyi0202
@Eddyi0202 2 жыл бұрын
Do you need Windows 11 to make use of this feature?
@anshsharma3964
@anshsharma3964 2 жыл бұрын
nope, wsl is available on windows 10 as well
@sivinnguyen
@sivinnguyen 2 жыл бұрын
I tried connecting raspberry pi pico (micropython) but it didn't work.
@juhaTre
@juhaTre 2 жыл бұрын
How about Ethernet connector?
@jonaskuliesius6802
@jonaskuliesius6802 3 ай бұрын
Sadly doesn't work on Windows 10 :(
@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!
@scarface16134
@scarface16134 6 ай бұрын
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.
@automaetopia
@automaetopia 2 жыл бұрын
Scott, we are at home, we dont use USBs
@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.
Kali Linux: WSL 2 install and GUI setup
9:59
David Bombal
Рет қаралды 176 М.
Converting Any USB Device to A Wireless USB using Raspberry Pi Zero
11:40
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 24 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 189 МЛН
WSL 2: Connect USB devices
10:08
Microsoft Developer
Рет қаралды 59 М.
Windows Subsystem for Linux setup WSL2 Systemd, Ansible, and Kubernetes
20:50
Linux Tips - Record Video from USB Camera in WSL (2022)
9:54
AgileDevArt
Рет қаралды 17 М.
Arduino Aimbot Tutorial | Pyserial Tutorial | Tech Breakdown 3
12:58
Satori Digital
Рет қаралды 64 М.
Windows Subsystem for Linux (WSL) Tutorial & How To
14:59
Gary Explains
Рет қаралды 355 М.
Windows vs Linux
23:10
Gary Explains
Рет қаралды 91 М.
My PHP MVC Framework Now Has Nginx Support
5:32
smashing_data42
Рет қаралды 15
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 4,5 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 539 М.
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН