git clone https://github.com/vitalif/grive2 cd grive2
CMake 로는 다음 같이 빌드 환경을 구성한다
1 2 3
mkdir build cd build cmake ..
그리고 Make 로 다음 같이 빌드한다:
1
make -j4
그리고 설치한다:
1
sudo make install
Updates
소스는 git pull 로 최신 소스를 얻고 다시 빌드한다:
1 2 3 4 5 6
cd /path/to/yourGriveSourceCodeDir/grive2 git pull cd build cmake .. make -j4 sudo make install
Usage
인증
1 2 3 4 5 6 7 8 9 10
$ grive -a ----------------------- Please go to this URL and get an authentication code:
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%....client_id=22314510474.apps.googleusercontent.com ----------------------- Please input the authentication code here: 5/dTdVFy9xBd2cKLYvkcvJlYhwfht4IPuyJdri2Vv3sKA Reading local directories Reading remote server file list
$ sudo apt-get install libcurl-dev Reading state information... Done Package libcurl-dev is a virtual package provided by: libcurl4-openssl-dev 7.38.0-4+deb8u5 libcurl4-nss-dev 7.38.0-4+deb8u5 libcurl4-gnutls-dev 7.38.0-4+deb8u5 You should explicitly select one to install.
$ onedrive -h Usage: onedrive [OPTION]... no option Sync and exit. -m --monitor Keep monitoring for local and remote changes. --resync Forget the last saved state, perform a full sync. -v --verbose Print more details, useful for debugging. -h --help This help information.