当前位置:网站首页>[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>
边栏推荐
- Analysis of query results using both left join on and where in MySQL
- 使用反射实现动态修改@Excel的注解属性
- Oracle database problems
- 请问 mysql timestamp(6) 用flink-sql接过来是 null,这点有办法处理不
- Codeforces Round #804 (Div. 2)(5/5)
- Excuse me, is there a big delay in individual capture when someone uses Oracle xStream? How to solve the delay problem
- Sort increment with typescript
- Bash: 创建返回布尔类型值的函数
- Binary tree -- natural search semantics (1) Basics
- 在rhel7.3中编译和使用log4cxx
猜你喜欢

Usage of string class

(2022杭电多校三)1009.Package Delivery(贪心)

C4D动画如何提交云渲染农场快速渲染?

Firefox browser, when accessing Tencent cloud server, failed to establish a secure connection.

Jmeter:接口自动化测试-BeanShell对数据库数据和返回数据比较

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

Federal Reserve SR 11-7: Guidance on model risk management - Wanzi collection

MySQL: 提高最大连接数

高级IO提纲

VLAN trunk experiment
随机推荐
C语言 pthread_cleanup_push()和pthread_cleanup_pop()函数(用于临界资源程序段中发生终止动作后的资源清理任务,以免造成死锁,临界区资源一般上锁)
Use shell to calculate the sum of numbers in text
ADB instruction sorting
Basic functions and collections of guava
js中的数组方法与循环
Bash: 创建返回布尔类型值的函数
Overall dichotomy?
美联储SR 11-7:模型风险管理指南(Guidance on Model Risk Management)-万字收藏
Sort increment with typescript
Single arm routing (explanation + experiment)
在Perl程序中暴露Prometheus指标
functools模块
Compiling and using log4cxx in rhel7.3
Synchronized锁
Oracle数据库问题
整体二分?
Internal class -- just read this article~
请问有人使用oracle xstream 时出现个别capture延迟很大的吗,该如何解决延迟问题呢
A small cotton padded jacket with air leakage
tigervnc的使用

