{"id":19246,"date":"2016-08-01T06:19:18","date_gmt":"2016-07-31T22:19:18","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/08\/01\/%e5%9c%a8-centos-7-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-grive2-%e5%90%8c%e6%ad%a5-google-drive\/"},"modified":"2021-03-18T17:24:46","modified_gmt":"2021-03-18T09:24:46","slug":"%e5%9c%a8-centos-7-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-grive2-%e5%90%8c%e6%ad%a5-google-drive","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/08\/01\/%e5%9c%a8-centos-7-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-grive2-%e5%90%8c%e6%ad%a5-google-drive\/","title":{"rendered":"\u5728 CentOS 7.x \u4e0a\u5b89\u88dd grive2 \u540c\u6b65 Google Drive"},"content":{"rendered":"<p>1. \u52a0\u5165\u7b2c\u4e09\u65b9\u5957\u4ef6\u5eab EPEL<br \/># <span style=\"color: #ff0000\">wget https:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-7-7.noarch.rpm<\/span><br \/># <span style=\"color: #ff0000\">rpm -ivh epel-release-7-7.noarch.rpm<\/span><\/p>\n<p>2. \u66f4\u65b0\u5957\u4ef6\u5eab<br \/># <span style=\"color: #ff0000\">yum update<\/span><\/p>\n<p>3. \u641c\u5c0b grive2 \u5957\u4ef6<br \/># <span style=\"color: #ff0000\">yum search grive2<\/span><br \/><span style=\"color: #0000ff\">grive2.x86_64 : Google Drive client<\/span>[@more@]<br \/>4. \u9032\u884c\u5b89\u88dd<br \/># <span style=\"color: #ff0000\">yum install grive2<\/span><\/p>\n<p>5. \u5148\u958b\u555f\u700f\u89bd\u5668\u767b\u5165\u5230\u8981\u540c\u6b65\u7684 Google Drive \u5e33\u865f\uff1a <br \/> <a id=\"res_3586675\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586675.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586675.png\" border=\"0\" alt=\"\" \/> <\/a><\/p>\n<p>6. \u5207\u63db\u5230\u8981\u540c\u6b65\u7684\u76ee\u9304\uff0c\u4e26\u9032\u884c\u8a2d\u5b9a <br \/># <span style=\"color: #ff0000\">cd \/home\/t850008<\/span> <br \/># <span style=\"color: #ff0000\">grive -a<\/span> <\/p>\n<p>7. \u5728\u4e0b\u65b9\u7522\u751f\u7db2\u5740 <br \/> <a id=\"res_3586674\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586674.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586674.png\" border=\"0\" alt=\"\" \/> <\/a> <\/p>\n<p>8. \u5c07\u7522\u751f\u7684\u7db2\u5740\uff0c\u8cbc\u5230\u700f\u89bd\u5668\u7db2\u5740\u5217\uff0c\u6309\u00a0 <span style=\"color: #ff0000\">Enter \u9375<\/span>\u57f7\u884c <br \/> <a id=\"res_3586673\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586673.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586673.png\" border=\"0\" alt=\"\" \/> <\/a> <\/p>\n<p>9. \u9078\u64c7 <span style=\"color: #ff0000\">\u5141\u8a31<\/span> <br \/> <a id=\"res_3586672\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586672.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586672.png\" border=\"0\" alt=\"\" \/> <\/a> <\/p>\n<p>10. \u5c07\u7522\u751f\u7684 <span style=\"color: #ff0000\">\u6388\u6b0a\u78bc<\/span> \u8907\u88fd\u8d77\u4f86 <br \/> <a id=\"res_3586671\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586671.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586671.png\" border=\"0\" alt=\"\" \/> <\/a> <\/p>\n<p>11. \u5c07\u7522\u751f\u7684 <span style=\"color: #ff0000\">\u6388\u6b0a\u78bc<\/span> \u8cbc\u5728\u4e0b\u65b9\uff0c\u6309\u00a0<span style=\"color: #ff0000\"> Enter \u9375<\/span>\u57f7\u884c <br \/> <a id=\"res_3586670\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586670.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586670.png\" border=\"0\" alt=\"\" \/> <\/a><br \/><span style=\"color: #0000ff\">Reading local directories<\/span><br \/><span style=\"color: #0000ff\">Reading remote server file list<\/span><br \/><span style=\"color: #0000ff\">Synchronizing files<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;.\/.bash_logout&#8221; doesn&#8217;t exist in server, uploading<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;.\/.bash_profile&#8221; doesn&#8217;t exist in server, uploading<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;.\/.bashrc&#8221; doesn&#8217;t exist in server, uploading<\/span><br \/><span style=\"color: #0000ff\">Finished!<\/span><\/p>\n<p>12. \u9032\u884c\u540c\u6b65<br \/># <span style=\"color: #ff0000\">\/usr\/bin\/grive -p \/home\/t850008<\/span><br \/><span style=\"color: #0000ff\">Reading local directories<\/span><br \/><span style=\"color: #0000ff\">Reading remote server file list<\/span><br \/><span style=\"color: #0000ff\">Synchronizing files<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/Windows 7 Games for Windows 10 and 8.exe&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/pietty0327.exe&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/VMware-player-12.1.0-3272444.exe&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.login_conf&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.mailrc&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.cshrc&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.profile&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.rhosts&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.mail_aliases&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.login&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">sync &#8220;\/home\/t850008\/.shrc&#8221; created in remote. creating local<\/span><br \/><span style=\"color: #0000ff\">Finished!<\/span><\/p>\n<p>13. \u9032\u884c\u5de5\u4f5c\u6392\u7a0b <br \/># <span style=\"color: #ff0000\">crontab -e<\/span> <br \/><span style=\"color: #0000ff\">*\/5 * * * * \/usr\/bin\/grive -p \/home\/t850008 &gt; \/dev\/null 2&gt;&amp;1<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u52a0\u5165\u7b2c\u4e09\u65b9\u5957\u4ef6\u5eab EPEL# wget https:\/\/dl.fedoraproject.org\/pub &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/08\/01\/%e5%9c%a8-centos-7-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-grive2-%e5%90%8c%e6%ad%a5-google-drive\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5728 CentOS 7.x \u4e0a\u5b89\u88dd grive2 \u540c\u6b65 Google Drive\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-19246","post","type-post","status-publish","format-standard","hentry","category-c-78462"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["648884"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19246"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=19246"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19246\/revisions"}],"predecessor-version":[{"id":20804,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19246\/revisions\/20804"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}