{"id":1047,"date":"2022-11-02T13:04:34","date_gmt":"2022-11-02T04:04:34","guid":{"rendered":"https:\/\/rfsec.ddns.net\/db\/?p=1047"},"modified":"2022-11-24T10:30:01","modified_gmt":"2022-11-24T01:30:01","slug":"wsl%e3%81%a7usb%e3%83%87%e3%83%90%e3%82%a4%e3%82%b9%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/rfsec.ddns.net\/db\/?p=1047","title":{"rendered":"WSL\u3067USB\u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u3046"},"content":{"rendered":"\n<p>\u53c2\u7167URL:\u3000<strong>WSL2 USB\u30ab\u30e1\u30e9+\u4ed6\u306eUSB\u6a5f\u5668 2022\u5e7409\u670806\u65e5\u7248<\/strong><\/p>\n\n\n\n<p>USB\u30c7\u30d0\u30a4\u30b9\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u306f\u3001\u30ab\u30fc\u30cd\u30eb\u518d\u69cb\u7bc9\u304c\u5fc5\u8981\u306e\u3088\u3046\u3060\u3002<a href=\"https:\/\/zenn.dev\/pinto0309\/articles\/e1432253d29e30\">https:\/\/zenn.dev\/pinto0309\/articles\/e1432253d29e30<\/a><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&gt;usbipd wsl list\nBUSID  VID:PID    DEVICE                                                        STATE\n1-4    03c3:290a  ZWO ASI290MC Camera                                           Not attached\n1-6    31b2:0010  KT USB Audio, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                Not attached\n1-8    8087:0a2a  \u30a4\u30f3\u30c6\u30eb(R) \u30ef\u30a4\u30e4\u30ec\u30b9 Bluetooth(R)                           Not attached\n2-3    05e3:0749  USB \u5927\u5bb9\u91cf\u8a18\u61b6\u88c5\u7f6e                                            Not attached\n4-1    056e:00e7  USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                              Not attached\n4-2    328f:2015  eMeet Nova, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                  Not attached\n5-2    1908:2220  USB \u5927\u5bb9\u91cf\u8a18\u61b6\u88c5\u7f6e, USB2.0 Device, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9           Not attached\n5-3    1b1c:1b73  USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                              Not attached\n5-4    8086:0808  USB PnP Sound Device, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                        Not attached<\/code><\/pre><\/div>\n\n\n\n<p><strong>device\u306eattach<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&gt;usbipd wsl attach --busid 4-2\nusbipd: info: Using default WSL distribution &#39;Ubuntu-20.04&#39;; specify the &#39;--distribution&#39; option to select a different one.\n\n&gt;usbipd wsl list\nBUSID  VID:PID    DEVICE                                                        STATE\n1-6    31b2:0010  KT USB Audio, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                Not attached\n1-8    8087:0a2a  \u30a4\u30f3\u30c6\u30eb(R) \u30ef\u30a4\u30e4\u30ec\u30b9 Bluetooth(R)                           Not attached\n1-12   03c3:290a  ZWO ASI290MC Camera                                           Not attached\n2-3    05e3:0749  USB \u5927\u5bb9\u91cf\u8a18\u61b6\u88c5\u7f6e                                            Not attached\n4-1    056e:00e7  USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                              Not attached\n4-2    328f:2015  eMeet Nova, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                  Attached - Ubuntu-20.04\n5-2    1908:2220  USB \u5927\u5bb9\u91cf\u8a18\u61b6\u88c5\u7f6e, USB2.0 Device, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9           Not attached\n5-3    1b1c:1b73  USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                                              Not attached\n5-4    8086:0808  USB PnP Sound Device, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9                        Not attached\n<\/code><\/pre><\/div>\n\n\n\n<p>\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9\uff1awsl2_linux_kernel_usbcam_enable_conf<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/PINTO0309\/wsl2_linux_kernel_usbcam_enable_conf\">https:\/\/github.com\/PINTO0309\/wsl2_linux_kernel_usbcam_enable_conf<\/a><\/p>\n\n\n\n<p><strong>\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u305fWSL2\u3092\u5fa9\u6d3b\u3055\u305b\u308b\u307e\u3067\u306b\u3057\u305f\u3042\u308c\u3053\u308c<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/zenn.dev\/karaage0703\/articles\/e30c9614a55bdb#.wslconfig%E3%82%92%E9%80%80%E9%81%BF%E3%81%97%E3%81%A6%E5%BE%A9%E5%B8%B0\">https:\/\/zenn.dev\/karaage0703\/articles\/e30c9614a55bdb#.wslconfig%E3%82%92%E9%80%80%E9%81%BF%E3%81%97%E3%81%A6%E5%BE%A9%E5%B8%B0<\/a><\/p>\n\n\n\n<p><code>.wslconfig<\/code>\u3092\u9000\u907f\u3057\u3066\u5fa9\u5e30\u3067\u6551\u308f\u308c\u305f\uff01 \u30e6\u30fc\u30b6\/xxxxx\/.wslconfig<\/p>\n\n\n\n<p><strong>\u53c2\u8003\u60c5\u5831\u3000USB\u30ab\u30e1\u30e9\u306e\u60c5\u5831\u3092v4l2-ctl\u53d6\u5f97\u30fb\u8a2d\u5b9a<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/dailylife.pman-bros.com\/use_webcamera\/\">Ubuntu 20.04 LTS\u3067USB\u63a5\u7d9a\u306eWEB\u30ab\u30e1\u30e9\u3092\u4f7f\u3046<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.prototype00.com\/2021\/11\/v4l2-ctl-usbcam.html\">v4l2-ctl\u3067\u884c\u3046USB\u30ab\u30e1\u30e9\u8a2d\u5b9a\u65b9\u6cd5\u307e\u3068\u3081<\/a><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\/\/ \u5229\u7528\u53ef\u80fd\u306aWEB\u30ab\u30e1\u30e9\u306e\u4e00\u89a7\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\n$ v4l2-ctl --list-devices\n\/\/#\u30c7\u30d0\u30a4\u30b9\u306e\u5168\u3066\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u307e\u3059\nv4l2-ctl -d \/dev\/video2 --all\n\n\/\/ \u63a5\u7d9a\u3057\u3066\u3044\u308bUSB\u30ab\u30e1\u30e9\u306e\u5168\u60c5\u5831\u51fa\u529b\n$ v4l2-ctl --all\n\/\/ USB\u30ab\u30e1\u30e9\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u8a2d\u5b9a\u9805\u76ee\u4e00\u89a7\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\n\n$ v4l2-ctl -L\n\n\u8a2d\u5b9a\u306e\u78ba\u8a8d\u306f\u4ee5\u4e0b\u3067\u884c\u3044\u307e\u3059\u3002\n$ v4l2-ctl -C &lt;\u8a2d\u5b9a\u9805\u76ee\u540d&gt;\n\n\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u3067\u884c\u3044\u307e\u3059\u3002\n$ v4l2-ctl -c &lt;\u8a2d\u5b9a\u9805\u76ee\u540d&gt;=\u5024\n\n\u89e3\u50cf\u5ea6\u3068\u30d5\u30ec\u30fc\u30e0\u30ec\u30fc\u30c8\u306e\u53d6\u5f97\n$ v4l2-ctl --list-formats-ext<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u7167URL:\u3000WSL2 USB\u30ab\u30e1\u30e9+\u4ed6\u306eUSB\u6a5f\u5668 2022\u5e7409\u670806\u65e5\u7248 USB\u30c7\u30d0\u30a4\u30b9\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u306f\u3001\u30ab\u30fc\u30cd\u30eb\u518d\u69cb\u7bc9\u304c\u5fc5\u8981\u306e\u3088\u3046\u3060\u3002https:\/\/zenn.dev\/pinto0309\/articles\/e14 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1047","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"featured_image_src":null,"author_info":{"display_name":"mars","author_link":"https:\/\/rfsec.ddns.net\/db\/?author=1"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/1047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1047"}],"version-history":[{"count":7,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/1047\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/1047\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}