{"id":868,"date":"2015-08-13T19:42:49","date_gmt":"2015-08-13T10:42:49","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=868"},"modified":"2015-08-13T19:45:47","modified_gmt":"2015-08-13T10:45:47","slug":"terminal-web-share-asciinema","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2015\/08\/13\/terminal-web-share-asciinema\/","title":{"rendered":"\u7aef\u672b\u64cd\u4f5c\u3092 Web \u3067\u5171\u6709\u51fa\u6765\u308b asciinema"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/asciinema.org\/\">asciinema &#8211; Record and share your terminal sessions, the right way<\/a><\/li>\n<\/ul>\n<p>asciinema \u3061\u3087\u3063\u3068\u9762\u767d\u3044\uff0e\u7aef\u672b\u306e\u64cd\u4f5c\u3092 gyazo \u3084 pastebin \u307f\u305f\u3044\u306b\u304a\u624b\u8efd\u306bweb\u3067\u516c\u958b\u307f\u305f\u3044\u306a\u30a4\u30e1\u30fc\u30b8\uff0ettyrec \u3068\u304b\u3082\u3042\u308b\u3051\u3069\u304a\u624b\u8efd\u306bWeb\u3067\u898b\u3089\u308c\u308b\u306e\u304c\u3044\u3044\uff0e\u3071\u3063\u3068\u898b\u52d5\u753b\u307f\u305f\u3044\u3060\u3051\u3069\u30b3\u30d4\u30da\u3082\u51fa\u6765\u308b\uff0e<\/p>\n<p>Web \u3078\u306e\u57cb\u3081\u8fbc\u307f\u3082\u51fa\u6765\u3066\uff0c\u753b\u50cf\u306e\u30ea\u30f3\u30af\u5f62\u5f0f\u3068<br \/><a href=\"https:\/\/asciinema.org\/a\/24971\"><img decoding=\"async\" src=\"https:\/\/asciinema.org\/a\/24971.png\" alt=\"asciicast\"><\/a><br \/>\u76f4\u63a5\u518d\u751f\u3067\u304d\u308b\u30d7\u30ec\u30a4\u30e4\u30fc\u5f62\u5f0f\u304c\u9078\u3079\u308b\uff0e<\/p>\n<p><script type=\"text\/javascript\" src=\"https:\/\/asciinema.org\/a\/24971.js\" id=\"asciicast-24971\" async><\/script><\/p>\n<p>\u8272\u3060\u3051\u3067\u306a\u304f\u65e5\u672c\u8a9e\u3082\u3044\u3051\u308b\u3051\u308c\u3069 w3m-img \u3068\u304b\u306e\u753b\u50cf\u306f\u898b\u3048\u306a\u3044\uff0e\u4ee5\u4e0b\u306f\u9332\u753b\u6642\u306b\u306f w3m-img \u3067\u753b\u50cf\u304c\u51fa\u3066\u3044\u305f\uff0e<\/p>\n<p><script type=\"text\/javascript\" src=\"https:\/\/asciinema.org\/a\/24972.js\" id=\"asciicast-24972\" async><\/script><\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u306e\u3060\u3051\u3069Raspberry Pi \u3068\u304b\u3082\u72d9\u3063\u3066\u3044\u308b\u306e\u304b armv6\/armv7 \u3082\u3042\u308b\u306e\u304c\u4fbf\u5229\uff0e<\/p>\n<pre><code>case &quot;$(uname -s).$(uname -m)&quot; in\r\n    Linux.x86_64) platform=linux-amd64;;\r\n    Linux.i?86) platform=linux-386;;\r\n    Linux.armv6l) platform=linux-arm;;\r\n    Linux.armv7l) platform=linux-arm;;\r\n    Darwin.x86_64) platform=darwin-amd64;;\r\n    Darwin.i?86) platform=darwin-386;;\r\n    *) echo &quot;Sorry, there is no asciinema binary available for your platform. Try building from source.&quot; &gt;&amp;2; exit 1;;\r\nesac\r\n<\/code><\/pre>\n<h2 id=\"\u5c0e\u5165\u4f8b\"><a name=\"\u5c0e\u5165\u4f8b\" href=\"#\u5c0e\u5165\u4f8b\"><\/a>\u5c0e\u5165\u4f8b<\/h2>\n<pre><code>$ curl -sL https:\/\/asciinema.org\/install &gt; install\r\n$ lv install\r\n$ sh install\r\nDownloading asciinema v0.9.9 for linux-arm...\r\n######################################################################## 100.0%\r\nWarning: you may be asked for administrator password to save the file in \/usr\/local\/bin directory\r\nInstalling to \/usr\/local\/bin\/asciinema...\r\nSuccess.\r\n\r\nStart recording your terminal by running: asciinema rec\r\n<\/code><\/pre>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u5c11\u306a\u3044<\/p>\n<pre><code>$ asciinema \r\nusage: asciinema [-h] [-v] &lt;command&gt; [command-options]\r\n\r\nRecord and share your terminal sessions, the right way.\r\n\r\nCommands:\r\n   rec            Record terminal session\r\n   auth           Assign local API token to asciinema.org account\r\n\r\nOptions:\r\n   -h, --help     Display help message\r\n   -v, --version  Display version information\r\n\r\n   Run &quot;asciinema &lt;command&gt; -h&quot; to see the options available for the given command.\r\n<\/code><\/pre>\n<h2 id=\"\u8a8d\u8a3c\"><a name=\"\u8a8d\u8a3c\" href=\"#\u8a8d\u8a3c\"><\/a>\u8a8d\u8a3c<\/h2>\n<p>\u8a8d\u8a3c\u3057\u306a\u304f\u3066\u3082\u4f7f\u3048\u308b\uff0e\u672a\u8a8d\u8a3c\u306e\u6642\u306bUp\u3057\u305f\u3082\u306e\u3082\u8a8d\u8a3c\u5f8c\u8a8d\u8a3c\u30e6\u30fc\u30b6\u306e\u3082\u306e\u306b\u306a\u3063\u305f\uff0e<\/p>\n<pre><code>$ asciinema auth\r\nOpen the following URL in your browser to register your API token and assign any recorded asciicasts to your profile:\r\nhttps:\/\/asciinema.org\/connect\/8025b685-d45e-4631-8dcf-xxxxxxxxxxxx\r\n<\/code><\/pre>\n<h2 id=\"\u9332\u753b\"><a name=\"\u9332\u753b\" href=\"#\u9332\u753b\"><\/a>\u9332\u753b<\/h2>\n<p>rec option \u3067\u9332\u753b\u3067\u304d\u308b\uff0eexit \u3067\u9332\u753b\u7d42\u4e86\u3067\uff0c\u305d\u306e\u5f8c Enter \u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\uff0cCtrl+c \u3067\u30ad\u30e3\u30f3\u30bb\u30eb\uff0e<\/p>\n<pre><code>$ asciinema rec\r\n~ Current terminal size is 178x49.\r\n~ It may be too big to be properly replayed on smaller screens.\r\n~ You can now resize it. Press &lt;Enter&gt; to start recording.\r\n\r\n~ Asciicast recording started.\r\n~ Hit Ctrl-D or type &quot;exit&quot; to finish.\r\npi@raspberrypi~ $ \r\npi@raspberrypi~ $ \r\npi@raspberrypi~ $ exit\r\n~ Asciicast recording finished.\r\n~ Press &lt;Enter&gt; to upload, &lt;Ctrl-C&gt; to cancel.\r\n\r\nhttps:\/\/asciinema.org\/a\/16372\r\n<\/code><\/pre>\n<p>Web \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u9332\u753b\u3055\u308c\u305f\u3082\u306e\u304c\u95b2\u89a7\u3067\u304d\u308b\uff0e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306b\u306a\u3063\u3066\u3044\u3066\u516c\u958b\u3059\u308b\u306b\u306f\u516c\u958b\u8a2d\u5b9a\u304c\u5fc5\u8981\uff0e\u3053\u306e\u52d5\u304d\u306f <a href=\"https:\/\/asciinema.org\/user\/edit\">Account settings<\/a> \u3067\u8a2d\u5b9a\u5909\u66f4\u304c\u53ef\u80fd\uff0e\u30c6\u30fc\u30de\u306e\u9078\u629e\u3084\u30c8\u30fc\u30af\u30f3\u306e\u7ba1\u7406\u3082\u3053\u3053\u3067\u51fa\u6765\u308b\uff0e<\/p>\n<p>\uff03\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u516c\u958b\u3057\u3066\u3044\u305f\u3064\u3082\u308a\u304c\u516c\u958b\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f&gt;&lt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>asciinema &#8211; Record and share your terminal sessions, the right way asciinema \u3061\u3087\u3063\u3068\u9762\u767d\u3044\uff0e\u7aef\u672b\u306e\u64cd\u4f5c\u3092 gyazo \u3084 past [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6],"tags":[275],"class_list":["post-868","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=868"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/868\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}