2017/08/20 Raspberry Pi Stretchã«å¯¾å¿
Raspberry Piã®ã»ããã¢ãããé¢åèã
ãRaspberry Piã§è²ã ãã£ã¦ãã¾ãã
ãå¾ã§åç¾ã§ããããã«ãä½ããã®ã«åããã¦1ããç°å¢ãæ§ç¯ããã®ã好ããªã®ã§ããããã¯ãé¢åèãã®ãã»ããã¢ããã以ä¸ã®è¨äºã§ã¾ã¨ãã¦ããã®ã§ã大ãããããã¨ãããã¨ã¯ãªãã®ã§ããããããããæä½æ¥ãå¤ãã®ã§ãã«ãã§ãã
ãã¾ãä¸è¨è¨äºãè¦ã人ãããåèµ·åãããã¿ã¤ãã³ã°ã§æ¥æ¬èªãæååããã¦ãã¾ã£ã¦å°ã£ãçã®ææãããã ããã¨ããã¾ã«ããã®ã§ããããããããã©ãã§ããã£ã¦ãã¾ã£ã¦ããã®ãããããããªãã¦ã確å®ã«å¯¾å¿ããã«ã¯ãã£ã¨ä¸å¯§ãªããã¥ã¢ã«ã«ããªãã¨ãããªãã®ã§ãããããã¾ã大å¤ã§èªåã«ã¯å°åºã§ããæ°ããã¾ããã誰ããã£ã¦ãã ããï¼äººä»»ãï¼ã
Raspberry Piãèªåã§ã»ããã¢ããããã¹ã¯ãªãã
ãé¢åèããã®èªåã¯ãããã¤ã³ã¹ãã¼ã«ããã½ãããè¨å®ãèªåã§ã»ããã¢ããããã¹ã¯ãªãããä½ã£ã¦ã寧ãããã¥ã¢ã«ããªããæ¹åã«åªåãããã¨ã«ãã¾ãããã¹ã¯ãªããã¯GitHubã«ã¢ãããã¼ããã¾ããã
ã注æäºé ã¨ãã¦ã¯ãã³ãã³ãå®è¡ããã¨ã»ã¼èªåã§ã¤ã³ã¹ãã¼ã«ã§ããã®ã§ããã失æããæã®ãã¨ãªã©ä½ãèãã¦ãªãä½ããªã®ã§ãå®ã¯ãã¾ãåå¿è ã«ã¯ãªã¹ã¹ã¡ã§ãã¾ãããã¹ã¯ãªããã®ä¸èº«ãèªãã§ä½ããã¦ãããåãããã©ã¡ããã¨ããã¨ä¸ç´è åãã®ã¹ã¯ãªããã«ãªã£ã¦ãã¾ããä¸åº¦ã¯èªåã§ä¸ã¤ä¸ã¤ã³ãã³ãããã£ã¦ã»ããã¢ããããä¸ã§ä½¿ããã¨ããå§ããã¾ãã
ã以ä¸ã¯ã¹ã¯ãªããã®èª¬æã使ãæ¹ã¨ãªãã¾ãã®ã§èå³ããæ¹ã®ã¿ã©ããã
ã¤ã³ã¹ãã¼ã«ãããããã±ã¼ã¸
- æ¥æ¬èªç°å¢(fonts-vlgothic, ibus-mozc)
- VNC Server(tightvncserver)
- ã¨ãã£ã¿(vim,vim-gtk)
- 端æ«(gnome-terminal)
- ãã¼ãã£ã·ã§ã³ãã¼ã«(gparted)
- ä»®æ³ç«¯æ«(byobu)
è¨å®ãã¡ã¤ã«
- ã«ã¹ã¿ã ã®
.bashrc
- ã«ã¹ã¿ã ã®
/boot/config.txt
- VNCãµã¼ãã®èªåèµ·åè¨å®
使ãæ¹
ãä¸è¨ã®è¨äºã«å¾ã£ã¦
- Raspbian Jessie SDãã£ã¹ã¯ä½æ
- Raspbian Jessie ãã¼ãã¦ã§ã¢ã»ããã¢ãã
- Raspi-configã»ããã¢ãã
ãã¾ã§ãå®æ½ãã¾ããããã¾ã åèµ·åã¯å®æ½ããªããã¨ã
ã次ã«ã¹ã¯ãªããããã¦ã³ãã¼ããããã以ä¸ã®ã³ãã³ãã§Gitãã¤ã³ã¹ãã¼ã«ãã¾ããRaspbianã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯ãæåããå ¥ã£ã¦ããããããã¾ããã
$ sudo apt-get update
$ sudo apt-get -y install git
ã次ã«ä»¥ä¸ã®ã³ãã³ããæã¡è¾¼ã¿ã¾ãã4è¡ç®ã®ã³ãã³ãã¾ã§å®è¡ããã¨åæã«Raspberry Piãè¨å®ããã¦ããã¾ããèªåã®å®¶ã®ç°å¢ã ã¨å¤§ä½15åãããæ¾ç½®ããã¨ã»ããã¢ããå®äºãã¾ããã
$ cd $ git clone https://github.com/karaage0703/raspberry-pi-setup $ cd raspberry-pi-setup $ ./setup-raspbian-stretch_jessie.sh
ãã¹ã¯ãªããã®æå¾ã«vncã®ãã¹ã¯ã¼ããèãããã®ã§ã好ããªãã¹ã¯ã¼ããè¨å®ãã ãããããã¾ã§å®äºãããåèµ·åãã¾ãããã
$ sudo shutdown -r now
ããç²ãæ§ã§ããããã§ããªãã®Raspberry Piã¯çã¾ãå¤ããã¾ããã
Raspbian Jessie LITEã«å¯¾å¿ãã¾ãã
ãRaspbian Jessie LITEã®ã»ããã¢ããã«ã対å¿ãã¾ããã使ãæ¹ã¯ãRaspbian Jessieã¨ãããã¨ã¯ã»ã¼åãã§ãæå¾ã«å®è¡ããã³ãã³ã $ ./setup-raspbian-jessie.sh
ã以ä¸ã«å¤æ´ããã ãã§ãã
$ ./setup-raspbian-jessie-lite.sh
ãã¤ã³ã¹ãã¼ã«ãããããã±ã¼ã¸ããè¨å®ãã¡ã¤ã«ã¯ä»¥ä¸ã§ããX Windowsç°å¢ãç¡ãåè²ã æ¸ã£ã¦ãã¾ãã
ã¤ã³ã¹ãã¼ã«ãããããã±ã¼ã¸
- ã¨ãã£ã¿(vim)
- ä»®æ³ç«¯æ«(byobu)
è¨å®ãã¡ã¤ã«
- ã«ã¹ã¿ã ã®
/boot/config.txt
æ¬ã¹ã¯ãªããã§ã¯ã»ããã¢ãããããªãé ç®
ã.vimrc
ãã¿ã¼ããã«ã»Vimã®ã«ã©ã¼ã¹ãã¼ã ã¯ã»ããã¢ãããããªãã®ã§ã以ä¸ã®è¨äºåç
§ãã¦ã好ã¿ã§ã»ããã¢ãããã¦ä¸ããã
ã¾ã¨ã
ãRaspberry Piãã»ããã¢ãããã¼ã«ã§èªåã§ã»ããã¢ããã§ããããã«ãªãã¾ãããSDã«ã¼ããã¤ã¡ã¼ã¸ãã¨ä¿åããã®ãããã®ã§ãããæ°GBã®å®¹éã使ã£ã¦ãã¾ãã®ã¨ãå¾ã§ã»ããã¢ããå 容ãå¤ããããªã£ãæãä½ãè¨å®ãããã©ã®ããã±ã¼ã¸ãå ¥ãããå¾ã§ç¢ºèªããããã®ã§ããã®ããã«ãæ軽ã«ç°å¢æ§ç¯ã§ããã¹ã¯ãªãããã¤ããã®ãããããªã¨æã£ã¦ãã¾ãã
ãªã³ã¯ï¼Raspberry Pi 3
ãªã³ã¯ï¼SDã«ã¼ã
ãªã³ã¯ï¼HDMIã±ã¼ãã«
ãªã³ã¯ï¼USBã³ãã¯ã¿ä»ãé»æºTAP
ãªã³ã¯ï¼USB給é»ACã¢ããã¿
ãªã³ã¯ï¼ãã¤ã¯ãUSBã±ã¼ãã«