Install Google Drive Linux client Grive2 0.5.1 on Ubuntu 16.04

Source: Internet
Author: User

Install Google Drive Linux client Grive2 0.5.1 on Ubuntu 16.04

Grive2, an unofficial Google Drive client, is a simple Linux client application. You only need to download all the files in your Google Drive to the current directory. After you modify the file locally and run Grive again, it will upload and change it back to your Google Drive.

Features

  • New files created locally or in Google Drive will be uploaded or downloaded respectively
  • Deleted files will also be "removed"
  • Currently Grive will NOT destroy any of your files: it will only move the files to a directory named. trash or put them in the Google Drive trash
  • You can always recover them.

There are a few things that Grive does not do at the moment:

  • Continously wait for changes in file system or in Google Drive to occur and upload. A sync is only running med when you run Grive.
  • Symbolic links support.
  • Support for Google documents ENTs.

Grive2 0.5.1 highlights:

  • No-remote-new and upload-only modes
  • Ignore regexp does not persist anymore (note that Grive will still track it to not accidentally delete remote files when changing ignore regexp)
  • Added options to limit upload and download speed

Ubuntu 16.04 (Xenial Xerus), Ubuntu 15.10 (Wily Werewolf), Ubuntu 15.04 (Vivid Vervet), and Ubuntu 14.04 (Trusty Tahr) install Grive2 0.5.1

Sudo add-apt-repository ppa: nilarimogard/webupd8

Sudo apt-get update

Sudo apt-get install grive

To view all the available options of the Grive command, run:

Sudo grive -- help

Output example:

Bkjia @ bkjia :~ $ Sudo grive -- help

Grive options:
-H [-- help] Produce help message
-V [-- version] Display Grive version
-A [-- auth] Request authorization token
-P [-- path] arg Path to sync
-S [-- dir] arg Subdirectory to sync
-V [-- verbose] Verbose mode. Enable more messages than normal.
-- Log-xml Log more HTTP responses as XML for debugging.
-- New-rev Create new revisions in server for updated files.
-D [-- debug] Enable debug level messages. Implies-v.
-L [-- 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 specified Ming them.

Create a download/upload folder (synchronize) in your local system ).

Bkjia @ bkjia :~ $ Mkdir/home/bkjia/sync

Go to the newly created "synchronization" directory.

Bkjia @ bkjia :~ $ Cd sync/

Run the following command for the first time.

Bkjia @ bkjia :~ /Sync $ grive-

The preceding command displays a URL.

-----------------------
Please go to this URL and get an authentication code:

Https://accounts.google.com/o/oauth2/auth? Scope = https % 3A % 2F % 2Fwww.googleapis.com % 2 Fauth % 2Fuserinfo. email + https % 3A % 2F % 2Fwww.googleapis.com % 2 Fauth % 2Fuserinfo. profile + https % 3A % 2F % 2Fdocs.google.com % 2 Ffeeds % 2F + https % 3A % 2F % 2F % 2F + https % 3A % 2F % 2Fspreadsheets.google.com % 2 Ffeeds % 2F & redirect_uri = urn: ietf: wg: oauth: 2.0: oob & response_type = code & client_id = 22314510474.apps.googleusercontent.com

-----------------------
Please input the authentication code here:

Copy and paste the URL to your browser. Next, you will be requested to access your Google Drive. Enter your Gmail credential. Finally, the verification code is displayed. Copy the verification code and paste it on the terminal where you run the "grive-a" command. You can.

See



Now, as long as you want to synchronize files/folders and go to the "Synchronize" folder from your Google Drive, run the following command:

Bkjia @ bkjia :~ $ Cd/home/bkjia/sync/

Bkjia @ bkjia :~ /Sync $ sync

Note that you do not need to have the "-a" parameter each time. Because we have performed authentication with Google Drive.

Install Grive-tools, a Front-end for Grive GUI.

Working from the command line is a little difficult for beginners. Therefore, the fansclub team developed a GUI frontend called grive-tools for Grive ..

First, add grive-tools PPA as a derivative product of Ubuntu 15.04 and earlier versions and other Ubuntu versions.

Sudo add-apt-repository ppa: thefanclub/grive-tools
Sudo apt-get update
Sudo apt-get install grive-tools

Configure Grive

After installing Grive and Grive-tools, you should configure Google accounts for Grive. Open it from the terminal: sudo grive-setup

Click Next to log on to your Google account.

You shoshould configure Google accounts for Grive. Search for "Grive Setup" either from the Menu or Dash. Also you can open it from the Terminal by typing "sudo grive-setup ":

A new browser window is now available. Please log on to your Google account. Enter your Gmail credential and allow Grive to access your Google Drive. The verification code is displayed. Copy/paste the code in the Grive window, and click Next to continue.

Now, the installer will create a folder named Google Drive hard Drive (for example,/home/bkjia/Google Drive) in your home folder, and synchronize all the file drives from Google to the local folder.

After the synchronization is complete, you should see a confirmation message: the installation is complete.

Click Finish to complete the installation.

Now you can see that all files in Google Drive will be found in the Google Drive folder of your local system.

You can go to the local Google Drive folder in your home directory. See the following.

From now on, the copied and pasted files/files must be synchronized to your online Google Drive account folder in the local Google Drive folder.

OK. Start to use Google Drive on Ubuntu Desktop.

Cheers!

Ubuntu 16.04 LTS was officially released and downloaded for 5 years of technical support

Ubuntu 16.04 USB flash drive installation graphic tutorial

15 things to be configured after installing Ubuntu 16.04 LTS

Ubuntu 16.04 LTS released Canonical today to announce new system features

Upgrade Ubuntu 15.10 To Ubuntu 16.04

Install Lua game engine in Ubuntu 16.04

How to Use the Snap package for Ubuntu 16.04 LTS

Ubuntu 16.04 requires your help to make GNOME Software more beautiful

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.