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

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

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

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

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

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

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

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":2157,"date":"2022-04-03T21:39:11","date_gmt":"2022-04-03T12:39:11","guid":{"rendered":"https:\/\/craft-gogo.com\/?p=2157"},"modified":"2022-04-03T23:50:58","modified_gmt":"2022-04-03T14:50:58","slug":"raspberry-pi-newuser","status":"publish","type":"post","link":"https:\/\/craft-gogo.com\/raspberry-pi-newuser\/","title":{"rendered":"\u3010Raspberry Pi\u3011\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u3088\u3046"},"content":{"rendered":"\n

Raspberry Pi\u3092\u4f7f\u3046\u306b\u3042\u305f\u3063\u3066Pi\u30e6\u30fc\u30b6\u30fc\u306e\u307e\u307e\u3067\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u3067\u4e0d\u5b89\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u81ea\u5206\u72ec\u81ea\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001Pi\u30e6\u30fc\u30b6\u30fc\u306f\u7121\u52b9\u306b\u3057\u3061\u3083\u3044\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n

pi\u30e6\u30fc\u30b6\u30fc\u306e\u6240\u5c5e\u30b0\u30eb\u30fc\u30d7\u3092\u8abf\u3079\u308b<\/h2>\n\n\n\n

\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u306b\u3082pi\u30e6\u30fc\u30b6\u30fc\u3068\u540c\u3058\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3055\u305b\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n

\u307e\u305a\u3001pi\u30e6\u30fc\u30b6\u30fc\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

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

\u3068\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068<\/p>\n\n\n\n

pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi<\/code><\/pre><\/div>\n\n\n\n

\u3068pi\u30e6\u30fc\u30b6\u30fc\u304c\u6240\u5c5e\u3057\u3066\u3044\u308b\u30b0\u30eb\u30fc\u30d7\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3089\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0<\/h2>\n\n\n\n

\u6b21\u306b\u81ea\u5206\u72ec\u81ea\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u8ffd\u52a0\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3092newuser\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ sudo  adduser newuser<\/code><\/pre><\/div>\n\n\n\n

\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u305d\u306e\u6b21\u306b\u300cFull Name\u300d\u3001\u300cRoom Number\u300d\u3001\u300cWork Phone\u300d\u3001\u300cHome Phone\u300d\u3001\u300cOther\u300d\u306e\u8a2d\u5b9a\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\u3053\u308c\u3089\u306f\u3059\u3079\u3066\u7a7a\u767d\u3067Enter\u3059\u308c\u3070OK\u3002<\/p>\n\n\n\n

\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u306e\u30b0\u30eb\u30fc\u30d7\u8a2d\u5b9a<\/h2>\n\n\n\n

\u899a\u3048\u3066\u304a\u3044\u305fpi\u30e6\u30fc\u30b6\u30fc\u306e\u30b0\u30eb\u30fc\u30d7\u3068\u540c\u3058\u30b0\u30eb\u30fc\u30d7\u306b\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u6240\u5c5e\u3055\u305b\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

$ sudo usermod -aG adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,lpadmin,gpio,i2c,spi newuser<\/code><\/pre><\/div>\n\n\n\n

\u30b0\u30eb\u30fc\u30d7\u5f15\u6570\u306f\u300c,\u300d\u3067\u533a\u5207\u308a\u307e\u3059\u3002\u6700\u5f8c\u306e\u5f15\u6570\u306f\u300cnewuser\u300d\u3068\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n

pi\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30b3\u30d4\u30fc<\/h2>\n\n\n\n

\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u305f\u3089\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

$ sudo cp -r \/home\/pi\/* \/home\/newuser<\/code><\/pre><\/div>\n\n\n\n

\u30aa\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u5909\u66f4<\/h2>\n\n\n\n

\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u307e\u307e\u3067\u306fRaspberry Pi\u3092\u8d77\u52d5\u3059\u308b\u305f\u3073\u306bpi\u30e6\u30fc\u30b6\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u305d\u3053\u3067\u30aa\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3092\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\u30aa\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u5909\u66f4\u306f\u3001lightdm.conf\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ sudo nano \/etc\/lightdm\/lightdm.conf<\/code><\/pre><\/div>\n\n\n\n

\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u3089<\/p>\n\n\n\n

autologin-user=pi<\/code><\/pre><\/div>\n\n\n\n

\u306e\u884c\u3092\u898b\u3064\u3051\u3066\u4e0b\u3055\u3044\u3002\u300cpi\u300d\u3092\u300cnewuser\u300d\u306b\u5909\u66f4\u3002<\/p>\n\n\n\n

autologin-user=newuser<\/code><\/pre><\/div>\n\n\n\n

\u7d9a\u3044\u3066autologin@.service\u30d5\u30a1\u30a4\u30eb\u3082\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

sudo nano \/etc\/systemd\/system\/autologin@.service<\/code><\/pre><\/div>\n\n\n\n

\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u3089\u3001\u6b21\u306e\u884c\u3092\u63a2\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n

ExecStart=-\/sbin\/agetty --autologin pi --noclear %I $TERM<\/code><\/pre><\/div>\n\n\n\n

\u300cpi\u300d\u3092\u300cnewuser\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

ExecStart=-\/sbin\/agetty --autologin newuser --noclear %I $TERM<\/code><\/pre><\/div>\n\n\n\n

\u3053\u308c\u3067Raspberry Pi\u8d77\u52d5\u6642\u306f\u300cnewuser\u300d\u3067\u30ed\u30b0\u30a4\u30f3\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

pi\u30e6\u30fc\u30b6\u30fc\u306e\u7121\u52b9\u5316<\/h2>\n\n\n\n

\u6700\u5f8c\u306bpi\u30e6\u30fc\u30b6\u30fc\u3092\u7121\u52b9\u5316\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u4f5c\u696d\u79fb\u884c\u306fpi\u30e6\u30fc\u30b6\u30fc\u3067\u306fRaspberry Pi\u3092\u64cd\u4f5c\u51fa\u6765\u306a\u304f\u306a\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n

sudo usermod --expiredate 1 pi<\/code><\/pre><\/div>\n\n\n\n

\u4ee5\u4e0a\u3067\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0\u53ca\u3073\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n

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

\u4ee5\u4e0a\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u3001pi\u30e6\u30fc\u30b6\u30fc\u3092\u7121\u52b9\u5316\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3057\u305f\u3002<\/p>\n\n\n\n

\u6700\u5f8c\u307e\u3067\u304a\u8aad\u307f\u9802\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Raspberry Pi\u3092\u4f7f\u3046\u306b\u3042\u305f\u3063\u3066Pi\u30e6\u30fc\u30b6\u30fc\u306e\u307e\u307e\u3067\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u3067\u4e0d\u5b89\u3060\u3068\u601d\u3044\u307e\u3059\u3002 \u81ea\u5206\u72ec\u81ea\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001Pi\u30e6\u30fc\u30b6\u30fc\u306f\u7121\u52b9\u306b\u3057\u3061\u3083\u3044\u307e\u3057\u3087\u3046\uff01 pi\u30e6\u30fc\u30b6\u30fc\u306e\u6240\u5c5e\u30b0\u30eb\u30fc\u30d7\u3092\u8abf\u3079\u308b \u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u306b\u3082 […]<\/p>\n","protected":false},"author":1,"featured_media":12,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2157"}],"collection":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/comments?post=2157"}],"version-history":[{"count":12,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2157\/revisions"}],"predecessor-version":[{"id":2169,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2157\/revisions\/2169"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media\/12"}],"wp:attachment":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media?parent=2157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/categories?post=2157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/tags?post=2157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}