Raspbmcã®AirPlayã§ããã£ãã§ããã
MacBook Airãè²·ã£ãããã£ãããï¼
ãã£ããä»ã¾ã§ã¨ãã¬åããã¦æãããã¦è¦ã¦ãã¹ããæ©è½ãå ªè½ãããï¼
ã¾ãã¯AirPlayã ï¼æå
ã®åç»ãRegzaã§è¦ããï¼
ãããã§ãAppleTVæã£ã¦ãªãããã§ããã£ã¨ãªãã½çã«ã¯ãã¼ããªè§£ã転ãã£ã¦ãã¯ãï¼
ãã¹ã£ï¼ã¿ã¹ã¿ã¹ã¿ã¹ï¼ï¼Spotlightã§Webæ¤ç´¢ï¼
ãããRaspberry Piåãã®XBMCï¼Raspbmcï¼ã¯AirPlayãããã¹ãããï¼ï¼ï¼
ã¨ãè¨ãããã§Raspbmcå°å ¥ã¹ã¿ã¼ãï¼
ãã¡ã§ãã
ãã ãiTunesã®AirPlayããã¤ã¹ã«ã¯Raspbmcã表示ããã¦ããã ãã©ãã¯ãªãã¯ãã¦ããæ¥ç¶ä¸ã§ããããã£ã¨åºã¦æ¥ç¶ã確ç«ããªãããã
æã ããã¡ãã£ã¨èª¿æ»ãã¦ã¿ã¾ããã
éä¿¡ã®ç¶æ³ã調ã¹ã
ã¾ãã¯MBAã¨Raspbmcã®éä¿¡ã®ç¶æ³ã確èªãã¦ã¿ãã
ã¾ãã¯homebrewã§tcpdumpãã»ã»ã»ã£ã¦ããã©ã«ãã§å
¥ã£ã¦ãã®ï¼ï¼
ä½ãã®OSï¼è¶
ãããããï¼
Alicia:~ moguno$ sudo tcpdump | grep raspbmc ã»ã»ã» 18:36:41.308272 IP6 alicia.local.49174 > raspbmc.local.36666: Flags [S], seq 105655457, win 65535, options [mss 1440,nop,wscale 4,nop,nop,TS val 744813686 ecr 0,sackOK,eol], length 0 18:36:41.312502 IP6 raspbmc.local.36666 > alicia.local.49174: Flags [R.], seq 0, ack 105655458, win 0, length 0
ãã¼ã36666ã«å¯¾ãã¦ã³ãã¯ã·ã§ã³ãããã¨ãã¦ããã©æå¦ããã¦ãã
ã¦ãã¨ã¯ãRaspbmcå´ã§å¿
è¦ãªãµã¼ããèµ·åãã¦ãªãã£ã¦ãã¨ãã
ã»ã¼ããã£ã±ãã»ã»ã»ããï¼
ã¨ãè¨ãããã§Raspbmcå´ã§ãã¼ããéãã¦ãªããã¨ã確èªã
ï¼ã¡ãªã¿ã«Raspbmcã¯Raspbianã¨åãããã¦ã¼ã¶åï¼piããã¹ã¯ã¼ãraspberryã§sshãã°ã¤ã³å¯è½ã§ããï¼
pi@raspbmc:~$ netstat -a | grep LISTEN ã»ã»ã» tcp 0 0 *:36666 *:* LISTEN tcp 0 0 *:36667 *:* LISTEN tcp6 0 0 [::]:sunrpc [::]:* LISTEN ã»ã»ã»
ããï¼éãã¦ããããï¼ï¼
ç¹ããã»ã»ã»ã ã¨ï¼
ä¸æ¦MBAã«æ»ã£ã¦ãtelnetãæ±ç¨TCPã¯ã©ã¤ã¢ã³ãã¨ãã¦å°é確èªãã°ã
ãã®MBAãããtelnetãã°ã£ã¡ãããã©ã«ãã§å®åã§ãã
sshãå
¥ã£ã¦ãªãã®ã«telnetæ¶ãã¡ãã£ãæOSã«ããããã®ãã¿ãç
ãã¦é£²ã¾ãã¦ããããã§ããã
Alicia:~ moguno$ telnet raspbmc.local 36666 Trying 192.168.11.14... Connected to raspbmc.local. Escape character is '^]'. RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: ^] telnet> quit Connection closed.
ãã¼ããªãã§ç¹ãããï¼ï¼ï¼
IPv6ã ï¼
ããåãããªããªã£ã¦ããã®ã§ããã£ããtcpdumpãã°ãè¦ãªããã¦ã¿ãã
18:36:41.308272 IP6 alicia.local.49174 > raspbmc.local.36666: Flags [S], seq 105655457, win 65535, options [mss 1440,nop,wscale 4,nop,nop,TS val 744813686 ecr 0,sackOK,eol], length 0 18:36:41.312502 IP6 raspbmc.local.36666 > alicia.local.49174: Flags [R.], seq 0, ack 105655458, win 0, length 0
IP6ã»ã»ã»ã ã¨ï¼
tcp 0 0 *:36666 *:* LISTEN tcp6 0 0 [::]:sunrpc [::]:* LISTEN
ãã¼ããã¼ã36666ã¯IPv4ã®INADDR_ANYã«ãããã¤ã³ãããã¦ãªãï¼ããã ï¼ï¼
ã¤ã¾ãããããããã¨ã§ããã
ã»Raspbmcã¯IPv4ãIPv6両æ¹ã®ã¢ãã¬ã¹ãæã¤ã®ã§ãavahiã§ä¸¡æ¹ã®ã¢ãã¬ã¹ãä»ã®ãã¼ãã«ã¢ãã¦ã³ã¹ãããã
ã»ã§ããRaspbmcã¯IPv4ã®36666ãã¼ãããæ¥ç¶ãåãä»ããªãã
ã»MBAã¯IPv6ãåªå
ã§IPv6ã®36666ãã¼ãã«ã¢ã¯ã»ã¹ãã«è¡ããã©ãRaspbmcã¯IPv4ã®36666ãã¼ãããè¦ã¦ãªãããç¹ããªãã
ãå ã¡ããï¼ãã¤ã¾ã§å¯ã¦ãã®ï¼ï¼
ã¨ãè¨ãããã§ãã®è©±ã®ãªãã
Raspbmcã®IPv6ãç¡å¹ã«ãããã¨ã§å¯¾å¦ãã¾ããã
pi@raspbmc:~$ sudo vi /etc/sysctl.d/ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
ããã¦ãªãã¼ãã»ã»ã»
éã£ããï¼ã¨ã«ã¯ã¥é¢¨ã«ï¼
256MBçRaspberry Piã ãã©ããåä½ã¯è¶
è¯å¥½ã
AirPlayãµã¼ãã欲ããã ããªãRaspberry Piã§ååã ãã