사용자 도구

사이트 도구


linux:grive2

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
다음 판 양쪽 다음 판
linux:grive2 [2019/11/20 22:38]
kwon37xi 만듦
linux:grive2 [2019/11/28 08:57]
kwon37xi [사용]
줄 5: 줄 5:
   * [[http://dothisbest.com/how-to/install-google-drive-grive2-on-ubuntu/|How to install Google Drive Grive2 on Ubuntu]]   * [[http://dothisbest.com/how-to/install-google-drive-grive2-on-ubuntu/|How to install Google Drive Grive2 on Ubuntu]]
   * [[http://www.webupd8.org/2015/05/grive2-grive-fork-with-google-drive.html|Grive2: Grive Fork With Google Drive REST API And Partial Sync Support [PPA] ~ Web Upd8: Ubuntu / Linux blog]]   * [[http://www.webupd8.org/2015/05/grive2-grive-fork-with-google-drive.html|Grive2: Grive Fork With Google Drive REST API And Partial Sync Support [PPA] ~ Web Upd8: Ubuntu / Linux blog]]
-  * PPA 설치<code sh>+ 
 +===== PPA 설치 ===== 
 +<code sh>
 sudo add-apt-repository ppa:nilarimogard/webupd8 sudo add-apt-repository ppa:nilarimogard/webupd8
 sudo apt-get update sudo apt-get update
 sudo apt-get install grive sudo apt-get install grive
 </code> </code>
 +
 +===== Debian Build Package =====
 +  * https://github.com/vitalif/grive2/releases 에서 소스 다운로드
 +
 +<code sh>
 +sudo apt-get install git cmake build-essential libgcrypt20-dev \
 +    libyajl-dev libboost-all-dev libcurl4-openssl-dev libexpat1-dev \
 +    libcppunit-dev binutils-dev debhelper zlib1g-dev dpkg-dev \
 +    pkg-config libstdc++-7-dev
 +
 +# 소스 압축푼 디렉토리로 이동(ext 파티션이어야 한다)
 +dpkg-buildpackage -j4
 +
 +# 상위디렉토리에 deb 패키지 생성됨
 +sudo dpkg -i <filename.deb>
 +</code>
 +
 +===== API 인증 =====
 +  * 2019년 11월 부터 Google Drive API 를 사용자가 작접 id와 secret 을 받아서 지정해줘야만 하게 되었다.(추후 바뀔 수 있음)
 +  * https://github.com/vitalif/grive2/issues/287#issuecomment-557704687
 +
 +1 - Go to https://console.developers.google.com/apis/library. Login with your Google account and create a new project on Google Cloud Platform. You can also use an existing one.
 +2 - Search for Google Drive API and enable it.
 +3 - Go to API Credentials page (https://console.developers.google.com/apis/credentials)
 +3 - Create a new OAuth Client credential. You will be provided with a id and a secret. Save both because you gonna need it for grive2.
 +
 +Then you need to follow this repo README, download grive2, build and install. Then run
 +
 +grive -a --id [client id] --secret [client secret]
 +
 +On your Drive folder and it will probably work.
 +
 +If you want to use your ID and secret to build grive2 instead of using above command, you can edit the keys in
 +
 +grive2/grive/src/main.cc
 +
 +Lines 49 to 50 in 3929909
 +<code c>
 + const std::string default_id            = "615557989097-i93d4d1ojpen0m0dso18ldr6orjkidgf.apps.googleusercontent.com"
 + const std::string default_secret        = "xiM8Apu_WuRRdheNelJcNtOD"
 +</code>
 +
 +===== 사용 =====
   * 신규 동기화<code sh>   * 신규 동기화<code sh>
 mkdir SyncDir # 신규 동기화 디렉토리 생성 mkdir SyncDir # 신규 동기화 디렉토리 생성
linux/grive2.txt · 마지막으로 수정됨: 2022/07/19 16:38 저자 kwon37xi