{"id":41,"date":"2018-09-03T23:59:45","date_gmt":"2018-09-03T23:59:45","guid":{"rendered":"https:\/\/www.newbranch.org\/wordpress\/?p=41"},"modified":"2018-09-04T00:00:41","modified_gmt":"2018-09-04T00:00:41","slug":"41","status":"publish","type":"post","link":"https:\/\/www.newbranch.org\/wordpress\/?p=41","title":{"rendered":"Google Drive Grive2 on Ubuntu"},"content":{"rendered":"<p>If you are here from our\u00a0<a href=\"http:\/\/dothisbest.com\/how-to\/install-google-drive-on-ubuntu\/\">How to install Google Drive on Ubuntu<\/a>\u00a0then you must be having problem installing<a href=\"http:\/\/dothisbest.com\/tag\/google\/\">Google<\/a>\u00a0Drive Client Grive on\u00a0<a href=\"http:\/\/dothisbest.com\/tag\/ubuntu\/\">Ubuntu<\/a>. As of Google changing it\u2019s API recently and Grive (client of Google Drive) not being maintained any more is causing problem while installing Grive on Ubuntu.\u00a0To get Grive up and running again, Vitaliy Filippov forked it and named his fork \u201cGrive2\u201d.\u00a0<strong>The fork supports the new Google Drive REST API and it also includes a new feature: partial (directory) sync, along with bug fixes.\u00a0<\/strong><\/p>\n<p>Problems you might be having while installing Grive previously are something like:<\/p>\n<p><em>The following packages have unmet dependencies:<\/em><br \/>\n<em>grive-tools : Depends: grive (&gt;= 0.3) but 0.2.0-1.1 is to be installed<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Then here again, we have posted\u00a0<a href=\"http:\/\/dothisbest.com\/how-to\/install-google-drive-grive2-on-ubuntu\/\"><strong>How to install Google Drive Grive2 on Ubuntu<\/strong><\/a><strong>\u00a0<\/strong><\/p>\n<p>Install Google Drive \u2013 Grive2 in Ubuntu or Linux Mint via PPA<\/p>\n<p>Since there are quite a tools that rely on Grive, the Grive2 binary and package continue to be called \u201cgrive\u201d, so installing Grive2 from the main WebUpd8 PPA will overwrite any old Grive versions it may find on the system (just as if it was a newer Grive1 version).<\/p>\n<p><strong>To install Grive2 in Ubuntu,\u00a0<\/strong><a href=\"http:\/\/dothisbest.com\/tag\/linux\/\"><strong>Linux<\/strong><\/a><strong>\u00a0Mint and derivatives by using the main WebUpd8 PPA, use the following commands:<\/strong><\/p>\n<p>sudo add-apt-repository ppa:nilarimogard\/webupd8<\/p>\n<p>sudo apt-get update<\/p>\n<p>sudo apt-get install grive<\/p>\n<p>If you don\u2019t want to add the PPA, you can download the deb from\u00a0<a href=\"http:\/\/ppa.launchpad.net\/nilarimogard\/webupd8\/ubuntu\/pool\/main\/g\/grive2\/\">HERE<\/a>\u00a0(for Ubuntu 12.04, you\u2019ll also need yajl2 \u2013 get it from\u00a0<a href=\"http:\/\/ppa.launchpad.net\/nilarimogard\/webupd8\/ubuntu\/pool\/main\/y\/yajl\/\">HERE<\/a>) but installing the debs manually means you won\u2019t receive automatic updates.<\/p>\n<p>Using Grive2<\/p>\n<ol>\n<li>Grive2 will download \/ upload new or changed files from the directory you run it. So firstly, let\u2019s create a new folder \u2013 we\u2019ll call it \u201cgrive\u201d -, in your home directory:<\/li>\n<\/ol>\n<p>mkdir -p ~\/grive<\/p>\n<p><strong>2.<\/strong>\u00a0Next, navigate using the terminal into the newly created \u201cgrive\u201d folder:<\/p>\n<p>cd ~\/grive<\/p>\n<p>The first time you run Grive2, you must use the \u201c-a\u201d argument to grant it permission to access your Google Drive:<\/p>\n<p>grive \u2013a<\/p>\n<p>After running the command above, an URL should be displayed in the terminal \u2013 copy this URL and paste it in a web browser. In the newly loaded page, you\u2019ll be asked to give Grive permission to access your Google Drive and after clicking \u201cAllow access\u201d, an authentication code will be displayed \u2013 copy this code and paste it in the terminal where you ran Grive2.<\/p>\n<p>That\u2019s it.\u00a0<strong>Now each time you want to sync Google Drive with your local \u201cgrive\u201d folder, navigate to the \u201cgrive\u201d folder (step 2) and run \u201cgrive\u201d (this time without \u201c-a\u201d since you\u2019ve already authenticated Grive with Google Drive).<\/strong><\/p>\n<p>Grive2 comes with some advanced\u00a0<a href=\"http:\/\/dothisbest.com\/tag\/features\/\">features<\/a>\u00a0as well. For instance, compared to the original Grive, the new Grive2 fork supports partial sync. To only synchronize one subfolder (a folder from your<em>~\/grive<\/em>\u00a0directory) with Google Drive, use:<\/p>\n<p>&nbsp;<\/p>\n<p>grive -s SUBFOLDER<\/p>\n<p>(replacing \u201cSUBFOLDER\u201d with the name of the subfolder you want to sync)<\/p>\n<p>To see all the available options, type:<\/p>\n<p>grive &#8211;help<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are here from our\u00a0How to install Google Drive on Ubuntu\u00a0then you must be having problem installingGoogle\u00a0Drive Client Grive on\u00a0Ubuntu. As of Google changing it\u2019s API recently and Grive (client of Google Drive) not being maintained any more is causing problem while installing Grive on Ubuntu.\u00a0To get Grive up and running again, Vitaliy Filippov&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":2,"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newbranch.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}