{"id":1209,"date":"2020-04-20T16:10:36","date_gmt":"2020-04-20T07:10:36","guid":{"rendered":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1209"},"modified":"2020-04-20T16:29:54","modified_gmt":"2020-04-20T07:29:54","slug":"%e5%b8%b8%e6%99%82%e7%a8%bc%e5%83%8d%e3%81%ae%e6%a4%9c%e8%a8%bc%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1209","title":{"rendered":"\u5e38\u6642\u7a3c\u50cd\u306e\u691c\u8a3c\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u975e\u529b\u306a\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u3067\u8272\u3005\u306a\u691c\u8a3c\u306f\u7121\u7406<\/h3>\n\n\n\n<p>\u3061\u3087\u3063\u3068\u3057\u305f\u691c\u8a3c\u3084\u5b66\u7fd2\u7528\u3068\u3057\u3066\u3001\u30df\u30b9\u3063\u3066\u6b62\u3081\u3066\u3082\u554f\u984c\u306e\u8d77\u3053\u3089\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3001\u6700\u65b0\u306e\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4 <strong>Raspberry pi 4 B+ 4GB<\/strong> \u3092\u8cfc\u5165\u3057\u3066\u69cb\u7bc9\u3092\u59cb\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3053\u3053\u304b\u3089\u8a18\u8ff0\u3057\u3066\u3044\u308b\u4f5c\u696d\u306f\u57fa\u672c\u7684\u306b\u3001Linux \u306e Ubuntu \u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30d1\u30bd\u30b3\u30f3\u4e0a\u3067\u306e\u4f5c\u696d\u304c\u4e2d\u5fc3\u3067\u3059\u3002\u4e00\u90e8\u3067\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u69cb\u7bc9\u3057\u3066\u3044\u308b Raspberry pi \u672c\u4f53\u3067\u306e\u4f5c\u696d\u306e\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u69cb\u7bc9\u3092\u59cb\u3081\u305f\u30b5\u30fc\u30d0\u30fc\u306e\u5229\u7528\u76ee\u7684<\/h2>\n\n\n\n<p>\u6700\u5927\u306e\u76ee\u7684\u306f\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u5199\u771f\u3092\u516c\u958b\u3057\u3066\u3044\u308b\u73fe\u5728\u306e\u30a6\u30a7\u30d6\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u5358\u7d14\u306b\u5199\u771f\u3092\u64ae\u5f71\u65e5\u3092\u5143\u306b\u3057\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5165\u308c\u3066\u3001\u5358\u7d14\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4ed8\u3051\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u7279\u5b9a\u306a\u6761\u4ef6\u306b\u3088\u308a\u9078\u3073\u51fa\u3059\u3088\u3046\u306a\u4f7f\u3044\u65b9\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u516c\u958b\u30b7\u30b9\u30c6\u30e0\u306e\u69cb\u7bc9\u3092\u601d\u3044\u7acb\u3063\u305f\u9803\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u77e5\u8b58\u4e0d\u8db3\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u8003\u616e\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u308b\u81ea\u4fe1\u304c\u7121\u304b\u3063\u305f\u3053\u3068\u3082\u3042\u3063\u3066\u3001\u305d\u306e\u307e\u307e\u5927\u5e45\u306a\u6539\u4fee\u3082\u3067\u304d\u306a\u3044\u307e\u307e\u73fe\u5728\u306b\u81f3\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u5f53\u6642\u6c17\u306b\u3057\u3066\u3044\u305f\u306e\u306fSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/h5>\n\n\n\n<p>\u5f53\u6642\u306fSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306a\u3093\u3066\u547c\u3070\u308c\u3066\u3044\u308b\u653b\u6483\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u304c\u6539\u3056\u3093\u3055\u308c\u308b\u8a71\u304c\u3042\u3061\u3053\u3061\u3067\u9a12\u304c\u308c\u3066\u3044\u305f\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u672a\u4f7f\u7528\u3067\u3082\u8272\u3005\u306a\u653b\u6483\u3067\u30c0\u30a6\u30f3\u3055\u305b\u3089\u308c\u308b\u4e8b\u4ef6\u3082\u983b\u7e41\u306b\u8d77\u304d\u3066\u3044\u305f\u306e\u3067\u3001\u53ef\u80fd\u306a\u9650\u308a\u6700\u4f4e\u9650\u306e\u904b\u7528\u306b\u91cd\u70b9\u3092\u7f6e\u3044\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6700\u4f4e\u9650\u306a\u30b7\u30b9\u30c6\u30e0\u304c\u529f\u3092\u594f\u3057\u305f\u306e\u304b\u3001\u30e4\u30c9\u30ab\u30ea\u306e\u3088\u3046\u306b\u4f55\u4e16\u4ee3\u306b\u3082\u6e21\u3063\u3066\u6bbb (\u30b5\u30fc\u30d0\u30fc) \u3092\u4e57\u63db\u3048\u306a\u304c\u3089\u30cd\u30c3\u30c8\u306b\u516c\u958b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u307e\u3060\u6539\u3056\u3093\u3055\u308c\u305f\u7d4c\u9a13\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3061\u3087\u3063\u3068\u5fc3\u914d\u306b\u306a\u308b\u304f\u3089\u3044\u5207\u308c\u76ee\u306a\u304f\u653b\u6483\u306e\u8a18\u9332\u304c\u30ed\u30b0\u306b\u6b8b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u771f\u306e\u76ee\u7684\u306f\u3001\u4f55\u306e\u4e8b\u306f\u306a\u3044SQL\u8a00\u8a9e\u306e\u5b66\u7fd2\u7528<\/h4>\n\n\n\n<p>\u4eca\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u516c\u958b\u5199\u771f\u306e\u30b7\u30b9\u30c6\u30e0\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u5229\u7528\u3057\u306a\u3044\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u52d5\u4f5c\u3059\u308b Ruby\u8a00\u8a9e\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3001\u7aef\u672b\u5074\u3067\u52d5\u4f5c\u3059\u308b JavaScript \u306e\u8a18\u8ff0\u3092\u7d44\u5408\u305b\u3066\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u306e Ruby \u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u5229\u7528\u3057\u3066\u52b9\u7387\u7684\u306a\u691c\u7d22\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308c\u3070\u3001\u898b\u305f\u3044\u5199\u771f\u306e\u9078\u629e\u304c\u5bb9\u6613\u306b\u306a\u3063\u3066\u7406\u60f3\u3060\u308d\u3046\u3068\u8003\u3048\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4eca\u56de\u306e\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u306e\u5099\u5fd8\u9332<\/h2>\n\n\n\n<h4 class=\"has-medium-pink-color has-text-color wp-block-heading\">\u9805\u76ee\u30ea\u30b9\u30c8<\/h4>\n\n\n\n<ol start=\"1\" class=\"fcb-list\"><li>Raspberry pi 4 B+ \u3001\u96fb\u6e90\u30a2\u30c0\u30d7\u30bf\u3001\u30b1\u30fc\u30b9\u985e\u3092 \u8cfc\u5165<\/li><li>Raspbian \u6700\u65b0\u7248\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 \u3068 microSD 32GB Class10 \u3078\u306e\u66f8\u8fbc\u307f<\/li><li>USB\u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u30de\u30a6\u30b9\u3001 micro HDMI \u3078\u30e2\u30cb\u30bf\u3092\u63a5\u7d9a\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5<\/li><li>\u8868\u793a\u306b\u5f93\u3063\u3066\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u7a2e\u5225\u3084\u8a00\u8a9e\u3092\u6307\u5b9a\u3001\u305d\u306e\u4ed6\u306e\u554f\u3044\u306b\u7b54\u3048\u3066\u521d\u671f\u8a2d\u5b9a<\/li><li>\u30ea\u30d6\u30fc\u30c8\u3001\u521d\u671f\u8a2d\u5b9a\u30b7\u30b9\u30c6\u30e0\u306e\u78ba\u8a8d\u3068\u6700\u65b0\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u9069\u7528<\/li><li>\u521d\u671f\u8d77\u52d5\u306f\u3001microSD \u3067\u3001\u5b9f\u30b7\u30b9\u30c6\u30e0\u306b\u306f\u30012.5\u30a4\u30f3\u30c1 USB \u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3078<\/li><li>vi \u30b3\u30de\u30f3\u30c9\u3067\u7de8\u96c6\u3059\u308b\u305f\u3081\u3001vim\u306e\u8a2d\u5b9a<\/li><li>\u521d\u671f\u8a2d\u5b9a\u6e08\u307f pi \u30e6\u30fc\u30b6\u30fc\u3092 sunao \u30e6\u30fc\u30b6\u30fc\u306b\u7f6e\u304d\u63db\u3048<\/li><li>\u57fa\u672c\u306f\u30ea\u30e2\u30fc\u30c8\u4f5c\u696d\u3067\u5229\u7528\u3059\u308b\u305f\u3081\u3001RSA\u79d8\u5bc6\u9375\u306e\u751f\u6210\u3068 SSH\u306e\u8a2d\u5b9a<\/li><li>\u30ea\u30e2\u30fc\u30c8\u64cd\u4f5c\u3067\u57fa\u672c\u306e\u4eee\u60f3\u7aef\u672b byobu \/ screen \u306e\u8a2d\u5b9a<\/li><li>\u30b5\u30fc\u30d0\u30fc\u5185\u304b\u3089\u30e1\u30fc\u30eb\u3092\u8ee2\u9001\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u8a2d\u5b9a<\/li><li>Logwatch \u3068 Cron \u306e\u52d5\u4f5c\u78ba\u8a8d<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u691c\u8a0e\u5185\u5bb9\u3084\u4f5c\u696d\u5185\u5bb9<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\uff11\uff0eRaspberry pi \u306e\u6a5f\u6750\u8cfc\u5165<\/h3>\n\n\n\n<h5 class=\"wp-block-heading\">\u5f8c\u306e\u4e8b\u3092\u8003\u3048\u3066\u6700\u65b0\u7248\u3067\u6700\u5927\u30e1\u30e2\u30ea\u642d\u8f09\u3092\u9078\u629e<\/h5>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u4e88\u5b9a\u306a\u306e\u3067\u3001Wi-Fi\u30844GB\u306e\u30e1\u30e2\u30ea\u3082\u5168\u304f\u5fc5\u8981\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5f8c\u3005\u4e0d\u8981\u3068\u306a\u3063\u3066\u518d\u5229\u7528\u3092\u8003\u3048\u305f\u5834\u5408\u3001\u30d1\u30bd\u30b3\u30f3\u3068\u3057\u3066\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u307f\u305f\u308a\u3001\u5225\u306eOS\u3092\u5165\u308c\u3066\u307f\u305f\u308a\u3068\u8003\u3048\u308b\u3068\u3001\u73fe\u6642\u70b9\u306e\u6700\u65b0\u6700\u4e0a\u3067\u5c0e\u5165\u3057\u3066\u3044\u3066\u3082\u826f\u3044\u304b\u306a\u3068\u601d\u3044\u3001\u305d\u308c\u306b\u6cbf\u3063\u305f Raspberry pi \u3068 \u30b1\u30fc\u30b9\u3001micro HDMI\u30b1\u30fc\u30d6\u30eb\u3001\u96fb\u6e90\u3092\u4e00\u7dd2\u306b\u8cfc\u5165\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u624b\u6301\u3061\u306e\u3082\u306e\u306f\u6709\u308b\u3082\u306e\u3067\u9593\u306b\u5408\u308f\u305b<\/h5>\n\n\n\n<p>\u884c\u304f\u884c\u304f\u306f\u5165\u51fa\u529b\u3092\u76f4\u63a5\u6301\u305f\u306a\u3044\u5358\u4f53\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u7a3c\u50cd\u306e\u4e88\u5b9a\u306a\u306e\u3067\u3001\u521d\u671f\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u306e\u9593\u306b\u5408\u305b\u3067\u4f7f\u7528\u3059\u308b microSD \u3084 \u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u30de\u30a6\u30b9\u306f\u4f7f\u3044\u53e4\u3057\u306e\u4f59\u3063\u3066\u3044\u308b\u3082\u306e\u3067\u4ee3\u7528\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u6642\u306b\u30b7\u30b9\u30c6\u30e0\u30c7\u30a3\u30b9\u30af\u3068\u3057\u3066\u5e38\u8a2d\u3059\u308b\u4e88\u5b9a\u306e USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306f\u3001\u904e\u53bb\u306b\u516c\u958b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u4f7f\u7528\u3057\u3066\u3044\u305f\u3082\u306e\u3092\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u518d\u5b9a\u7fa9\u3057\u3066\u306e\u6d41\u7528\u3092\u8003\u3048\u8cfc\u5165\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff12\uff0e\uff2f\uff33\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068microSD\u3078\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\uff2f\uff33\u306f\u6700\u65b0\u7248\u306eRaspbian<\/h4>\n\n\n\n<p>\u30b7\u30b9\u30c6\u30e0\u306f\u3001\u4e00\u822c\u7684\u306a Raspbian \u306e\u6700\u65b0\u7248\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u542b\u3080\u30d5\u30eb\u30b5\u30a4\u30ba\u306e\u3082\u306e\u3092\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u666e\u901a\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002 sha256sum \u30b3\u30de\u30f3\u30c9\u3067\u30a8\u30e9\u30fc\u306e\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u89e3\u51cd\u3057\u3001&#8211;.img \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<pre>$ cd download-dir\n$ ls\n2020-02-13-raspbian-buster-full.zip\n\n$ sha256sum 2020-02-13-raspbian-buster-full.zip\n  <span style=\"color: #999999;\">\u301c\u301c\u3057\u3070\u3089\u304f\u6642\u9593\u304c\u304b\u304b\u308a\u30cf\u30c3\u30b7\u30e5\u30c1\u30a7\u30c3\u30af\u5b8c\u4e86\u301c\u301c<\/span>\nc9c382b659bd96b859ccb9e2ac0c2292a91a37c286ab464f2f380d451077663d  2020-02-13-raspbian-buster-full.zip\n$ unzip *.zip\n$ ls\n2020-02-13-raspbian-buster-full.img  2020-02-13-raspbian-buster-full.zip\n<\/pre>\n\n\n<p>\u624b\u6301\u3061\u306e 32GB microSD Class10 \u306e\u3082\u306e\u306b\u3001\u5358\u7d14\u306b dd \u30b3\u30de\u30f3\u30c9\u3067\u66f8\u8fbc\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n<pre>$ sudo dd if=2020-02-13-raspbian-buster-full.img of=\/dev\/mmcblk0 bs=4096\n   <span style=\"color: #999999;\">\u301c\u301c\u3057\u3070\u3089\u304f\u6642\u9593\u304c\u304b\u304b\u308a\u66f8\u8fbc\u307f\u5b8c\u4e86\u301c\u301c<\/span><\/pre>\n\n\n<h3 class=\"wp-block-heading\">\uff13\uff0e\u521d\u671f\u8a2d\u5b9a\u306b\u5fc5\u8981\u306a\u6a5f\u6750\u306e\u63a5\u7d9a\u3068\u96fb\u6e90\u6295\u5165<\/h3>\n\n\n\n<p>\u524d\u8ff0\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u66f8\u304d\u8fbc\u3093\u3060 microSD \u3092 Raspberry pi \u672c\u4f53\u306b\u633f\u5165\u3057\u3001USB\u30de\u30a6\u30b9\u3001USB\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30e2\u30cb\u30bf\u30fc\u8868\u793a\u306e\u305f\u3081\u306b\u30c6\u30ec\u30d3\u3092\u7528\u610f\u3057\u3066\u3001HDMI\u30b1\u30fc\u30d6\u30eb\u3092\u63a5\u7d9a\u3057\u307e\u3059\u3002\u30b1\u30fc\u30d6\u30eb\u306e\u53cd\u5bfe\u5074\u306e micro HDMI \u30b3\u30cd\u30af\u30bf\u3092\u3001\uff12\u3064\u6709\u308b micro HDMI \u30dd\u30fc\u30c8\u306e Raspberry pi \u672c\u4f53\u96fb\u6e90\u4f9b\u7d66\u7528 Type-C \u5bc4\u308a\u306e HDMI\u30dd\u30fc\u30c8\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u5fc5\u8981\u306a\u3082\u306e\u3092\u63a5\u7d9a\u3057\u305f\u3089\u96fb\u6e90ON<\/h5>\n\n\n\n<p>\u6700\u5f8c\u306b\u96fb\u6e90\u4f9b\u7d66\u7528\u306e USB Type-C \u306e\u30dd\u30fc\u30c8\u306b 5V\u96fb\u6e90\u30a2\u30c0\u30d7\u30bf\u3092\u63a5\u7d9a\u3057\u3066\u96fb\u6e90ON\u3057\u307e\u3059\u3002\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u30c6\u30ec\u30d3\u306e\u30e2\u30cb\u30bf\u306b\u306f\u3001\u4e26\u3093\u3060\u30e9\u30ba\u30d9\u30ea\u30fc\u30de\u30fc\u30af\u3092\u8868\u793a\u3057\u3066\u52d5\u4f5c\u3092\u59cb\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f5c\u6210\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u7528\u306e microSD \u306f\u3001\u56fa\u5b9a\u30b5\u30a4\u30ba\u306e \uff12\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u69cb\u6210\u3067\u4f5c\u6210\u3055\u308c\u3066\u6b8b\u308a\u306e\u30a8\u30ea\u30a2\u304c\u7a7a\u304d\u306e\u307e\u307e\u306a\u306e\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3(\u7b2c\uff12\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3 ext4)\u306b\u6b8b\u308a\u5168\u3066\u306e\u30a8\u30ea\u30a2\u3092\u53d6\u308a\u8fbc\u3080\u305f\u3081\u306b\u5c11\u3057\u7d4c\u3064\u3068\u52dd\u624b\u306b\u30ea\u30d6\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u305d\u306e\u5ea6\u306b\u9032\u5316\u3057\u3066\u3044\u3066\u521d\u671f\u5316\u624b\u9806\u304c\u7570\u306a\u308a\u307e\u3059<\/h4>\n\n\n\n<p>\u521d\u671f\u306e\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4\u304b\u3089\u4f55\u5ea6\u3082\u521d\u671f\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6bce\u56de\u6539\u826f\u3055\u308c\u9032\u5316\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u90fd\u5ea6\u64cd\u4f5c\u624b\u9806\u3082\u8a2d\u5b9a\u9805\u76ee\u3082\u5909\u308f\u3063\u3066\u3044\u3066\u3001\u64cd\u4f5c\u624b\u9806\u3092\u8a73\u7d30\u306b\u8a18\u9332\u3057\u3066\u3082\u3042\u307e\u308a\u610f\u5473\u304c\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff14\uff0e\u8a00\u8a9e\u3084\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059<\/h3>\n\n\n\n<p>\u64cd\u4f5c\u3057\u3066\u3044\u308b Raspberry pi 4 B+ \u672c\u4f53\u3092\u4eca\u5f8c\u306f\u30e9\u30ba\u30d1\u30a4\u3068\u7701\u7565\u3057\u3066\u547c\u3076\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u30e9\u30ba\u30d1\u30a4\u3082\u521d\u671f\u5316\u3059\u308b\u5ea6\u306b\u521d\u671f\u5316\u306e\u624b\u9806\u3084\u52d5\u304d\u304c\u7570\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u30e2\u30cb\u30bf\u30fc\u306b\u8868\u793a\u3055\u308c\u305f\u554f\u306b\u5bfe\u3057\u3066\u8fd4\u7b54\u3057\u306a\u304c\u3089\u5fc5\u8981\u306a\u9805\u76ee\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u672c\u8a9e\u306e\u8a00\u8a9e\u9078\u629e\u3084 Japan \/ Tokyo \u7b49\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u7a2e\u985e\u306e\u8a2d\u5b9a\u3082\u3001\u305f\u3060\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u8a2d\u5b9a\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u4ee5\u524d\u306f\u82e6\u52b4\u3057\u306a\u304c\u3089\u30d5\u30a9\u30f3\u30c8\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u7b49\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u306e\u304c\u5618\u306e\u3088\u3046\u306b\u7c21\u5358\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u3001Wi-Fi\u306b\u63a5\u7d9a\u3057\u307e\u3059\u304c\u3001\u3053\u308c\u3082\u805e\u304b\u308c\u308b\u307e\u307e\u306b\u63a5\u7d9a\u30dd\u30a4\u30f3\u30c8\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u8907\u6570\u306e\u63a5\u7d9a\u30dd\u30a4\u30f3\u30c8\u304c\u5b58\u5728\u3057\u3066\u3044\u3066\u3001\u8907\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u306a\u3089\u30e2\u30cb\u30bf\u30fc\u53f3\u4e0a\u306e\u7121\u7dda\u306e\u6247\u30de\u30fc\u30af\u306e\u30af\u30ea\u30c3\u30af\u304b\u3089\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff15\uff0e\u521d\u671f\u8a2d\u5b9a\u30b7\u30b9\u30c6\u30e0\u306e\u78ba\u8a8d\u3068\u6700\u65b0\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h3>\n\n\n\n<p>\u30ea\u30d6\u30fc\u30c8\u3057\u3066\u7acb\u4e0a\u304c\u308b\u3068\u6307\u5b9a\u3057\u305f\u65e5\u672c\u8a9e\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u753b\u9762\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u6642\u9593\u3082\u65e5\u672c\u306e\u6642\u9593\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u753b\u9762\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8d77\u52d5\u3057\u3066 date \u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u4e00\u822c\u7684\u306a\u65e5\u672c\u306e\u6642\u9593\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<pre>$ date\n2020\u5e74  3\u6708 29\u65e5 \u65e5\u66dc\u65e5 17:43:47 JST\n<\/pre>\n\n\n<p>\u6700\u65b0\u3078\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3063\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n<pre>$ sudo apt update\n  <span style=\"color: #808080;\">\u301c\u301c\u30ea\u30b9\u30c8\u3055\u308c\u6642\u9593\u304c\u639b\u304b\u308a\u307e\u3059\u301c\u301c<\/span>\n$ sudo apt -y upgrade\n  <span style=\"color: #808080;\">\u301c\u301c\u5c11\u3057\u305a\u3064\u30ea\u30b9\u30c8\u3055\u308c\u6642\u9593\u304c\u639b\u304b\u308a\u307e\u3059\u301c\u301c\n<\/span><\/pre>\n\n\n<h3 class=\"wp-block-heading\">\uff16\uff0e\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092 USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3078<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u73fe\u6642\u70b9\u306e\u30b7\u30b9\u30c6\u30e0\u30c7\u30a3\u30b9\u30af\u306f microSD<\/h4>\n\n\n\n<p>\u73fe\u6642\u70b9\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c microSD 32GB Class10 \u306e\u7b2c\uff12\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30e9\u30ba\u30d1\u30a4 3 \u306a\u3089\u3070\u3001USB\u30c7\u30a3\u30b9\u30af\u306b\u30b7\u30b9\u30c6\u30e0\u3092\u5165\u308c\u3066\u76f4\u63a5\u8d77\u52d5\u3082\u3067\u304d\u308b\u3068\u30cd\u30c3\u30c8\u306b\u60c5\u5831\u304c\u4e0a\u3052\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30e9\u30ba\u30d1\u30a4 4 \u3067\u306f\u307e\u3060\u5bfe\u5fdc\u3067\u304d\u3066\u3044\u306a\u3044\u3068\u306e\u60c5\u5831\u304c\u3042\u3063\u3066\u3001\u8272\u3005\u8abf\u3079\u307e\u3057\u305f\u304c\u73fe\u6642\u70b9\u3067\u306f\u305d\u308c\u304c\u771f\u5b9f\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">microSD\u3067\u521d\u671f\u8d77\u52d5\u3057\u3066\u3001USB-HDD\u3067\u7a3c\u50cd\u3055\u305b\u307e\u3059<\/h3>\n\n\n\n<p>\u4eca\u307e\u3067\u306e\u5bb6\u5c4b\u5185\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30e9\u30ba\u30d1\u30a4\u3068\u540c\u69d8\u306b\u3001\u8d77\u52d5\u306b\u306f microSD \u306e\u7b2c\uff11\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u3001\u5b9f\u969b\u306b\u7a3c\u50cd\u3059\u308b<strong>\uff2f\uff33<\/strong>\u3092USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u518d\u5229\u7528\u306a\u306e\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u898b\u76f4\u3057\u307e\u3059<\/h4>\n\n\n\n<p>\u307e\u305a\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3084\u30c7\u30fc\u30bf\u306e\u683c\u7d0d\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u306a\u308b USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306e\u8a2d\u5b9a\u3067\u3059\u3002\u524d\u306b\u4ed6\u3067\u5229\u7528\u3057\u3066\u3044\u305f\u3082\u306e\u306e\u518d\u5229\u7528\u3067\u3059\u306e\u3067\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u524a\u9664\u304b\u3089\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n<pre>$ sudo fdisk \/dev\/sdb<\/pre>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u6b21\u306e\u3088\u3046\u306a\u69cb\u6210\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u5229\u7528\u3059\u308b\u306e\u306f 1TB 2.5\u30a4\u30f3\u30c1 USB3.0 \u306e\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4f5c\u696d\u3092\u5f8c\u304b\u3089\u307e\u3068\u3081\u308b\u3064\u3082\u308a\u3067\u4f5c\u696d\u3057\u3066\u3044\u305f\u308f\u3051\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4f5c\u696d\u4e2d\u306e\u60c5\u5831\u3092\u6b8b\u3057\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u6b21\u306e\u30ea\u30b9\u30c8\u306f\u3001\u5f8c\u304b\u3089\u30e9\u30ba\u30d1\u30a4\u306e\u5b9f\u6a5f\u7acb\u4e0a\u3052\u5f8c\u306b\u30ea\u30b9\u30c8\u3057\u305f\u3082\u306e\u306a\u306e\u3067 \/dev\/sda \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30d1\u30bd\u30b3\u30f3\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u6642\u306f\u3001\u5916\u4ed8\u3051\u306a\u306e\u3067 \/dev\/sdb \u3068\u3057\u3066\u4f5c\u696d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<pre>Disk \/dev\/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors\nDisk model: Rikiki USB 3.0  \nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 4096 bytes\nI\/O size (minimum\/optimal): 4096 bytes \/ 4096 bytes\nDisklabel type: dos\nDisk identifier: 0xa51bb4e8\n\nDevice     Boot      Start        End    Sectors   Size Id Type\n\/dev\/sda1  *          2048    4196351    4194304     2G  b W95 FAT32\n\/dev\/sda2          4196352   46139391   41943040    20G 83 Linux\n\/dev\/sda3         46139392   67110911   20971520    10G 82 Linux swap \/ Solaris\n\/dev\/sda4         67110912 1953525167 1886414256 899.5G  5 Extended\n\/dev\/sda5         67112960  234885119  167772160    80G 83 Linux\n\/dev\/sda6        234887168 1178605567  943718400   450G 83 Linux\n\/dev\/sda7       1178607616 1953525167  774917552 369.5G 83 Linux\n<\/pre>\n\n\n<p>\u6b21\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u30e9\u30d9\u30eb\u3092\u4ed8\u3051\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u521d\u671f\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<pre>$ sudo mkfs.ext4 -L rootfs \/dev\/sdb2    <span style=\"color: #ff6600;\">\u2026\u3053\u308c\u304c\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u306a\u308b<\/span>\n$ sudo mkswap -L swap \/dev\/sdb3\n$ sudo mkfs.ext4 -L home \/dev\/sdb5\n$ sudo mkfs.ext4 -L share-data \/dev\/sdb6\n$ sudo mkfs.ext4 -L data \/dev\/sdb7\n<\/pre>\n\n\n<p>UUID \u7b49\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081 blkid \u30b3\u30de\u30f3\u30c9\u3067\u30ea\u30b9\u30c8\u3057\u3066\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30ea\u30b9\u30c8\u306f\u63a7\u3048\u308b\u306e\u3092\u5fd8\u308c\u305f\u305f\u3081\u3001\u5f8c\u304b\u3089\u5b9f\u6a5f\u4e0a\u3067\u78ba\u8a8d\u3057\u305f\u3082\u306e\u306a\u306e\u3067\u5f62\u5f0f\u304c\u5c11\u3057\u7570\u306a\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n<pre>$ sudo blkid\n\/dev\/mmcblk0p1: LABEL_FATBOOT=\"boot\" LABEL=\"boot\" UUID=\"9969-E3D2\" TYPE=\"vfat\" PARTUUID=\"97709164-01\"\n\/dev\/sdb2: LABEL=\"rootfs\" UUID=\"b1be8a91-ebb8-48f9-a617-9ec4d400fe55\" TYPE=\"ext4\" PARTUUID=\"<span style=\"color: #ff6600;\">a51bb4e8-02<\/span>\"\n\/dev\/sdb3: LABEL=\"swap\" UUID=\"223a9d6f-29bf-4e03-8c89-2d2d96334d5b\" TYPE=\"swap\" PARTUUID=\"a51bb4e8-03\"\n\/dev\/sdb5: LABEL=\"home\" UUID=\"b92fd514-5428-4707-a74b-003754b08bca\" TYPE=\"ext4\" PARTUUID=\"a51bb4e8-05\"\n\/dev\/sdb6: LABEL=\"share-data\" UUID=\"220b06fa-d717-4243-8427-879b0621357f\" TYPE=\"ext4\" PARTUUID=\"a51bb4e8-06\"\n\/dev\/sdb7: LABEL=\"data\" UUID=\"7e720f4d-acb1-4cc1-b85a-1da166507375\" TYPE=\"ext4\" PARTUUID=\"a51bb4e8-07\"\n\/dev\/mmcblk0: PTUUID=\"97709164\" PTTYPE=\"dos\"\n\/dev\/sdb1: PARTUUID=\"a51bb4e8-01\"\n<\/pre>\n\n\n<h4 class=\"wp-block-heading\">\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306b\u79fb\u52d5\u3057\u78ba\u8a8d<\/h4>\n\n\n\n<p>\u6b21\u306b\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3(P2)\u3092USB\u30cf\u30fc\u30c9\u3067\u30c6\u30b9\u30af\u306b\u30b3\u30d4\u30fc\u3057\u3066\u3001\u4e00\u90e8\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u304c\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre><span style=\"color: #999999;\">  \u301c\u301cmicroSD\u306e\u633f\u5165\u3067\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3057\u305f\u306e\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8<\/span>\n$ sudo umount \/dev\/mmcblk0p1\n$ sudo umount \/dev\/mmcblk0p2\n\n  <span style=\"color: #999999;\">\u301c\u301c\u4f5c\u696d\u7528\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u306e\u78ba\u8a8d<\/span>\n$ ls \/mnt\n  <span style=\"color: #999999;\">\u301c\u301c\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u8ee2\u9001\u5143\u3068\u8ee2\u9001\u5148\u306e\u30de\u30a6\u30f3\u30c8<\/span>\n$ sudo mount \/dev\/mmcblk0p2 \/mnt\/work\n$ sudo mount \/dev\/sdb2 \/mnt\/sdb2\n  <span style=\"color: #999999;\">\u301c\u301c\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc<\/span>\n$ sudo rsync -a \/mnt\/work\/ \/mnt\/sdb2\/\n\n  <span style=\"color: #999999;\">\u301c\u301c\u6b21\u306b\u30b7\u30b9\u30c6\u30e0\u30de\u30a6\u30f3\u30c8\u7528\u306e \/etc\/fstab \u3092\u7de8\u96c6<\/span>\n$ sudo vi \/mnt\/sdb2\/etc\/fstab\n  <span style=\"color: #999999;\">---------\u6b21\u304c\u7de8\u96c6\u5f8c\u306e\u6700\u7d42\u7d50\u679c-----<\/span>\nproc            \/proc           proc    defaults          0       0\nPARTUUID=97709164-01  \/boot           vfat    defaults          0       2\nPARTUUID=<span style=\"color: #ff6600;\">a51bb4e8-02<\/span>  \/               ext4    defaults,noatime  0       1\n# a swapfile is not a swap partition, no line here\n#   use  dphys-swapfile swap[on|off]  for that\n\n  <span style=\"color: #999999;\">\u301c\u301c\u30b7\u30b9\u30c6\u30e0\u7528\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\n       \u8d77\u52d5\u7528\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u30de\u30a6\u30f3\u30c8<\/span>\n$ sudo umount \/mnt\/work\n$ sudo mount \/dev\/mmcblk0p1 \/mnt\/work\n  <span style=\"color: #999999;\">\u301c\u301c\u8d77\u52d5\u7528\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5b9a\u7fa9\u3092\u5909\u66f4<\/span>\n$ sudo ls \/mnt\/work\n$ sudo vi \/mnt\/work\/cmdline.txt\n  <span style=\"color: #999999;\">---------\u6b21\u306b USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u5909\u66f4<\/span>\nconsole=serial0,115200 console=tty1 root=PARTUUID=<span style=\"color: #ff6600;\">a51bb4e8-02<\/span> rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait\n\n  <span style=\"color: #999999;\">\u301c\u301c\u4f5c\u696d\u3057\u305f\u30de\u30a6\u30f3\u30c8\u3092\u958b\u653e\u3059\u308b<\/span>\n$ sudo umount \/mnt\/work\n$ sudo umount \/mnt\/sdb2\n<\/pre>\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u4fee\u6b63\u3057\u305f\u3001microSD \u3068 USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3092\u30e9\u30ba\u30d1\u30a4\u306b\u633f\u5165\u3057\u3066\u3001\u8d77\u52d5\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5229\u7528\u4fa1\u5024\u306e\u306a\u3044 microSD \u3092\u8d77\u52d5\u306b\u6d3b\u7528<\/h4>\n\n\n\n<p>\u3053\u306e\u69cb\u6210\u3067\u8d77\u52d5\u3067\u304d\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u8d77\u52d5\u306b\u5229\u7528\u3059\u308b microSD \u3092\u5165\u66ff\u3048\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5165\u66ff\u3048\u308b\u7406\u7531\u306f\u3001\u81ea\u5206\u306e\u624b\u6301\u3061\u306e\u4e2d\u306b\u5bb9\u91cf\u3082\u5c11\u306a\u304f\u901f\u5ea6\u3082\u9045\u304f\u3001\u307b\u3068\u3093\u3069\u5229\u7528\u4fa1\u5024\u306e\u306a\u3044 microSD 4GB Class4 \u304c\u3042\u308a\u3001\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f \uff11\u5ea6\u8d77\u52d5\u3055\u308c\u308c\u3070\u7a3c\u50cd\u4e2d\u306f\u307b\u3068\u3093\u3069\u304c USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3067\u306e\u52d5\u4f5c\u306b\u306a\u308b\u305f\u3081\u3001\u5927\u304d\u306a\u554f\u984c\u304c\u7121\u3044\u3068\u8003\u3048\u3066\u3053\u3061\u3089\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u305f 32GB \u306e microSD \u3092\u4f5c\u696d\u7528\u30d1\u30bd\u30b3\u30f3\u306b\u633f\u5165\u3057\u307e\u3059\u3002\u305d\u3057\u3066dd \u30b3\u30de\u30f3\u30c9\u3067\u3001microSD \u5168\u57df\u3092\uff11\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4f5c\u696d\u7528\u30d1\u30bd\u30b3\u30f3\u5185\u306b\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u53d6\u308a\u51fa\u3057\u3066\u304b\u3089\u7f6e\u63db\u3048\u308b 4GB \u306e microSD \u3092\u4f5c\u696d\u7528\u30d1\u30bd\u30b3\u30f3\u306b\u633f\u5165\u3057\u3066\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre><span style=\"color: #999999;\">  \u301c\u301c\u5143\u306b\u306a\u308b 32GB \u306e microSD \u3092\u4f5c\u696d\u7528\u30d1\u30bd\u30b3\u30f3\u306b\u633f\u5165\n  \u301c\u301cmicroSD \u5168\u57df\u3092\u30d5\u30a1\u30a4\u30eb\u540d mmcblk0 \u3068\u3057\u30b3\u30d4\u30fc<\/span>\n$ sudo dd if=\/dev\/mmcblk0 of=mmcblk0 bs=4096\n  <span style=\"color: #999999;\">\u301c\u301c\u7f6e\u63db\u3048\u308b 4GB \u306e microSD \u306b\u4ea4\u63db\u3057\u3066\n  \u301c\u301c\u30d5\u30a1\u30a4\u30eb\u540d mmcblk0 \u3092 microSD \u306b\u30d5\u30eb\u30b3\u30d4\u30fc\u3059\u308b<\/span>\n$ sudo dd if=mmcblk0 of=\/dev\/mmcblk0 bs=4096<\/pre>\n\n\n<p>\u5b9f\u969b\u306b\u306f\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u306e bs= \u306e\u6570\u5024\u3092\u5927\u304d\u304f\u3057\u3066\u30b3\u30d4\u30fc\u3059\u308b\u30d6\u30ed\u30c3\u30af\u30b5\u30a4\u30ba\u3092\u5927\u304d\u304f\u3057\u305f\u65b9\u304c\u4f5c\u696d\u304c\u65e9\u304f\u306a\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u7269\u7406\u7684\u306a\u30b5\u30a4\u30ba\u304c\u9055\u3046\u305f\u3081\u3001\u30a8\u30ea\u30a2\u304c\u8db3\u3089\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u8d77\u52d5\u306b\u5fc5\u8981\u306a\u7b2c\uff11\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u90e8\u5206\u306f\u5168\u304f\u554f\u984c\u306a\u304f\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff17\uff0e\u666e\u6bb5\u4f7f\u3044\u306e\u30a8\u30c7\u30a3\u30bf vim \u306e\u6574\u5099<\/h3>\n\n\n\n<p>\u30ea\u30e2\u30fc\u30c8\u3067\u64cd\u4f5c\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3067\u6574\u5099\u3057\u305f\u308a\u5229\u7528\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306b\u3001\u666e\u6bb5\u5e38\u7528\u3057\u3066\u3044\u308b\u30a8\u30c7\u30a3\u30bf vim \u306e\u30d5\u30eb\u30bb\u30c3\u30c8\u3092\u5c0e\u5165\u3057\u3066\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u30de\u30a6\u30b9\u306e\u30af\u30ea\u30c3\u30af\u3067\u52dd\u624b\u306b\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u306b\u306a\u3063\u3066\u3057\u307e\u3046<\/h4>\n\n\n\n<p>\u30de\u30a6\u30b9\u3092\u4f7f\u7528\u3057\u3066\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u30de\u30a6\u30b9\u306e\u30af\u30ea\u30c3\u30af\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u306e\u306a\u3044\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u306b\u52dd\u624b\u306b\u79fb\u884c\u3057\u3066\u3057\u307e\u3046\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u8a2d\u5b9a\u304c\u6709\u308b\u3088\u3046\u306a\u306e\u3067\u305d\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>vim \u306e\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u304c\u3001\u5404\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb .vimrc \u306b\u3001\u546a\u6587\u306e\u3088\u3046\u306a\uff11\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n<pre>$ cat .vimrc\nset mouse-=a\n<\/pre>\n\n\n<h4 class=\"wp-block-heading\">\u30b3\u30de\u30f3\u30c9\u306e\u5c65\u6b74\u3092\u78ba\u8a8d\u3067\u304d\u308b\u74b0\u5883\u3078<\/h4>\n\n\n\n<p style=\"font-size:1px\">\u3064\u3044\u3067\u306b\u6a19\u6e96\u306e\u30b7\u30a7\u30eb bash \u306e\u8a2d\u5b9a\u306b\u3082\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u52a0\u3048\u3066\u304a\u304d\u307e\u3059\u3002\u901a\u5e38\u306e\u30b7\u30a7\u30eb\u3068\u3057\u3066\u8d77\u52d5\u3055\u308c\u308b bash \u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b .bashrc \u3068\u3057\u3066\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8272\u3005\u306a\u8a2d\u5b9a\u306e\u96db\u5f62\u304c\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u6709\u52b9\u306b\u3057\u3066\u3001\u518d\u8d77\u52d5\u3059\u308b\u3060\u3051\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<pre><span style=\"color: #333399;\"># don't put duplicate lines or lines starting with space in the history.\n# See bash(1) for more options<\/span>\n<span style=\"color: #00ccff;\">HISTCONTROL<\/span>=ignorespace\n\n<span style=\"color: #333399;\"># append to the history file, don't overwrite it<\/span>\nshopt <span style=\"color: #800080;\">-s<\/span> histappend\n\n<span style=\"color: #333399;\"># for setting history length see HISTSIZE and HISTFILESIZE in bash(1)<\/span>\n<span style=\"color: #00ccff;\">HISTSIZE<\/span>=<span style=\"color: #ff0000;\">100000<\/span>\n<span style=\"color: #00ccff;\">HISTFILESIZE<\/span>=<span style=\"color: #ff0000;\">100000<\/span>\n\n<span style=\"color: #333399;\"># check the window size after each command and, if necessary,\n# update the values of LINES and COLUMNS.<\/span>\nshopt <span style=\"color: #800080;\">-s<\/span> checkwinsize\n\n   <span style=\"color: #808080;\">\u301c\u301c\u6240\u3005\u7701\u7565\u3057\u3066\u307e\u3059<\/span>\n    <span style=\"color: #993300;\">alias<\/span> <span style=\"color: #00ccff;\">ls<\/span><span style=\"color: #993300;\">=<\/span><span style=\"color: #ff0000;\">'ls --color=auto'<\/span>\n    <span style=\"color: #333399;\">#alias dir='dir --color=auto'\n    #alias vdir='vdir --color=auto'<\/span>\n\n    <span style=\"color: #993300;\">alias<\/span> <span style=\"color: #00ccff;\">grep<\/span><span style=\"color: #993300;\">=<\/span><span style=\"color: #ff0000;\">'grep --color=auto'<\/span>\n    <span style=\"color: #993300;\">alias<\/span> <span style=\"color: #00ccff;\">fgrep<\/span><span style=\"color: #993300;\">=<\/span><span style=\"color: #ff0000;\">'fgrep --color=auto'<\/span>\n    <span style=\"color: #993300;\">alias<\/span> <span style=\"color: #00ccff;\">egrep<\/span><span style=\"color: #993300;\">=<\/span><span style=\"color: #ff0000;\">'egrep --color=auto'<\/span>\n\n<span style=\"color: #333399;\"># some more ls aliases<\/span>\n<span style=\"color: #993300;\">alias<\/span> <span style=\"color: #00ccff;\">ll<\/span><span style=\"color: #993300;\">=<\/span><span style=\"color: #ff0000;\">'ls -l'<\/span>\n<span style=\"color: #993300;\">alias<\/span> <span style=\"color: #00ccff;\">la<\/span><span style=\"color: #993300;\">=<\/span><span style=\"color: #ff0000;\">'ls -A'<\/span>\n<span style=\"color: #993300;\">alias<\/span> <span style=\"color: #00ccff;\">l<\/span>=<span style=\"color: #ff0000;\">'ls -CF'<\/span>\n   <span style=\"color: #808080;\">\u301c\u301c\u6240\u3005\u7701\u7565\u3057\u3066\u307e\u3059<\/span>\n<span style=\"color: #993300;\">export<\/span> <span style=\"color: #00ccff;\">HISTTIMEFORMAT<\/span>=<span style=\"color: #ff0000;\">'%F %T '<\/span>\n<span style=\"color: #993300;\">export<\/span> <span style=\"color: #00ccff;\">PROMPT_COMMAND<\/span>=<span style=\"color: #ff0000;\">'history -a; history -c; history -r'<\/span> <span style=\"color: #333399;\"># \u5c65\u6b74\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u53cd\u6620\n<\/span><\/pre>\n\n\n<p>\u8272\u3005\u306a\u8a2d\u5b9a\u5024\u3092\u8a66\u3057\u3066\u307f\u306a\u304c\u3089\u3001\u90fd\u5ea6\u30ab\u30c3\u30c8\u30a2\u30f3\u30c9\u30c8\u30e9\u30a4\u3057\u3066\u307f\u3066\u99b4\u67d3\u3080\u3082\u306e\u3092\u6b8b\u305b\u3070\u826f\u3044\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff18\uff0e\u898f\u5b9a\u5024\u306e pi \u30e6\u30fc\u30b6\u30fc\u3092 sunao \u306b\u7f6e\u304d\u63db\u3048<\/h3>\n\n\n\n<p>\u4eca\u307e\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u540d sunao \u3092\u8907\u6570\u306e\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u3068\u7d71\u4e00\u3057\u3066\u4f5c\u696d\u3059\u308b\u306e\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e pi \u30e6\u30fc\u30b6\u30fc\u306e\u307e\u307e\u3067\u306f\u8272\u3005\u3068\u652f\u969c\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081 uid:1000 \u3092 pi \u304b\u3089 sunao \u306b\u5165\u66ff\u3048\u3066\u3001pi \u306f 1001 \u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u95a2\u4fc2\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u5909\u66f4\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<ul><li>vipw \/ vipw -s<\/li><li>vigr \/ vigr -s<\/li><li>visudo<\/li><\/ul>\n\n\n<pre># vipw\n    <span style=\"color: #999999;\">\u301c\u301c\u524d\u5f8c\u7701\u7565 \u8a72\u5f53\u90e8\u5206\u306e\u307f\u301c\u301c<\/span>\nsunao:x:1000:1000:,,,:\/home\/sunao:\/bin\/bash\npi:x:1001:1001:,,,:\/home\/pi:\/bin\/bash\n    <span style=\"color: #999999;\">\u301c\u301c\n<\/span><\/pre>\n\n\n<p>:pi \u304b\u3089 :sunao \u306b\u7f6e\u63db\u3059\u308b\u5834\u5408\u306f\u3001vi\u30a8\u30c7\u30a3\u30bf\u5185\u3067\u306e\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3067\u3001 <span class=\"has-inline-color has-medium-pink-color\">:%s\/:pi\/:sunao\/g<\/span> \u306e\u3088\u3046\u306b\u884c\u3046\u3068\u4e00\u62ec\u3067\u7f6e\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff19\uff0e\u30ea\u30e2\u30fc\u30c8\u8a8d\u8a3c\u306e\u9375\u751f\u6210<\/h3>\n\n\n\n<p>ssh \u3092\u5229\u7528\u3057\u3066\u30ea\u30e2\u30fc\u30c8\u4f5c\u696d\u3092\u884c\u3046\u306e\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\u306e\u8a8d\u8a3c\u306f\u7169\u308f\u3057\u3044\u306e\u3068\u3001\u5916\u90e8\u304b\u3089\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u7e70\u308a\u8fd4\u3057\u30c1\u30e3\u30ec\u30f3\u30b8\u3055\u308c\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u79d8\u5bc6\u9375\u3068\u516c\u958b\u9375\u3092\u751f\u6210\u3057\u3066\u304a\u4e92\u3044\u306b\u63a5\u7d9a\u3059\u308b\u74b0\u5883\u3092\u6574\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a\u3059\u308b\u5074\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001\u63a5\u7d9a\u3055\u308c\u308b\u5074\u3092\u30b5\u30fc\u30d0\u30fc\u3068\u547c\u3073\u3001\u8003\u3048\u65b9\u3068\u3057\u3066\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u3001ssh-keygen \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b .ssh \u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3066\u3001\u305d\u306e\u4e2d\u306b\u79d8\u5bc6\u9375\u3068\u516c\u958b\u9375\u306e\u30da\u30a2\u304c\u751f\u6210\u3055\u308c\u3066\u7f6e\u304b\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u9375\u306e\u751f\u6210\u4f8b<\/h4>\n\n\n\n<p>\u30e6\u30fc\u30b6\u30fc\u540d: test \u3067 rsa \u9375\u3092\u751f\u6210\u3057\u3066\u3001\u751f\u6210\u3055\u308c\u305f .ssh \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002 id_rsa \u304c\u79d8\u5bc6\u9375\u3067\u3001id_rsa.pub \u304c\u516c\u958b\u9375\u306b\u306a\u308a\u307e\u3059\u3002\u516c\u958b\u9375\u306e\u5185\u5bb9\u30a4\u30e1\u30fc\u30b8\u3082\u4f8b\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n<pre>test@working:~$ ssh-keygen -t rsa\nGenerating public\/private rsa key pair.\nEnter file in which to save the key (\/home\/test\/.ssh\/id_rsa): \nCreated directory '\/home\/test\/.ssh'.\nEnter passphrase (empty for no passphrase): \nEnter same passphrase again: \nYour identification has been saved in \/home\/test\/.ssh\/id_rsa.\nYour public key has been saved in \/home\/test\/.ssh\/id_rsa.pub.\nThe key fingerprint is:\nSHA256:WgJ+bZ4WB2zKR8DqhtCeinpQlLgyTtfdCac\/OnGnQFw test@working\nThe key's randomart image is:\n+---[RSA 2048]----+\n| . . ..          |\n|. o   .+ E       |\n| +  o.o @ .      |\n|=.oo.+ X +       |\n|+=.+. * S .      |\n|..+ o. X B .     |\n|.o .  . O +      |\n|o .    + .       |\n|o.      .        |\n+----[SHA256]-----+\n\n\ntest@working:~$ ls -al .ssh\n\u5408\u8a08 16\ndrwx------ 2 test test 4096  4\u6708 13 15:47 .\ndrwxr-xr-x 3 test test 4096  4\u6708 13 15:47 ..\n-rw------- 1 test test 1823  4\u6708 13 15:47 id_rsa\n-rw-r--r-- 1 test test  394  4\u6708 13 15:47 id_rsa.pub\n\n\ntest@working:~$ cat .ssh\/id_rsa.pub\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8TsyIMEyb6OSY3V6uqX+kzlcuHowJImBIseyoJcRgSIcJvGtECVxVg9UjN41elMsF213ycDSjOpwnvDbFERfRqdxdyZaqehPO1+sRamgzTl6lzjSwFJIThwkcOM4ybNYHzqiNqKAxnOPgA5\/HzJTBQINvmESkW8J4NbIrkjG6QsL2HOffC2ssnunFdvgeFPLSlxUi4mmdeuavX\/F0dIa4IfTojirS6l8K9bKNQQ7j8HgaXBfZmIHpG\/6iOnl+NvK\/dQ53RGG0TVdrfEwxNzhdMVZ5mSPOpwuIs5gnYb3Of4sW6fc2boGr5lMSNx\/7NrXzE6YDj1kpKvD1H7dPEfBP test@working\n<\/pre>\n\n\n<h4 class=\"wp-block-heading\">\u9375\u8a8d\u8a3c\u3067\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306b\u306f<\/h4>\n\n\n\n<p>\u9375\u3092\u751f\u6210\u3057\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u30ea\u30e2\u30fc\u30c8\u3067\u63a5\u7d9a\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u5074\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e .ssh \u306b\u7f6e\u304b\u308c\u305f authorized_keys \u30d5\u30a1\u30a4\u30eb\u306b\u751f\u6210\u3057\u305f\u516c\u958b\u9375\u306e\u60c5\u5831\u3092\u8ffd\u52a0\u3067\u4e38\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u3082\u3057\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3051\u308c\u3070\u65b0\u898f\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>authorized_keys \u30d5\u30a1\u30a4\u30eb\u5185\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u308b\u516c\u958b\u9375\u3068\u30da\u30a2\u306b\u306a\u308b\u79d8\u5bc6\u9375\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u304c\u9375\u8a8d\u8a3c\u3067\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u8ab2\u984c\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u79d8\u5bc6\u9375\u3092\u6d41\u7528\u30b3\u30d4\u30fc\u3057\u3066\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u751f\u6210\u3059\u308b\u9375\u306b\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092\u542b\u3081\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u304c\u3001\u5e38\u6642\u7a3c\u50cd\u3059\u308b\u7279\u5b9a\u306e\u30b5\u30fc\u30d0\u30fc\u540c\u58eb\u3067\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u7b49\u3092 rsync \u30b3\u30de\u30f3\u30c9\u7b49\u3092\u5229\u7528\u3057\u3066\u81ea\u52d5\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b3\u30d4\u30fc\u3055\u305b\u308b\u3088\u3046\u306a\u4f7f\u3044\u65b9\u3067\u306f\u3001\u304a\u4e92\u3044\u306e root \u30e6\u30fc\u30b6\u30fc\u304c\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u7121\u3057\u3067\u8a8d\u8a3c\u3067\u304d\u308c\u3070\u4eba\u624b\u4ecb\u5165\u306e\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u9375\u8a8d\u8a3c\u3067\u304d\u308c\u3070\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u7981\u6b62\u3078<\/h4>\n\n\n\n<p>\u9375\u8a8d\u8a3c\u3067\u306e\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u306e\u78ba\u8a8d\u304c\u3067\u304d\u308c\u3070\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u8105\u5a01\u306b\u306a\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092\u7701\u7565\u3057\u3066\u751f\u6210\u3057\u305f\u9375\u8a8d\u8a3c\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u308b\u3053\u3068\u3082\u306a\u304f\u30b9\u30c8\u30ec\u30b9\u7121\u304f\u4f5c\u696d\u304c\u9032\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n<pre>$ sudo vi \/etc\/ssh\/sshd_config\n    <span style=\"color: #999999;\">\u301c\u301c\u8a72\u5f53\u3059\u308b\u90e8\u5206\u306e\u8fd1\u304f\u306e\u307f\u8868\u793a<\/span>\n#IgnoreRhosts yes\n\n# To disable tunneled clear text passwords, change to no here!\n<span style=\"color: #ff9900;\">PasswordAuthentication<\/span> <span style=\"color: #33cccc;\">no<\/span>\n#PermitEmptyPasswords no\n\n# Change to yes to enable challenge-response passwords (beware issues with\n# some PAM modules and threads)\n<span style=\"color: #ff9900;\">ChallengeResponseAuthentication<\/span> <span style=\"color: #33cccc;\">no<\/span>\n\n# Kerberos options\n    <span style=\"color: #999999;\">\u301c\u301c<\/span><\/pre>\n\n\n<h3 class=\"wp-block-heading\">\uff11\uff10\uff0e\u30ea\u30e2\u30fc\u30c8\u3067\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306b byobu \u8a2d\u5b9a<\/h3>\n\n\n\n<p>\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u306e\u74b0\u5883\u3067\u306f\u610f\u56f3\u3057\u306a\u3044\u8272\u3005\u306a\u72b6\u6cc1\u3067\u63a5\u7d9a\u304c\u5207\u308c\u307e\u3059\u3002\u3067\u3082 byobu \u3092\u5c0e\u5165\u3057\u3066\u4f5c\u696d\u3057\u3066\u3044\u308c\u3070\u3001\u4eee\u306b\u63a5\u7d9a\u304c\u5207\u308c\u3066\u3082\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u306f\u51e6\u7406\u304c\u7d99\u7d9a\u3057\u305f\u307e\u307e\u3067\u3001\u518d\u3073\u63a5\u7d9a\u3059\u308c\u3070\u4ee5\u524d\u306e\u72b6\u614b\u306b\u5fa9\u5e30\u3057\u305f\u308a\u3001\u5207\u65ad\u3057\u305f\u5f8c\u3082\u5b9f\u884c\u3057\u3066\u3044\u305f\u7d50\u679c\u3092\u5f8c\u304b\u3089\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8da3\u5473\u3084\u8da3\u5411\u7684\u306a\u597d\u307f\u306e\u554f\u984c\u3067\u3057\u3087\u3046\u304b\u3001byobu \u3068 screen \u306e\u7d44\u5408\u305b\u304c\u597d\u304d\u3067\u3001\u4eee\u60f3\u7aef\u672b\u306e byobu \u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u30ad\u30fc\u5272\u308a\u5f53\u3066 (\u30a8\u30b9\u30b1\u30fc\u30d7\u6587\u5b57\u3068\u547c\u3073\u307e\u3059) \u3092 Ctrl (\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb) +B \u30ad\u30fc\u306b\u3059\u308b\u306e\u304c\u597d\u307f\u3067\u305d\u308c\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7c21\u5358\u306a\u64cd\u4f5c\u3067\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a<\/h4>\n\n\n\n<p>byobu \u306f\u3001\u4f7f\u3044\u6163\u308c\u308b\u3068\u624b\u653e\u305b\u306a\u3044\u6a5f\u80fd\u3067\u3001\u30ea\u30e2\u30fc\u30c8\u306e\u4eee\u60f3\u7aef\u672b\u304b\u3089 ssh \u63a5\u7d9a\u3059\u308b\u3068\u3001\u4ee5\u524d\u306b\u5207\u65ad\u3057\u305f\u6642\u306e\u753b\u9762\u306b\u623b\u3063\u3066\u64cd\u4f5c\u306e\u7d99\u7d9a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u518d\u3073 ssh \u63a5\u7d9a\u3092\u7d42\u4e86\u3057\u3066\u5207\u65ad\u3059\u308b\u306e\u3082\u3001\u5358\u306b [F6]\u30ad\u30fc\u3092\u62bc\u4e0b\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u8a2d\u5b9a\u306e\u624b\u9806<\/h5>\n\n\n\n<p>\u307e\u305a ssh \u3067\u30ea\u30e2\u30fc\u30c8\u5074\u304b\u3089\u3001\u30b5\u30fc\u30d0\u30fc\u306e ip\u30a2\u30c9\u30ec\u30b9 (\u3068\u5fc5\u8981\u306a\u3089\u30e6\u30fc\u30b6\u30fc\u540d) \u3092\u6307\u5b9a\u3057\u3066\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002\u30ed\u30b0\u30a4\u30f3\u306f\u81ea\u52d5\u7684\u306b\u884c\u308f\u308c\u308b\u305f\u3081\u3001\u305d\u306e\u307e\u307e\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u5074\u30e6\u30fc\u30b6\u30fc\u306e\u6253\u9375\u5f85\u3061\u3068\u306a\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u306b byobu [Enter] \u3068\u6253\u9375\u3057\u3066 byobu \u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u6a19\u6e96\u3067\u306f tmux \u3068\u9023\u643a\u3057\u3066\u3044\u308b\u306e\u3067\u3001 byobu+tmux \u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306b\u9078\u629e\u3057\u3066 byobu+screen \u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre>$ byobu-select-backend \n\nSelect the byobu backend:\n  1. tmux\n  2. screen\n\nChoose 1-2 [1]: 2\n<\/pre>\n\n\n<p>\u30a8\u30b9\u30b1\u30fc\u30d7\u6587\u5b57\u3068\u547c\u3076\u4eee\u60f3\u7aef\u672b byobu \u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u6587\u5b57\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u753b\u9762\u306f\u5d29\u308c\u307e\u3059\u304c\u3001[F9]\u30ad\u30fc\u306e\u62bc\u4e0b\u3067\u6b21\u306e\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3001\u305d\u3053\u3067 Change escape sequence \u3092\u9078\u629e\u3059\u308b\u3068\u30a8\u30b9\u30b1\u30fc\u30d7\u6587\u5b57\u306e\u5909\u66f4\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f A \u304b\u3089 B \u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002  \u21d2 Escape key: ctrl-B_<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524  Byobu Configuration Menu \u2502                                                                      \u2502                                                        \n\u2502                                                                      \u2502                      \n\u2502     Help -- Quick Start Guide                                        \u2502                      \n\u2502     Toggle status notifications                                      \u2502                      \n\u2502     Change escape sequence                                           \u2502                      \n\u2502     Byobu currently launches at login (toggle off)                   \u2502                      \n\u2502                                                                      <exit>\u2502                      \n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500                                                                       <\/exit><\/pre>\n\n\n\n<p>\u6700\u7d42\u7684\u306b\u5909\u66f4\u3055\u308c\u305f\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u6b21\u306e\u5185\u5bb9\u3067\u3059\u3002<\/p>\n\n\n<pre>$ cat .byobu\/keybindings\nsource $BYOBU_PREFIX\/share\/byobu\/keybindings\/common\nbindkey \"^B\"\nescape \"^Bb\"\nregister x \"^B\"\n<\/pre>\n\n\n<p>\u3053\u306e\u307e\u307e\u3067\u306f\u3001ssh \u3067\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3082\u81ea\u52d5\u7684\u306b byobu \u306f\u8d77\u52d5\u3057\u306a\u3044\u306e\u3067\u3001\u81ea\u52d5\u8d77\u52d5\u3068\u81ea\u52d5\u7d42\u4e86\u3092\u6709\u52b9\u306b\u3059\u308b\u5909\u66f4\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n<pre>$ byobu-enable\n\nThe Byobu window manager will be launched automatically at each text login.\n\nTo disable this behavior later, just run:\n  byobu-disable\n\n<\/pre>\n\n\n<p>\u3053\u308c\u3067 byobu \u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff11\uff11\uff0e\u30e1\u30fc\u30eb\u8ee2\u9001\u3067\u304d\u308b\u74b0\u5883\u3092\u6574\u5099<\/h3>\n\n\n\n<p>\u8a2d\u5b9a\u7528\u306e\u96db\u5f62\u304b\u3089\u30b3\u30d4\u30fc\u3057\u3066\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb main.cf \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4ee5\u524d\u306e\u60c5\u5831\u3067\u30a2\u30ca\u30a6\u30f3\u30b9\u3055\u308c\u3066\u3044\u305f\u96db\u5f62\u306e\u7f6e\u304d\u5834\u6240\u4ee5\u5916\u306b\u3001\u6700\u65b0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f <strong>.proto<\/strong> \u306e\u6587\u5b57\u5217\u3092\u4ed8\u52a0\u3057\u305f\u96db\u5f62\u304c\u540c\u5305\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u96db\u5f62\u3092\u30b3\u30d4\u30fc\u3057\u3066\u9805\u76ee\u306e\u8a2d\u5b9a<\/h4>\n\n\n<pre>$ <strong>sudo cp \/etc\/postfix\/main.cf.proto \/etc\/postfix\/main.cf <\/strong><span style=\"color: #808080;\">  # \u2026 \u96db\u5f62\u3092\u30b3\u30d4\u30fc<\/span>\n$ <strong>sudo vi \/etc\/postfix\/main.cf<\/strong>\n    <span style=\"color: #999999;\">\u301c\u301c\u30b3\u30e1\u30f3\u30c8\u3082\u633f\u5165\u3055\u308c\u3066\u3044\u3066\u9577\u3044\u306e\u3067\u6709\u52b9\u884c\u306e\u307f<\/span>\n<br \/><span style=\"color: #ff6600;\">compatibility_level<\/span> = <span style=\"color: #ff0000;\">2<\/span>\n<span style=\"color: #ff6600;\">command_directory<\/span> = \/usr\/sbin\n<span style=\"color: #ff6600;\">daemon_directory<\/span> = \/usr\/lib\/postfix\/sbin\n<span style=\"color: #ff6600;\">data_directory<\/span> = \/var\/lib\/postfix\n<strong><span style=\"color: #ff6600;\">mail_owner<\/span> = pos<\/strong><strong>tfix <br \/><span style=\"color: #ff6600;\">myhostname<\/span> = working.sunao-mita.pgw.jp <br \/><span style=\"color: #ff6600;\">mydomain<\/span> = sunao-mita.pgw.jp <br \/><span style=\"color: #ff6600;\">myorigin<\/span> = <span style=\"color: #993366;\">$myhostname<\/span> <br \/><span style=\"color: #ff6600;\">inet_interfaces<\/span> = <span style=\"color: #00ccff;\">all<\/span> <br \/><span style=\"color: #ff6600;\">mydestination<\/span> = <span style=\"color: #800080;\">$myhostname<\/span>, localhost.<span style=\"color: #993366;\">$mydomain<\/span>, localhost, <span style=\"color: #993366;\">$mydomain<\/span> <span style=\"color: #ff6600;\">local_recipient_maps<\/span> = <span style=\"color: #ff0000;\">unix<\/span>:passwd.byname <span style=\"color: #993366;\">$alias_maps<\/span><\/strong> <span style=\"color: #ff6600;\">unknown_local_recipient_reject_code<\/span> = <span style=\"color: #ff0000;\">550<\/span> <br \/><strong><span style=\"color: #ff6600;\">mynetworks<\/span> = <span style=\"color: #ff0000;\">127.0.0.0<\/span>\/<span style=\"color: #ff0000;\">8<\/span>, [::ffff:<span style=\"color: #ff0000;\">127.0.0.0<\/span>]\/<span style=\"color: #ff0000;\">104<\/span>, [::<span style=\"color: #ff0000;\">1<\/span>]\/<span style=\"color: #ff0000;\">128<\/span>, <span style=\"color: #ff0000;\">192.168.11.0<\/span>\/<span style=\"color: #ff0000;\">24<\/span>, [<span style=\"color: #ff0000;\">240d<\/span>:1a:<span style=\"color: #ff0000;\">34d<\/span>:7f00::<span style=\"color: #ff0000;\">0<\/span>]\/<span style=\"color: #ff0000;\">64<\/span> <br \/><span style=\"color: #ff6600;\">relayhost<\/span> = [<span style=\"color: #ff0000;\">smtp<\/span>.nifty.com]:<span style=\"color: #ff0000;\">587<\/span> <br \/><\/strong><strong><span style=\"color: #ff6600;\">alias_maps<\/span> = <span style=\"color: #00ff00;\">hash<\/span>:\/etc\/aliases <br \/><span style=\"color: #ff6600;\">alias_database<\/span> = <span style=\"color: #00ff00;\">hash<\/span>:\/etc\/aliases <br \/><span style=\"color: #ff6600;\">home_mailbox<\/span> = Maildir\/ <br \/><span style=\"color: #ff6600;\">smtpd_banner<\/span> = <span style=\"color: #993366;\">$myhostname<\/span> ESMTP <span style=\"color: #800080;\">$mail_name<\/span> (Raspbian)<\/strong> <br \/><span style=\"color: #ff6600;\">debugger_command<\/span> = <br \/>     PATH=\/bin:\/usr\/bin:\/usr\/<span style=\"color: #ff0000;\">local<\/span>\/bin:\/usr\/X11R6\/bin <br \/>     ddd <span style=\"color: #993366;\">$daemon_directory<\/span>\/<span style=\"color: #993366;\">$process_name $process_id<\/span> &amp; <span style=\"color: #00ccff;\">sleep<\/span> <span style=\"color: #ff0000;\">5<\/span> <br \/><strong><span style=\"color: #ff6600;\">sendmail_path<\/span> = \/usr\/sbin\/postfix <br \/><span style=\"color: #ff6600;\">newaliases_path<\/span> = \/usr\/bin\/newaliases <br \/><span style=\"color: #ff6600;\">mailq_path<\/span> = \/usr\/bin\/mailq <br \/><span style=\"color: #ff6600;\">setgid_group<\/span> = <span style=\"color: #993366;\">postdrop<br \/><\/span><span style=\"color: #333399;\">#html_directory =<\/span><\/strong><br \/><strong><span style=\"color: #333399;\">#manpage_directory =<\/span><\/strong><br \/><strong><span style=\"color: #333399;\">#sample_directory =<\/span><\/strong><br \/><strong><span style=\"color: #333399;\">#readme_directory =<\/span><\/strong> <br \/><strong><span style=\"color: #ff6600;\">inet_protocols<\/span> = <span style=\"color: #00ccff;\">ipv4<\/span>, <span style=\"color: #00ccff;\">ipv6<\/span> <span style=\"color: #ff6600;\"><br \/><br \/><span style=\"color: #000080;\"># \u6700\u7d42\u884c\u3078\u8ffd\u8a18\uff1a\u9001\u53d7\u4fe1\u30e1\u30fc\u30eb\u30b5\u30a4\u30ba\u309210M\u306b\u5236\u9650<\/span><br \/>message_size_limit<\/span> = <span style=\"color: #ff0000;\">10485760<\/span> <span style=\"color: #ff6600;\"><br \/><br \/><span style=\"color: #000080;\"># \u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u30b5\u30a4\u30ba\u30921G\u306b\u5236\u9650<\/span><br \/>mailbox_size_limit<\/span> = <span style=\"color: #ff0000;\">1073741824<br \/><br \/><span style=\"color: #000080;\"># SMTP-Auth \u8a2d\u5b9a<\/span><br \/><br \/><\/span><span style=\"color: #ff6600;\">smtp_sasl_auth_enable<\/span> =<span style=\"color: #ff0000;\"> yes<br \/><\/span><span style=\"color: #ff6600;\">smtp_sasl_password_maps<\/span> = <span style=\"color: #00ff00;\">hash<\/span>:\/etc\/postfix\/nifty.auth<span style=\"color: #ff0000;\"><br \/><\/span><span style=\"color: #ff6600;\">smtp_sasl_security_options<\/span> = <span style=\"color: #800080;\">noanonymous<\/span><span style=\"color: #ff0000;\"><br \/><br \/><\/span><\/strong><strong><span style=\"color: #ff6600;\">smtpd_sasl_type<\/span> = dovecot <br \/><span style=\"color: #ff6600;\">smtpd_sasl_path<\/span> = private\/auth <br \/><span style=\"color: #ff6600;\">smtpd_sasl_auth_enable<\/span> = <span style=\"color: #ff0000;\">yes<\/span> <br \/><span style=\"color: #ff6600;\">smtpd_sasl_security_options<\/span> = <span style=\"color: #993366;\">noanonymous<\/span> <br \/><span style=\"color: #ff6600;\">smtpd_sasl_local_domain<\/span> = <span style=\"color: #993366;\">$myhostname<\/span> <br \/><span style=\"color: #ff6600;\">smtpd_recipient_restrictions<\/span> = <span style=\"color: #00ccff;\">permit_mynetworks<\/span>,<span style=\"color: #00ccff;\">permit_auth_destination<\/span>, <span style=\"color: #00ccff;\">permit_sasl_authenticated<\/span>,<span style=\"color: #00ccff;\">reject<\/span> <\/strong><\/pre>\n\n\n<p>\u30b3\u30d4\u30fc\u3057\u305f\u6642\u70b9\u3067\u6700\u521d\u304b\u3089\u6709\u52b9\u3068\u306a\u3063\u3066\u3044\u308b\u884c\u3068\u3001\u66f4\u65b0\u3084\u633f\u5165\u3057\u305f\u884c\u3092\u62bd\u51fa\u3057\u3066\u3044\u307e\u3059\u3002\u8ffd\u52a0\u3084\u66f4\u65b0\u3057\u305f\u884c\u306f\u3001\u8a72\u5f53\u884c\u306e\u6587\u5b57\u5217\u3092\u592a\u304f\u3057\u3066\u8868\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">@Nifty \u3067\u30ea\u30ec\u30fc\u3059\u308b\u305f\u3081\u306e\u8a8d\u8a3c\u7d44\u8fbc\u307f<\/h4>\n\n\n\n<p>@Nifty \u306b\u4f5c\u6210\u3057\u305f\u30e1\u30fc\u30eb\u3092\u30ea\u30ec\u30fc\u3057\u307e\u3059\u304c\u3001\u9001\u4fe1\u3059\u308b\u6642\u70b9\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3088\u308b\u8a8d\u8a3c\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306a nifty.auth \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u5909\u63db\u3059\u308b\u3068 nifty.auth.db \u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<pre>$ sudo vi \/etc\/postfix\/nifty.auth\n[smtp.nifty.com]:587 <strong>--userid--<\/strong>:<strong>--password--<\/strong>\n\nsudo postmap \/etc\/postfix\/nifty.auth\n\n\n$ ls -al \/etc\/postfix\/\n\u5408\u8a08 176\ndrwxr-xr-x   5 root root  4096  4\u6708 15 17:06 .\ndrwxr-xr-x 121 root root 12288  4\u6708 13 16:12 ..\n-rw-r--r--   1 root root    60  3\u6708 22 09:42 dynamicmaps.cf\ndrwxr-xr-x   2 root root  4096  1\u6708 15 23:05 dynamicmaps.cf.d\n-rw-r--r--   1 root root 28057  4\u6708 15 16:06 main.cf\n-rw-r--r--   1 root root 27122  3\u6708 22 09:42 main.cf.proto\nlrwxrwxrwx   1 root root    31  3\u6708 22 09:42 makedefs.out -&gt; \/usr\/share\/postfix\/makedefs.out\n-rw-r--r--   1 root root  6208  3\u6708 22 09:42 master.cf\n-rw-r--r--   1 root root  6208  3\u6708 22 09:42 master.cf.proto\n<strong>-rw-r--r--   1 root root    41  4\u6708 15 17:06 nifty.auth\n-rw-r--r--   1 root root 12288  4\u6708 15 17:06 nifty.auth.db<\/strong>\n-rwxr-xr-x   1 root root 29872  1\u6708 15 23:05 post-install\n-rw-r--r--   1 root root 10268  1\u6708 15 23:05 postfix-files\ndrwxr-xr-x   2 root root  4096  1\u6708 15 23:05 postfix-files.d\n-rwxr-xr-x   1 root root 11532  1\u6708 15 23:05 postfix-script\ndrwxr-xr-x   2 root root  4096  1\u6708 15 23:05 sasl\n<\/pre>\n\n\n<p>\u540c\u3058\u5185\u5bb9\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u63db\u3057\u3066\u3082\u3001\u5b9f\u884c\u7d50\u679c\u306f\u540c\u3058\u5185\u5bb9\u306b\u306a\u308b\u306e\u3067\u3001\u3059\u3067\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u8a8d\u8a3c\u30d5\u30a1\u30a4\u30eb\u3092\u4eca\u56de\u306f\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001 <strong>&#8211;userid&#8211;<\/strong> \u306e\u90e8\u5206\u3068 <strong>&#8211;password&#8211;<\/strong> \u306e\u90e8\u5206\u3092 @Nifty \u306b\u63a5\u7d9a\u3057\u3066\u30e1\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306e\u9069\u6b63\u306a\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u7f6e\u304d\u63db\u3048\u3066\u3001\u624b\u9806\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u3067\u8a8d\u8a3c\u7528 db \u306e <strong>nifty.auth.db<\/strong> \u304c\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8272\u3005\u306a\u30e6\u30fc\u30b6\u30fc\u5b9b\u306b\u4f5c\u6210\u3055\u308c\u305f\u30e1\u30fc\u30eb\u3082 root \u306b\u96c6\u7d04<\/h4>\n\n\n\n<p>\u7d9a\u3044\u3066\u5404\u6240\u3067\u767a\u751f\u3057\u305f\u901a\u77e5\u7b49\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u3001\u8ee2\u9001\u3055\u308c\u3066\u304d\u3066 @Nifty \u3078\u96c6\u7d04\u3055\u308c\u3066\u78ba\u8a8d\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3001 aliases \u30d5\u30a1\u30a4\u30eb\u3092\u5b9a\u7fa9\u3057\u3066\u6709\u52b9\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre>$ sudo vi \/etc\/aliases\n\n# See man 5 aliases for format\npostmaster:    root\n\n# \/etc\/aliases\nmailer-daemon: postmaster\nmunin: root\nnobody: root\nhostmaster: root\nusenet: root\nnews: root\nwebmaster: root\nwww: root\nftp: root\nabuse: root\nnoc: root\nsecurity: root\ncsgboxuser: root\nwebadm: root\n\npi: sunao\nroot: sunao\nsunao: sunao.mita@nifty.com\n\n\n$ sudo newaliases\n$ sudo systemctl start postfix.service\n<\/pre>\n\n\n<h4 class=\"wp-block-heading\">\u30e1\u30fc\u30eb\u9001\u4fe1\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f<\/h4>\n\n\n\n<p>\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30c6\u30b9\u30c8\u3092\u3057\u3066\u3082\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u308b\u3088\u3046\u3067\u3001@Nifty \u306b\u306f\u9001\u3089\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u69cb\u7bc9\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u30e9\u30ba\u30d1\u30a4\u3068\u540c\u3058\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u516c\u958b\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u554f\u984c\u306a\u304f\u9001\u4fe1\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u3001\/etc\/postfix \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u6bd4\u3079\u305f\u308a\u3001main.cf \u3068 master.cf \u3092\u540c\u69d8\u306b\u4fee\u6b63\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u540c\u69d8\u306e\u30a8\u30e9\u30fc\u304c\u7d99\u7d9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u5b9f\u7e3e\u306e\u6709\u308b\u30b7\u30b9\u30c6\u30e0\u3068\u69cb\u6210\u3092\u6bd4\u8f03\u3057\u3066\u307f\u308b<\/h5>\n\n\n\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306b\u306f\u3001SASL \u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u305f\u3081 @Nifty \u306e\u8a8d\u8a3c\u6642\u70b9\u306e\u30a8\u30e9\u30fc\u306e\u3088\u3046\u3067\u3059\u3002\u30cd\u30c3\u30c8\u306e\u691c\u7d22\u60c5\u5831\u304b\u3089 <strong>sasl2-bin<\/strong> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u4ee5\u5916\u306b\u3082\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre><span style=\"color: #808080;\">   \u301c\u301c\u69cb\u7bc9\u4e2d\u306e sasl \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30ea\u30b9\u30c8\u301c\u301c<\/span>\n$ sudo apt list --installed | grep sasl\n\nlibg<span style=\"color: #ff0000;\">sasl<\/span>7\/stable,now 1.8.0-8+b1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3001\u81ea\u52d5]\nlib<span style=\"color: #ff0000;\">sasl<\/span>2-2\/stable,now 2.1.27+dfsg-1+deb10u1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]\nli<span style=\"color: #ff0000;\">bsasl<\/span>2-modules-db\/stable,now 2.1.27+dfsg-1+deb10u1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]\n<span style=\"color: #ff0000;\">sasl<\/span>2-bin\/stable,now 2.1.27+dfsg-1+deb10u1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]\n\n   <span style=\"color: #808080;\">\u301c\u301c\u516c\u958b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30ea\u30b9\u30c8\u301c\u301c<\/span>\n$ sudo apt list --installed | grep sasl\n\n<strong>libauthen-<span style=\"color: #ff0000;\">sasl<\/span>-perl\/stable,now 2.1600-1 all [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]<\/strong>\nlibg<span style=\"color: #ff0000;\">sasl<\/span>7\/stable,now 1.8.0-8+b1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3001\u81ea\u52d5]\nlib<span style=\"color: #ff0000;\">sasl<\/span>2-2\/stable,now 2.1.27+dfsg-1+deb10u1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]\nlib<span style=\"color: #ff0000;\">sasl<\/span>2-modules-db\/stable,now 2.1.27+dfsg-1+deb10u1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]\n<strong>lib<span style=\"color: #ff0000;\">sasl<\/span>2-modules\/stable,now 2.1.27+dfsg-1+deb10u1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]<\/strong>\n<span style=\"color: #ff0000;\">sasl<\/span>2-bin\/stable,now 2.1.27+dfsg-1+deb10u1 armhf [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f]\n<\/pre>\n\n\n<p>\u6bd4\u3079\u308b\u3068\u76f8\u9055\u304c\u6709\u308b\u306e\u306f\u660e\u3089\u304b\u3067\u3059\u304c\u3001\u3053\u308c\u304c\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3060\u3063\u305f\u3088\u3046\u3067\u3059\u3002\u9055\u3044\u306e\u3069\u3061\u3089\u304c\u539f\u56e0\u304b\u3001\u4e21\u65b9\u5fc5\u8981\u3060\u3063\u305f\u306e\u304b\u306f\u691c\u8a3c\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u308a\u591a\u5c11\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u76f8\u9055\u3042\u308a<\/h5>\n\n\n\n<p>\u6570\u5e74\u524d\u304b\u3089\u30e9\u30ba\u30d1\u30a4\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u5bb6\u3067\u4f55\u53f0\u7a3c\u50cd\u3055\u305b\u3066\u3044\u307e\u3059\u304c\u3001Raspbian \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u76f8\u9055\u304c\u3042\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u69cb\u6210\u3082\u5c11\u3057\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u6700\u65b0\u306e\u30e9\u30ba\u30d1\u30a4\u306b\u7f6e\u304d\u63db\u3048\u305f\u516c\u958b\u30b5\u30fc\u30d0\u30fc\u3068\u4eca\u56de\u8a2d\u5b9a\u4e2d\u306e\u30e9\u30ba\u30d1\u30a4\u3067\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3 <strong>10<\/strong> \u3067\u3059\u304c\u3001\u4ee5\u524d\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u30d0\u30fc\u30b8\u30e7\u30f3 <strong>9<\/strong> \u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001master.cf \u306b\u95a2\u3057\u3066\u306f\u3001\u96db\u5f62\u306e master.cf.proto \u306e\u5185\u5bb9\u306b\u623b\u3057\u3066\u3082\u5f71\u97ff\u306a\u304f @Nifty \u3067\u306f\u8a8d\u8a3c\u3067\u304d\u3066\u3044\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u30e1\u30fc\u30eb\u306e\u8ee2\u9001\u3092\u7d44\u8fbc\u3080\u3060\u3051\u3067\u30cf\u30de\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\uff13\u65e5\u4ee5\u4e0a\u60a9\u3093\u3067\u3084\u3063\u3068\u306e\u89e3\u6c7a\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff11\uff12\uff0e\u30b7\u30b9\u30c6\u30e0\u30ed\u30b0\u3092\u76e3\u8996\u3059\u308b Logwatch \u306e\u7d44\u8fbc\u307f<\/h3>\n\n\n\n<p>\u30e1\u30fc\u30eb\u8ee2\u9001\u6a5f\u80fd\u3092\u52d5\u4f5c\u3055\u305b\u3089\u308c\u305f\u306e\u3067\u3001\u30ed\u30b0\u3092\u76e3\u8996\u3057\u3066\u30e1\u30fc\u30eb\u3067\u30ec\u30dd\u30fc\u30c8\u3092\u9001\u4fe1\u3067\u304d\u308b\u6a5f\u80fd\u306e\u7d44\u8fbc\u307f\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306f\u6bce\u65e5\u660e\u65b9\u9803\u306b\u5b9f\u884c\u3055\u308c\u3066\u3001\u524d\u65e5\u306e\u8272\u3005\u306a\u51e6\u7406\u306e\u5c65\u6b74\u304b\u3089\u62bd\u51fa\u3057\u305f\u60c5\u5831\u3092\u30ec\u30dd\u30fc\u30c8\u3068\u3057\u3066\u901a\u77e5\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3044\u3064\u3082\u898b\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u7570\u5e38\u306b\u6c17\u304c\u4ed8\u3044\u305f\u6642\u306b\u904e\u53bb\u306e\u30ec\u30dd\u30fc\u30c8\u3092\u898b\u76f4\u3057\u305f\u308a\u3067\u304d\u308b\u306e\u3067\u6709\u52b9\u306a\u6a5f\u80fd\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<pre>$ sudo apt install logwatch\n<\/pre>\n\n\n<h5 class=\"wp-block-heading\">\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u985e\u3068\u540c\u69d8\u306b\u76e3\u8996\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u5b8c\u4e86<\/h5>\n\n\n\n<p>Logwatch \u306b\u3088\u308b\u30e1\u30fc\u30eb\u304c\u3001@Nifty \u306e\u79c1\u5b9b\u306b\u5c4a\u3044\u3066\u3044\u305f\u306e\u3067\u3001\u3084\u3063\u3068\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u306e\u7d44\u8fbc\u307f\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u3084\u3063\u3068\u51fa\u767a\u70b9\u306b\u8fbf\u308a\u7740\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u304b\u3089\u304c\u691c\u8a3c\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u306e\u8a2d\u5b9a\u306e\u59cb\u307e\u308a\u3067\u3059\u3002\u601d\u3063\u3066\u3044\u305f\u3088\u308a\u9577\u304f\u6642\u9593\u304c\u639b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u975e\u529b\u306a\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u3067\u8272\u3005\u306a\u691c\u8a3c\u306f\u7121\u7406 \u3061\u3087\u3063\u3068\u3057\u305f\u691c\u8a3c\u3084\u5b66\u7fd2\u7528\u3068\u3057\u3066\u3001\u30df\u30b9\u3063\u3066\u6b62\u3081\u3066\u3082\u554f\u984c\u306e\u8d77\u3053\u3089\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3001\u6700\u65b0\u306e\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4 Raspberry pi 4 B+ 4GB \u3092\u8cfc\u5165\u3057\u3066\u69cb\u7bc9\u3092\u59cb\u3081\u307e\u3057\u305f\u3002 \u306a\u304a &hellip; <a href=\"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1209\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u5e38\u6642\u7a3c\u50cd\u306e\u691c\u8a3c\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,9,13],"tags":[],"_links":{"self":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1209"}],"collection":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1209"}],"version-history":[{"count":49,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1209\/revisions"}],"predecessor-version":[{"id":1356,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1209\/revisions\/1356"}],"wp:attachment":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1209"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}