{"id":554,"date":"2017-11-11T01:11:47","date_gmt":"2017-11-10T16:11:47","guid":{"rendered":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=554"},"modified":"2017-11-11T01:11:47","modified_gmt":"2017-11-10T16:11:47","slug":"raspi1b-server-setup2","status":"publish","type":"post","link":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=554","title":{"rendered":"\u30e9\u30ba\u30d1\u30a41B \u3067\u5171\u6709\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9 (2\/)"},"content":{"rendered":"<ol>\n<li style=\"padding-left: 30px;\"><span style=\"color: #333399;\">\u79d8\u5bc6\u9375\u3001\u516c\u958b\u9375\u30da\u30a2\u306e\u6271\u3044\u306b\u95a2\u3057\u3066<\/span><\/li>\n<li style=\"padding-left: 30px;\"><span style=\"color: #333399;\">\u30a8\u30c7\u30a3\u30bf vim \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u3001\u30de\u30a6\u30b9\u64cd\u4f5c\u304c\u5909\u308f\u3063\u305f\u3053\u3068\u306e\u5bfe\u51e6<\/span><\/li>\n<li style=\"padding-left: 30px;\"><span style=\"color: #333399;\">pi\u30e6\u30fc\u30b6\u30fc\u3092\u65e2\u8a2d\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u540d\u306b\u7f6e\u304d\u63db\u3048\u308b<\/span><\/li>\n<li style=\"padding-left: 30px;\"><span style=\"color: #333399;\">\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u306e\u5229\u7528\u306a\u306e\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u306e\u56fa\u5b9a\u5316<\/span><\/li>\n<\/ol>\n<p><strong>\u30e9\u30ba\u30d1\u30a41B<\/strong>\u306e\u3053\u308c\u304b\u3089\u306e\u4f5c\u696d\u306f\u3001ssh\u306b\u3088\u308b\u30ea\u30e2\u30fc\u30c8\u306e\u4f5c\u696d\u306b\u306a\u308a\u307e\u3059\u3002\u30db\u30b9\u30c8\u540d\u3092\u542b\u3081\u3066 raspi-config \u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u65e5\u672c\u8a9e\u5316\u3082\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6b21\u306b\u8a18\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>$ ssh pi@192.168.xx.yy\npi@192.168.xx.yy's password:\nLinux rpi1-com2 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l\nThe programs included with the Debian GNU\/Linux system are free software;\nthe exact distribution terms for each program are described in the\nindividual files in \/usr\/share\/doc\/*\/copyright.\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\npermitted by applicable law.\nLast login: Thu Nov  9 23:43:13 2017 from 192.168.xx.zz\n<span style=\"color: #00ff00;\">pi@rpi1-com2<\/span>:<span style=\"color: #0000ff;\">~ $<\/span> date\n2017\u5e74 11\u6708 10\u65e5 \u91d1\u66dc\u65e5 15:02:59 JST\n<span style=\"color: #00ff00;\">pi@rpi1-com2<\/span>:<span style=\"color: #0000ff;\">~ $<\/span> uname -a\nLinux rpi1-com2 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU\/Linux\n<span style=\"color: #00ff00;\">pi@rpi1-com2<\/span>:<span style=\"color: #0000ff;\">~ $\n<\/span><\/pre>\n<hr \/>\n<p>\u9375\u8a8d\u8a3c\u306b\u95a2\u3057\u3066\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u5148\u3068\u306a\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e \/home\/&lt;user&gt; \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b .ssh \u30c7\u30a4\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u5143\u3068\u306a\u308b\u64cd\u4f5c\u5074PC\u306e<strong>\u79d8\u5bc6\u9375\u3068\u516c\u958b\u9375\u30da\u30a2<\/strong>\u306e<strong>\u516c\u958b\u9375<\/strong>\u3092 <em>authorized_keys<\/em> \u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u4f5c\u696d\u7684\u306b\u306f\u3001\u666e\u6bb5 ssh\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4f5c\u696d\u3057\u3066\u3044\u308b\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u5185\u306b\u3001\u65e2\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u5b9f\u7e3e\u306e\u3042\u308b <em>authorized_keys<\/em> \u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u3066\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002.ssh\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068 <em>authorized_keys<\/em> \u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u884c\u6a29\u9650\u306f\u305d\u308c\u305e\u308c 700 \u3068 600 \u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u9593\u3067\u3001cron \/ rsync \u5229\u7528\u306e\u81ea\u52d5\u8ee2\u9001\u306b\u3088\u308b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u884c\u308f\u305b\u308b\u305f\u3081\u306b\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u554f\u984c\u3060\u3068\u4e00\u90e8\u3067\u8a00\u308f\u308c\u308b\u3053\u3068\u3067\u3059\u304c\u3001\u5404\u30b5\u30fc\u30d0\u30fc\u9593\u306eroot\u30e6\u30fc\u30b6\u30fc\u3067\u306e\u4f5c\u696d\u3092\u884c\u308f\u305b\u308b\u305f\u3081\u306b\u3001\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u7121\u3057\u3067\u304a\u4e92\u3044\u306b ssh \u30ed\u30b0\u30a4\u30f3\u304c\u51fa\u6765\u308b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u79d8\u5bc6\u9375\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u3001<strong>\u30e9\u30ba\u30d1\u30a4<\/strong> \u306e root \u3067\u64cd\u4f5c\u3057\u3066\u3001\u9375\u30da\u30a2\u3092\u6b21\u306e\u3088\u3046\u306a\u64cd\u4f5c\u3067\u751f\u6210\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre style=\"color: #006060; background: #ffffcc none repeat scroll 0% 0%;\">$ <strong>sudo su -<\/strong>\n# <strong>ssh-keygen -t rsa<\/strong>\nGenerating public\/private rsa key pair.\nEnter file in which to save the key (\/root\/.ssh\/id_rsa):\nCreated directory '\/root\/.ssh'.\nEnter passphrase (empty for no passphrase):\nEnter same passphrase again:\nYour identification has been saved in \/root\/.ssh\/id_rsa.\nYour public key has been saved in \/root\/.ssh\/id_rsa.pub.\nThe key fingerprint is:\nSHA256:t8RpcOYT6......42uv5updog root@rpi1-com2\nThe key's randomart image is:\n+---[RSA 2048]----+\n| . ...           |\n|o .   . .        |\n|   o + ..+o      |\n+----[SHA256]-----+\n# <strong>ls -al .ssh<\/strong>\n\u5408\u8a08 16\ndrwx------ 2 root root 4096 11\u6708 10 20:25 .\ndrwx------ 3 root root 4096 11\u6708 10 20:25 ..\n-rw------- 1 root root 1675 11\u6708 10 20:25 <span style=\"color: #0000ff;\">id_rsa<\/span>         <span style=\"color: #ff00ff;\">\u2026 \u79d8\u5bc6\u9375<\/span>\n-rw-r--r-- 1 root root  396 11\u6708 10 20:25 <span style=\"color: #0000ff;\">id_rsa.pub<\/span>     <span style=\"color: #ff00ff;\">\u2026 \u516c\u958b\u9375\n<\/span><\/pre>\n<p>\u3053\u3053\u3067\u751f\u6210\u3055\u308c\u305f\u9375\u30da\u30a2\u306f\u3001\u3053\u306e<strong>\u30e9\u30ba\u30d1\u30a41B<\/strong>\u306e root\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u306b ssh\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5834\u5408\u306b\u3001\u76f8\u624b\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u30e6\u30fc\u30b6\u30fc(\u6a5f\u68b0\u7684\u306b\u81ea\u52d5\u63a5\u7d9a\u3059\u308b\u306a\u3089 root) \u306b\u3001\u3053\u3053\u3067\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u516c\u958b\u9375\u3092 <em>.ssh\/authorized_keys<\/em> \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3067\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<br \/>\n\u5f8c\u306f\u540c\u69d8\u306b\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30ed\u30b0\u30a4\u30f3\u3084\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30ed\u30b0\u30a4\u30f3\u306b\u5bfe\u5fdc\u3059\u308b\u3088\u3046\u306b\u3001\u304a\u4e92\u3044\u306e\u516c\u958b\u9375\u3092\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u3001<em> .ssh\/authorized_keys<\/em> \u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u7518\u304f\u306a\u308b\u3068\u306e\u610f\u898b\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u4ed6\u304b\u3089 ssh\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u5229\u7528\u3057\u3066\u3044\u308b\u5b9f\u7e3e\u306e\u3042\u308b\u30b5\u30fc\u30d0\u30fc\u304c\u65e2\u306b\u5b58\u5728\u3057\u3066\u7a3c\u50cd\u3057\u3066\u3044\u308b\u306a\u3089\u3001\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u5185\u306b\u3042\u308b<em> .ssh\/authorized_keys<\/em> \u30d5\u30a1\u30a4\u30eb\u3092\u4e38\u3054\u3068\u30b3\u30d4\u30fc\u3057\u3066\u5165\u308c\u8fbc\u3080\u306e\u3082\u624b\u3063\u53d6\u308a\u65e9\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u3002<br \/>\n\u3042\u308b\u7a0b\u5ea6\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u306b\u5b9f\u7e3e\u304c\u51fa\u6765\u3066\u3001\u554f\u984c\u304c\u7121\u3044\u3088\u3046\u306a\u3089\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5411\u4e0a\u306e\u305f\u3081\u3001\u9375\u8a8d\u8a3c\u3060\u3051\u306e\u8a2d\u5b9a\u306b\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306b\u3088\u308b\u30c1\u30e3\u30ec\u30f3\u30b8\u3092\u51fa\u6765\u306a\u3044\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u6652\u3059\u3068\u60f3\u50cf\u3067\u304d\u306a\u3044\u304f\u3089\u3044\u306e\u6570\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3001\u7d76\u3048\u9593\u306a\u3044\u30c1\u30e3\u30ec\u30f3\u30b8\u3092\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<p>\u64cd\u4f5c\u6027\u304c\u60aa\u3044\u306e\u3067\u5e38\u7528\u3059\u308b\u30a8\u30c7\u30a3\u30bf\u306e\u6a5f\u80fd\u6027\u3092\u4e0a\u3052\u308b\u305f\u3081\u306b\u3001vim \u30a8\u30c7\u30a3\u30bf\u306e\u30d5\u30eb\u30bb\u30c3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"color: #006060; background: #ffffcc none repeat scroll 0% 0%;\">$ <strong>sudo apt install vim<\/strong><\/pre>\n<p>\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u306e\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3092\u6709\u52b9\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n26\u884c1\u6841\u76ee\u306e\u30b3\u30e1\u30f3\u30c8 <strong>\u201d <\/strong>\u3092\u53d6\u308a\u9664\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"color: #006060; background: #ffffcc none repeat scroll 0% 0%;\">$ <strong>sudo vi \/etc\/vim\/vimrc<\/strong>\n......  ......\n<span style=\"color: #00ccff;\">\" Vim5 and later versions support syntax highlighting. Uncommenting the next\n\" line enables syntax highlighting by default.\n<span style=\"color: #0000ff;\"><strong>syntax on<\/strong><\/span>\n\" If using a dark background within the editing area and syntax highlighting\n\" turn on this option as well\n....  ....<\/span><\/pre>\n<p>\u3053\u3053\u307e\u3067\u306e\u8272\u3005\u306a\u7de8\u96c6\u4f5c\u696d\u3067\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u304c\u3001\u6614\u306f\u30a8\u30c7\u30a3\u30bf\u306e vi \u3067\u5207\u308a\u8cbc\u308a\u7de8\u96c6\u3092\u3057\u3066\u3044\u308b\u6642\u306b\u3001\u30de\u30a6\u30b9\u591a\u7528\u3067\u666e\u901a\u306b\u64cd\u4f5c\u3057\u3066\u697d\u306b\u7de8\u96c6\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3044\u3064\u306e\u9803\u304b\u3089\u304b\u30de\u30a6\u30b9\u3067\u306e\u7bc4\u56f2\u9078\u629e\u3084\u30db\u30a4\u30fc\u30eb\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3066\u306e\u8cbc\u4ed8\u3051\u3092\u671f\u5f85\u3057\u3066\u3044\u308b\u306e\u306b\u3001 <span style=\"color: #800080;\"><strong>&#8212; \u30d3\u30b8\u30e5\u30a2\u30eb &#8212;<\/strong> <\/span>\u3068\u4e0b\u90e8\u306b\u8868\u793a\u3055\u308c\u3066\u3001\u671f\u5f85\u3057\u3066\u3044\u305f\u64cd\u4f5c\u304c\u59a8\u5bb3\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\nvi \u306e\u64cd\u4f5c\u4e2d\u306b\u3001\u4eee\u60f3\u7aef\u672b\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u308c\u3070\u7c21\u5358\u306b\u6e08\u3080\u64cd\u4f5c\u306a\u306e\u306b\u3001\u4e00\u6587\u5b57\u3065\u3064\u6253\u9375\u3059\u308b\u308f\u3051\u306b\u3082\u884c\u304b\u305a\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002 \u65e2\u306b vi \u30a8\u30c7\u30a3\u30bf\u3092\u64cd\u4f5c\u4e2d\u306a\u3089\u3001\u30b3\u30ed\u30f3(<span style=\"color: #800080;\"><strong>:<\/strong><\/span>) \u306e\u5f8c\u306b\u30b3\u30de\u30f3\u30c9<span style=\"color: #800080;\"> <strong>set mouse-=a<\/strong><\/span> \u3092\u5165\u529b\u3067\u7121\u52b9\u306b\u51fa\u6765\u308b\u3089\u3057\u3044\u3068\u306e\u3053\u3068\u3001\u3053\u306e\u546a\u6587\u306e\u610f\u5473\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3068\u3066\u3082\u52a9\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\nvim \u30a8\u30c7\u30a3\u30bf\u306e\u901a\u5e38\u5229\u7528\u3067\u5e38\u306b\u30de\u30a6\u30b9\u64cd\u4f5c\u306e<span style=\"color: #0000ff;\">\u30d3\u30b8\u30e5\u30a2\u30eb\u79fb\u884c\u3092\u56de\u907f<\/span>\u3059\u308b\u306b\u306f\u3001\u64cd\u4f5c\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e <strong>~\/.vimrc<\/strong> \u3092\u65b0\u898f\u4f5c\u6210\u3057\u3001\u524d\u8ff0\u306e\u546a\u6587\u3092\u8a18\u8ff0\u3057\u3066\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre style=\"color: #006060; background: #ffffcc none repeat scroll 0% 0%;\">$ <strong>sudo vi ~\/.vimrc\n<span style=\"color: #0000ff;\">set mouse-=a<\/span><\/strong>\n~\n$ <strong>vi ~\/.vimrc\n<span style=\"color: #0000ff;\">set mouse-=a<\/span><\/strong>\n~\n<\/pre>\n<hr \/>\n<p>Raspbian \u306f\u3001\u64cd\u4f5c\u3092\u5168\u3066 pi \u30e6\u30fc\u30b6\u30fc\u306e UID : 1000 \u306b\u7d71\u4e00\u3057\u3066\u3001\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u8272\u3005\u306a\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u304c\u4e00\u822c\u7684\u306b\u6700\u521d\u306e\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3067\u3001UID : 1000 \u304b\u3089\u767b\u9332\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u4f8b\u3048\u3070\u65e2\u306b\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306f sunao \u30e6\u30fc\u30b6\u30fc\u3092 UID : 1000 \u306b\u767b\u9332\u3057\u3066\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4f55\u304c\u554f\u984c\u304b\u3068\u3044\u3046\u3068\u3001\u5927\u91cf\u306b\u7ba1\u7406\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u3001\u5404\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u81ea\u52d5\u8ee2\u9001\u3057\u3066\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u306a\u304c\u3089\u7ba1\u7406\u3057\u3066\u3044\u308b\u4e8b\u3092\u8003\u3048\u305f\u3068\u304d\u3001 rsync \u3067\u5358\u7d14\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3068\u5404\u30d5\u30a1\u30a4\u30eb\u306e\u30aa\u30fc\u30ca\u30fc\u306f UID \u306e\u756a\u53f7\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u540c\u3058 UID \u306a\u306e\u306b\u30b5\u30fc\u30d0\u30fc\u304c\u5909\u308f\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u8005\u540d\u304c\u7570\u306a\u3063\u3066\u6271\u308f\u308c\u3066\u3057\u307e\u3046\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30cd\u30c3\u30c8\u5171\u6709\u30c7\u30a3\u30b9\u30af samba \u306e\u6271\u3044\u3067\u3082\u540c\u69d8\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u6240\u6709\u8005 UID \u306e\u6271\u3044\u304c\u554f\u984c\u3068\u3057\u3066\u767a\u751f\u3057\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u65b0\u898f\u306b\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3066\u3044\u308b\u521d\u671f\u306e\u6bb5\u968e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30d5\u30a1\u30a4\u30eb\u3092 vipw\u30b3\u30de\u30f3\u30c9\u3067\u7de8\u96c6\u3092\u884c\u3044 pi \u30e6\u30fc\u30b6\u30fc\u540d\u306e\u7b87\u6240\u3092 sunao \u30e6\u30fc\u30b6\u30fc\u540d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\nsunao\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u306b\u4f34\u3044\u3001\/home\/sunao \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u3001\/home\/pi \u304b\u3089\u30b3\u30d4\u30fc\u3057\u3066\u5275\u751f\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u5909\u66f4\u304c\u5fc5\u8981\u306a\u30b3\u30de\u30f3\u30c9\u306f\u3001vipw \/ vipw -s \/ vigr \/ vigr -s \u3067\u4fee\u6b63\u3057\u307e\u3059\u304c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u9069\u5b9c\u6587\u5b57\u5217\u7f6e\u63db\u3067 :pi \u304b\u3089 :sunao \u3078\u306e\u5909\u66f4\u3082\u884c\u3044\u307e\u3059\u3002\u305d\u306e\u5f8c\u9069\u5207\u306b \/home\/pi \u53ca\u3073 \/home\/sunao \u4ee5\u4e0b\u306e\u30aa\u30fc\u30ca\u30fc\u3068\u30b0\u30eb\u30fc\u30d7\u306e\u5909\u66f4\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n<span style=\"color: #008080;\"> \u3000sunao &#8211; uid:1000 \/ sunao &#8211; gid:1000<\/span><br \/>\n<span style=\"color: #008080;\"> \u3000pi &#8211; uid:1001 \/ pi &#8211; gid:1001<\/span><br \/>\n\u3068\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<hr \/>\n<p>\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u306e\u3067 IP\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u5316\u3059\u308b\u3068\u8272\u3005\u3068\u56f0\u308b\u3053\u3068\u304c\u8d77\u3053\u308b\u306e\u3067\u3001\u56fa\u5b9a\u30a2\u30c9\u30ec\u30b9\u306b\u79fb\u884c\u3057\u307e\u3059\u3002<br \/>\n\u6614\u306f Debian\u306e\u4e00\u822c\u7684\u306a\u4f5c\u6cd5\u3092\u53c2\u8003\u306b\u3057\u3066\u3001\u5225\u306a\u65b9\u6cd5\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u304c\u3001\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3092\u8ffd\u52a0\u3059\u308b\u3068\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u3002\u306a\u304a\u3001DNS\u30b5\u30fc\u30d0\u30fc\u306e\u6307\u5b9a\u306f ipv4 \/ ipv6 \u306e\u30a2\u30c9\u30ec\u30b9\u3082\u542b\u3081\u3066\u51fa\u6765\u308b\u307f\u305f\u3044\u3067\u3059\u3002\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u308b Google\u691c\u7d22\u306e\u30cd\u30c3\u30c8\u60c5\u5831\u3067\u3059\u3002<\/p>\n<pre style=\"color: #006060; background: #ffffcc none repeat scroll 0% 0%;\">$ <strong>sudo vi \/etc\/dhcpcd.conf<\/strong>\n         <span style=\"color: #ff00ff;\">...\u6700\u5f8c\u5c3e\u306b\u8ffd\u52a0\u3057\u307e\u3059<\/span>\n<span style=\"color: #003366;\">interface eth0\nstatic ip_address=192.168.xx.yy\/24\nstatic routers=192.168.xx.1\nstatic domain_name_servers=192.168.xx.22\u30002400::::225::fe00:9df0<\/span><\/pre>\n<p>\u305d\u3057\u3066\u518d\u7acb\u3061\u4e0a\u3052\u5f8c\u306b IP\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u66f4\u3055\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79d8\u5bc6\u9375\u3001\u516c\u958b\u9375\u30da\u30a2\u306e\u6271\u3044\u306b\u95a2\u3057\u3066 \u30a8\u30c7\u30a3\u30bf vim \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u3001\u30de\u30a6\u30b9\u64cd\u4f5c\u304c\u5909\u308f\u3063\u305f\u3053\u3068\u306e\u5bfe\u51e6 pi\u30e6\u30fc\u30b6\u30fc\u3092\u65e2\u8a2d\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u540d\u306b\u7f6e\u304d\u63db\u3048\u308b \u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u306e\u5229\u7528\u306a\u306e\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u306e\u56fa\u5b9a\u5316 \u30e9\u30ba\u30d1\u30a41B\u306e &hellip; <a href=\"http:\/\/sunao-mita.pgw.jp\/blog\/?p=554\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u30e9\u30ba\u30d1\u30a41B \u3067\u5171\u6709\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9 (2\/)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","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\/554"}],"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=554"}],"version-history":[{"count":0,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/554\/revisions"}],"wp:attachment":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}