{"id":8794,"date":"2017-08-31T18:22:28","date_gmt":"2017-08-31T09:22:28","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=8794"},"modified":"2017-08-31T18:24:46","modified_gmt":"2017-08-31T09:24:46","slug":"ubuntu-core-%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86%ef%bc%88%e5%89%8d%e7%b7%a8%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.moonmile.net\/blog\/archives\/8794","title":{"rendered":"\u30e9\u30ba\u30d1\u30a4\u3067Ubuntu Core \u3092\u8a66\u3057\u3066\u307f\u3088\u3046\uff08\u524d\u7de8\uff09"},"content":{"rendered":"<p>\u3075\u3068\u3001Nano Pi K2 \u306b Ubuntu \u3092\u5165\u308c\u3066 .NET Core \u3092\u4f7f\u3063\u3066\u3042\u308c\u3053\u308c\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4f55\u3084\u3089\u3053\u306e OS \u304c\u3061\u3087\u3063\u3068 Ubuntu \u3068\u306f\u9055\u3046\u3002Raspberry Pi \u306b Ubuntu Mate \u3092\u5165\u308c\u305f\u3068\u304d\u3068\u6319\u52d5\u304c\u3061\u304c\u3046\u3002\u305d\u3082\u305d\u3082 CPU \u306f\u540c\u3058 Cortex-A53 \u306a\u306e\u3060\u304b\u3089\u3001GPIO \u307e\u308f\u308a\u304c\u9055\u3046\u3068\u306f\u3044\u3048\u3001Hello world \u4f4d\u306f\u52d5\u304f\u306e\u3067\u306f\u306a\u3044\u304b\uff1f<\/p>\n<p><a title=\"http:\/\/wiki.friendlyarm.com\/wiki\/index.php\/NanoPi_K2#UbuntuCore\" href=\"http:\/\/wiki.friendlyarm.com\/wiki\/index.php\/NanoPi_K2#UbuntuCore\">http:\/\/wiki.friendlyarm.com\/wiki\/index.php\/NanoPi_K2#UbuntuCore<\/a><\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"301\" height=\"267\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-3.png\" border=\"0\"><\/a><\/p>\n<p>\u3068\u601d\u3063\u3066\u3001\u4f55\u306e OS \u3060\u304b\u518d\u78ba\u8a8d\u3059\u308b\u3068\u300cUbuntuCore\u300d\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u666e\u901a\u306e Ubuntu \u3068\u306f\u3069\u3046\u9055\u3046\u306e\u304b\uff1f\u3063\u3066\u306e\u304c\u767a\u7aef\u3067\u3059\u3002<\/p>\n<h2>\u305d\u3082\u305d\u3082 Nano Pi K2 \u3063\u3066\u4f55\uff1f<\/h2>\n<p>Friendly ARM \u3067\u8cfc\u5165\u3067\u304d\u308b\u30e9\u30ba\u30d1\u30a4\u4e92\u63db\u6a5f\u3067\u3059\u3002Nano Pi \u306b\u306f\u3044\u304f\u3064\u304b\u7a2e\u985e\u304c\u3042\u3063\u3066\u3001\u30e1\u30e2\u30ea\u3084 USB \u306e\u6570\u306a\u3069\u3067\u9078\u3076\u308f\u3051\u3067\u3059\u304c\u3001Nano Pi K2 \u306f\u3001Android \u304c\u52d5\u4f5c\u3057\u3066\u6b4c\u30de\u30af\u30ed\u30b9\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u8cfc\u5165\u3057\u307e\u3057\u305f\u3002Raspberry Pi 3 \u3088\u308a\u3082\u5b89\u304f\u8cfc\u5165\u304c\u3067\u304d\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u30dc\u30fc\u30c9\u3067\u306f\u6b4c\u30de\u30af\u30ed\u30b9\u306f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f orz \u3069\u3046\u3084\u3089\u3001\u30bf\u30c3\u30c1\u30d1\u30cd\u30eb\u304c\u5fc5\u9808\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u305f\u3060\u3057\u3001\u30de\u30ae\u30ec\u30b3\u306f\u52d5\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u5f8c\u65e5\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"448\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-4.png\" border=\"0\"><\/a><\/p>\n<p>\u73fe\u5728\u306e\u3068\u3053\u308d\u52d5\u4f5c\u3067\u304d\u308b OS \u306f\u3001Android 5.1 \u3068 Ubuntu Core \u3060\u3051\u3067\u3059\u3002Raspbian \u306e\u3088\u3046\u306a Debian \u7cfb\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u8cfc\u5165\u6642\u306b\u306f\u3001\u8d64\u5916\u7dda\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30b1\u30fc\u30b9\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u306e\u3067\u3001Android \u3092\u5165\u308c\u308b\u3068 Fire TV \u306e\u3088\u3046\u306b\u52d5\u4f5c\u3067\u304d\u307e\u3059\u3002\u3068\u3044\u3046\u304b\u3001\u305d\u306e\u76ee\u7684\u3067\u58f2\u3063\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u3053\u308c\u3082\u5f8c\u65e5\u3002<\/p>\n<h2>Ubuntu Core \u3068\u306f\u4f55\u304b<\/h2>\n<p>\u305d\u3046\u3044\u3048\u3070\u3001Docker \u3092\u52c9\u5f37\u3057\u305f\u9803\u306b\u3001CentOS \u306e Atomic \u3068\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u3001Docker \u5c02\u7528\u306e\u30b3\u30f3\u30c6\u30ca OS \u3067\u3057\u305f\u3001\u3063\u3066\u306e\u3092\u3084\u3063\u3068\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u30db\u30b9\u30c8\u5411\u3051OS\u74b0\u5883\u300cCentOS Atomic Host\u300d\u3084\u300cSnappy Ubuntu Core\u300d\u3092\u8a66\u3059 &#8211; \u3055\u304f\u3089\u306e\u30ca\u30ec\u30c3\u30b8<br \/>\n<a href=\"http:\/\/knowledge.sakura.ad.jp\/knowledge\/4217\/\">http:\/\/knowledge.sakura.ad.jp\/knowledge\/4217\/<\/a><\/p>\n<p>\u5143\u306e OS \u306b apt-get \u3084\u3089\u3067\u8272\u3005\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u74b0\u5883\u304c\u6c5a\u308c\u308b\u306e\u3067\u3001Docker \u3092\u5165\u308c\u3066\u52d5\u304b\u3057\u307e\u3059\u3002Docker \u306e\u30b3\u30f3\u30c6\u30ca\u3068\u3057\u3066\u306e\u6a5f\u80fd\u3057\u304b\u8981\u3089\u306a\u3044\u306e\u3067\u3001\u6a5f\u80fd\u304c\u76f8\u5f53\u524a\u3063\u3066\u3042\u308a vi \u3059\u3089\u52d5\u304b\u306a\u3044\u72b6\u614b\u3060\u3063\u305f\u3001\u3068\u304b\u306a\u3093\u3068\u304b\u3002\u305d\u3093\u306a\u8a33\u3067\u3001\u7d20\u306e\u72b6\u614b\u306e OS \u3068\u3057\u3066\u4f7f\u3046\u8a33\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u5f53\u6642\u3001Raspberry Pi \u3067\u3082 Docker \u304c\u52d5\u304b\u306a\u3044\u304b\u3068\u304b\u3044\u3046\u8a71\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5f53\u6642\u306e\u30e9\u30ba\u30d1\u30a4\u306f\u3001\u307e\u3060 32bit \u3067\u3001Docker \u3092\u52d5\u304b\u3059\u306b\u306f 64bit CPU \u304c\u5fc5\u9808\u3060\u3063\u305f\u3068\u3044\u3046\u72b6\u614b\u3060\u3063\u305f\u3001\u3068\u3044\u3046\u306e\u3092\u899a\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u73fe\u5728\u306e\u30e9\u30ba\u30d1\u30a43\u306f\u300164bit \u306a\u306e\u3067\u3001Docker \u304c\u52d5\u304d\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u305d\u308c\u306e\u30b3\u30f3\u30c6\u30ca\u7528\u3068\u3057\u3066\u306e Ubuntu Core \u3082\u52d5\u4f5c\u3059\u308b\u3001\u3068\u3044\u3046\u72b6\u6cc1\u306a\u8a33\u3067\u3059\u306d\u3002<a href=\"http:\/\/www.raspberrypi.org\">www.raspberrypi.org<\/a> \u3067\u3082\u300cSnappy Ubuntu Core\u300d\u3068\u8a00\u3046\u5f62\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001Ubuntu developer \u306e <a title=\"https:\/\/developer.ubuntu.com\/core\/get-started\/raspberry-pi-2-3\" href=\"https:\/\/developer.ubuntu.com\/core\/get-started\/raspberry-pi-2-3\">https:\/\/developer.ubuntu.com\/core\/get-started\/raspberry-pi-2-3<\/a> \u306b\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u306e\u3067\u3001\u300cUbuntu Core\u300d\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"381\" title=\"image\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-5.png\" border=\"0\"><\/a><\/p>\n<p>\u3055\u3066\u3001Ubuntu Core \u304c\u52d5\u4f5c\u3059\u308b\u74b0\u5883\u306f\u3001 <a title=\"https:\/\/developer.ubuntu.com\/core\/get-started\" href=\"https:\/\/developer.ubuntu.com\/core\/get-started\">https:\/\/developer.ubuntu.com\/core\/get-started<\/a> \u3067\u898b\u308c\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u3053\u3053\u306b\u306f Intel x86\/64 \u7cfb\u3084 Mac \u306f\u3042\u308a\u307e\u305b\u3093\u3002\u901a\u5e38\u306e PC \u3067\u8a66\u3057\u305f\u3044\u5834\u5408\u306f\u3001KVM \u7248\u306e\u4eee\u60f3\u74b0\u5883\u3067\u52d5\u304f\u3082\u306e\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u306a\u308b\u3068\u3001CentOS \u306e Atomic \u306e\u3088\u3046\u306b\u8907\u6570\u306e Docker \u3092\u8f09\u305b\u3066\u52d5\u304b\u3059\u3068\u3044\u3046\u3088\u308a\u3082\u3001Ubuntu mate \u3088\u308a\u3082\u30e1\u30e2\u30ea\u304c\u5c11\u306a\u3044\u74b0\u5883\uff0f\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u5c11\u306a\u3044\u74b0\u5883\u306e\u7d44\u307f\u8fbc\u307f\u7528 Linux \u3068\u3057\u3066\u52d5\u4f5c\u3055\u305b\u308b\u3001\u3068\u3044\u3046\u5f62\u306b\u30b7\u30d5\u30c8\u3057\u305f\u3088\u3046\u3067\u3059\u30022016\u5e74\u9803\u306e\u8a18\u4e8b\u3092\u898b\u308b\u3068\u300csnappy ubuntu core\u300d\u3068\u3057\u3066\u30e9\u30ba\u30d1\u30a4\u4e0a\u3067 docker \u3092\u52d5\u304b\u3059\u8a18\u4e8b\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u5148\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5148\u304c Ubuntu core \u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u5185\u90e8\u69cb\u6210\u304c\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3082\u305d\u3082\u3001snappy \u3068\u8a00\u3046\u30b3\u30de\u30f3\u30c9\u304c\u7121\u304f\u306a\u3063\u3066\u3001snap \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u306b\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"480\" title=\"image\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-6.png\" border=\"0\"><\/a><\/p>\n<p>\u76ee\u7684\u3082 Docker \u306e\u30b3\u30f3\u30c6\u30ca\u3068\u3057\u3066\u3067\u306f\u306a\u304f\uff08snap find docker \u3067\u898b\u3064\u304b\u308b\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3067\u304d\u308b\u6a21\u69d8\uff09\u3001\u5c0f\u30e1\u30e2\u30ea\u3067 IoT \u6a5f\u5668\u304c\u6271\u3048\u308b\u3068\u3044\u3046\u30b9\u30bf\u30a4\u30eb\u307f\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n<h2>Ubuntu Core \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u307e\u305a\u306f\u3001Raspberry Pi 3 \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Raspberry Pi 2 \u3067\u3082 CPU \u304c 64\u30d3\u30c3\u30c8\u7248\u3067\u3042\u308c\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Raspberry Pi 2 or 3 | Developer<br \/>\n<a href=\"https:\/\/developer.ubuntu.com\/core\/get-started\/raspberry-pi-2-3\">https:\/\/developer.ubuntu.com\/core\/get-started\/raspberry-pi-2-3<\/a><\/p>\n<p>\u666e\u901a\u306e Raspbian \u3068\u540c\u3058\u3088\u3046\u306b micro SD \u306b\u713c\u304d\u8fbc\u307f\u307e\u3059\u3002\u8272\u3005\u306a\u6a5f\u80fd\u306f\u524a\u3089\u308c\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u30018GB \u4ee5\u4e0b\u3067\u3082\u5927\u4e08\u592b\u306a\u611f\u3058\u3067\u3059\u3002\u9650\u3089\u308c\u305f\u51e6\u7406\u3057\u304b\u4f7f\u308f\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u5b89\u4fa1\u306a 8GB \u3092\u5927\u91cf\u306b\u8cb7\u3063\u3066\u5165\u308c\u8fbc\u3080\u3068\u3044\u3046\u3053\u3068\u3082\u3067\u304d\u305d\u3046\u3067\u3059\u306d\u300216GB \u306f\u307e\u3060\u305d\u3053\u305d\u3053\u9ad8\u3044\u306e\u3067\u3002<\/p>\n<p>\u3072\u3068\u3064\u6c17\u3092\u4ed8\u3051\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u306e\u306f\u3001Ubuntu Core \u306b\u5bfe\u3057\u3066 SSH \u3059\u308b\u305f\u3081\u306b\u306f\u300c<a href=\"https:\/\/login.ubuntu.com\/\">Ubuntu SSO account<\/a>\u300d\u3092\u53d6\u5f97\u3057\u3066\u3001\u305d\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3069\u3046\u3084\u3089\u3001\u7d44\u307f\u8fbc\u307f\u6a5f\u5668\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b Ubuntu SSO \u3092\u4f7f\u3046\u3089\u3057\u3044\u306e\u3067\u3059\u304c\u3001<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"164\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-7.png\" border=\"0\"><\/a><\/p>\n<ul>\n<li>Ubuntu Core \u306e\u521d\u56de\u8d77\u52d5\u6642\u306b Ubuntu SSO \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<ul>\n<li>\u3064\u307e\u308a\u3001\u30e2\u30cb\u30bf\u3068\u30ad\u30fc\u30dc\u30fc\u30c9\u304c\u5fc5\u9808<\/li>\n<li>Ubuntu SSO \u306b\u7e4b\u304c\u308b\u305f\u3081\u306b\u3001\u5916\u90e8\u63a5\u7d9a\u304c\u5fc5\u9808\u306b\u306a\u308b\u3002<\/li>\n<\/ul>\n<li>Ubuntu Core \u306b SSH \u3059\u308b\u3068\u304d\u306bRSA\u516c\u958b\u9375\/\u79d8\u5bc6\u9375\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002<\/li>\n<ul>\n<li>\u3053\u308c\u304c\u7d50\u69cb\u30cf\u30de\u308b\u3002\u30e9\u30ba\u30d1\u30a4\u306e\u82f1\u8a9e\u30d5\u30a9\u30fc\u30e9\u30e0\u3067\u3082\u30cf\u30de\u3063\u305f\u307e\u307e\u89e3\u6c7a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3002<\/li>\n<li>\u516c\u958b\u9375\u4f7f\u3063\u3066 SSH \u3057\u3066\u3044\u308b\u4eba\u306b\u306f\u5f53\u305f\u308a\u524d\u306e\u3053\u3068\u306a\u306e\u304b\uff1f<\/li>\n<\/ul>\n<\/ul>\n<p>\u3068\u3044\u3046\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Ubuntu Core \u3092\u8d77\u52d5\u3057\u3066\u3001Ubuntu SSO \u306b\u767b\u9332\u3057\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u308c\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a2\u30ab\u30a6\u30f3\u30c8\u3067 Ubuntu Core \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u79c1\u306e\u5834\u5408\u306f moonmile \u3068\u3044\u3046\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u53d6\u308a\u307e\u3057\u305f\u3002\u304a\u305d\u3089\u304f\u3001\u65e9\u3044\u8005\u52dd\u3061\u3067\u3059\u306d\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-8.png\" border=\"0\"><\/a><\/p>\n<p>Ubuntu Core \u306f\u3001\u3053\u306e\u5199\u771f\u3067\u5206\u304b\u308b\u3088\u3046\u306b\u5358\u7d14\u306a\u30b3\u30f3\u30bd\u30fc\u30eb\u74b0\u5883\u2026\u3068\u8a00\u3044\u307e\u3059\u304b\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u74b0\u5883\u3067\u3059\u3089\u306a\u3044\u3067\u3059\u3002\u5916\u90e8\u304b\u3089 SSH \u3067\u7e4b\u3052\u3066\u3042\u308c\u3053\u308c\u3084\u3084\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002WinSCP \u306f\u7e4b\u3052\u305f\u306e\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306a\u3069\u306f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Raspberry Pi \u304b\u3089\u3060\u3068\u3002<\/p>\n<p>ssh <a href=\"mailto:moonmile@172.16.0.16\">moonmile@172.16.0.16<\/a> <\/p>\n<p>\u306e\u3088\u3046\u306b\u3057\u3066 SSH \u3067\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u306b\u3001public\/private key \u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>SSH\/OpenSSH\/Keys &#8211; Community Help Wiki<br \/>\n<a href=\"https:\/\/help.ubuntu.com\/community\/SSH\/OpenSSH\/Keys\">https:\/\/help.ubuntu.com\/community\/SSH\/OpenSSH\/Keys<\/a><\/p>\n<p>\u3092\u898b\u3066\u3001ssh-keygen -t rsa \u3067\u4f5c\u308a\u307e\u3059\u3002\u30e9\u30ba\u30d1\u30a4\u306e\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 .ssh \u30d5\u30a9\u30eb\u30c0\u304c\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001.ssh\/id_rsa \u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u3000chmod 600 id_ras \u3067\u5909\u3048\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e 644 \u306e\u307e\u307e\u3060\u3068\u3001\u4f55\u6545\u304b ssh \u3067\u7e4b\u3052\u308b\u3068\u304d\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u4e0d\u660e\u306a\u72b6\u614b\u306b\u9665\u308a\u307e\u3059\u3002<\/p>\n<p>.ssh\/id_rsa.pub \u306e\u5185\u5bb9\u3092\u3001Ubuntu SSO \u306e SSH Keys \u306b\u8cbc\u308a\u4ed8\u3051\u3066\u3001\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u521d\u56de SSH \u3059\u308b\u3068\u304d\u306b\u306f\u3001\u79d8\u5bc6\u9375\u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u3001\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u5f8c\u306f\u3001Ubuntu SSO \u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u6df7\u4e71\u3057\u305d\u3046\u3067\u3059\u304c\u3001RSA\u516c\u958b\u9375\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3092\u3059\u308b\u306e\u3067\u3001\u81ea\u5206\u306e\u79d8\u5bc6\u9375\u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u304c\u5fc5\u8981\u3001\u3068\u3044\u3046\u8a33\u3067\u3059\u3002<\/p>\n<p>\u305d\u3046\u3059\u308b\u3068\u3001\u7121\u4e8b Raspberry Pi \u304b\u3089\uff08\u901a\u5e38\u306e Linux \u3067\u3082\u540c\u3058\u3067\u3059\uff09Ubuntu Core \u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"294\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-9.png\" border=\"0\"><\/a><\/p>\n<h2>Tera Term \u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001Windows \u306e\u74b0\u5883\u304b\u3089 Tera Term \u3092\u4f7f\u3063\u3066 Ubuntu Core \u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002Raspberry Pi \u4e0a\u306e .ssh\/id_rsa \u3068 .ssh\/id_rsa.pub \u3092 Windows \u4e0a\u306e\u4f55\u51e6\u304b\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002github \u306a\u3069\u3067\u65e2\u306b\u3001id_rsa \u3092\u4f5c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u3082\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>SSH \u8a8d\u8a3c\u3067\u3001\u300cRSA\uff5e\u9375\u3092\u4f7f\u3046\u300d\u3092\u9078\u629e\u3057\u3066\u3001id_rsa \u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u306b\u306f\u3001Ubuntu SSO \u306e\u30ed\u30b0\u30a4\u30f3\u540d\u3092\u5165\u308c\u3001\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306f\u3001id_rsa \u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092\u5165\u308c\u307e\u3059\u3002\u3084\u3084\u3053\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"466\" height=\"453\" title=\"image\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-10.png\" border=\"0\"><\/a><\/p>\n<p>\u3046\u307e\u304f\u3064\u306a\u304c\u308b\u3068\u3001\u2193\u306e\u3088\u3046\u306b\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"472\" title=\"image\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-11.png\" border=\"0\"><\/a><\/p>\n<h2>WinSCP \u3067\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u3059\u308b<\/h2>\n<p>Windows \u304b\u3089\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u304c\u3067\u304d\u308b\u3088\u3046\u306b WinSCP \u306e\u8a2d\u5b9a\u3082\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u8ee2\u9001\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u300cSCP\u300d\u3092\u9078\u629e\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u306b Ubuntu SSO \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"423\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-12.png\" border=\"0\"><\/a><\/p>\n<p>\u8a2d\u5b9a\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001SSH \u2192 \u8a8d\u8a3c\u3067\u3001\u79d8\u5bc6\u9375\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"459\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-13.png\" border=\"0\"><\/a><\/p>\n<p>\u79d8\u5bc6\u30ad\u30fc\u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306f\u3001\u63a5\u7d9a\u6642\u306b\u8981\u6c42\u3055\u308c\u308b\u306e\u3067\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306f\u4fdd\u5b58\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"302\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-14.png\" border=\"0\"><\/a><\/p>\n<p>\u3046\u307e\u304f\u3064\u306a\u304c\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u304c SSH \u7d4c\u7531\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"412\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-15.png\" border=\"0\"><\/a><\/p>\n<h2>\u30db\u30b9\u30c8\u540d\u306e\u5909\u66f4\u3068 avahi-daemon \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>ubuntu core \u306e\u30db\u30b9\u30c8\u540d\u306f\u3001\u521d\u671f\u5024\u304c localhost \u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u30db\u30b9\u30c8\u540d\u3092\u300craspicore\u300d\u306b\u3059\u308b\u3068\u304d\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3002<\/p>\n<p>sudo hostnamectl set-hostname raspicore<\/p>\n<p>\u3042\u3068\u3001windows \u304b\u3089\u30db\u30b9\u30c8\u540d raspicore.local \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b avahi-daemon \u3082\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>snap install avahi <\/p>\n<p>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f snap list \u3067\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image-16.png\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"480\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/08\/image_thumb-16.png\" border=\"0\"><\/a><\/p>\n<p>snap \u81ea\u4f53\u306f\u3001Unbutu mata \u3067\u3082\u4f7f\u3048\u308b\u306e\u3067\u3001\u3053\u306e\u3042\u305f\u308a\u306f\u666e\u901a\u306b\u4f7f\u3048\u308b\u306e\u304b\u306a\u3068\u3002snapcraft \u3067\u81ea\u524d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<p><\/p>\n<p>\u3068\u8a00\u3046\u8a33\u3067 Raspberry Pi \u4e0a\u3067 ubuntu core \u304c\u52d5\u304d\u51fa\u3057\u305f\u306e\u3067\u3001\u304a\u6b21\u306f GPIO \u5efb\u308a\u3092\u3069\u3046\u5f04\u308b\u306e\u304b\uff1f\u3092\u8abf\u3079\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3075\u3068\u3001Nano Pi K2 \u306b Ubuntu \u3092\u5165\u308c\u3066 .NET Core \u3092\u4f7f\u3063\u3066\u3042\u308c\u3053\u308c\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4f55\u3084\u3089\u3053\u306e OS \u304c\u3061\u3087\u3063\u3068 Ubuntu \u3068\u306f\u9055\u3046\u3002Raspberry Pi \u306b Ubuntu Mat &hellip; <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/8794\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,67],"tags":[],"class_list":["post-8794","post","type-post","status-publish","format-standard","hentry","category-dev","category-raspberrypi"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=8794"}],"version-history":[{"count":2,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8794\/revisions"}],"predecessor-version":[{"id":8796,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8794\/revisions\/8796"}],"wp:attachment":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=8794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=8794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=8794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}