Skip to content

Instantly share code, notes, and snippets.

@bitrot-sh
Created January 29, 2018 18:23
Show Gist options
  • Save bitrot-sh/6ea01e8113204af2dbe2b63035b8342e to your computer and use it in GitHub Desktop.
Save bitrot-sh/6ea01e8113204af2dbe2b63035b8342e to your computer and use it in GitHub Desktop.
#!/bin/bash
ID="CLIENT_ID_FROM_API_MANAGER"
KEY="CLIENT_SECRET_FROM_API_MANAGER"
if [ ! -d "$HOME/gdrive" ]; then
mkdir ~/gdrive
fi
sudo apt install software-properties-common dirmngr -y
sudo add-apt-repository ppa:alessandro-strada/ppa -y
sudo bash -c "echo 'deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial main' > /etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-bionic.list"
cat << EOF | sudo apt-key add -
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.6
Comment: Hostname: keyserver.ubuntu.com
mI0EUis2IAEEANtNwNEJsSUU+mZHyitKDas/agkmtV+u5LZvCP0WJR+IExtfsiw6ruaDVM3r
SSvKG2CV7qKPLNAw5jBBfldHaF0AOSPd/skpCL42PqMIZG92UUUoAJB/w8Gx7yvMvzu11akj
dI14TtNwXjYvLWegCUbHwDTn2v8bmEMQkLMjD12TABEBAAG0I0xhdW5jaHBhZCBQUEEgZm9y
IEFsZXNzYW5kcm8gU3RyYWRhiLgEEwECACIFAlIrNiACGwMGCwkIBwMCBhUIAgkKCwQWAgMB
Ah4BAheAAAoJEK1fI132ObBBRwID/0O6GRwgs5HhAq+l9RWDrsvTPiZ5WhSO0zM0YUs+h336
S5ynlk2bHgQMO9+VH7gWGS+ymGVWtac4faNJGhygeGkUmeSIDcc0fLDhdgKBXFkTRip8/iFq
4mKK24/tffhnZUUAi59mMeYtkH3UlPDskjT6D2LXs7XDcZ2AHrPmrDOo
=OLIr
-----END PGP PUBLIC KEY BLOCK-----
EOF
sudo apt update
sudo apt install google-drive-ocamlfuse -y
sudo google-drive-ocamlfuse -headless -id $ID -secret $KEY -o allow_other gdrive/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment