Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":109,"date":"2020-05-23T08:00:00","date_gmt":"2020-05-22T23:00:00","guid":{"rendered":"https:\/\/cra-log.sakura.ne.jp\/?p=109"},"modified":"2022-02-24T12:39:32","modified_gmt":"2022-02-24T03:39:32","slug":"raspberrypi-setting","status":"publish","type":"post","link":"https:\/\/craft-gogo.com\/raspberrypi-setting\/","title":{"rendered":"\u3010Raspberry Pi\u3011OS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u6700\u4f4e\u9650\u884c\u30463\u3064\u306e\u521d\u671f\u8a2d\u5b9a"},"content":{"rendered":"\n

OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068SSH\u63a5\u7d9a\u306e\u8a18\u4e8b<\/a>\u3067\u3001Raspberry Pi\u306eOS\u300cRasbian\u300d\u3092\u30e2\u30cb\u30bf\u30ec\u30b9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u305d\u306e\u7d9a\u304d\u3068\u3057\u3066\u3001OS\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u3067Wi-Fi\u306e\u8a2d\u5b9a\u3001IP\u30a2\u30c9\u30ec\u30b9\u306e\u56fa\u5b9a\u306f\u7d42\u308f\u3063\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002\u884c\u3046\u3053\u3068\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4\u3001OS\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3001Swap\u306e\u505c\u6b62\u3067\u3059\u3002<\/p>\n\n\n\n

\u307e\u305a\u59cb\u3081\u306bRaspberry Pi\u306bSSH\u63a5\u7d9a<\/h2>\n\n\n
\n
\n
\"\"<\/figure>\n<\/div>\n
\n

Raspberry Pi\u306bSSH\u63a5\u7d9a\uff1f\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u6253\u3064\u3063\u3066\u4f55\u306e\u3053\u3068\uff1f<\/p>\n<\/div>\n<\/div>\n

Windows\u3084Mac\u3092\u666e\u6bb5\u4f7f\u3044\u3001Linux\u7cfb\u306eOS\u306b\u89e6\u308c\u305f\u3053\u3068\u304c\u306a\u3044\u65b9\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3053\u3068\u81ea\u4f53\u884c\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068SSH\u63a5\u7d9a\u306e\u8a18\u4e8b<\/a>\u3067TeraTerm\u3068\u3044\u3046\u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u3092\u4f7f\u3063\u3066\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u89e3\u8aac\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305a\u3001\u305d\u3061\u3089\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/div>\n\n\n

\u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u3001Raspberry Pi\u306bSSH\u63a5\u7d9a\u3067\u304d\u305f\u3089\u3001\u521d\u671f\u8a2d\u5b9a\u3092\u59cb\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4<\/h2>\n\n\n\n

\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3059\u308b\u4e0a\u3067\u5fc5\u8981\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n\n\n\n

\u672c\u6765\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u7e4b\u3050\u524d\u306b\u5909\u66f4\u3059\u308b\u306e\u304c\u671b\u307e\u3057\u3044\u3067\u3059\u3002\u4eca\u56de\u306f\u30e2\u30cb\u30bf\u30ec\u30b9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u524d\u63d0\u3067\u3059\u306e\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306fWi-Fi\u8a2d\u5b9a\u2192IP\u30a2\u30c9\u30ec\u30b9\u56fa\u5b9a\u5f8c\u306b\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

pi\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4<\/h3>\n\n\n\n

\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u307e\u3059\u3002<\/p>\n\n\n\n

$ passwd<\/code><\/pre><\/div>\n\n\n\n

\u73fe\u5728\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u5165\u529b\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n

root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4<\/h3>\n\n\n\n

\u7d9a\u3044\u3066root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u307e\u3059\u3002pi\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u30b9\u30fc\u30d1\u30fc\u30e6\u30fc\u30b6\u30fc\uff08root\u30e6\u30fc\u30b6\u30fc\uff09\u306e\u6a29\u9650\u304c\u5fc5\u8981\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001sudo\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ sudo passwd root<\/code><\/pre><\/div>\n\n\n\n

\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3092\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n

OS\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h2>\n\n\n\n

OS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u6700\u65b0\u5316\u3057\u307e\u3059\u3002\u307e\u305a\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u66f4\u65b0\u304c\u306a\u3044\u304b\u3092\u8abf\u3079\u308b\u305f\u3081\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n

$ sudo apt-get update<\/code><\/pre><\/div>\n\n\n\n

\u6b21\u306b\u66f4\u65b0\u30ea\u30b9\u30c8\u3092\u53c2\u7167\u306b\u30bd\u30d5\u30c8\u3092\u66f4\u65b0\u3059\u308b\u306e\u304c\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u3059\u3002\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u6642\u9593\u306f\u6570\u5206\u304b\u3089\u6570\u5341\u5206\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

$sudo apt-get upgrade<\/code><\/pre><\/div>\n\n\n\n

Swap\u306e\u505c\u6b62<\/h2>\n\n\n
\n

