A replacement solution to using Google Drive in Ubuntu

Source: Internet
Author: User
Tags root access git clone linux mint

Grive2Get Dependencies

You need to get the dependency libraries along with their development (-dev Or-devel) Packages:

    • YAJL 2.x
    • Libcurl
    • STL (libstdc++)
    • Libgcrypt
    • Boost (filesystem, Program_options, Regex, unit_test_framework and System)
    • Expat

There is also some optional dependencies:

    • CppUnit (for unit tests)
    • LIBBFD (for BackTrace)
    • Binutils (for Libiberty, required-compilation in OpenSUSE, Ubuntu, Arch and etc)

and tools:

    • Git
    • CMake
    • C + + compiler (g++ or clang)

On a debian/ubuntu/linux Mint machine just install the following packages:

sudo install git cmake build-essential libgcrypt11-dev libyajl-dev libboost-all-dev Libcurl4-openssl-dev Libexpat1-dev Libcppunit-dev Binutils-dev
Download Sources
    • Either checkout with git: git clone https://github.com/vitalif/grive2
    • Or Download a ZIP archive and unpack it to some directory.
CMake

Now so you're in the source code ' s "grive2" subdirectory (after ' Cd/path/to/yourgrivesourcecodedir/grive2 '), at the PR Ompt Type:

mkdir BUILDCD Buildcmake.
    • Note the double period (..) as the argument to CMake and to denote the parent directory.
    • You should get a success message like: "–build files has been written to:/your/dir"
    • Don ' t run it with sudo-root access isn't needed for building.
Make and install

At the prompt type:

Make-j4

You ' ll get lots of messages & hopefully a success message: "[100%] Built target grive_executable". The executable file itself (called "grive") would be placed in the "grive" subdirectory.

Then, install it to the system, binary directory (/usr/local/bin by default) by running:

sudo make install
Updates

For subsequent updates, you'll run git pull ' to get the latest source and then just rebuild and re-install it:

Cd/path/to/yourgrivesourcecodedir/grive2git PULLCD Buildcmake. Make-j4sudo make Install
UsageBackup

Since grive is still beta? Or? Alpha? You should better keep a backup copy of your Google directory.

First Run

Change to your Google Drive sync directory, and run grive-a:

Cd/home/you/yourgoogledrive/grive-a

The? A? option is only needed the very first time you run grive.

Visit The URL is comes up and then post the Auth code given (you must has been logged into Google). You should get some messages including? Synchronizing files? ... now is running.

syncs

To sync, you must run the program manually (there is no real-time watching? yet). At the prompt, type:

Cd/home/you/yourgoogledrive/grive

You can set up a cron job and if you want this do on a regular basis.

Command Line Options

Short
Option Long Option Description
-H --help Produce Help message
-V --version Display grive Version
-A --auth Request Authorization Token
-P ARG --path Arg Root Directory to sync
-S ARG --dir Arg Single subdirectory to sync (remembered for next runs)
-V --verbose Verbose mode. Enable more messages than normal.
--log-http Arg Log all HTTP responses in the this file for debugging.
--new-rev Create new revisions in server for updated files.
-D --debug Enable Debug level messages. Implies-v.
-L ARG --log Arg Set log Output filename.
-F --force Force grive to always download a file from Google drive instead of uploading it.
--dry-run Only detect which files need to be uploaded/downloaded, without actually performing them.
--ignore Arg Perl RegExp to ignore files (matched against relative paths, remembered for next runs).

A replacement solution to using Google Drive in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.