Skip to content

Instantly share code, notes, and snippets.

@macghriogair
Created January 20, 2019 17:29
Show Gist options
  • Save macghriogair/855f197a759504a1752a860bf3c3c3fb to your computer and use it in GitHub Desktop.
Save macghriogair/855f197a759504a1752a860bf3c3c3fb to your computer and use it in GitHub Desktop.
[Google Photo Upload with GO client on Raspberry Pi] #go #raspi #gphoto
# Install GO language on Raspberry PI 2/3
cd /tmp
# Check latest GO version and adapat URL if necessary
wget https://storage.googleapis.com/golang/go1.10.1.linux-armv6l.tar.gz
sudo tar -C /usr/local -xvf go1.10.1.linux-armv6l.tar.gz
# Add environment vars to .bashrc
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
# Reload shell
source ~/.bashrc
# Install the gphoto uploader from https://github.com/int128/gpup via GO get
go get -v github.com/int128/gpup
# Follow instructions there on how to set u your OAUTH2 credentials.
# Since authorization process requires opening a browser,
# e.g. run gpup on a computer with graphical desktop and then copy the credentials from ~/.gpupconfig to the PI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment