How to map Google Drive on CentOS

I am learning around with grive, a third party Google Drive client.  It’s pretty cool, but the instructions are based on an Ubuntu install.  I had an interesting time setting it up on CentOS 6.3 64bit, so I decided to share what I learned.

First, get connected EPEL and all repositories,

#yum update
#yum install json-c* expat* curl* 
# rpm -i http://www.mirrorservice.org/sites/dl.atrpms.net/el6.3-x86_64/atrpms/testing/cmake-2.8.4-1.el6.x86_64.rpm
# git clone git://github.com/Grive/grive.git
# cd grive
# cmake .
# make

If there are errors, just install new Boost version follow:

http://thoaimedia.com/install-boost-1-55-0-version-on-centos/

after that you give build again:

#cd ./grive  # grive repo is already checked out here
#git clean -fdx  
#cmake .
#make
[root@mrcool]# cp ./grive/grive /home/mrcool/GoogleDrive/
[root@mrcool]# cd /home/mrcool/GoogleDrive/
[root@mrcool GoogleDrive]# ./grive -a

Please go to this URL and get an authentication code:

https://accounts.google.com/o/oauth2/auth?……..


Please input the authentication code here: 
xxxxxx
Reading local directories
Synchronizing folders
Reading remote server file list
Synchronizing files
sync ./grive doesn't exist in server, uploading

Finished!