{"id":519,"date":"2020-07-11T22:25:10","date_gmt":"2020-07-11T13:25:10","guid":{"rendered":"https:\/\/mightyfriend.net\/?p=519"},"modified":"2023-06-17T21:35:23","modified_gmt":"2023-06-17T12:35:23","slug":"raspberry-pi-useful-tip","status":"publish","type":"post","link":"https:\/\/mightyfriend.net\/?p=519","title":{"rendered":"\ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \uc720\uc6a9\ud55c \uc124\uc815 \ubaa8\uc74c"},"content":{"rendered":"<p>\ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \uc124\uc815 \uad00\ub828 \uac04\ub2e8\ud55c \ud301\uc744 \uc815\ub9ac\ud588\uc2b5\ub2c8\ub2e4. \ub77c\uc988\ubca0\ub9ac\ud30c\uc774OS \ud658\uacbd\uc5d0\uc11c \uc815\ub9ac\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n<p>1. \ubb34\uc120 \ub9c8\uc6b0\uc2a4\uc758 \uc2a4\ud06c\ub864\uc774 \uc774\uc0c1\ud560 \ub54c(\uc57d\uac04 \ub51c\ub808\uc774? \uac19\uc740 \uac8c \ubc1c\uc0dd)<br \/>\n\/boot\/cmdline.txt \ub97c \uc5f4\uc5b4\uc11c \ub9e8 \ub4a4\uc5d0 usbhid.mousepoll=0 \uc744 \ucd94\uac00\ud558\uace0 \uc800\uc7a5\ud558\uace0 \ub9ac\ubd80\ud305.<\/p>\n<p>2. \ud604\uc7ac \uc628\ub3c4\ub97c \uce21\uc815\ud558\ub294 \uba85\ub839\uc5b4<br \/>\nvcgencmd measure_temp<\/p>\n<p>3. NTFS filesystem \uc778\uc2dd \ubc0f \ub9c8\uc6b4\ud2b8\ub97c \uc704\ud55c \ud504\ub85c\uadf8\ub7a8 \uc124\uce58<br \/>\nsudo apt-get install ntfs-3g<\/p>\n<p>4. exFAT filesystem \uc778\uc2dd \ubc0f \ub9c8\uc6b4\ud2b8\ub97c \uc704\ud55c \ud504\ub85c\uadf8\ub7a8 \uc124\uce58<br \/>\nsudo apt-get install exfat-utils exfat-fuse<\/p>\n<p>5. HDMI hotplug \uc124\uc815<br \/>\n\ub77c\uc988\ubca0\ub9ac\ud30c\uc774\ub97c \ubd80\ud305\ud558\uace0 \ub098\uc911\uc5d0 HDMI\ub97c \uaf3d\uc73c\uba74 \ud654\uba74\uc744 \uc778\uc2dd\ud558\uc9c0 \ubabb\ud558\ub294 \ub370 \uadf8\uac83\uc744 \ud574\uacb0\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<br \/>\n\/boot\/config.txt \ub97c \uc5f4\uc5b4\uc11c \uc544\ub798 \ub0b4\uc6a9\uc744 \uc8fc\uc11d \ud574\uc81c\ud558\uace0 \uac12\uc744 \uc218\uc815\ud574 \uc90d\ub2c8\ub2e4.<\/p>\n<pre>hdmi_force_hotplug=1\r\nhdmi_group=1\r\nhdmi_mode=16\r\nhdmi_drive=2<\/pre>\n<p>\ubb54\uac00 \uc790\ub3d9\uc73c\ub85c \ub418\ub294 \uac83\uc774\ub77c \uc0dd\uac01\ud588\ub358 \uac83\uc774 \uc0ac\uc2e4\uc740 \ub2e4 \uc124\uc815\uc744 \ud574\uc918\uc57c \ud558\ub294 \uac70\uc600\ub124\uc694.<\/p>\n<p>6. vi \ud3b8\uc9d1\uae30 mouse \ub4dc\ub798\uadf8 \uc0ac\uc6a9\ud558\uae30<br \/>\n\uc0ac\uc2e4 \ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \ud301\uc774\ub77c\uae30 \ubcf4\ub2e8&#8230; vi \ud3b8\uc9d1\uae30 \ud301\uc774\uae34 \ud55c\ub370 \uc885\uc885 \uc4f0\uc5ec\uc11c \uc801\uc5b4\ubd05\ub2c8\ub2e4.<\/p>\n<p>\ub9c8\uc6b0\uc2a4 \ub4dc\ub798\uadf8 visual mode \ub044\uae30 &#8211; \ub9c8\uc6b0\uc2a4 \uc624\ub978 \ud074\ub9ad \ub3d9\uc791 \uac00\ub2a5<br \/>\nvi \ud3b8\uc9d1\uae30 \uc2e4\ud589 \uc911\uc5d0 :set mouse=<\/p>\n<p>\ub9c8\uc6b0\uc2a4 \ub4dc\ub798\uadf8 visual mode \ucf1c\uae30 &#8211; \ub9c8\uc6b0\uc2a4 \uc624\ub978 \ud074\ub9ad \ub3d9\uc791 \ubd88\uac00<br \/>\nvi \ud3b8\uc9d1\uae30 \uc2e4\ud589 \uc911\uc5d0 :set mouse=a<\/p>\n<p>\uc601\uad6c \ubc18\uc601\ud558\ub824\uba74 ~\/.vimrc \uc5d0 \uc801\uc5b4\ub450\uba74 \ub41c\ub2e4\uace0 \ud558\ub124\uc694.<\/p>\n<p>7. zip \uc555\ucd95 \ud480 \ub54c \ud55c\uae00 \ud30c\uc77c\uba85 \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uacbd\uc6b0<\/p>\n<p>Windows\uc5d0\uc11c \uc555\ucd95\ud55c \ud30c\uc77c\uc744 Linux\uc5d0\uc11c \uc555\ucd95 \ud480 \ub54c, \ud55c\uae00\uc774\ub984\uc774 \uae68\uc838 \ubcf4\uc77c \ub54c\uac00 \uc788\ub2e4. \uc774\uac83\uc740 Windows\uc758 \ud55c\uae00 \ubb38\uc790 \uc14b(CP949)\uc640 Linux \uc758 \ud55c\uae00 \ubb38\uc790 \uc14b(UTF-8)\uc774 \ub2ec\ub77c\uc11c \ubc1c\uc0dd\ud558\ub294 \uac83\uc73c\ub85c zip \uba85\ub839\uc5b4\uc5d0 cp949 \uc635\uc158\uc744 \ub123\uc5b4 \uc90d\ub2c8\ub2e4.<\/p>\n<p>\/etc\/profile \uc758 \ub9e8 \ub4a4\uc5d0\ub2e4\uac00 \ub2e4\uc74c\uc758 2\ubb38\uc7a5\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre>export UNZIP=\"-O cp949\"\r\nexport ZIPINFO=\"-O cp949\"<\/pre>\n<p>\ub85c\uadf8\uc544\uc6c3 \ud6c4 \uc7ac \ub85c\uadf8\uc778\ud558\uba74 \uc815\uc0c1\uc801\uc73c\ub85c \uc801\uc6a9\ub420 \uac81\ub2c8\ub2e4.<\/p>\n<p>8. \uc640\uc774\ud30c\uc774\uac00 \uc548 \uc7a1\ud790 \ub54c<\/p>\n<p>\ucd08\uae30 \uc124\uc815\uc744 \ud558\uba74 \ubcf4\ud1b5 raspi-config\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc124\uc815\ud558\uac8c \ub418\ub294\ub370, Localisation Options\uc5d0\uc11c WLAN Country\ub97c \ud55c\uad6d\uc73c\ub85c \ubcc0\uacbd\ud55c \uacbd\uc6b0 \uc544\ub798\uc640 \uac19\uc774 \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>pi@raspberrypi:~ $ sudo iwlist wlan0 scan\r\nwlan0 Interface doesn't support scanning : Invalid argument<\/pre>\n<p>\uc774 \uacbd\uc6b0 \ub2e4\uc2dc raspi-config\ub85c \ub4e4\uc5b4\uac00\uc11c Localisation Options\uc5d0\uc11c WLAN Country\ub97c US United States\ub85c \uc120\ud0dd\ud558\uace0 \uc7ac\ubd80\ud305 \ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p>\uc640\uc774\ud30c\uc774\ub97c \uc7a1\ub294 \ubc29\ubc95\uc740 wpa_passphrase \uba85\ub839\uc744 \uc0ac\uc6a9\ud574\uc11c \uc640\uc774\ud30c\uc774 \uc774\ub984\uacfc \uc554\ud638\ub97c \uc785\ub825\ud574 \uc90d\ub2c8\ub2e4.<\/p>\n<pre>pi@raspberrypi:~ $ wpa_passphrase 'SSID' 'password'\r\nnetwork={\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0ssid=\" \"\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0#psk=\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0psk=\r\n}<\/pre>\n<p>\uc704\uc640 \uac19\uc774 \ucd9c\ub825\ub418\uba74 \ucd9c\ub825 \ub41c \uc804\uccb4 \ub0b4\uc6a9\uc744 \ubcf5\uc0ac\ud574 \uc90d\ub2c8\ub2e4. \uc2e4\uc81c\ub85c\ub294 \ube48 \ub0b4\uc6a9\uc774 \uc544\ub2c8\ub77c \uc785\ub825\ud55c \uc554\ud638\ub97c \ub300\ucc98\ud558\ub294 \ubcf5\uc7a1\ud55c \ubb38\uc790\uc5f4\uc774 \ucd9c\ub825\ub418\ub294\ub370 \ud574\ub2f9 \ub0b4\uc6a9\uc744 \uc804\ubd80 \ubcf5\uc0ac\ud574 \uc90d\ub2c8\ub2e4.<\/p>\n<p>\ud574\ub2f9 \ub0b4\uc6a9\uc744 vi \ud3b8\uc9d1\uae30\ub85c<\/p>\n<pre>pi@raspberrypi:~ $ sudo vim \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/pre>\n<p>\uc5f4\uc5b4\uc11c \ub9e8 \ub4a4\uc5d0 \ubd99\uc5ec\uc8fc\uba74 \ub429\ub2c8\ub2e4. \uc8fc\uc11d \ucc98\ub9ac \ub41c #psk\ub294 \uc2e4\uc81c \uc785\ub825\ud55c \uc554\ud638\uc774\ubbc0\ub85c \uc9c0\uc6cc\uc90d\ub2c8\ub2e4.<\/p>\n<p>9. Swap size \ub298\ub824\uc8fc\uae30<\/p>\n<p>\ucc98\uc74c\uc5d0\ub294 100MB\ub85c \uc124\uc815\ub418\uc5b4 \uc788\ub294\ub370 \/etc\/dphys-swapfile \uc744 \uc218\uc815\ud574\uc11c \uac04\ub2e8\ud788 \ub298\ub824\uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre># \ud604\uc7ac swap size \uac00 \uc5bc\ub9c8\ub85c \ud560\ub2f9 \ub418\uc5b4\uc788\ub294\uc9c0 \uba3c\uc800 \ud655\uc778\r\npi@raspberrypi:~ $ free -h\r\n\r\n# \uc544\ub798\ud30c\uc77c\uc744 \ud3b8\uc9d1\r\npi@raspberrypi:~ $ sudo vim \/etc\/dphys-swapfile\r\n\r\n# swap size \ub97c 2GB \ub85c \ub298\ub9ac\uace0 \uc2f6\uc744 \ub54c\r\nCONF_SWAPSIZE=2048\u00a0 \r\n\r\n# \ub9ac\ubd80\ud305 \ud544\uc694\r\npi@raspberrypi:~ $ sudo reboot<\/pre>\n<p>10. \uace0\uc815IP \ud560\ub2f9<\/p>\n<p>\ud3b8\uc9d1\uae30\ub85c \/etc\/dhcpcd.conf \ub97c \uc5f4\uc5b4\uc11c \uc218\uc815\ud574 \uc90d\ub2c8\ub2e4.<\/p>\n<p>\uc544\ub798 \ub0b4\uc6a9\uc744 \uc8fc\uc11d \ud574\uc81c\ud558\uace0 \ubcf8\uc778 \ub0b4\uc6a9\uc5d0 \ub9de\uac8c \uc218\uc815\ud569\ub2c8\ub2e4. interface\ub294 \uc720\uc120: eth0, \ubb34\uc120: wlan0\uc774\uace0 routers\ub294 \uac8c\uc774\ud2b8\uc6e8\uc774 \uc8fc\uc18c\uc785\ub2c8\ub2e4. (\uacf5\uc720\uae30\uc5d0 \uc811\uc18d\ud560 \uc218 \uc788\ub294 IP)<\/p>\n<pre># \ubcf8\uc778\uc758 IP\uc0c1\ud0dc\ub97c \ud655\uc778\r\npi@raspberrypi:~ $ ifconfig\r\n\r\n# \uc544\ub798\ud30c\uc77c \ud3b8\uc9d1\r\npi@raspberrypi:~ $ sudo \/etc\/dhcpcd.conf\r\n\r\ninterface eth0\r\nstatic ip_address=192.168.219.130\r\nstatic routers=192.168.219.1\r\nstatic netmask=255.255.255.0\r\n\r\n# \ub9ac\ubd80\ud305 \ud544\uc694\r\npi@raspberrypi:~ $ sudo reboot<\/pre>\n<p>11. \ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \ud55c\uae00 \uc124\uc815<\/p>\n<p>\ud55c\uae00\uc744 \ubcfc \uc218 \uc5c6\uc744 \ub54c \ud55c\uae00 \ud3f0\ud2b8 \uc124\uce58<\/p>\n<pre>pi@raspberrypi:~ $ sudo apt-get install fonts-unfonts-core<\/pre>\n<p>\ud55c\uae00 \uc785\ub825\uc744 \uc704\ud55c ibus \ud55c\uae00 \uc785\ub825\uae30 \uc124\uce58<\/p>\n<pre>pi@raspberrypi:~ $ sudo apt-get install ibus ibus-hangul<\/pre>\n<p>\uc774\uc81c \uc7ac\ubd80\ud305 \ud55c \ub2e4\uc74c\uc5d0 ibus\uc5d0\uc11c \ud55c\uae00 \uc124\uc815\uc744 \ud574 \uc8fc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \uc124\uc815 \uad00\ub828 \uac04\ub2e8\ud55c \ud301\uc744 \uc815\ub9ac\ud588\uc2b5\ub2c8\ub2e4. \ub77c\uc988\ubca0\ub9ac\ud30c\uc774OS \ud658\uacbd\uc5d0\uc11c \uc815\ub9ac\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":""},"categories":[3],"tags":[31,62,171,172,61,60,228],"_links":{"self":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts\/519"}],"collection":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=519"}],"version-history":[{"count":21,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts\/519\/revisions"}],"predecessor-version":[{"id":4859,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts\/519\/revisions\/4859"}],"wp:attachment":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}