Swap\u3068\u306f\u7269\u7406\u30e1\u30e2\u30ea\u306e\u5bb9\u91cf\u304c\u8db3\u308a\u306a\u304f\u306a\u3063\u3066\u304d\u305f\u6642\u306b\u3001\u30e1\u30e2\u30ea\u306e\u5185\u5bb9\u3092HDD\u3084SSD\u306b\u66f8\u304d\u51fa\u3057\u3066\u30e1\u30e2\u30ea\u4e0d\u8db3\u3092\u88dc\u3046\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n

Rasberry Pi\u306e\u8a18\u61b6\u5a92\u4f53\u306fHDD\u3001SSD\u3067\u306f\u306a\u304fSD\u30ab\u30fc\u30c9\u3067\u3059\u3002SD\u30ab\u30fc\u30c9\u306f\u4ed6\u306e\u5a92\u4f53\u306b\u6bd4\u3079\u3066\u8010\u4e45\u6027\u306b\u5fc3\u914d\u304c\u3042\u308a\u307e\u3059\u3002SD\u30ab\u30fc\u30c9\u306e\u30c7\u30fc\u30bf\u304c\u98db\u3093\u3067\u3057\u307e\u3046\u306e\u306f\u652f\u969c\u3092\u304d\u305f\u3057\u307e\u3059\u3088\u306d\u3002Swap\u306fSD\u30ab\u30fc\u30c9\u306e\u66f8\u304d\u63db\u3048\u56de\u6570\u3092\u5897\u3084\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001Raspberry Pi\u3067\u306fSwap\u306f\u505c\u6b62\u3057\u305f\u65b9\u304c\u3088\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u66f8\u304d\u63db\u3048\u8010\u4e45\u6027\u306e\u3042\u308bSD\u30ab\u30fc\u30c9\u3060\u304b\u3089\u5927\u4e08\u592b\u3001\u6027\u80fd\u512a\u5148\u3067SD\u30ab\u30fc\u30c9\u306f\u6d88\u8017\u54c1\u524d\u63d0\u3068\u3044\u3046\u65b9\u306f\u98db\u3070\u3057\u3066\u9802\u3044\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n

\u73fe\u5728\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ free\n\n\u00a0 \u00a0 \u00a0 total\u00a0 \u00a0used\u00a0 \u00a0\u00a0free\u00a0 \u00a0 \u00a0 shared\u00a0 \u00a0 \u00a0buff\/cache\u00a0 \u00a0 \u00a0available\nMem:\u00a0 442816\u00a0 85308\u00a0 \u00a066636\u00a0 \u00a0 \u00a03720\u00a0 \u00a0 \u00a0 \u00a0290872\u00a0 \u00a0 \u00a0 \u00a0 \u00a0302216\nSwap: 102396\u00a0 512\u00a0 \u00a0  101884<\/code><\/pre><\/div>\n\n\n\n

Swap\u9818\u57df\u304c100MB\u307b\u3069\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002Swap\u3092\u505c\u6b62\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u307e\u3059\u3002<\/p>\n\n\n\n

$ sudo swapoff --all\n\n\u00a0 \u00a0 \u00a0total\u00a0 used\u00a0 \u00a0free\u00a0 \u00a0shared\u00a0 \u00a0 buff\/cache\u00a0 \u00a0\u00a0 available\nMem: 442816 85284\u00a0 66396\u00a0 3796\u00a0 \u00a0 \u00a0 291136\u00a0 \u00a0 \u00a0 \u00a0 \u00a0302164\nSwap: 0\u00a0 \u00a0 \u00a00\u00a0 \u00a0 \u00a0 0<\/code><\/pre><\/div>\n\n\n\n

\u518d\u8d77\u52d5\u3059\u308b\u3068Swap\u304c\u5fa9\u6d3b\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001Swap\u6a5f\u80fd\u3092Rasbian\u304b\u3089\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ sudo apt-get remove dphys-swapfile<\/code><\/pre><\/div>\n\n\n\n

\u307e\u3068\u3081<\/h2>\n\n\n\n

OS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u6700\u4f4e\u9650\u884c\u30463\u3064\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\u884c\u3063\u305f\u3053\u3068\u306f<\/p>\n\n\n\n

  • \u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4<\/li>
  • OS\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/li>
  • Swap\u306e\u505c\u6b62<\/li><\/ul>\n\n\n\n

    \u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068SSH\u63a5\u7d9a\u306e\u8a18\u4e8b\u3067\u3001Raspberry Pi\u306eOS\u300cRasbian\u300d\u3092\u30e2\u30cb\u30bf\u30ec\u30b9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u305d\u306e\u7d9a\u304d\u3068\u3057\u3066\u3001OS\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u3067Wi-Fi\u306e\u8a2d\u5b9a\u3001IP\u30a2\u30c9\u30ec\u30b9\u306e\u56fa […]<\/p>\n","protected":false},"author":1,"featured_media":12,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/109"}],"collection":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":37,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":1914,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/109\/revisions\/1914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media\/12"}],"wp:attachment":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}