ä»å¾ã¯ Windows 10 for IoT ãç¡åæä¾ãããã¨ãã話ãããããã¼ãã¦ã§ã¢å¨ããã¡ãã£ã¨è§¦ã£ã¦ã¿ããã£ãã®ã§ Raspberry Pi 2 ã Pimoroni ã§è²·ã£ã¦ã¿ã¾ããã
Raspberry Pi 2 with Pibow Case - Pimoroni
Raspberry Pi 2 æ¬ä½ã¨ã±ã¼ã¹ã§ £42 ã§ãããããã«éæã £6 追å ãããã®ã§åè¨ã§ £48 ã«ãªãã¾ããã
æ®å¿µãªããç¾æç¹ã§ 1 ãã³ã 183 åã¨ããåå®ã®ãããæ¥æ¬ã§ Raspberry Pi 2 ãè²·ããããããããå²é«ã«ãªã£ã¦ãã¾ãã¾ããããã±ã¼ã¹ã®ã¯ãªãªãã£ã«ã¯æºè¶³ãã¦ãã¾ãã
çµã¿ç«ã¦ã¯èª¬ææ¸ã¨ãç¡ãã£ãã®ã§æ¸æãã¾ããããä½ã¨ããªãã¾ããã
Mono 3.12.0 ãã¤ã³ã¹ãã¼ã«ãã
OS ã«ã¯ Debian ãã¼ã¹ã® Raspbian ãé¸ãã ã®ã§ãMono ã¯å¤ããã¼ã¸ã§ã³ãªã apt-get install mono-complete ã§å²ã¨ãã£ããã¨ã¤ã³ã¹ãã¼ã«åºæ¥ã¾ããæ°ãããã¼ã¸ã§ã³ã¯ã½ã¼ã¹ãããã«ããããããªããããªã®ã§ãMono å ¬å¼ã®ããã¥ã¡ã³ããèªãã§ãã«ããã¾ããã
Compiling Mono on Linux | Mono
Debian åãã«æ¸ããã¦ããæ å ±ãªã Raspbian ã§ãåãããã«åºæ¥ãã®ã楽ã§ããä»åã¯ææ°ã® Mono 3.12.0 ããã«ããã¦ã¿ãã¨ãã 3 æéããããããã¾ããã
ã³ã³ãã¤ã«ã並åã§è¡ãã°ãããã¡ãã£ã¨éãå¦çã§ãããããããªãã§ãã
XRE ãã¤ã³ã¹ãã¼ã«
ãã㧠Mono ã«é¢ãã¦ã¯åé¡ãç¡ãã¯ããªã®ã§ãXRE ãã¤ã³ã¹ãã¼ã«ãã¾ãã
curl -sSL https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.sh | sh && source ~/.kre/kvm/kvm.sh
ãããå®è¡ãã㨠kvm ã³ãã³ãã使ããããã«ãªãã®ã§ãkvm upgrade ãå®è¡ãã¦ææ°ã® XRE ãã¤ã³ã¹ãã¼ã«ãã¾ããã¤ã³ã¹ãã¼ã«å¾ã¯ kpm ã k ã³ãã³ãã使ããããã«ãªã£ã¦ãã¾ãã
ãµã³ãã«ã³ã¼ãã¨ã㦠aspnet/Home · GitHub ã clone ã㦠sample å ã«ãã HelloMvc ãåããã¦ã¿ã¾ããproject.json ã§åç §ãã¦ãããã¼ã¸ã§ã³ãå¤ãã®ã§ beta2 ã * ã«å¤æ´ãã¾ãã
ãã®ä¿®æ£å¾ã« kpm restore ãå®è¡ãã¦ããã±ã¼ã¸ã®å¾©å ãè¡ãã¾ãããã㦠kpm restore ã§å¤±æããå ´å㯠SSL å¨ããåå ãªã®ã§ã以ä¸ã® Issue ãåèã«ã³ãã³ããå©ãè¾¼ã¿ã¾ãã
kpm restore fails on Linux · Issue #197 · aspnet/Home · GitHub
sudo certmgr -ssl -m https://go.microsoft.com sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net sudo certmgr -ssl -m https://nuget.org mozroots --import --sync
kpm restore ãæåããããå¾ã¯ Kestrel ãå®è¡ããããã«å¿ è¦ãª libuv ãã¤ã³ã¹ãã¼ã«ãã¾ãã
git clone https://github.com/libuv/libuv.git cd libuv ./autogen.sh ./configure make sudo make install sudo ldconfig
ãã㧠Kestrel ãåä½ããããã«ãªãã®ã§ k kestrel ã³ãã³ããå®è¡ãã¾ãã
Started ã表示ããããç¡äºã«ãµã¼ãã¼ãèµ·åãã証æ ã§ãããã©ã¦ã¶ãã http://{Raspberry Pi ã® IP ã¢ãã¬ã¹}:5004/ ã«ã¢ã¯ã»ã¹ãã㨠ASP.NET 5 ã®ãã¼ã¸ã表示ãããã¯ãã§ãã
ã¾ã MusicStore ãªã©ã®è¤éãªã¢ããªã¯å®è¡ã§ãã¾ããã§ããããè¶ å°åã® ASP.NET 5 ãµã¼ãã¼ãæã«å ¥ãã¾ãããæ¤è¨¼ç°å¢ã¨ãã¦ã¯ååã ã¨æãã¾ããã