{"id":5542,"date":"2019-08-24T17:07:26","date_gmt":"2019-08-24T08:07:26","guid":{"rendered":"http:\/\/fisherman.jp\/23\/?p=5542"},"modified":"2019-09-19T13:32:10","modified_gmt":"2019-09-19T04:32:10","slug":"%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%aa%e3%81%97%e3%80%81%e3%82%ad%e3%83%bc%e3%83%9c%e3%83%bc%e3%83%89%e3%81%aa%e3%81%97%e3%80%81%e3%83%9e%e3%82%a6%e3%82%b9%e3%81%aa%e3%81%97-4","status":"publish","type":"post","link":"http:\/\/fisherman.jp\/23\/5542","title":{"rendered":"\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306a\u3057\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306a\u3057\u3001\u30de\u30a6\u30b9\u306a\u3057\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\uff08Buster\uff09Lite\u7248 Raspberry Pi Zero WH #2\/2"},"content":{"rendered":"<p>\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306a\u3057\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306a\u3057\u3001\u30de\u30a6\u30b9\u306a\u3057\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\uff08Buster\uff09Lite\u7248 Raspberry Pi Zero WH #2\/2<br \/>\n\u2605 <a href=\"https:\/\/github.com\/billw2\/rpi-clone\">rpi-clone<\/a> \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb #SD card copier \u306eCUI\u7248 SD\u30b3\u30d4\u30fc\u30c4\u30fc\u30eb<br \/>\n$ sudo apt-get install git #git\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n$ git clone https:\/\/github.com\/billw2\/rpi-clone.git #rpi-clone\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n$ cd rpi-clone<br \/>\n$ sudo cp rpi-clone rpi-clone-setup \/usr\/local\/sbin<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-20-28-52\" rel=\"attachment wp-att-5582\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5582\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-20-28-52-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-20-32-15\" rel=\"attachment wp-att-5584\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5584\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-20-32-15-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u2605 \u66f4\u65b0<br \/>\n$ sudo apt-get update #\u00a0<a href=\"http:\/\/my-web-site.iobb.net\/~yuki\/2017-07\/raspberry-pi\/update\/\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u8aac\u660e<\/a><br \/>\n$ sudo apt-get upgrade<br \/>\n$ sudo apt-get dist-upgrade<br \/>\n$ sudo apt-get autoremove # \u4e0d\u8981\u30d1\u30c3\u30b1\u30fc\u30b8\u524a\u9664<br \/>\n$ sudo apt-get autoclean # \u4e0d\u8981\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u30d5\u30a1\u30a4\u30eb\u524a\u9664<br \/>\n\u2605 Wi-Fi \u30d1\u30b9\u30ef\u30fc\u30c9\u6697\u53f7\u5316<br \/>\n$ wpa_passphrase your-ssid your-password #\u751f\u6210\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092 wpa_supplicant.conf \u306b\u8a18\u5165\u3059\u308b\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u201d\u201d\u3067\u304f\u304f\u3089\u306a\u3044\uff09<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-17-27-37\" rel=\"attachment wp-att-5572\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5572\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-17-27-37-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-17-28-44\" rel=\"attachment wp-att-5573\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5573\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-17-28-44-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u2605 LED\u8a2d\u5b9a \u2013 Pi Camera \u30ab\u30e1\u30e9\u306eLED(\u64ae\u5f71\u6642\u306b\u8d64\u306b\u70b9\u706f)\u3092OFF\u306b\u3059\u308b<br \/>\n\/boot\/config.txt #\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3001\u8981\u518d\u8d77\u52d5<br \/>\n# Disable Pi Camera LED<br \/>\ndisable_camera_led=1<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-20-25-04\" rel=\"attachment wp-att-5580\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5580\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-20-25-04-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u2605 LED\u8a2d\u5b9a \u2013 \u672c\u4f53\u57fa\u677f\u4e0a\u306eLED(ACT \u7dd1)\u3092OFF\u306b\u3059\u308b #OFF\u8a2d\u5b9a\u3057\u3066\u3082\u8d77\u52d5\u6642\u306b\u306f\u70b9\u6ec5\u3059\u308b<br \/>\n\/boot\/config.txt #\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3001\u8981\u518d\u8d77\u52d5<br \/>\n# Disable the ACT LED Green on the Pi Zero<br \/>\ndtparam=act_led_trigger=none<br \/>\ndtparam=act_led_activelow=on<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-20-26-07\" rel=\"attachment wp-att-5581\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5581\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-20-26-07-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u2605 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4f5c\u6210\uff08\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3755\uff09\u3001\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc<br \/>\n\/home\/pi\/code<br \/>\n\/home\/pi\/www\/html\/cam<br \/>\n\/home\/pi\/www\/html\/index.html<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-24-16-12-49\" rel=\"attachment wp-att-5544\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5544\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-24-16-12-49-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-17-33-03\" rel=\"attachment wp-att-5574\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5574\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-17-33-03-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-17-34-00\" rel=\"attachment wp-att-5575\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5575\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-17-34-00-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-25-17-34-33\" rel=\"attachment wp-att-5576\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5576\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-25-17-34-33-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u2605 RAM\u30c7\u30a3\u30b9\u30af\u4f5c\u6210 #\u751f\u6210\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u518d\u8d77\u52d5\u3057\u3066\u3082\u6b8b\u5b58\u3059\u308b<br \/>\n\/etc\/fstab \u306b\u4ee5\u4e0b\u306e2\u884c\u3092\u8ffd\u8a18<br \/>\n#RAM Disk<br \/>\ntmpfs \/home\/pi\/www\/html\/RAM tmpfs defaults,size=4M 0 0<br \/>\n$ sudo reboot #\u518d\u8d77\u52d5<br \/>\n$ df -h #4M\u30d0\u30a4\u30c8\u5bb9\u91cf\u306eRAM\u30c7\u30a3\u30b9\u30af\u304c\u4f5c\u6210\u3055\u308c\u305f<br \/>\n$ free -m #\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf -m: Mega\u30d0\u30a4\u30c8\u8868\u793a<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-24-16-58-40\" rel=\"attachment wp-att-5546\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5546\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-24-16-58-40-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-24-16-58-54\" rel=\"attachment wp-att-5547\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5547\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-24-16-58-54-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-24-17-03-22\" rel=\"attachment wp-att-5548\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5548\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-24-17-03-22-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u2605 lighttpd1.4.45\uff08Web\u30b5\u30fc\u30d0\u30fc\uff09\u8a2d\u5b9a\u5909\u66f4<br \/>\n\/etc\/lighttpd\/lighttpd.conf \u306e\u5185\u5bb9<br \/>\nserver.document-root = \u201c\/var\/www\/html\u201d \u3092<br \/>\nserver.document-root = \u201c\/home\/pi\/www\/html\u201d \u3078\u5909\u66f4\u3059\u308b\uff08\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u6253\u3061\u8fbc\u3080\u306e\u304c\u5b89\u5168\uff09<br \/>\n$ sudo reboot #\u518d\u8d77\u52d5<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-24-17-05-29\" rel=\"attachment wp-att-5549\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5549\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-24-17-05-29-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u2605 \u5404\u7a2e\u8a2d\u5b9a Crontab<br \/>\n\u2605 <a href=\"https:\/\/github.com\/billw2\/rpi-clone\">rpi-clone<\/a> \u3067SD\u3092\u8907\u88fd\u3059\u308b #SD card copier \u306eCUI\u7248 SD\u30b3\u30d4\u30fc\u30c4\u30fc\u30eb<br \/>\n$ sudo fdisk -l #\u30b3\u30d4\u30fc\u5148\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u3092\u8abf\u3079\u308b<br \/>\n$ sudo rpi-clone sda -f #\u5b9f\u884c SD card\uff08\u30b3\u30d4\u30fc\u5143\uff09 to USB disk\uff08\u30b3\u30d4\u30fc\u5148\u3001USB disk\u306bSD\u3092\u633f\u5165\uff09<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-26-13-11-50\" rel=\"attachment wp-att-5601\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5601\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-26-13-11-50-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-26-13-12-13\" rel=\"attachment wp-att-5602\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5602\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-26-13-12-13-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-26-13-12-55\" rel=\"attachment wp-att-5603\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5603\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-26-13-12-55-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-08-26-13-13-12\" rel=\"attachment wp-att-5604\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5604\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-08-26-13-13-12-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><\/p>\n<p>\u2605 \u4fdd\u7559\uff08\u691c\u8a3c\u4e2d\uff09 WatchDogTimer\uff08WDT\uff09\u8a2d\u5b9a<br \/>\n\/etc\/systemd\/system.conf \u306e\u5185\u5bb9<br \/>\n#RuntimeWatchdocSec=0 \u3092<br \/>\nRuntimeWatchdocSec=10 \u3078\u5909\u66f4\u3059\u308b\uff08#\u3092\u9664\u53bb\uff09<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/5542\/screenshot-from-2019-09-19-13-16-38\" rel=\"attachment wp-att-5708\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-5708\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2019\/08\/Screenshot-from-2019-09-19-13-16-38-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n$ sudo reboot #\u518d\u8d77\u52d5<br \/>\n$ :(){ :|:&amp; };: #<a href=\"https:\/\/ja.wikipedia.org\/wiki\/Fork%E7%88%86%E5%BC%BE\">\u30d5\u30a9\u30fc\u30af\u30dc\u30e0<\/a>\u3067\u52d5\u4f5c\u691c\u8a3c\uff08\u6570\u5206\u5f8c\u306bWDT\u304c\u539f\u56e0\u3067\u30ea\u30bb\u30c3\u30c8\u5f8c\u518d\u8d77\u52d5\u3059\u308b\uff09<\/p>\n<p>\u2605 #<a href=\"http:\/\/fisherman.jp\/23\/5467\">1\/2<\/a> \u3078<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306a\u3057\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306a\u3057\u3001\u30de\u30a6\u30b9\u306a\u3057\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\uff08Buster\uff09Lite\u7248 Raspberry Pi Zero WH #2\/2 \u2605 rpi-clone \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb #SD card copier \u306eCU [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-5542","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/5542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/comments?post=5542"}],"version-history":[{"count":20,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/5542\/revisions"}],"predecessor-version":[{"id":5711,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/5542\/revisions\/5711"}],"wp:attachment":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/media?parent=5542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/categories?post=5542"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/tags?post=5542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}