Ubuntu 16.04安装Google Drive Linux客户端Grive2 0.5.1

作为一个非官方的Google Drive 客户端Grive2是一个简单的Linux客户端应用程序,只需下载您的Google Drive中的所有文件到当前目录以后本地修改文件再次运行Grive,它就会上传更改回你的Google Drive


  • 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 performed when you run Grive.
  • symbolic links support.
  • support for Google documents.

Grive2 0.5.1 亮点:

  • 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), Ubuntu 14.04 (Trusty Tahr) 安装 Grive2 0.5.1

sudo add-apt-repository ppa:nilarimogard/webupd8

Ubuntu 16.04安装Google Drive Linux客户端Grive2 0.5.1

sudo apt-get update

sudo apt-get update

sudo apt-get install grive

Ubuntu 16.04安装Google Drive Linux客户端Grive2 0.5.1


sudo grive –help


Ubuntu 16.04安装Google Drive Linux客户端Grive2 0.5.1

linuxidc@linuxidc:~$ 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 performing them.


linuxidc@linuxidc:~$ mkdir /home/linuxidc/sync


linuxidc@linuxidc:~$ cd sync/


linuxidc@linuxidc:~/sync$ grive -a


Please go to this URL and get an authentication code:


Please input the authentication code here:

复制并粘贴该URL浏览器中接下来,您将被要求提供访问您的Google Drive输入您的Gmail凭证。最后,认证码将被显示。复制验证代码并将其粘贴您运行grive-a”命令终端就可以


Ubuntu 16.04安装Google Drive Linux客户端Grive2 0.5.1

现在,只要你想文件/文件夹同步,并从您Google Drive进入“同步文件夹,然后运行以下命令

linuxidc@linuxidc:~$ cd /home/linuxidc/sync/

linuxidc@linuxidc:~/sync$ sync

Ubuntu 16.04安装Google Drive Linux客户端Grive2 0.5.1

请注意,您不必有“-a”参数每次。因为我们已经与Google Drive进行身份验证。

安装 Grive-tools, 一个图形界面的 Front-end for Grive

从命令行工作新手有点难度。因此,fansclub团队开发了一个GUI前端称为grive-tools for Grive.

首先,添加grive-tools PPA为Ubuntu 15.04和旧版本和其他Ubuntu的衍生产品。

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


安装Grive和Grive-tools您应该配置Google accounts for Grive终端打开它:sudo grive-setup


You should 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”:

一个新的浏览器窗口现已开放,请您登录到您的谷歌帐户输入您的Gmail凭证,并允许Grive访问您的Google Drive认证码将被显示。复制/粘贴到Grive窗口代码,然后单击下一步继续。

现在,安装程序将您的主页文件夹中创建一个名为Google Drive硬盘文件夹(例如/home/linuxidc/Google Drive和同步谷歌的所有文件驱动器复制到本地文件夹。



现在你可以看到从Google Drive中的所有文件将在您的本地系统Google Drive文件夹中找到

你可以在你的主目录当地Google Drive文件夹请参考下面的截图

Ubuntu 16.04安装Google Drive Linux客户端Grive2 0.5.1

从现在起,复制和粘贴的文件/文件要同步到您的在线Google Drive帐户文件夹在本地Google Drive文件夹

OK。开始使用在Ubuntu桌面使用Google Drive


Ubuntu 16.04 LTS正式发布下载,长达5年技术支持  http://www.linuxidc.com/Linux/2016-04/130508.htm

Ubuntu 16.04 U盘安装图文教程 http://www.linuxidc.com/Linux/2016-04/130520.htm

Ubuntu 16.04 LTS安装好需要设置的15件事 http://www.linuxidc.com/Linux/2016-04/130519.htm

Ubuntu 16.04 LTS 今日发布 Canonical公布系统新特性 http://www.linuxidc.com/Linux/2016-04/130466.htm

将Ubuntu 15.10升级到Ubuntu 16.04  http://www.linuxidc.com/Linux/2016-03/129158.htm

Ubuntu 16.04安装Lua游戏引擎Love http://www.linuxidc.com/Linux/2016-03/129108.htm

Ubuntu 16.04 LTS如何使用Snap软件包 http://www.linuxidc.com/Linux/2016-04/130679.htm

Ubuntu 16.04 需要你的帮助,让 GNOME Software 更美观 http://www.linuxidc.com/Linux/2016-03/129237.htm

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2