{"id":32,"date":"2022-03-22T23:35:12","date_gmt":"2022-03-22T14:35:12","guid":{"rendered":"http:\/\/52.196.21.54.nip.io\/techblog\/?p=32"},"modified":"2022-05-07T16:23:36","modified_gmt":"2022-05-07T07:23:36","slug":"ubuntu-server%e3%81%a7wi-fi%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/shugomatsuzawa.com\/techblog\/2022\/03\/22\/32\/","title":{"rendered":"Ubuntu Server\u3067Wi-FI\u3092\u4f7f\u3046"},"content":{"rendered":"\n<p>\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u5316\u3057\u305f\u30ce\u30fc\u30c8PC\u3092\u3001Wi-Fi\u3067\u7e4b\u304e\u305f\u3044\u3002<br>\u300c\u30b5\u30fc\u30d0\u30fc\u3092Wi-Fi\u3067\u7e4b\u3050\u306a\u3093\u3066\u300d\u3068\u3044\u3046\u6587\u53e5\u306f\u53d7\u3051\u4ed8\u3051\u306a\u3044\u3002Wi-Fi\u304c\u4f7f\u3044\u305f\u3044\u306e\u3060\u3002<\/p>\n\n\n\n<p>Dell Vostro 2520\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u306f\u6b21\u306e\u901a\u308a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u8b58\u5225<\/th><th><strong>\u540d\u524d<\/strong><\/th><th>\u7a2e\u985e<\/th><\/tr><\/thead><tbody><tr><td>enp9s0<\/td><td>Realtek RTL8111\/8168\/8411 PCI Express Gigabit Ethernet Controller<\/td><td>Ethernet interface<\/td><\/tr><tr><td>wlp7s0<\/td><td>Broadcom BCM43142 802.11b\/g\/n<\/td><td>Wireless interface<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2Wi-Fi\u30b9\u30a4\u30c3\u30c1\u306e\u72b6\u614b\u306f\u3001\u672c\u4f53\u624b\u524d\u306e\u30e9\u30f3\u30d7\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3002<br>UEFI\u306e\u30bb\u30ad\u30e5\u30a2\u30d6\u30fc\u30c8\u304c\u6709\u52b9\u3060\u3068\u3001Wi-Fi\u30a2\u30c0\u30d7\u30bf\u3092\u4f7f\u7528\u3067\u304d\u306a\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u60c5\u5831\u306e\u8abf\u3079\u65b9\u3044\u308d\u3044\u308d<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo lshw -C network # \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u95a2\u9023\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u60c5\u5831\nip link # \u73fe\u5728\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u306e\u72b6\u614b<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install wireless-tools # SSID\u30b9\u30ad\u30e3\u30f3\u306b\u5fc5\u8981\nsudo iwlist wlp7s0 scan # SSID\u30b9\u30ad\u30e3\u30f3<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c9\u30e9\u30a4\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>\u5148\u306b\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\u3067\u63a5\u7d9a\u3057\u3001Wi-Fi\u30a2\u30c0\u30d7\u30bf\u306e\u30c9\u30e9\u30a4\u30d0\u7b49\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install bcmwl-kernel-source # Wi-Fi\u30a2\u30c0\u30d7\u30bf\u306e\u30c9\u30e9\u30a4\u30d0\nsudo apt install wpasupplicant # Wi-Fi\u63a5\u7d9a\u306b\u5fc5\u8981<\/code><\/pre>\n\n\n\n<p>\/etc\/modprobe.d\/blacklist.conf \u306b\u4e0b\u8a18\u3092\u8ffd\u8a18<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Broadcom BCM43142\nblacklist b43\nblacklist bcma\nblacklist ssb<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>netplan<\/strong><\/h2>\n\n\n\n<p>netplan\u3067Wi-Fi\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3002<br>\/etc\/netplan\/ \u306e\u4e2d\u306eyaml\u3092\u9806\u756a\u306b\u5168\u3066\u8aad\u307f\u8fbc\u3080\u306e\u3067\u3001\u3082\u3068\u3082\u3068\u5165\u3063\u3066\u3044\u308b\u3082\u306e\u306f\u89e6\u3089\u305a\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3002<br>\u4eca\u56de\u306f 51-\u3007\u3007-network-config.yaml \u307f\u305f\u3044\u306a\u611f\u3058\u306b\u3057\u305f\u3002 \u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3092\u6307\u5b9a\u3057\u3001IP\u30a2\u30c9\u30ec\u30b9\u3082\u3053\u3053\u3067\u56fa\u5b9a\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>network:\n  ethernets:\n    enp9s0:\n      optional: true\n  wifis:\n    wlp7s0:\n      addresses: &#91;192.168.1.201\/24]\n      dhcp4: false\n      optional: true\n      gateway4: 192.168.1.1\n      nameservers:\n        addresses: &#91;1.1.1.1,1.0.0.1,192.168.1.1]\n      access-points:\n        Network-SSID:\n          password: \"*********\"\n  version: 2\n  renderer: networkd<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u5316\u3057\u305f\u30ce\u30fc\u30c8PC\u3092\u3001Wi-Fi\u3067\u7e4b\u304e\u305f\u3044\u3002\u300c\u30b5\u30fc\u30d0\u30fc\u3092Wi-Fi\u3067\u7e4b\u3050\u306a\u3093\u3066\u300d\u3068\u3044\u3046\u6587\u53e5\u306f\u53d7\u3051\u4ed8\u3051\u306a\u3044\u3002Wi-Fi\u304c\u4f7f\u3044\u305f\u3044\u306e\u3060\u3002 Dell Vostro 2520\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u306f\u6b21\u306e\u901a\u308a\u3002 \u8b58\u5225 \u540d [&hellip;]","protected":false},"author":1,"featured_media":38,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[9,16,11,15,17,10],"class_list":["post-32","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system-management","tag-linux","tag-netplan","tag-ubuntu","tag-wi-fi","tag-network","tag-memo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2022\/03\/5G1478_TP_V.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":4,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/32\/revisions\/50"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media\/38"}],"wp:attachment":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}