Created
January 20, 2019 17:29
-
-
Save macghriogair/855f197a759504a1752a860bf3c3c3fb to your computer and use it in GitHub Desktop.
[Google Photo Upload with GO client on Raspberry Pi] #go #raspi #gphoto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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