Google Drive Utility On Raspberry Pi

I’ve finally gotten back to updating and reconfiguring my Raspberry Pi 2 as a headless server and was browsing the forums to see if there’s any other services that I can add. I came across a post on how to add a push and pull utility for Google Drive. Apparently, a Googler, Burcu Dogan, that works on the Drive team abandoned the drive project that can be used on a Linux system and Emmanuel T Odeke has since picked it up.

Here are the directions for installing it on the Raspberry Pi:

See what version of ARM processor you are using (ARMv6, ARMv7, ARMv8, etc.).

$ cat /proc/cpuinfo | grep "model name"

Browse the drive releases and copy the latest arm binary release URL.

Make the Google Drive directory.

$ mkdir /your/drive/directory

Download the drive binary.

$ wget https://github.com/odeke-em/drive/releases/download/v0.3.4/drive-armv6 -O /usr/local/bin/drive

Make the binary executable.

$ sudo chmod +x /usr/local/bin/drive

Initialize drive

$ drive init /your/drive/directory

Open up the Oauth2 link in a browser, copy the key, and paste it into the Raspberry Pi console.

You should be good to go!

Tested on:

  • 05/02/2016
  • drive v0.3.4
  • Raspberry Pi 2 (BCM2709)
  • Raspbian Jessie (8)
Advertisements