宜蘭縣教育支援平台 會員登入 會員註冊 我的i教書

« 上一篇 | 下一篇 »

參考網頁:
Grive2 — YourcmcWiki
GitHub - vitalif/grive2: Google Drive client with support for new Drive REST API and partial sync

1.安裝所需套件
# 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

2. 下載 grive Source Code
# git clone https://github.com/vitalif/grive2
Cloning into 'grive2'...
remote: Counting objects: 3914, done.
remote: Total 3914 (delta 0), reused 0 (delta 0), pack-reused 3914
Receiving objects: 100% (3914/3914), 1.05 MiB | 364.00 KiB/s, done.
Resolving deltas: 100% (2565/2565), done.
Checking connectivity... done.

3. 進行編譯
# cd grive2
# mkdir build
# cd build
# cmake ..
-- Found libgcrypt: -lgcrypt
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   program_options
--   filesystem
--   unit_test_framework
--   regex
--   system
-- Found libbfd: /usr/lib/libbfd.so
-- Found CppUnit: /usr/lib/x86_64-linux-gnu/libcppunit.so
-- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'yajl'
--   found yajl, version 2.1.0
-- Building unitary tests along with the library and the binary
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   program_options
-- Configuring done
-- Generating done
-- Build files have been written to: /root/grive2/build

4. 進行安裝
# make -j4
# make install
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/grive
-- Installing: /usr/local/share/man/man1/grive.1

5. 取得 Google Drive 授權碼
# cd /home/t850008
# /usr/local/bin/grive -a

6. 進行同步
# /usr/local/bin/grive -p /home/t850008



7. 進行工作排程
# crontab -e
*/5 * * * * /usr/local/bin/grive -p /home/t850008 > /dev/null 2>&1




 
 
 
用LINE傳送

{nocache:f2473e783debf4182f417b1f8f0eb012#0}