{"id":843,"date":"2020-09-08T23:19:31","date_gmt":"2020-09-08T15:19:31","guid":{"rendered":"https:\/\/www.iotch.xyz\/?p=843"},"modified":"2020-09-08T23:19:31","modified_gmt":"2020-09-08T15:19:31","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e7%b3%bb%e7%bb%9f%e5%ae%89%e8%a3%85%e5%92%8c%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.iotch.xyz\/?p=843","title":{"rendered":"\u6811\u8393\u6d3e\u7cfb\u7edf\u5b89\u88c5\u548c\u73af\u5883\u914d\u7f6e"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"1\u786c\u4ef6\u51c6\u5907\">1.\u786c\u4ef6\u51c6\u5907<\/h1>\n\n\n\n<p>1.\u6811\u8393\u6d3e3B+\uff08E14\uff09<br>2.\u4e00\u5f2064G\u7684\u95ea\u8fea\u5b58\u50a8\u5361<br>3.\u4e00\u4e2a\u8bfb\u5361\u5668<br>4.\u666e\u901a\u7535\u8111\u663e\u793a\u5668\uff0c\u952e\u76d8\uff0c\u9f20\u6807<br>5.\u4e00\u53f0\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u7684Window\u7cfb\u7edf\u7684\u7535\u8111<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdn.net\/20180613225747233\" alt=\"\"\/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"2\u5b89\u88c5\u7cfb\u7edf\">2.\u5b89\u88c5\u7cfb\u7edf<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1\u6811\u8393\u6d3e\u7cfb\u7edf\u4e0b\u8f7d\">(1)\u6811\u8393\u6d3e\u7cfb\u7edf\u4e0b\u8f7d\uff1a<\/h2>\n\n\n\n<p>\u7cfb\u7edf\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspbian\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/www.raspberrypi.org\/downloads\/raspbian\/<\/a><br>\u9009\u62e9with desktop\u7248\u672c\uff0c\u4e0b\u8f7dTorrent\u6587\u4ef6\u4f7f\u7528\u8fc5\u96f7\u6216\u662f\u5176\u4ed6\u79cd\u5b50\u4e0b\u8f7d\u5de5\u5177\u4e0b\u8f7d\u3002<br><img decoding=\"async\" alt=\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/img-blog.csdn.net\/20180613225849546\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2\u683c\u5f0f\u5316tf\u5361\">(2)\u683c\u5f0f\u5316tf\u5361<\/h2>\n\n\n\n<p>\u683c\u5f0f\u5316\u5de5\u5177\uff1aSD card formatter&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdn.net\/20180613225914805\" alt=\"\"\/><\/figure>\n\n\n\n<p><br>(3)\u5c06\u4e0b\u8f7d\u597d\u7684\u7cfb\u7edf\u955c\u50cf\u5199\u5165tf\u5361<\/p>\n\n\n\n<p>\u5199\u5165\u5de5\u5177\uff1awin32diskimager&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdn.net\/20180613225938702\" alt=\"\"\/><\/figure>\n\n\n\n<p><br><strong>(4)\u7cfb\u7edf\u7684\u521d\u59cb\u5316<\/strong><\/p>\n\n\n\n<p>\u4ece\u7b80\u5355\u5230\u590d\u6742\u8bf4\uff1a<\/p>\n\n\n\n<p>(4.1)\u5f00\u542fssh\u8fde\u63a5<\/p>\n\n\n\n<p>\u9996\u5148\u5728tf\u5361\u4e2d\u4fdd\u5b58\u4e00\u4e2assh\u7684\u7a7a\u6587\u4ef6\uff0c\u4e3a\u4e86\u6253\u5f00ssh\u529f\u80fd\u3002<\/p>\n\n\n\n<p>(4.2)\u8bbe\u7f6e\u65e0\u7ebf\u7f51\u8fde\u63a5<\/p>\n\n\n\n<p>\u7136\u540e\u8bbe\u7f6e\u4e0a\u7f51\uff0c\u5728tf\u5361\u4e5f\u5c31\u662f\u5f53\u524d\u7684boot\u76d8\u65b0\u5efa\u4e00\u4e2awpa_supplicant.conf\u7684\u6587\u4ef6\uff0c\u5199\u5165\u4e0a\u7f51\u914d\u7f6e\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p>country=CN<br>ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev<br>update_config=1<\/p>\n\n\n\n<p>network={<br>&nbsp; &nbsp; ssid=\"iPhone\"<br>&nbsp; &nbsp; psk=\"104104104\"<br>&nbsp; &nbsp; key_mgmt=WPA-PSK<br>&nbsp; &nbsp; priority=1<br>}<\/p>\n\n\n\n<p>\u4e2d\u95f4\u7684network\u662f\u4f60\u8fde\u63a5\u7684wifi\u914d\u7f6e\uff0c\u6211\u662f\u7528\u624b\u673a\u5f00\u7684\u70ed\u70b9\uff0c\u56e0\u6b64\u52a0\u4e86key_mgmt=WPA-PSK.&nbsp;<br>\u8fd9\u91cc\u6ce8\u610f\u4e00\u5b9a\u8981\u5728boot\u76ee\u5f55\u4e0b\u521b\u5efa\u8fd9\u4e2aconf,\u5426\u5219\u7cfb\u7edf\u88c5\u597d\u540e\u5c06\u65e0\u6cd5\u542f\u52a8wifi\u8fde\u63a5\u3002<\/p>\n\n\n\n<p><br>&nbsp; \u4e3a\u4ec0\u4e48\u8bf4\u521b\u5efa\u662f\u56e0\u4e3a\uff1a\u6211\u91cd\u88c5\u7cfb\u7edf\u6b21\u6570\u591a\u4e86\u51b3\u5b9a\u65b0\u5efa\u4e00\u4e2aconf\u6587\u4ef6\u526f\u672c\uff0c\u7136\u540e\u6bcf\u6b21\u91cd\u88c5\u65f6\u90fd\u590d\u5236\u7c98\u8d34\uff0c\u7ed3\u679c\u6bcf\u6b21\u90fd\u65e0\u6cd5\u8fde\u63a5\u4e0awifi,\u65e0\u8bba\u600e\u4e48\u8bbe\u7f6e\u90fd\u662f\u65e0\u6cd5\u542f\u52a8\u8fd9\u4e2aconf.\u540e\u6765\u65b0\u5efa\u8fd9\u4e2aconf\u6587\u4ef6\u53ef\u4ee5\u641c\u7d22\u5230wifi\u76ee\u5f55<\/p>\n\n\n\n<p><br>(4.3)\u663e\u793a\u8bbe\u7f6e<\/p>\n\n\n\n<p>\u5728boot\u76ee\u5f55\u4e0b\uff0c\u627e\u5230config.txt\u6587\u4ef6\uff0c\u91cc\u9762\u8bb8\u591a\u9009\u9879\u88ab\u6ce8\u91ca\u6389\u4e86\uff0c\u6211\u4eec\u9700\u8981\u5728\u9009\u62e9\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p># For more options and information see<br># http:\/\/rpf.io\/configtxt<br># Some settings may impact device functionality. See link above for details<\/p>\n\n\n\n<p># uncomment if you get no picture on HDMI for a default \"safe\" mode<br>#hdmi_safe=1<\/p>\n\n\n\n<p># uncomment this if your display has a black border of unused pixels visible<br># and your display can output without overscan<br>disable_overscan=1#\u53ef\u4ee5\u53bb\u6389\u5f00\u673a\u5c4f\u5e55\u5468\u56f4\u7684\u9ed1\u8272\u8fb9\u6846<\/p>\n\n\n\n<p># uncomment the following to adjust overscan. Use positive numbers if console<br># goes off screen, and negative if there is too much border<br>#overscan_left=16<br>#overscan_right=16<br>#overscan_top=16<br>#overscan_bottom=16<\/p>\n\n\n\n<p># uncomment to force a console size. By default it will be display's size minus<br># overscan.<br>#framebuffer_width=1280<br>#framebuffer_height=720<\/p>\n\n\n\n<p># uncomment if hdmi display is not detected and composite is being output<br>hdmi_force_hotplug=1#<\/p>\n\n\n\n<p># uncomment to force a specific HDMI mode (this will force VGA)<br>hdmi_group=2#DMT\u6a21\u5f0f<br>hdmi_mode=58 #\u5206\u8fa8\u7387\u4e3a\u9002\u5e94\u5c4f\u5e55\u5206\u8fa8\u7387\u7684\u9009\u62e9<\/p>\n\n\n\n<p># uncomment to force a HDMI mode rather than DVI. This can make audio work in<br># DMT (computer monitor) modes<br>hdmi_drive=2<\/p>\n\n\n\n<p># uncomment to increase signal to HDMI, if you have interference, blanking, or<br># no display<br>config_hdmi_boost=4<\/p>\n\n\n\n<p># uncomment for composite PAL<br>#sdtv_mode=2<\/p>\n\n\n\n<p>#uncomment to overclock the arm. 700 MHz is the default.<br>#arm_freq=800<\/p>\n\n\n\n<p># Uncomment some or all of these to enable the optional hardware interfaces<br>#dtparam=i2c_arm=on<br>#dtparam=i2s=on<br>#dtparam=spi=on<\/p>\n\n\n\n<p># Uncomment this to enable the lirc-rpi module<br>#dtoverlay=lirc-rpi<\/p>\n\n\n\n<p># Additional overlays and parameters are documented \/boot\/overlays\/README<\/p>\n\n\n\n<p># Enable audio (loads snd_bcm2835)<br>dtparam=audio=on<\/p>\n\n\n\n<p><br>&nbsp; \u8fd9\u91cc\u4e00\u5f00\u59cb\u9009\u62e9\u4e86hdmi_safe=1,\u7ed3\u679c\u76f8\u5f53\u4e8ewindows\u7535\u8111\u5f00\u542f\u4e86\u5b89\u5168\u6a21\u5f0f\uff0c\u5206\u8fa8\u7387\u975e\u5e38\u5c0f\uff0c\u6240\u6709\u7684\u6539\u52a8\u90fd\u65e0\u6cd5\u751f\u6548\uff0c\u56e0\u6b64\u52a1\u5fc5\u5c06\u8fd9\u884c\u6ce8\u91ca\u6389\uff0c\u624d\u53ef\u4ee5\u4f7f\u5176\u4ed6\u7684\u663e\u793a\u8bbe\u7f6e\u751f\u6548\u3002\uff08\u53c8\u662f\u65e0\u6570\u6b21\u91cd\u88c5\u7cfb\u7edf\u540e\u8ba4\u8bc6\u5230\u7684\u5751\u3002\u3002\u3002\uff09<\/p>\n\n\n\n<p><br>(5)\u63d2\u4e0a\u663e\u793a\u5668\u3001\u952e\u76d8\u3001\u9f20\u6807\uff0c\u4e0a\u7535<\/p>\n\n\n\n<p>\u56e0\u4e3a\u672c\u4eba\u6709hdmi\u8f6cvga\u7684\u8f6c\u6362\u5934\u548c\u4e00\u53f0\u73b0\u6210\u7684\u663e\u793a\u5668\uff0c\u56e0\u6b64\u76f4\u63a5\u63d2\u4e0a\u663e\u793a\u5668\u7684hdmi\u53e3\uff0c\u4e0a\u7535\u7b49\u5f855s\u5de6\u53f3\u4fbf\u53ef\u4ee5\u770b\u89c1\u684c\u9762\u3002<\/p>\n\n\n\n<p>3.\u914d\u7f6e\u73af\u5883<\/p>\n\n\n\n<p>(1)\u8bbe\u7f6e\u8fdc\u7a0b\u8fde\u63a5<\/p>\n\n\n\n<p>\u8fde\u63a5\u4e0a\u6811\u8393\u6d3e\u7684wifi\u540e\uff0c\u6253\u5f00\u6811\u8393\u6d3e\u7684\u7ec8\u7aef\u8f93\u5165\uff1a<\/p>\n\n\n\n<p>ifconfig1<\/p>\n\n\n\n<p>\u67e5\u627ewlan0\u4e0b\u9762\u7684\u5730\u5740\uff0c\u5373wifi\u7684\u5730\u5740\u3002&nbsp;<br>\u6253\u5f00\u81ea\u5df1\u7535\u8111\u4e0a\u7684Putty,\u8f93\u5165\u6b63\u786e\u7684\u5730\u5740\u70b9\u51fbopen,\u8f93\u5165\u5bc6\u7801\u548c\u8d26\u53f7\u540e\u8fdc\u7a0b\u8fde\u63a5\u6811\u8393\u6d3e\u3002&nbsp;<br>&nbsp;<br>\u6ca1\u6709\u7a97\u53e3\u7684\u8fdc\u7a0b\u8fde\u63a5\u5230\u6b64\u5c31\u7b97\u6210\u529f\u4e86\u3002&nbsp;<br>\u5982\u679c\u8fd8\u60f3\u8fdc\u7a0b\u8fde\u63a5\u684c\u9762\u7684\u8bdd\uff0c\u8981\u7528\u5230\u7684\u5de5\u5177\u7684\u662fVNC\u3002&nbsp;<br>\u9996\u5148\u5728\u81ea\u5df1\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5VNC\uff0c<\/p>\n\n\n\n<p>&nbsp; sudo apt-get install tightvncserver1<\/p>\n\n\n\n<p>\u5b89\u88c5\u6210\u529f\u540e\u6253\u5f00\u6811\u8393\u6d3e\u4e0avncserver\uff1a<\/p>\n\n\n\n<p>sudo tightvncserver1<\/p>\n\n\n\n<p>\u6210\u529f\u6253\u5f00\u540e\u663e\u793a\uff1a<\/p>\n\n\n\n<p>New 'X' desktop is raspberrypi:1<\/p>\n\n\n\n<p>Starting applications specified in \/root\/.vnc\/xstartup<br>Log file is \/root\/.vnc\/raspberrypi:1.log<\/p>\n\n\n\n<p>\u4e4b\u540e\u518d\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u5b89\u88c5\u4e00\u4e2aVNC Veiwer\uff0c\u5728Sever\u4e2d\u8f93\u5165IP\uff1a1\u4e4b\u540e\u8f93\u5165\u5bc6\u7801\u5c31\u53ef\u4ee5\u6253\u5f00\u6811\u8393\u6d3e\u7684\u754c\u9762\u4e86.<\/p>\n\n\n\n<p>VNC Viewer \u4e0b\u8f7d\u5730\u5740<\/p>\n\n\n\n<p>(2)\u66f4\u6362\u8f6f\u4ef6\u6e90<\/p>\n\n\n\n<p>\u56e0\u4e3a\u6211\u4e0b\u8f7d\u7684\u7cfb\u7edf\u662fstretch\u7248\u672c\u7684\uff0c\u56e0\u6b64\u4ee5\u4e0b\u66f4\u6539\u90fd\u662f\u9488\u5bf9\u8be5\u7248\u672c\u66f4\u6362\u8f6f\u4ef6\u6e90\uff1a&nbsp;<br>* \u4fee\u6539\/etc\/apt\/sources.list.d\/raspi.list<\/p>\n\n\n\n<p>\u4e2d\u79d1\u5927&nbsp;<br>deb https:\/\/mirrors.ustc.edu.cn\/archive.raspberrypi.org\/ stretch main ui&nbsp;<br>\u6e05\u534e&nbsp;<br>deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/raspberrypi\/ stretch main ui&nbsp;<br>&nbsp;<\/p>\n\n\n\n<p><br>\u4fee\u6539\/etc\/apt\/sources.list<\/p>\n\n\n\n<p>\u4e2d\u79d1\u5927&nbsp;<br>deb http:\/\/mirrors.ustc.edu.cn\/raspbian\/raspbian\/ stretch main contrib non-free rpi &nbsp;<br>\u6e05\u534e&nbsp;<br>deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/raspbian\/raspbian\/ stretch main contrib non-free rpi&nbsp;<br>\u5927\u8fde\u4e1c\u8f6f&nbsp;<br>deb http:\/\/mirrors.neusoft.edu.cn\/raspbian\/raspbian\/ stretch main contrib non-free rpi&nbsp;<br>\u91cd\u5e86\u5927\u5b66&nbsp;<br>deb http:\/\/mirrors.cqu.edu.cn\/raspbian\/raspbian\/ stretch main contrib non-free rpi&nbsp;<br>\u6d59\u6c5f\u5927\u5b66&nbsp;<br>deb http:\/\/mirrors.zju.edu.cn\/raspbian\/raspbian\/ stretch main contrib non-free rpi&nbsp;<br>\u963f\u91cc\u4e91&nbsp;<br>deb http:\/\/mirrors.aliyun.com\/raspbian\/raspbian\/ stretch main contrib non-free rpi &nbsp;<br>\u641c\u72d0 \u3002<br>deb http:\/\/mirrors.sohu.com\/raspbian\/raspbian\/ stretch main contrib non-free rpi&nbsp;<br>&nbsp;<\/p>\n\n\n\n<p>(3)\u8f93\u5165\u6cd5\u53ca\u6539\u53d8\u952e\u76d8\u5e03\u5c40<\/p>\n\n\n\n<p>fcitx\u8f93\u5165\u6cd5<\/p>\n\n\n\n<p>sudo apt install fcitx1<\/p>\n\n\n\n<p>\u5c06\u82f1\u56fd\u952e\u76d8\u66f4\u6539\u4e3a\u4e2d\u6587\u8f93\u5165\u952e\u76d8\u6216\u662fUS\u952e\u76d8\u8f93\u5165\u00a0<br>\u76f4\u63a5\u5728sudo raspi-config\u547d\u4ee4\u4e0b\u4fee\u6539\u952e\u76d8\u5e03\u5c40\u3002<br>---------------------\u00a0<br>\u4f5c\u8005\uff1a\u9ec4\u8fa3\u9e21\u00a0<br>\u6765\u6e90\uff1aCSDN\u00a0<br>\u539f\u6587\uff1a<a href=\"https:\/\/blog.csdn.net\/weixin_39449466\/article\/details\/\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/blog.csdn.net\/weixin_39449466\/article\/details\/<\/a><\/p>\n<button class=\"simplefavorite-button\" data-postid=\"843\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>1.\u786c\u4ef6\u51c6\u5907 1.\u6811\u8393\u6d3e3B+\uff08E14\uff092.\u4e00\u5f2064G\u7684\u95ea\u8fea\u5b58\u50a8\u53613.\u4e00\u4e2a\u8bfb\u5361\u56684.\u666e\u901a\u7535\u8111\u663e\u793a\u5668\uff0c\u952e\u76d8\uff0c\u9f20\u68075.\u4e00\u53f0\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-843","post","type-post","status-publish","format-standard","hentry","category-10"],"_links":{"self":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=843"}],"version-history":[{"count":0,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/843\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}