terça-feira, julho 19, 2016

Google Drive for Linux is Here, Sort Of

An Official Google Drive for Linux is Here, Sort Of — Maybe This Is All We’ll Ever Get



4 Unofficial Google Drive Clients for Linux

1. Insync
2. Rclone
3. drive


https://github.com/odeke-em/drive#requirements

drive is a tiny program to pull or push Google Drive files.
https://github.com/odeke-em/drive#requirements

paid alternatives
https://www.insynchq.com/downloads

installing golang
https://golang.org/doc/install


---

Making your own client_id

When you use rclone with Google drive in its default configuration you are using rclone’s client_id. This is shared between all the rclone users. There is a global rate limit on the number of queries per second that each client_id can do set by Google. rclone already has a high quota and I will continue to make sure it is high enough by contacting Google.
However you might find you get better performance making your own client_id if you are a heavy user. Or you may not depending on exactly how Google have been raising rclone’s rate limit.
Here is how to create your own Google Drive client ID for rclone:
  1. Log into the Google API Console with your Google account. It doesn’t matter what Google account you use. (It need not be the same account as the Google Drive you want to access)
  2. Select a project or create a new project.
  3. Under Overview, Google APIs, Google Apps APIs, click “Drive API”, then “Enable”.
  4. Click “Credentials” in the left-side panel (not “Go to credentials”, which opens the wizard), then “Create credentials”, then “OAuth client ID”. It will prompt you to set the OAuth consent screen product name, if you haven’t set one already.
  5. Choose an application type of “other”, and click “Create”. (the default name is fine)
  6. It will show you a client ID and client secret. Use these values in rclone config to add a new remote or edit an existing remote.
---

Google drive Background sync...


Google introduced Google Drive on April 24, 2012 and promised Linux support “coming soon.” That was nearly two and a half years ago. There’s now a somewhat “official” Google Drive client for Linux, but it’s probably not what you want.
Google has continued to affirm that they’re “still working on it” for the last few years. Google does use Linux internally, so it’s no surprise there’s a solution created by a Google Drive developer.
Update: The tool below has changed since we wrote this article, so be sure to consult the instructions on the official website for the latest installation and usage details.

Meet “drive” – “Background sync is not just hard, it’s stupid”

drive” is a small command-line program that runs on both Linux and Mac OS X. It’s open-source and written in Google’s “Go” programming language. This program was written by Burcu Dogan, aka rakyll, a Google employee who has worked for Google Drive’s platform team. It’s even copyrighted by Google. Clearly, this is the closest thing to an official Google Drive client for Linux we’ve seen yet.
The application’s page at github lists all the reasons why a background-syncing Google Drive client — the kind of official client available for Windows and Mac — is “stupid” and “not worth to implement.” To be clear, this developer does say that she doesn’t speak for Google as a whole. We can’t just look at this page and ascribe what she says to Google or the Google Drive team. However, it’s clearly disappointing for Linux users to wait more than two years for a promised client only to see a Google Drive developer trash the entire concept of background-syncing and release a more limited client. If you’ve been waiting for a proper official client, this probably isn’t what you were waiting for.
For these philosophical reasons, “drive” doesn’t sit in the background and sync files back and forth. It’s a command you run when you need to push a file to your Google Drive account, or to pull a file from it to your local computer. The “drive push” command pushes a file to Google Drive, and the “drive pull” command pulls a file from Google Drive. The developer notes situations where this could be especially useful — if you store a virtual machine in your Google Drive, you might want to immediately sync a tiny text file rather than syncing the large virtual machine file first.
google-drive-push-for-linux

Using drive

To use this application, you’ll need version 1.2 or newer of Google’s Go language compiler installed. On Ubuntu 14.04, you can install it using the following command — this also installs other tools you’ll need:
sudo apt-get install golang git mercurial
Set up your GOPATH before continuing.
After doing so, use the following command to download and install drive:
go get -u github.com/odeke-em/drive/cmd/drive
(This command has changed since the screenshot below was taken.)
install-drive-for-linux
You can then run the following command to get help:
drive help
google-drive-for-linux-help
First, you’ll need to initialize drive with the following command. It will ask you to choose a local directory and authenticate with your Google account.
drive init
initialize-drive-for-linux
Afterward, you can use the “drive push” command to push a file to the remote server — for example, “drive push example.txt” pushes a file named example.txt in the current folder to your Google Drive account. The “drive pull” command pulls a file from Google Drive to your computer — for example, “drive pull /text/example.txt” pulls a file named “example.txt” located in the Google Drive “text” folder to your local computer. It’s your job to push and pull files back and forth when you need them.

Other Google Drive Clients for Linux

RELATED ARTICLE
4 Alternatives to Google Drive for Linux
We’ve covered using Google Drive on Linux with third-party software, but why bother jumping through those hoops? You can use... [Read Article]
Insync offers a full-featured Google Drive client for Linux. However, you’ll have to pay a $15 one-time fee per Google account to use it. Paying for a syncing client on top of your cloud storage is a tough pill to swallow whenservices like Dropbox and SpiderOak offer an official client that actually works on Linux. Insync was previously free during its beta period.
Grive is an open-source Google Drive client, but it’s still considered “beta” and hasn’t been updated in a year. It’s hardly an ideal option to trust your files with. Grive Tools is a package that provides desktop integration for the grive command-line program, making it easier to use and adding automatic sync. This solution apparently works pretty well, but it is a selection of tools layered on a beta-quality unofficial client, which doesn’t inspire the most confidence. However, it’s probably the most complete solution available and is more full-featured than the “official” dive tool.
grive-setup-from-grive-tools-on-ubuntu-14.04

Long-suffering Linux users might remember the sorry saga of Unreal Tournament 3. Epic Games had a good history of supporting Linux with their previous Unreal Tournament games, and they promised Unreal Tournament 3 would also be on Linux. The Linux client was delayed. Even after the game was released for Windows, they continued saying a Linux client was coming soon. They spent years regularly assuring concerned Linux users that the game was on its way — even showing off screenshots of it running on Linux. After about three years of this, Epic finally said, “Sorry but I don’t think this is going to happen anymore.”
Perhaps we’re now just waiting for Google to say the same thing about Google Drive for Linux. Google’s support of Linux has been good in the past — but so was Epic Games’.

Nenhum comentário: