{"id":204855,"date":"2020-11-20T10:19:21","date_gmt":"2020-11-20T02:19:21","guid":{"rendered":"https:\/\/gulass.cn\/?p=204855"},"modified":"2020-11-05T16:20:42","modified_gmt":"2020-11-05T08:20:42","slug":"raspberry-pi-builds-ubuntu-server","status":"publish","type":"post","link":"https:\/\/gulass.cn\/raspberry-pi-builds-ubuntu-server.html","title":{"rendered":"\u4f7f\u7528\u6811\u8393\u6d3e\u642d\u5efaUbuntu\u670d\u52a1\u5668"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6811\u8393\u6d3e\u662f\u6700\u8457\u540d\u7684\u5355\u677f\u8ba1\u7b97\u673a\u3002\u6700\u521d\uff0c\u6811\u8393\u6d3e\u9879\u76ee\u7684\u8303\u56f4\u65e8\u5728\u4fc3\u8fdb\u5b66\u6821\u548c\u53d1\u5c55\u4e2d\u56fd\u5bb6\u7684\u8ba1\u7b97\u673a\u57fa\u7840\u79d1\u5b66\u7684\u6559\u5b66\u3002\u672c\u6587\u5e76\u4e0d\u662f\u8981\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6811\u8393\u6d3e\u4f5c\u4e3a\u684c\u9762\u3002\u76f8\u53cd\uff0c\u6211\u4f1a\u544a\u8bc9\u4f60\u5982\u4f55\u5728\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5 Ubuntu \u670d\u52a1\u5668\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6811\u8393\u6d3e\u662f\u6700\u8457\u540d\u7684\u5355\u677f\u8ba1\u7b97\u673a\u3002\u6700\u521d\uff0c\u6811\u8393\u6d3e\u9879\u76ee\u7684\u8303\u56f4\u65e8\u5728\u4fc3\u8fdb\u5b66\u6821\u548c\u53d1\u5c55\u4e2d\u56fd\u5bb6\u7684\u8ba1\u7b97\u673a\u57fa\u7840\u79d1\u5b66\u7684\u6559\u5b66\u3002<\/p>\n

\"\"<\/p>\n

\u5b83\u7684\u4f4e\u6210\u672c\u3001\u4fbf\u643a\u6027\u548c\u6781\u4f4e\u7684\u529f\u8017\uff0c\u4f7f\u5f97\u5b83\u7684\u53d7\u6b22\u8fce\u7a0b\u5ea6\u8fdc\u8fdc\u8d85\u8fc7\u9884\u671f\u3002\u4ece\u6c14\u8c61\u7ad9\u5230\u5bb6\u5ead\u81ea\u52a8\u5316\uff0c\u73a9\u5bb6\u4eec\u7528\u6811\u8393\u6d3e\u642d\u5efa\u4e86\u8bb8\u591a\u9177\u70ab\u7684\u9879\u76ee\u3002<\/p>\n

\u7b2c\u56db\u4ee3\u6811\u8393\u6d3e\u5177\u5907\u4e86\u666e\u901a\u53f0\u5f0f\u7535\u8111\u7684\u529f\u80fd\u548c\u5904\u7406\u80fd\u529b\u3002\u4f46\u672c\u6587\u5e76\u4e0d\u662f\u8981\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6811\u8393\u6d3e\u4f5c\u4e3a\u684c\u9762\u3002\u76f8\u53cd\uff0c\u6211\u4f1a\u544a\u8bc9\u4f60\u5982\u4f55\u5728\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5 Ubuntu \u670d\u52a1\u5668\u3002<\/p>\n

\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u5c06\u4f7f\u7528\u6811\u8393\u6d3e 4\uff0c\u4ee5\u4e0b\u662f\u6211\u5c06\u4ecb\u7ecd\u7684\u5185\u5bb9\uff1a<\/p>\n

    \u5728 microSD \u5361\u4e0a\u5b89\u88c5 Ubuntu \u670d\u52a1\u5668<\/ol>\n
      \u5728\u6811\u8393\u6d3e\u4e0a\u8bbe\u7f6e\u65e0\u7ebf\u7f51\u7edc\u8fde\u63a5<\/ol>\n
        \u901a\u8fc7 SSH \u8bbf\u95ee\u4f60\u7684\u6811\u8393\u6d3e<\/ol>\n

        \u672c\u6559\u7a0b\u9700\u8981\u4ee5\u4e0b\u8bbe\u5907\uff1a<\/strong><\/p>\n

          \u4e00\u5f20 micro SD \u5361\uff08\u5efa\u8bae\u4f7f\u7528 8GB \u6216\u66f4\u5927\u7684\u5361\uff09<\/ol>\n
            \u4e00\u53f0\u5e26\u6709 micro SD \u5361\u8bfb\u5361\u5668\u7684\u8ba1\u7b97\u673a\uff08\u8fd0\u884c Linux\u3001Windows \u6216 macOS\uff09<\/ol>\n
              \u6811\u8393\u6d3e 2\u30013 \u6216 4<\/ol>\n
                \u826f\u597d\u7684\u4e92\u8054\u7f51\u8fde\u63a5<\/ol>\n
                  \u7528\u4e8e\u6811\u8393\u6d3e 2 \u548c 3 \u7684 HDMI \u7ebf\u548c\u7528\u4e8e\u6811\u8393\u6d3e 4 \u7684 micro HDMI \u7ebf\uff08\u53ef\u9009\uff09<\/ol>\n
                    \u4e00\u5957 USB \u952e\u76d8\uff08\u53ef\u9009\uff09<\/ol>\n
                    \u5728\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5 Ubuntu \u670d\u52a1\u5668<\/strong><\/div>\n

                    \u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4f7f\u7528 Ubuntu \u6765\u521b\u5efa\u6811\u8393\u6d3e SD \u5361\uff0c\u4f46\u4f60\u53ef\u4ee5\u5728\u5176\u4ed6 Linux \u53d1\u884c\u7248\u3001macOS \u548c Windows \u4e0a\u521b\u5efa\u5b83\u3002\u8fd9\u662f\u56e0\u4e3a\u51c6\u5907 SD \u5361\u7684\u6b65\u9aa4\u5bf9 Raspberry Pi Imager \u5de5\u5177\u800c\u8a00\u662f\u4e00\u6837\u7684\u3002<\/p>\n

                    Raspberry Pi Imager \u5de5\u5177\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u4f60\u9009\u62e9\u7684\u6811\u8393\u6d3e\u7cfb\u7edf\u955c\u50cf\u3002\u8fd9\u610f\u5473\u7740\u4f60\u9700\u8981\u4e00\u4e2a\u826f\u597d\u7684\u7f51\u7edc\u8fde\u63a5\u6765\u4e0b\u8f7d 1GB \u5de6\u53f3\u7684\u6570\u636e\u3002<\/p>\n

                    \u6b65\u9aa4 1\uff1a\u7528 Raspberry Pi Imager \u51c6\u5907 SD \u5361<\/strong><\/span><\/div>\n

                    \u786e\u4fdd\u4f60\u5df2\u5c06 microSD \u5361\u63d2\u5165\u7535\u8111\uff0c\u5e76\u5728\u7535\u8111\u4e0a\u5b89\u88c5 Raspberry Pi Imager\u3002<\/p>\n

                    \u4f60\u53ef\u4ee5\u4ece\u8fd9\u4e9b\u94fe\u63a5\u4e2d\u4e0b\u8f7d\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684 Imager \u5de5\u5177\uff1a<\/p>\n

                      \u7528\u4e8e Ubuntu\/Debian \u7684 Raspberry Pi Imager<\/ol>\n
                        \u7528\u4e8e Windows \u7684 Raspberry Pi Imager<\/ol>\n
                          \u7528\u4e8e MacOS \u7684 Raspberry Pi Imager<\/ol>\n

                          \u5c3d\u7ba1\u6211\u4f7f\u7528\u7684\u662f Ubuntu\uff0c\u4f46\u6211\u4e0d\u4f1a\u4f7f\u7528\u4e0a\u9762\u5217\u51fa\u7684 Debian \u8f6f\u4ef6\u5305\uff0c\u800c\u662f\u4f7f\u7528\u547d\u4ee4\u884c\u5b89\u88c5 snap \u5305\u3002\u8fd9\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u9002\u7528\u4e8e\u66f4\u5e7f\u6cdb\u7684 Linux \u53d1\u884c\u7248\u3002<\/p>\n

                          sudo snap install rpi-imager\r\n<\/pre>\n

                          \u5b89\u88c5\u597d Raspberry Pi Imager \u5de5\u5177\u540e\uff0c\u627e\u5230\u5e76\u6253\u5f00\u5b83\uff0c\u70b9\u51fb \u201cCHOOSE OS\u201d \u83dc\u5355\u3002<\/p>\n

                          \"\"<\/p>\n

                          \u6eda\u52a8\u83dc\u5355\u5e76\u70b9\u51fb \u201cUbuntu\u201d \uff08\u201c\u6838\u5fc3\u201d\u548c\u201c\u670d\u52a1\u5668\u201d\u955c\u50cf\uff09\u3002<\/p>\n

                          \"\"<\/p>\n

                          \u4ece\u53ef\u7528\u7684\u955c\u50cf\u4e2d\uff0c\u6211\u9009\u62e9\u4e86 Ubuntu 20.04 LTS 64 \u4f4d\u3002\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u6811\u8393\u6d3e 2\uff0c\u90a3\u4f60\u53ea\u80fd\u9009\u62e9 32 \u4f4d\u955c\u50cf\u3002<\/p>\n

                          \u91cd\u8981\u63d0\u793a\uff1a\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u6700\u65b0\u7684\u6811\u8393\u6d3e 4 - 8 GB \u5185\u5b58\u578b\u53f7\uff0c\u4f60\u5e94\u8be5\u9009\u62e9 64 \u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5426\u5219\u53ea\u80fd\u4f7f\u7528 4 GB \u5185\u5b58\u3002<\/p>\n

                          \"\"<\/p>\n

                          \u4ece \u201cSD Card\u201d \u83dc\u5355\u4e2d\u9009\u62e9\u4f60\u7684 microSD \u5361\uff0c\u7136\u540e\u70b9\u51fb \u201cWRITE\u201d\u3002<\/p>\n

                          \"\"<\/p>\n

                          \u5982\u679c\u5b83\u663e\u793a\u4e00\u4e9b\u9519\u8bef\uff0c\u8bf7\u5c1d\u8bd5\u518d\u6b21\u5199\u5165\u5b83\u3002\u73b0\u5728\u5b83\u5c06\u4e0b\u8f7d Ubuntu \u670d\u52a1\u5668\u955c\u50cf\u5e76\u5c06\u5176\u5199\u5165 micro SD \u5361\u3002<\/p>\n

                          \u5f53\u8fd9\u4e2a\u8fc7\u7a0b\u5b8c\u6210\u65f6\uff0c\u5b83\u5c06\u901a\u77e5\u4f60\u3002<\/p>\n

                          \"\"<\/p>\n

                          \u6b65\u9aa4 2\uff1a\u5728 Ubuntu \u670d\u52a1\u5668\u4e0a\u6dfb\u52a0 WiFi \u652f\u6301<\/strong><\/span><\/div>\n

                          \u70e7\u5f55\u5b8c micro SD \u5361\u540e\uff0c\u4f60\u5c31\u5dee\u4e0d\u591a\u53ef\u4ee5\u4f7f\u7528\u5b83\u4e86\u3002\u5728\u4f7f\u7528\u5b83\u4e4b\u524d\uff0c\u6709\u4e00\u4ef6\u4e8b\u60c5\u4f60\u53ef\u80fd\u60f3\u505a\uff0c\u90a3\u5c31\u662f\u6dfb\u52a0 Wi-Fi \u652f\u6301\u3002<\/p>\n

                          SD \u5361\u4ecd\u7136\u63d2\u5165\u8bfb\u5361\u5668\u4e2d\uff0c\u6253\u5f00\u6587\u4ef6\u7ba1\u7406\u5668\uff0c\u627e\u5230\u5361\u4e0a\u7684 \u201csystem-boot\u201d \u5206\u533a\u3002<\/p>\n

                          \u4f60\u8981\u627e\u7684\u548c\u9700\u8981\u7f16\u8f91\u7684\u6587\u4ef6\u540d\u4e3a network-config\u3002<\/p>\n

                          \"\"<\/p>\n

                          \u8fd9\u4e2a\u8fc7\u7a0b\u4e5f\u53ef\u4ee5\u5728 Windows \u548c MacOS \u4e0a\u5b8c\u6210\u3002\u5982\u524d\u6240\u8ff0\uff0c\u7f16\u8f91 network-config \u6587\u4ef6\uff0c\u6dfb\u52a0\u4f60\u7684 Wi-Fi \u51ed\u8bc1\u3002<\/p>\n

                          \u9996\u5148\uff0c\u53d6\u6d88\u77e9\u5f62\u6846\u5185\u7684\u884c\u7684\u6ce8\u91ca\uff08\u5220\u9664\u5f00\u5934\u7684\u6807\u7b7e #\uff09\u3002<\/p>\n

                          \u4e4b\u540e\uff0c\u5c06 myhomewifi \u66ff\u6362\u4e3a\u4f60\u7684 Wi-Fi \u7f51\u7edc\u540d\uff0c\u6bd4\u5982 \"itsfoss\"\uff0c\u5c06 \"S3kr1t\" \u66ff\u6362\u4e3a Wi-Fi \u5bc6\u7801\uff0c\u7528\u5f15\u53f7\u62ec\u8d77\u6765\uff0c\u6bd4\u5982 \"12345679\"\u3002<\/p>\n

                          \"\"<\/p>\n

                          \u5b83\u53ef\u80fd\u770b\u4e0a\u53bb\u50cf\u8fd9\u6837\uff1a<\/p>\n

                          wifis:\r\n  wlan0:\r\n    dhcp4: true\r\n    optional: true\r\n    access-points:\r\n      \"your wifi name\":\r\n      password: \"your_wifi_password\"\r\n<\/pre>\n

                          \u4fdd\u5b58\u6587\u4ef6\u5e76\u5c06 micro SD \u5361\u63d2\u5165\u5230\u4f60\u7684\u6811\u8393\u6d3e\u4e2d\u3002\u5728\u7b2c\u4e00\u6b21\u542f\u52a8\u65f6\uff0c\u5982\u679c\u4f60\u7684\u6811\u8393\u6d3e\u65e0\u6cd5\u8fde\u63a5\u5230 Wi-Fi \u7f51\u7edc\uff0c\u53ea\u9700\u91cd\u542f\u4f60\u7684\u8bbe\u5907\u3002<\/p>\n

                          \u6b65\u9aa4 3\uff1a\u5728\u6811\u8393\u6d3e\u4e0a\u4f7f\u7528 Ubuntu \u670d\u52a1\u5668<\/strong><\/span><\/div>\n

                          \u5982\u679c\u4f60\u6709\u4e00\u5957\u989d\u5916\u7684\u9f20\u6807\uff0c\u952e\u76d8\u548c\u663e\u793a\u5668\uff0c\u4f60\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u50cf\u5176\u4ed6\u7535\u8111\u4e00\u6837\u4f7f\u7528\u6811\u8393\u6d3e\uff08\u4f46\u6ca1\u6709 GUI\uff09\u3002<\/p>\n

                          \u53ea\u9700\u5c06 micro SD \u5361\u63d2\u5165\u6811\u8393\u6d3e\uff0c\u8fde\u63a5\u663e\u793a\u5668\u3001\u952e\u76d8\u548c\u9f20\u6807\u3002\u73b0\u5728\u6253\u5f00\u4f60\u7684\u6811\u8393\u6d3e\u3002\u5b83\u5c06\u51fa\u73b0 TTY \u767b\u5f55\u5c4f\u5e55\uff08\u9ed1\u8272\u7ec8\u7aef\u5c4f\u5e55\uff09\u5e76\u8be2\u95ee\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/p>\n

                            \u9ed8\u8ba4\u7528\u6237\u540d\uff1aubuntu<\/ol>\n
                              \u9ed8\u8ba4\u5bc6\u7801\uff1aubuntu<\/ol>\n

                              \u770b\u5230\u63d0\u793a\u7b26\u65f6\uff0c\u7528 ubuntu \u4f5c\u4e3a\u5bc6\u7801\u3002\u767b\u5f55\u6210\u529f\u540e\uff0cUbuntu \u4f1a\u8981\u6c42\u4f60\u66f4\u6539\u9ed8\u8ba4\u5bc6\u7801\u3002<\/p>\n

                              \u4eab\u53d7\u4f60\u7684 Ubuntu \u670d\u52a1\u5668\u5427\uff01<\/p>\n

                              \u6b65\u9aa4 4\uff1a\u901a\u8fc7 SSH \u8fdc\u7a0b\u8fde\u63a5\u5230\u4f60\u7684\u6811\u8393\u6d3e<\/strong><\/span><\/div>\n

                              \u5982\u679c\u4f60\u6ca1\u6709\u4e13\u95e8\u4e0e\u6811\u8393\u6d3e\u4e00\u8d77\u4f7f\u7528\u7684\u663e\u793a\u5668\u4e5f\u6ca1\u5173\u7cfb\u3002\u5f53\u4f60\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 SSH \u8fdb\u5165\u5b83\u5e76\u6309\u7167\u4f60\u7684\u65b9\u5f0f\u4f7f\u7528\u5b83\u65f6\uff0c\u8c01\u8fd8\u9700\u8981\u4e00\u4e2a\u5e26\u6709\u663e\u793a\u5668\u7684\u670d\u52a1\u5668\u5462\uff1f<\/p>\n

                              \u5728 Ubuntu \u548c Mac OS\u4e0a\uff0c\u901a\u5e38\u5df2\u7ecf\u5b89\u88c5\u4e86\u4e00\u4e2a SSH \u5ba2\u6237\u7aef\u3002\u8981\u8fdc\u7a0b\u8fde\u63a5\u5230\u4f60\u7684\u6811\u8393\u6d3e\uff0c\u4f60\u9700\u8981\u627e\u5230\u5b83\u7684 IP \u5730\u5740\u3002\u68c0\u67e5\u8fde\u63a5\u5230\u4f60\u7684\u7f51\u7edc\u7684\u8bbe\u5907\uff0c\u770b\u770b\u54ea\u4e2a\u662f\u6811\u8393\u6d3e\u3002<\/p>\n

                              \u7531\u4e8e\u6211\u6ca1\u6709 Windows \u673a\u5668\uff0c\u4f60\u53ef\u4ee5\u8bbf\u95ee\u5fae\u8f6f\u63d0\u4f9b\u7684\u7efc\u5408\u6307\u5357\u3002<\/p>\n

                              \u6253\u5f00\u7ec8\u7aef\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

                              ssh ubuntu@raspberry_pi_ip_address\r\n<\/pre>\n

                              \u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u4ee5\u4e0b\u4fe1\u606f\u786e\u8ba4\u8fde\u63a5\uff1a<\/p>\n

                              Are you sure you want to continue connecting (yes\/no\/[fingerprint])?\r\n<\/pre>\n

                              \u8f93\u5165 yes\uff0c\u7136\u540e\u70b9\u51fb\u56de\u8f66\u952e\u3002<\/p>\n

                              \"\"<\/p>\n

                              \u5f53\u63d0\u793a\u65f6\uff0c\u7528\u524d\u9762\u63d0\u5230\u7684 ubuntu \u4f5c\u4e3a\u5bc6\u7801\u3002\u5f53\u7136\uff0c\u4f60\u4f1a\u88ab\u8981\u6c42\u66f4\u6539\u5bc6\u7801\u3002<\/p>\n

                              \u5b8c\u6210\u540e\uff0c\u4f60\u5c06\u81ea\u52a8\u6ce8\u9500\uff0c\u4f60\u5fc5\u987b\u4f7f\u7528\u65b0\u5bc6\u7801\u91cd\u65b0\u8fde\u63a5\u3002<\/p>\n

                              \u4f60\u7684 Ubuntu \u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u5728\u6811\u8393\u6d3e\u4e0a\u8fd0\u884c\u4e86\uff01<\/p>\n

                              \u603b\u7ed3<\/strong><\/div>\n

                              \u5728\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5 Ubuntu \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u800c\u4e14\u5b83\u7684\u9884\u914d\u7f6e\u7a0b\u5ea6\u5f88\u9ad8\uff0c\u4f7f\u7528\u8d77\u6765\u5f88\u6109\u5feb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

                              \u6811\u8393\u6d3e\u662f\u6700\u8457\u540d\u7684\u5355\u677f\u8ba1\u7b97\u673a\u3002\u6700\u521d\uff0c\u6811\u8393\u6d3e\u9879\u76ee\u7684\u8303\u56f4\u65e8\u5728\u4fc3\u8fdb\u5b66\u6821\u548c\u53d1\u5c55\u4e2d\u56fd\u5bb6\u7684\u8ba1\u7b97\u673a\u57fa\u7840\u79d1\u5b66\u7684\u6559\u5b66\u3002 \u5b83\u7684\u4f4e\u6210\u672c […]<\/p>\n","protected":false},"author":1329,"featured_media":204869,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-204855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/204855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=204855"}],"version-history":[{"count":5,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/204855\/revisions"}],"predecessor-version":[{"id":204930,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/204855\/revisions\/204930"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/204869"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=204855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=204855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=204855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}