Skip to content

Instantly share code, notes, and snippets.

@sc0Vu
Last active November 23, 2020 09:26
Show Gist options
  • Save sc0Vu/5efe02663acd42235f1da8cc9796c3de to your computer and use it in GitHub Desktop.
Save sc0Vu/5efe02663acd42235f1da8cc9796c3de to your computer and use it in GitHub Desktop.
Install GO go1.13.4 on Raspberry Pi 3/Zero
filename=go1.13.4.linux-armv6l.tar.gz
gohash=9f76e6353c9ae2dcad1731b7239531eb8be2fe171f29f2a9c5040945a930fd41
sudo rm -rf /usr/local/go
wget https://dl.google.com/go/$filename
sudo tar -C /usr/local -xvf $filename
filehash=$(sha256sum $filename | cut -d ' ' -f1)
if [ $filehash != $gohash ]
then
echo "Filehash was not equal"
exit 0
fi
echo "Filehash matched"
cat >> ~/.bash_profile << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bash_profile
rm -rf $filename
@sc0Vu
Copy link
Author

sc0Vu commented Sep 21, 2020

install go 1.14.4

filename=go1.14.4.linux-armv6l.tar.gz
gohash=aed845e4185a0b2a3c3d5e1d0a35491702c55889192bb9c30e67a3de6849c067

@sc0Vu
Copy link
Author

sc0Vu commented Nov 23, 2020

Find another download at: https://golang.org/dl/

--no-check-certificate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment