matsuiã§ãã
æ¨æ¥ã®è¨äºããã£ãããã¤ã¹ãããã¹ãããããã®PHPããã°ã©ã ãYukkuriTalkããä½æãã¦ã¿ã¾ãããã®ç¶ãã§ãã
Raspberry Piã¨ã¯
Raspberry Piï¼ã©ãºããªã¼ãã¤ï¼ã¯Linuxã§åä½ããååºãµã¤ãºã®å°åPCã§ãã
3,000åç¨åº¦ã§è³¼å
¥ã§ãã¾ãã
512MBãã¼ã¸ã§ã³ãåºãæ°ã¶æåã«è³¼å
¥ãå¾
ã¤ãã¨3ã¶æãå¿ããé ã«å°çãã¾ããã
ã§ãããããæ°ã¶æéã¾ãåå¨ãå¿ããã¤ãå
æ¥æãåºãã»ããã¢ãããè¡ãã¾ããã
Raspberry Piã®åºæ¬ã»ããã¢ãã
ã°ã°ãã¨ããããªãµã¤ããåºã¦æ¥ãã¨æãã¾ãã®ã§ãããã§ã¯è»½ã説æãã¾ãã
http://www.raspberrypi.org/downloads ããOSã®ã¤ã¡ã¼ã¸ããã¦ã³ãã¼ããã¾ãã
ä»åã¯ãRaspbian âwheezyâããé¸æãã¾ããã
ãã¦ã³ãã¼ãããã¤ã¡ã¼ã¸ããDDWinãªã©ã®ããªã¼ã½ããã§SDã«ã¼ãã«æ¸ãè¾¼ãã§ããã°OKã§ãã
SDã«ã¼ã容éã¯æä½2GBå¿
è¦ã§ãããããã ã¨ç¸å½ãã³ãã³ãªã®ã§ãç¨éã«å¿ãã¦ãã£ããã®ãè²·ã£ã¦ããã¾ãããã
ç§ã¯Linuxç°å¢ã ã£ãã®ã§ä»¥ä¸ã®ã³ãã³ãã§ã»ããã¢ãããã¾ãããMacã®äººãåæ§ã®ããæ¹ã§è¡ããã¨æãã¾ãã
ãã¦ã³ãã¼ãããã¤ã¡ã¼ã¸ã¯ã2012-12-16-wheezy-raspbian.imgããSDã«ã¼ãã®ããã¤ã¹ï¼dfã³ãã³ãã§ç¢ºèªã§ãã¾ãï¼ã¯ã/dev/sdx1ãã ã¨ãã¾ãã
$ sudo umount /dev/sdx1 $ sudo dd bs=4M if=2012-12-16-wheezy-raspbian.img of=/dev/sdx
ï¼æå¾ã®ã³ãã³ãã®ããã¤ã¹åã«æ°åãã¤ããªããã¨ã«æ³¨æãã¦ãã ããï¼
èµ·åã¨åæã»ããã¢ãã
ä¸ã§ä½ã£ãSDã«ã¼ããHDMIã±ã¼ãã«ã¨LANã±ã¼ãã«ãUSBãã¼ãã¼ããæ¿ãã¦èµ·åãã¾ãã
èµ·åãããã¡ãã¥ã¼ãç¾ãã¾ãã®ã§ã以ä¸ã®è¨å®ãè¡ãã¾ãã
(1) ä½ã¯ã¨ããããupdateãã§ã¡ãã¥ã¼ãææ°ã«ãã
(2) ã¿ã¤ã ã¾ã¼ã³ãAsia/Tokyoã«ã»ãããã
(3) ãã¹ã¯ã¼ããå¤æ´ãã
(4) expand_rootfsã§ãSDã«ã¼ãã®å
¨é åã使ããããã«ããï¼æ°ååãããã¾ãï¼
ç¶ãã¦ãããã±ã¼ã¸ãææ°ã«ãã¾ããããã1æéã»ã©ãããã¾ãã
$ sudo apt-get update $ sudo apt-get upgrade
ãã£ãããããã¹ããããã¨ãããã»ã»ã»
ãã¦ãããã¾ã§ããã°æ®éã®Linuxã¨åãã§ãã
æ¨æ¥ãç´¹ä»ãããYukkuriTalkãã§ãããã¹ããããã¨ãã¾ããã»ã»ã»
æ®å¿µãAquesTalkã¯x86ç¨ã®ãã¤ããªã§ãæ®éã®ããæ¹ã§ã¯CPUãARMã§ããRaspberry Piã«ã¯å¯¾å¿ã§ãã¾ããã
ã¡ãªã¿ã«WineãARMç°å¢ã«ã¯é対å¿ã§ãã
é常ã®ããæ¹ã§ã¯é£ããã¨ãããã¨ããããã¾ããã
ããã§ãç§ã¯ãã£ãããããã¹ãããã
ããããããã§ãç§ã¯ãã£ãããããã¹ãããããããã¯å¼·ãæå¿ãæã£ã¦å¥ã®è§£æ±ºæ¡ãæ¢ãã¾ãã
ããã§èããã®ããä¸ã®ãããªæ¹å¼ã§ãã
ããã¹ããããæååãPOSTãããã£ãããµã¼ããwavãã¡ã¤ã«ãçæãRaspberry Piã¯ããããã¦ã³ãã¼ããã¦åçãã¾ãã
ä»åã¯AmazonEC2ä¸ã«ãã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹ã§å°ç¨ãµã¼ããç«ã¦ã¾ããã
ããã¦å®æ
âããã«ã¯ããã£ããã¨ã´ãã®æ¥ãGoogleã«ã¬ã³ãã¼ã®äºå®ãããã¹ãRaspberry Piã¡ããã®å§¿ãã»ã»ã»â
使ã£ã¦ã¿ãã¨ãªããªãå¿«é©ã§ãã
å°ãªãã¨ããã´ãã®åºãå¿ãã¯æ¿æ¸ãã¾ããã
cronã«ç»é²ãããã®ã¯ä½ã§ãããã¹ãã¾ãã®ã§ããããã§ãå¿ç¨ãããã¾ãã
$ ./yukkuritalkclient "ãã£ãããã¦ãã£ã¦ã" [talked] ãã£ãããã¦ãã£ã¦ã
ä½ã£ãã½ããã¯GitHubã«å
¬éãã¦ããã¾ããã
詳ãã使ãæ¹ã¯å梱ã®ããã¥ã¢ã«ãã覧ãã ãããæ¨æ¥ã®è¨äºãã»ããã¢ããã®åèã«ãªãã¨æãã¾ãã
âãGitHubãketaiorg / YukkuriTalkServer
âãGitHubãketaiorg / YukkuriTalkClient
wavãã¡ã¤ã«ã®çæã«Wineãã¤ãã£ã¦ãããããWebãµã¼ãã®ã¦ã¼ã¶æ¨©éã§Wineã®å®è¡ãå¿
è¦ã«ãªãã¾ãã
ãã®ããããå°ããã£ããããããã¾ããããHTTPçµç±ã§ã¯ãªãSSHçµç±ã§wavãã¡ã¤ã«ãåå¾ãã¦ãããããããã¾ããã
å°ç¨ã¹ããã«ã¼ãä½ãã¾ããããã¯ãDIYã¯ããããã©ãã§ãè¯ãã¨ããã«æ²ããããã®ã§ãããã
éæã±ã¼ã¹ã«åããã¦ã¹ã±ã«ãã³ä»æ§ã®ã·ã¼ã«ã¨ãã¾ããã大æºè¶³ã®åºæ¥ã§ãã
ã¯ãã¦ã©ãºããªã¼ãã£ããã¨ãªãã¾ããã
RaspberryPiã®ãããªããã¤ã¹ã¯ãè²·ãã ãã§æºè¶³ãã¦ãã¾ããã¡ã§ãã
ç ãããã®ã¯å¿ä½ãªãã®ã§ãã¿ãªããããã²æ´»ç¨æ¹æ³ã模索ãã¦ã¿ã¦ã¯ãããã§ããããã