203

I'd like to install a Google Drive client for Xubuntu (12.04).

I'm getting non-English Google results, and I didn't find grive in the Xubuntu repositories.

Does anyone know of a client that works well for Ubuntu or it's supported derivates (or installation instructions for grive?)

Braiam
  • 69,112
Eyal
  • 5,075

16 Answers16

97

For Ubuntu 12.04 to 14.10

Apparently grive exists on a ppa - I installed it and it works reasonably well. This is preferable in my opinion over the google-docs-fs solution, since that doesn't put your files permanently on your drive, and grive does. Also, grive isn't a commercial venture like InSync - which is described as "free during beta".

The PPA for grive can be found on webupd8's site using these instructions:

Grive: Open Source Google Drive Client For Linux ~ Web Upd8: Ubuntu / Linux blog

One limitation that the current version of grive has is that it doesn't automatically sync your drive directory. But I found this blog post describing a script to fix this and make grive sync whenever a file in the drive directory is changed.

(This answer is originally based on @uri's comment, which has since disappeared)

EDIT: grive is now officially dead, but grive2 is a fork of the original version with some improvements.

Eyal
  • 5,075
61

Ubuntu 17.10 and later (GNOME Online Accounts)

Open System Settings and select Online Accounts -> under the Add an account heading select Google and authenticate with your Google password.

enter image description here

Make sure the "Files" permission is granted:

enter image description here

Now your Google Drive will appear in the Files application (nautilus), like this:

enter image description here


Access Google Drive files offline

Google Drive allows you to access some files offline, but on desktop this feature only works on Google Chrome. If you have the browser, install the Google Docs Offline extension offered by google.com. Return to Google Drive and navigate to gear icon -> Settings -> Offline, and enable Create, open and edit your recent Google Docs, Sheets and Slides files while offline.


Ubuntu 14.04 and later (for all desktop environments)

Open Drive is a Google Drive client for desktops written in Electron. It's fast, secure and easy to use.

Features

  • Automatic synchronization between files
  • Automatically updates modified files.
  • Gives notifications.
  • Runs in the system tray.
  • No need to spend money.

To install Open Drive in all currently supported versions of Ubuntu open the terminal and type:

sudo snap install odrive-unofficial
karel
  • 122,292
  • 133
  • 301
  • 332
26

Unfortunately, Not with an official client. An unofficial driver exists online.

Note that there is no 12.04 PPA. I've contacted the maintainer asking for one to be made.

There is currently no official Linux client supported by Google.

For Linux

Google Drive isn't currently available for the Linux operating system. Linux users can still access Google Drive on the web – drive.google.com New Window or through the Google Drive mobile app.

Refer to http://support.google.com/drive/bin/answer.py?hl=en&answer=2375082

There is an unofficial Gdrive FS in a PPA:

  1. execute sudo add-apt-repository ppa:invernizzi/google-docs-fs to add the PPA.

  2. once the command finishes, run sudo apt-get update && sudo apt-get install google-docs-fs to install GdriveFS. Please be patient as this step may take a while.

  3. Create a folder within your home folder called "Drive".

  4. Execute: gmount Drive username@gmail.com, replacing your username as necessary, to mount your Google Drive. This must be run in a terminal. Test show that this application works fine, and is filemanager-independent, being an FS driver.

nanofarad
  • 20,906
20

Two solutions: Insync, or google-docs-fs.

InSync

OMG! Ubuntu! posted an article about Google Drive and Ubuntu in 2012 about Insync.

  • Download the Insync.tar.gz

  • Extract to your Home folder

  • Open a new terminal and navigate into the extracted Insync folder using the ‘cd’ > command (e.g. cd insync/)

  • Run: sudo ./insync-installer Follow any on-screen prompts

After installing there are a few other things to note: After installation

  • Insync must be started from the Terminal by running insync
  • The app doesn’t auto-start by default, and there is no in-app way to enable > this

Update: There is a Ubuntu package from the Download page which installs (via software centre by default), configures an update repository, optionally installs file browser integration and starts InSync.

google-docs-fs

This app mounts your drive so you can thread it like a file system. Instructions come from OMG! Ubuntu!.

sudo add-apt-repository ppa:invernizzi/google-docs-fs
sudo apt-get update && sudo apt-get install google-docs-fs

Once everything that’s needed has been installed log out and back in.

  • Open Nautilus
  • Create a new folder in your Home folder titled ‘Drive’
  • Open a Terminal and run: -
  • gmount Drive username@gmail.com
  • Input your password

Your Google Drive is now mounted in the ‘Drive’ folder

OrangeTux
  • 5,275
14

Grive Tools will allow for easy desktop install of Grive and setup of Google Drive on Ubuntu 12.04 or later. NOTE: This project is no longer supported see UPDATE: July 2015

Grive Tools Screenshot

To install Grive Tools from The Fan Club PPA on Ubuntu 12.10 and 15.04:

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

For 15.10 and later you can install grive-tools package manually:

wget https://launchpad.net/~thefanclub/+archive/ubuntu/grive-tools/+files/grive-tools_1.15_all.deb
sudo gdebi grive-tools_1.15_all.deb

Supported Desktops include Unity, Gnome, KDE, Xfce, Cinnamon and LXDE.

Supported languages : Afrikaans, English, Spanish, Dutch, German, French, Italian, Portuguese, Russian, Serbian, Arabic and Japanese.

For information about the Grive Tools project here : https://www.thefanclub.co.za/how-to/ubuntu-google-drive-client-grive-and-grive-tools

UPDATE: July 2015

This project has been replaced by overGrive a complete Google Drive desktop client solution for Linux. See : https://www.thefanclub.co.za/overgrive

N0rbert
  • 103,263
7

There is another program, google-drive-ocamlfuse. This is a real Google Drive client (with a directory mounted via fuse, just like the Windows client), also this has automatic syncing and downloads the googgle documents in odf formats.

It seems that a ppa is available too. Here is a how to:

http://www.ubuntugeek.com/how-to-mount-google-drive-in-ubuntu-linux-using-google-drive-ocamlfuse.html

The source is here (the install process might not be smooth as there are dependencies and their dependencies, all having to be installed as ocaml packages, and some dont generate config files):

https://github.com/astrada/google-drive-ocamlfuse

6

Insync repository is available for Ubuntu now.

Following are the steps to install Insync:

  1. Add the source to /etc/apt/sources.list file (Sample line: deb http://apt.insynchq.com/[DISTRIBUTION] [CODENAME] non-free)

    To add the line directly to sources.list file do the following:

    echo "deb http://apt.insynchq.com/ubuntu $(lsb_release -cs) non-free" | sudo tee /etc/apt/sources.list.d/insync.list
    
  2. Import the key

    wget -O - https://d2t3ff60b2tol4.cloudfront.net/services@insynchq.com.gpg.key | sudo apt-key add -
    sudo apt-get update
    
  3. Install Insync

    sudo apt-get install insync-beta-ubuntu
    

Source: insynchq.com

d a i s y
  • 5,551
devav2
  • 37,290
5

Grive with a GUI = SyncDrive


UPDATE: According to the latest news from the source of this piece of information cited below, "SyncDrive support site is closed and it can't pull files, so it won't work." Therefore, another alternative such as overGrive (formerly called "Grive Tools") mentioned in another answer can be recommended instead.


SyncDrive is front-end cleaned GUI which uses Grive as base. There is no official Google-Drive app for Linux at this moment. SyncDrive is designed by David who is the creator of Ubuntu-based MacOSX-look-alike Pear OS.

SyncDrive can be setup easily and synchronize your files stored on your Google Drive in your ~/SyncDrive folder. It can automatically sync files and also shows storage used/remaining. SyncDrive also has an indicator for easy access.

SyncDrive Screenshot

To install SyncDrive in Ubuntu; open Terminal (Press Ctrl+Alt+T) and enter the following commands:

sudo add-apt-repository ppa:noobslab/pear-apps
sudo apt-get update
sudo apt-get install syncdrive

Source: http://www.noobslab.com/2013/09/syncdrive-google-drive-available-for.html

Note: Files in Google Docs format do not seem to be stored locally.

Sadi
  • 11,074
5

You can use drive

drive is an unofficial Google Drive client originally developed by Burcu Dogan while working on the Google Drive team. It has more features than Grive2 and fewer bugs.

drive does intentionally not support background two-way syncing, but the drive pull and drive push commands work recursively by default, equivalent to "one-way syncing on demand".

Installation for Ubuntu, according to the documentation:

sudo add-apt-repository ppa:twodopeshaggy/drive
sudo apt-get update
sudo apt-get install drive
tanius
  • 6,610
  • 2
  • 42
  • 52
4

The official Google Drive app for linux is not yet released. But there are third party options. InSync is a really good option.

Download the Insync.tar.gz from

http://s.insynchq.com/builds/insync-linux-beta1-py27.tar.bz2
Extract to your Home folder
Open a new terminal and navigate into the extracted Insync folder using the ‘cd’ command (e.g. cd insync/)
Run: sudo ./insync-installer
Follow any on-screen prompts

After installing there are a few other things to note:

Insync must be started from the Terminal by running ‘insync’
The app doesn’t auto-start by default, and there is no in-app way to enable this

Source : OMG!UBUNTU!

Steiger
  • 7,857
2

Updated on September-20-2015

Ubuntu 12.04 is NOT officially supported because of dependency issues but THIS PROJECT IS NO LONGER SUPPORTED DUE TO GOOGLE DRIVE API CHANGES .So here is installation of "over grive" a new Google Drive client.

Step 1: Download the latest version of overGrive DEB here.

Step 2: Launch OneGrive from launcher

Step 3: A window will appear ,click on Connect account then a browser window will open for you to sign in to your Google account.

Step 4: At the end you will get a code ,copy that code and paste it in the Onedrive window at Account entry box and click validate

Step 5: After setting your preferences (like location etc...) click Start Sync

For Reference here

Ravan
  • 9,567
2

For those looking for a command-line-only solution, the best I've found is rclone. It works with a variety of cloud-based storage solutions, and is fairly easy to script with. Examples below.

Incrementally backup "/path/to/local folder 1" to "/someremotefolder/folder 1" on Google Drive. Additional commands can be added to backup additional folders.

#!/bin/bash
rclone sync "/path/to/local folder 1" "drive:/someremotefolder/folder 1" -v

Restore the remote copy, incrementally overwriting the local copy.

#!/bin/bash
rclone sync "drive:/someremotefolder/folder 1" "/path/to/local folder 1"

You can also transfer files between different remote folders and cloud storage solutions using the appropriate syntax for those media. The online documentation and man page are pretty easy to follow. Don't forget to do the initial setup steps (per the documentation), after installing rclone.

DaneM
  • 376
1

This won't answer your question completely, but I'll post this anyway in case it helps you or other people.

Also, this answer is only going to be useful if you want the client for the sake of accessing your Documents offline.

If you use Google Chrome, you can get the Google Drive extensions which works offline once you activate it on your account. (There is an "Offline Docs" tab in your Google Docs' left side bar.)

You can get the extension here: https://chrome.google.com/webstore/detail/google-drive/apdfllckaahabafndbhieahigkjlhalf

I must say, it's rather limited. Documents is the only format that you can view and edit. You will be able to view your Spreadsheets, but not edit them. In my case, those limitations are okay since I mostly only use Documents.

More info: http://support.google.com/drive/bin/answer.py?hl=en&answer=1628467

Apos
  • 111
  • 2
1

You can use gdrive, an open source cross-platform command line tool for Google Drive.

Note that this is not the same as drive, which is mentioned in another answer. It's quite similar though: also written in Go, and a comparable feature set, but different command line parameters.

To install and use:

  1. Download the binary. Choose the one that fits your architecture, for example gdrive-linux-x64.

  2. Copy it to your path.

    sudo cp gdrive-linux-x64 /usr/local/bin/gdrive;
    sudo chmod a+x /usr/local/bin/gdrive;
    
  3. To use it for downloading a file:

    gdrive download 0B7_OwkDsUIgFWXA1B2FPQfV5S8H
    

    Of course, use your own file ID instead of the 0B7_Ow[…] argument. You find it in the URL when opening your files in the Google Drive web interface, or right-clicking them and clicking "Get sharable link …". In the latter case, remember to turn off link-sharing again if you don't want others to access the file when they get the link.

At first use, the tool will need to obtain access permissions to the Google Drive API. For that, it will show you a link which you have to visit in a browser, and then you will get a verification code to copy&paste back to the tool. The download then starts automatically. There is no progress indicator, but you can observe the progress in a file manager or second terminal.

tanius
  • 6,610
  • 2
  • 42
  • 52
-1

You can use Zoho Docs that have official client for Linux: Zoho Docs official image zoho client link downloading zoho client zoho client login screen zoho client Ubuntu choose folder zoho official client tray ico zoho official client Ubuntu Linux - set the bandwidth Zoho official client for Ubuntu Linux - select folders for sync

Works as Google Drive for Windows - just sync your files and you can edit them in web-browser. You can read more at official help page about sync client.

-2

You can use nice russian service Yandex Disk that have WebDav and free 10 gb and official command-line sync client. Also inside you can create and edit documents from Microsoft Office Online.

yandex disk web, google drive analog