{"id":19206,"date":"2016-06-28T06:59:39","date_gmt":"2016-06-27T22:59:39","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/06\/28\/openmediavault-%e4%bd%bf%e7%94%a8-grive-%e5%90%8c%e6%ad%a5%e6%aa%94%e6%a1%88%e5%88%b0-google-drive%e6%88%90%e5%8a%9f\/"},"modified":"2021-03-18T17:24:44","modified_gmt":"2021-03-18T09:24:44","slug":"openmediavault-%e4%bd%bf%e7%94%a8-grive-%e5%90%8c%e6%ad%a5%e6%aa%94%e6%a1%88%e5%88%b0-google-drive%e6%88%90%e5%8a%9f","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/06\/28\/openmediavault-%e4%bd%bf%e7%94%a8-grive-%e5%90%8c%e6%ad%a5%e6%aa%94%e6%a1%88%e5%88%b0-google-drive%e6%88%90%e5%8a%9f\/","title":{"rendered":"OpenMediaVault &#8211; \u4f7f\u7528 grive \u540c\u6b65\u6a94\u6848\u5230 Google Drive(\u6210\u529f)"},"content":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1a<br \/><a href=\"http:\/\/yourcmc.ru\/wiki\/Grive2#Installation\" target=\"_blank\" rel=\"noopener noreferrer\">Grive2 \u2014 YourcmcWiki<\/a><br \/><a href=\"https:\/\/github.com\/vitalif\/grive2\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub &#8211; vitalif\/grive2: Google Drive client with support for new Drive REST API and partial sync <\/a><\/p>\n<p>1.\u5b89\u88dd\u6240\u9700\u5957\u4ef6 <br \/># <span style=\"color: #ff0000\">apt-get install git cmake build-essential libgcrypt11-dev libyajl-dev libboost-all-dev libcurl4-openssl-dev libexpat1-dev libcppunit-dev binutils-dev pkg-config<\/span> <\/p>\n<p>2. \u4e0b\u8f09 grive Source Code <br \/># <span style=\"color: #ff0000\">git clone https:\/\/github.com\/vitalif\/grive2<\/span> <br \/><span style=\"color: #0000ff\">Cloning into &#8216;grive2&#8217;&#8230;<\/span> <br \/><span style=\"color: #0000ff\">remote: Counting objects: 3914, done.<\/span> <br \/><span style=\"color: #0000ff\">remote: Total 3914 (delta 0), reused 0 (delta 0), pack-reused 3914<\/span> <br \/><span style=\"color: #0000ff\">Receiving objects: 100% (3914\/3914), 1.05 MiB | 364.00 KiB\/s, done.<\/span> <br \/><span style=\"color: #0000ff\">Resolving deltas: 100% (2565\/2565), done.<\/span> <br \/><span style=\"color: #0000ff\">Checking connectivity&#8230; done.<\/span>[@more@]3. \u9032\u884c\u7de8\u8b6f <br \/>#<span style=\"color: #ff0000\"> cd grive2<\/span> <br \/>#<span style=\"color: #ff0000\"> mkdir build<\/span> <br \/># <span style=\"color: #ff0000\">cd build<\/span> <br \/># <span style=\"color: #ff0000\">cmake ..<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Found libgcrypt: -lgcrypt<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Boost version: 1.55.0<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Found the following Boost libraries:<\/span> <br \/><span style=\"color: #0000ff\">&#8212;\u00a0\u00a0 program_options<\/span> <br \/><span style=\"color: #0000ff\">&#8212;\u00a0\u00a0 filesystem<\/span> <br \/><span style=\"color: #0000ff\">&#8212;\u00a0\u00a0 unit_test_framework<\/span> <br \/><span style=\"color: #0000ff\">&#8212;\u00a0\u00a0 regex<\/span> <br \/><span style=\"color: #0000ff\">&#8212;\u00a0\u00a0 system<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Found libbfd: \/usr\/lib\/libbfd.so<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Found CppUnit: \/usr\/lib\/x86_64-linux-gnu\/libcppunit.so<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Could NOT find ZLIB (missing:\u00a0 ZLIB_LIBRARY ZLIB_INCLUDE_DIR)<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Found PkgConfig: \/usr\/bin\/pkg-config (found version &#8220;0.28&#8221;)<\/span> <br \/><span style=\"color: #0000ff\">&#8212; checking for module &#8216;yajl&#8217;<\/span> <br \/><span style=\"color: #0000ff\">&#8212;\u00a0\u00a0 found yajl, version 2.1.0<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Building unitary tests along with the library and the binary<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Boost version: 1.55.0<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Found the following Boost libraries:<\/span> <br \/><span style=\"color: #0000ff\">&#8212;\u00a0\u00a0 program_options<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Configuring done<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Generating done<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Build files have been written to: \/root\/grive2\/build<\/span> <\/p>\n<p>4. \u9032\u884c\u5b89\u88dd <br \/># <span style=\"color: #ff0000\">make -j4<\/span> <br \/># <span style=\"color: #ff0000\">make install<\/span> <br \/><span style=\"color: #0000ff\">Install the project&#8230;<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Install configuration: &#8220;&#8221;<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Installing: \/usr\/local\/bin\/grive<\/span> <br \/><span style=\"color: #0000ff\">&#8212; Installing: \/usr\/local\/share\/man\/man1\/grive.1<\/span> <\/p>\n<p>5. \u53d6\u5f97 Google Drive \u6388\u6b0a\u78bc <br \/># <span style=\"color: #ff0000\">cd \/home\/t850008<\/span> <br \/># <span style=\"color: #ff0000\">\/usr\/local\/bin\/grive -a<\/span> <\/p>\n<p>6. \u9032\u884c\u540c\u6b65 <br \/># <span style=\"color: #ff0000\">\/usr\/local\/bin\/grive -p \/home\/t850008<\/span> <br \/> <a id=\"res_3586676\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586676.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586676.png\" border=\"0\" alt=\"\" \/> <\/a> <br \/> <a id=\"res_3586677\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3586677.png\"> <img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3586677.png\" border=\"0\" alt=\"\" \/> <\/a> <\/p>\n<p>7. \u9032\u884c\u5de5\u4f5c\u6392\u7a0b <br \/># <span style=\"color: #ff0000\">crontab -e<\/span> <br \/><span style=\"color: #0000ff\">*\/5 * * * * \/usr\/local\/bin\/grive -p \/home\/t850008 &gt; \/dev\/null 2&gt;&amp;1<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1aGrive2 \u2014 YourcmcWikiGitHub &#8211; vitalif\/grive2: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/06\/28\/openmediavault-%e4%bd%bf%e7%94%a8-grive-%e5%90%8c%e6%ad%a5%e6%aa%94%e6%a1%88%e5%88%b0-google-drive%e6%88%90%e5%8a%9f\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008OpenMediaVault &#8211; \u4f7f\u7528 grive \u540c\u6b65\u6a94\u6848\u5230 Google Drive(\u6210\u529f)\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":[103,109,110],"tags":[],"class_list":["post-19206","post","type-post","status-publish","format-standard","hentry","category-c-98617","category-c-72384","category-c-72494"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["648184"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19206"}],"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=19206"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19206\/revisions"}],"predecessor-version":[{"id":20776,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19206\/revisions\/20776"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}