当前位置:网站首页>[wsl2] configure the USB camera connecting the USB device and using the host
[wsl2] configure the USB camera connecting the USB device and using the host
2022-07-27 07:27:00 【G.Chenhui】
【WSL2】 configure connections USB Device and use the host USB camera
1 summary
Explain clearly first ,WSL2 The kernel does not contain USB Camera drive , So if it's not just needed , It is recommended to open it directly .
If you really want to toss , You can follow Official course To compile one with extra
USBDriver kernel
Let's talk about it briefly , How to make WSL2 Connect to the host USB equipment .
Reference blog :WSL2 Connection call USB equipment
2 install USBIPD-WIN
Reference article : Official documents
WSL2 Connection is not supported by itself USB equipment , So you need to install usbipd-win.
- If installed
winget, Just use the commandwinget install --interactive --exact dorssel.usbipd-wininstall . - If
1Can not be ,GitHub download.msifile , Double click installation .

3 stay Linux Install in USBIP Tools and hardware databases
I installed
Ubuntu20.04
- Run the following command ( Apply to
Ubuntu)
sudo apt install linux-tools-5.4.0-77-generic hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/5.4.0-77-generic/usbip 20
See other distributions Official website , Here's the picture :
After completing the above steps , Now a service is Windows Run on to share USB equipment , And in WSL2 Necessary tools are installed in to connect to shared devices .
4 additional USB equipment
- With Administrator mode open
PowerShellAnd enter the following command
usbipd wsl list
You can see that the current state is
Not attached, SinisterBUSIDThe next step is going to be
- Select to attach to
WSL2Device bus forID
usbipd wsl attach --busid <busid>
This step may result in an error :
usbipd: error: Access denied; this operation requires administrator privileges.usbipd: error: WSL kernel is not USBIP capable; update with 'wsl --update'resolvent :
1: Be sure to open administrator modePowerShell
2:
wsl --updatewsl --shutdown- Reopen in administrator mode
PowerShell
- open
Ubuntu20.04
lsusb
You can see the device just attached , You may need to configure later
udevRules to allow nonrootThe user accesses the device
- After use , Can be physically disconnected
USBequipment , Or in administrator modePowerShellIn the implementation ofusbipd wsl detach --busid <busid>
边栏推荐
猜你喜欢

Drools (5): drools advanced syntax

2022 0726 Gu Yujia's study notes

使用pip命令切换不同的镜像源

Automatically generate UML sequence diagram according to text (draw.io format)

A Competitive Swarm Optimizer for Large Scale Optimization

Usage of string class

Perl: 将要执行的外部命令拆分为多行

在Perl程序中暴露Prometheus指标

jjwt 生成token

Introduction to network -- overview of VLAN and trunk
随机推荐
ShowDoc漏洞学习——CNVD-2020-26585(任意文件上传)
Advanced IO outline
Guava的基础功能与集合
Flutter实战-请求封装(一)
在kettle中快速更新一个字段中的信息
Basic functions and collections of guava
想sink 到 redis-hash 里面 把 对象的属性和值都写进去 ,大佬们有Demo 吗?
【WSL2】配置连接 USB 设备并使用主机的 USB 摄像头
如何取得对象的DDL信息
漏风的小棉袄……
(2022 Niuke multi school III) a-ancestor (LCA)
tigervnc的使用
py2exe qt界面风格变成了win98解决方案
C语言程序设计 | 程序编译与预处理
Simple rotation chart
使用反射实现动态修改@Excel的注解属性
Oracle数据库问题
Binary tree -- natural search semantics (1) Basics
yhb_sysbench
Excuse me, MySQL timestamp (6) using flick SQL is null. Is there a way to deal with this

