{"id":129,"date":"2016-11-22T22:41:57","date_gmt":"2016-11-22T14:41:57","guid":{"rendered":"http:\/\/blog.defjia.top\/?p=129"},"modified":"2016-11-22T22:41:57","modified_gmt":"2016-11-22T14:41:57","slug":"learning-of-command-lines-in-linux","status":"publish","type":"post","link":"https:\/\/blog.defjia.top\/?p=129","title":{"rendered":"Learning of Command Lines in Linux"},"content":{"rendered":"<p>Python\u9009\u4fee\u8bfe\u7684Deep Reinforcement Learning for FlappyBird\uff08\u5bf9Flappy Bird\u7684\u6df1\u5ea6\u5f3a\u5316\u5b66\u4e60\uff09\uff0c\u9700\u8981\u5728Linux\u7cfb\u7edf\u4e0a\u9762\u8fd0\u884c\u3002<\/p>\n<blockquote><p>\u672c\u7a0b\u5e8f\u8981\u6c42\uff1a<\/p>\n<p>\u7cfb\u7edf\uff1aUbuntu 64-bit<\/p>\n<p>Python 2.7.x<\/p>\n<p>tensorflow\uff1agoogle \u6df1\u5ea6\u5b66\u4e60\u6846\u67b6<\/p>\n<p>python-opencv<\/p>\n<p>pygame(python-pygame)<\/p><\/blockquote>\n<p>\u6240\u4ee5\u6211\u4f7f\u7528\u4e86AWS\u7684Ubuntu_16.04\u7248\u672c\u7684\u670d\u52a1\u5668\u8fdb\u884c\u5c1d\u8bd5\u3002<\/p>\n<p>\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898\u2014\u2014<\/p>\n<p>1.\u9700\u8981\u66f4\u65b0\u955c\u50cf\u6e90 &#8212; \/etc\/apt\/sources.list<\/p>\n<p>2.\u9996\u5148\u9700\u8981\u4f7f\u7528chmod 777 sources.list\u66f4\u6539\u6743\u9650\uff08\u4e4b\u524d\u662f755\uff0c\u73b0\u5728\u60f3\u60f3\u4f3c\u4e4e\u4e0d\u7528\u6539\uff0c\u7528root\u6743\u9650\u8c8c\u4f3c\u5c31\u53ef\u4ee5\uff09<\/p>\n<p>3.vi insert \u4ee5\u4e0b\u7247\u6bb5\uff08\u4ee5\u7f51\u6613\u955c\u50cf\u6e90\u4e3a\u4f8b\uff09<\/p>\n<blockquote><p>\ndeb http:\/\/mirrors.163.com\/ubuntu\/ wily main restricted universe multiverse<\/p>\n<p>deb http:\/\/mirrors.163.com\/ubuntu\/ wily-security main restricted universe multiverse<\/p>\n<p>deb http:\/\/mirrors.163.com\/ubuntu\/ wily-updates main restricted universe multiverse<\/p>\n<p>deb http:\/\/mirrors.163.com\/ubuntu\/ wily-proposed main restricted universe multiverse<\/p>\n<p>deb http:\/\/mirrors.163.com\/ubuntu\/ wily-backports main restricted universe multiverse<\/p>\n<p>deb-src http:\/\/mirrors.163.com\/ubuntu\/ wily main restricted universe multiverse<\/p>\n<p>deb-src http:\/\/mirrors.163.com\/ubuntu\/ wily-security main restricted universe multiverse<\/p>\n<p>deb-src http:\/\/mirrors.163.com\/ubuntu\/ wily-updates main restricted universe multiverse<\/p>\n<p>deb-src http:\/\/mirrors.163.com\/ubuntu\/ wily-proposed main restricted universe multiverse<\/p>\n<p>deb-src http:\/\/mirrors.163.com\/ubuntu\/ wily-backports main restricted universe multiverse\n<\/p><\/blockquote>\n<p>vi\/vim\u4f7f\u7528\u7b80\u56fe<\/p>\n<p><img decoding=\"async\" layer-src=\"http:\/\/www.runoob.com\/wp-content\/uploads\/2014\/07\/vim_model.png\" src=\"http:\/\/www.runoob.com\/wp-content\/uploads\/2014\/07\/vim_model.png\" alt=\"\u300aLearning of Command Lines in Linux\u300b\" \/><\/p>\n<p>\u4ee5\u53ca\u4fdd\u5b58\u547d\u4ee4\uff1a<\/p>\n<blockquote><p>\u6309ESC\u952e \u8df3\u5230\u547d\u4ee4\u6a21\u5f0f\uff0c\u7136\u540e\uff1a<\/p>\n<p>:w \u4fdd\u5b58\u6587\u4ef6\u4f46\u4e0d\u9000\u51favi<br \/>\n:w file \u5c06\u4fee\u6539\u53e6\u5916\u4fdd\u5b58\u5230file\u4e2d\uff0c\u4e0d\u9000\u51favi<br \/>\n:w! \u5f3a\u5236\u4fdd\u5b58\uff0c\u4e0d\u63a8\u51favi<br \/>\n:wq \u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51favi<br \/>\n:wq! \u5f3a\u5236\u4fdd\u5b58\u6587\u4ef6\uff0c\u5e76\u9000\u51favi<br \/>\n:q \u4e0d\u4fdd\u5b58\u6587\u4ef6\uff0c\u9000\u51favi<br \/>\n:q! \u4e0d\u4fdd\u5b58\u6587\u4ef6\uff0c\u5f3a\u5236\u9000\u51favi<br \/>\n:e! \u653e\u5f03\u6240\u6709\u4fee\u6539\uff0c\u4ece\u4e0a\u6b21\u4fdd\u5b58\u6587\u4ef6\u5f00\u59cb\u518d\u7f16\u8f91<\/p><\/blockquote>\n<p>\u8fd8\u6709\uff0c\u5982\u4f55\u89e3\u538b\u6587\u4ef6\uff1a<\/p>\n<p>\u9996\u5148\uff0c\u5b89\u88c5unzip\u5b89\u88c5\u5305\uff1a<\/p>\n<blockquote><p>sudo apt unstall unzip<\/p><\/blockquote>\n<p>\u7136\u540e\u627e\u5230\u6240\u5728\u8def\u5f84\uff0c\u89e3\u538b\u3002\u95ee\u9898\u662f\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\u89e3\u538b\u8def\u5f84\uff0c\u5c31\u4e0d\u77e5\u9053\u89e3\u538b\u5230\u54ea\u91cc\u53bb\u4e86\uff0c\u5c34\u5c2c\u3002<\/p>\n<blockquote><p>unzip -d &lt;dst-dir&gt; &lt;zip-file&gt;<\/p><\/blockquote>\n<p>\u9644\u94fe\u63a5\uff1ahttps:\/\/github.com\/songrotek\/DRL-FlappyBird<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u9009\u4fee\u8bfe\u7684Deep Reinforcement Learning for FlappyBird\uff08\u5bf9Flappy Bird\u7684\u6df1\u5ea6\u5f3a\u5316\u5b66\u4e60\uff09\uff0c\u9700\u8981\u5728Linux\u7cfb\u7edf\u4e0a\u9762\u8fd0\u884c\u3002 \u672c\u7a0b\u5e8f\u8981\u6c42\uff1a \u7cfb\u7edf\uff1aUbuntu 64-bit Python 2.7.x tensorflow\uff1agoogle \u6df1\u5ea6\u5b66\u4e60\u6846\u67b6 python-opencv pyga\u2026\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/blog.defjia.top\/index.php?rest_route=\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.defjia.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.defjia.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.defjia.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.defjia.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":0,"href":"https:\/\/blog.defjia.top\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.defjia.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.defjia.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.defjia.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}