
{"id":162,"date":"2024-11-22T20:31:24","date_gmt":"2024-11-22T12:31:24","guid":{"rendered":"https:\/\/astrag.top\/?p=162"},"modified":"2024-11-22T20:33:03","modified_gmt":"2024-11-22T12:33:03","slug":"ubuntu%e4%b8%aa%e4%ba%ba%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/astrag.top\/?p=162","title":{"rendered":"Ubuntu\u4e2a\u4eba\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u6700\u8fd1\u4e24\u5929\u5728\u5f04\u670d\u52a1\u5668\uff0c\u5176\u4e2d\u7528\u5230\u4e86\u4e00\u4e9b\u547d\u4ee4\uff0c\u53ef\u80fd\u8fc7\u6bb5\u65f6\u95f4\u5c31\u5fd8\u8bb0\u4e86\uff0c\u6240\u4ee5\u6574\u7406\u4e00\u4e0b\uff08\u5176\u5b9e\u662f\u539f\u5148\u4e5f\u7528\u8fc7\uff0c\u4f46\u662f\u5fd8\u8bb0\u4e86\uff0c\u6240\u4ee5\u6b63\u597d\u8fd9\u6b21\u5c31\u6574\u7406\u4e00\u4e0b\u3002\uff09<\/p>\n<p class=\"wp-block-paragraph\">\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\uff1asudo apt update<br>\u5347\u7ea7\u6240\u6709\u5df2\u5b89\u88c5\u7684\u5305\u5230\u6700\u65b0\u7248\u672c\uff1asudo apt upgrade<br>\u4f7f\u7528apt\u5de5\u5177\u5b89\u88c5\u200c\uff1asudo apt-get install \u8f6f\u4ef6\u540d<br>\u4f7f\u7528deb\u8f6f\u4ef6\u5305\u5b89\u88c5\u200c\uff1asudo dpkg -i \u8f6f\u4ef6\u5305\u540d<br>\u5378\u8f7d\u8f6f\u4ef6\uff1asudo apt-get remove \u8f6f\u4ef6\u5305\u540d<br>\u663e\u793a\u7f51\u7edc\u63a5\u53e3\u7684\u914d\u7f6e\u4fe1\u606f\uff1aifconfig <\/p>\n<p class=\"wp-block-paragraph\">ubuntu24.04 \u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u5f0f\u6765\u914d\u7f6e\u7f51\u7edc\uff0cnetwork-manager \u63d0\u4f9b nmcli\u3001nmtui\u548cnetplan<br>\u56e0\u4e3a\u6211\u4f7f\u7528\u7684ubuntu\u662f\u5e26wifi\u7f51\u5361\u7684\uff0c\u6ca1\u6709\u4f7f\u7528\u6709\u7ebf\u8fde\u63a5\uff0c\u6240\u4ee5\u6211\u4e00\u76f4\u8fde\u63a5wifi\u4f7f\u7528<\/p>\n<p class=\"wp-block-paragraph\"><strong>nmcli<\/strong><\/p>\n<p class=\"wp-block-paragraph\">\u542f\u52a8network-manager\u670d\u52a1\uff1asudo systemctl start NetworkManager<br>NetworkManager\u5f00\u673a\u81ea\u542f\uff1asudo systemctl enable NetworkManager<br>\u67e5\u770b\u6240\u6709\u8fde\u63a5\uff1anmcli con show<br>\u5217\u51fa\u53ef\u7528\u7684WiFi\u7f51\u7edc\uff1anmcli dev wifi list<br>\u4f7f\u7528nmcli\u547d\u4ee4\u8fde\u63a5\u5230\u9009\u5b9a\u7684WiFi\u7f51\u7edc\uff1anmcli &#8211;ask dev wifi connect SSID password password<br>\uff08&#8221;SSID&#8221;\u4e3awifi\u7684\u540d\u79f0\uff0c&#8221;password&#8221;\u4e3awifi\u7684\u5bc6\u7801\uff09<\/p>\n<p class=\"wp-block-paragraph\"><strong>nmtui<\/strong><\/p>\n<p class=\"wp-block-paragraph\">\u4f7f\u7528\u6587\u672c\u7528\u6237\u754c\u9762\u8fde\u63a5wifi\uff1asudo nmtui<br>\u4e2a\u4eba\u60f3\u7701\u4e8b\uff0c\u4f7f\u7528\u8fd9\u4e2a\u8fde\u63a5wifi\u6bd4\u8f83\u7b80\u5355\u3002<\/p>\n<p class=\"wp-block-paragraph\"><strong>netplan<\/strong><\/p>\n<p class=\"wp-block-paragraph\">\u9700\u8981\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u4e2a\u4eba\u89c9\u5f97\u6709\u70b9\u9ebb\u70e6\uff0c\u6240\u4ee5\u4e00\u822c\u4e0d\u4f7f\u7528\u3002<\/p>\n<p class=\"wp-block-paragraph\"><strong>U\u76d8\u6302\u8f7d<\/strong><\/p>\n<p class=\"wp-block-paragraph\">\u6253\u5370\u5b8c\u6574\u8bbe\u5907\u8def\u5f84\uff1alsblk -p<br>\u521b\u5efa\u6302\u8f7d\u70b9\uff1asudo mkdir \/mnt\/usb<br>\u4f7f\u7528mount\u547d\u4ee4\u6302\u8f7dU\u76d8\uff1asudo mount \/dev\/sdb1 \/mnt\/usb \uff08&#8221;\/dev\/sdb1&#8243;\u4e3aU\u76d8\u8bbe\u5907\u8def\u5f84\uff09<br>\u4f7f\u7528\u5b8c\u6210\u540e\uff0c\u5378\u8f7dU\u76d8\uff1asudo umount \/mnt\/usb<\/p>\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4e24\u5929\u5728\u5f04\u670d\u52a1\u5668\uff0c\u5176\u4e2d\u7528\u5230\u4e86\u4e00&#046;&#046;&#046;<\/p>","protected":false},"author":1,"featured_media":163,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/astrag.top\/index.php?rest_route=\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astrag.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astrag.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astrag.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/astrag.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":2,"href":"https:\/\/astrag.top\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/astrag.top\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions\/165"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/astrag.top\/index.php?rest_route=\/wp\/v2\/media\/163"}],"wp:attachment":[{"href":"https:\/\/astrag.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astrag.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astrag.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}