{"id":59,"date":"2021-03-06T11:14:14","date_gmt":"2021-03-06T02:14:14","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=59"},"modified":"2021-03-17T09:39:04","modified_gmt":"2021-03-17T00:39:04","slug":"%e3%81%9d%e3%82%8d%e3%81%9d%e3%82%8d-web-%e3%82%b5%e3%83%bc%e3%83%90%e3%82%92%e7%ab%8b%e3%81%a6%e3%82%88%e3%81%86%e3%80%82raspberry-pi-%e3%81%ae%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/03\/06\/59\/","title":{"rendered":"\u30b5\u30fc\u30d0\u7528Raspberry Pi \u306e\u8a2d\u5b9a1"},"content":{"rendered":"\n<p>\u305d\u308d\u305d\u308d web \u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3088\u3046\u3002(Raspberry Pi \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7 \u6e96\u5099)<\/p>\n\n\n\n<p>\u3000\u4ee5\u524d\u3001\u500b\u4eba\u7684\u306bweb\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3066\u3044\u307e\u3057\u305f\u304c\u30012 \u5e74\u307b\u3069\u524d\u306b\u30de\u30b7\u30f3\u304c\u58ca\u308c\u3066\u30c0\u30a6\u30f3\u3057\u305f\u307e\u307e\u3067\u3059\u3002Raspberry Pi 3B \u304c\u4f59\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6539\u3081\u3066\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u30b5\u30fc\u30d0\u30fc\u7528\u9014\u306a\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306f\u3001Raspberry Pi OS \u306e Lite \u3092\u5165\u308c\u307e\u3059\u300232 GB \u306e micro SD \u306b\u30a4\u30e1\u30fc\u30b8\u3092\u66f8\u304d\u8fbc\u307e\u3059\u3002<br>\u3000Linux \u4e0a\u3067\u3084\u308b\u306e\u3067\u3001\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001dd \u3067\u66f8\u304d\u8fbc\u3080\u3060\u3051\u3067\u3059\u3002(\u4e0b\u306f\u4e00\u884c\u3067\u5165\u529b\u3057\u307e\u3059\u3002)<\/p>\n\n\n\n<p class=\"console\">$ wget https:\/\/downloads.raspberrypi.org\/raspios_lite_armhf\/images\/raspios_lite_armhf-2021-01-12\/2021-01-11-raspios-buster-armhf-lite.zip<\/p>\n\n\n\n<p>\u3000\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001micro SD \u3092\u30ab\u30fc\u30c9\u30ea\u30fc\u30c0\u306b\u523a\u3057\u307e\u3059\u3002<br>dd \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e of=\/dev\/sd? \u306f micro SD \u306e\u30c7\u30d0\u30a4\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br>\u3000\u3082\u3057\u3001\u3059\u3067\u306b\u30d1\u30fc\u30c6\u30a4\u30b7\u30e7\u30f3\u306e\u3042\u308b\u3082\u306e\u3067\u3001\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u305f\u3089\u3001\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br>\u3000USB \u30e1\u30e2\u30ea\u3068\u304b\u3092\u523a\u3057\u3066\u3044\u308b\u3068\u30c7\u30d0\u30a4\u30b9\u304c\u5909\u308f\u308b\u306e\u3067\u3001\u4e0d\u5b89\u3067\u3042\u308c\u3070\u629c\u3044\u3066\u304a\u304f\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<br>\u3000\u79c1\u306f\u3001\u3059\u3067\u306b\u52d5\u3044\u3066\u3044\u308b Raspberry Pi 4 \u3067\u3084\u3063\u3066\u3044\u308b\u306e\u3067\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002(\u4e0b\u306f\u4e00\u884c\u3067\u5165\u529b\u3057\u307e\u3059\u3002)<\/p>\n\n\n\n<p class=\"console\">$ unzip -p 2021-01-11-raspios-buster-armhf-lite.zip 2021-01-11-raspios-buster-armhf-lite.img | dd of=\/dev\/sda bs=4M status=progress<\/p>\n\n\n\n<p>\u3000\u66f8\u304d\u8fbc\u307f\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u4e00\u65e6\u53d6\u308a\u51fa\u3057\u3066\u3001\u518d\u5ea6\u633f\u5165\u3057\u307e\u3059\u3002\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3055\u308c\u305f\u3089\u3001boot \u306b\u79fb\u52d5\u3057\u3066\u30012 \u3064\u307b\u3069\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002<br>\u3000\u3053\u308c\u306f\u3001ssh \u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u3068\u3001wifi \u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u3067\u3059\u3002wifi \u306f\u6700\u7d42\u7684\u306b\u306f\u5207\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u4e2d\u306f wifi \u306b\u3064\u306a\u3052\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3064\u3082\u308a\u3067\u3059\u3002<br>\u3000\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092 MicroSD \u306e boot \u306b\u3057\u305f\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ cd \/media\/pi\/boot<br>$ touch ssh<\/p>\n\n\n\n<p>\u3000\u3053\u308c\u3067\u6700\u521d\u306e\u8d77\u52d5\u6642\u304b\u3089 ssh \u3067\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3063\u3068\u3082\u3001\u8a00\u8a9e\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u307e\u3067\u306f\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u7e4b\u3052\u306a\u3044\u3068\u99c4\u76ee\u3067\u3059\u3002<br>wifi \u304c\u5fc5\u8981\u306a\u3051\u308c\u3070\u6b21\u306e\u624b\u9806\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u826f\u3044\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ vi wpa_supplicant.conf<\/p>\n\n\n\n<p>\u3000\u6b21\u306e\u5185\u5bb9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"file pre\">ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\nupdate_config=1\ncountry=JP\n\nnetwork={\n\tssid=&#8221;XXXXXXXX&#8221;\n\tpsk=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\n}<\/p>\n\n\n\n<p>\u3000ssid \u306b\u306f wifi \u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3092\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306f psk \u306b\u6697\u53f7\u5316\u3057\u305f\u3082\u306e\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br>\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6697\u53f7\u5316\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ wpa_passphrase &#8220;SSID&#8221; &#8220;\u30d1\u30b9\u30ef\u30fc\u30c9&#8221;<\/p>\n\n\n\n<p>\u3000\u3053\u308c\u3067\u6e96\u5099\u304c\u3067\u304d\u305f\u306e\u3067\u3001micro SD \u3092\u53d6\u308a\u5916\u3057\u3001\u65b0\u3057\u3044 Raspberry Pi \u306b\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\u306b\u3057\u307e\u3059\u3002\u6b21\u306f\u30b5\u30fc\u30d0\u7528\u306e Raspberry Pi \u306e\u8d77\u52d5\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u308d\u305d\u308d web \u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3088\u3046\u3002(Raspberry Pi \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7 \u6e96\u5099) \u3000\u4ee5\u524d\u3001\u500b\u4eba\u7684\u306bweb\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u3066\u3044\u307e\u3057\u305f\u304c\u30012 \u5e74\u307b\u3069\u524d\u306b\u30de\u30b7\u30f3\u304c\u58ca\u308c\u3066\u30c0\u30a6\u30f3\u3057\u305f\u307e\u307e\u3067\u3059\u3002Raspberry Pi 3B \u304c\u4f59 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-server-config"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":14,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":390,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/59\/revisions\/390"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}