Last active
May 4, 2021 02:57
-
-
Save Ademking/176b9ff9d879ebce7615728c2af06d48 to your computer and use it in GitHub Desktop.
Installer for VPS ( Go + Git + Curl + Other tools )
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
| #!/bin/bash | |
| export GOFILE="go1.16.3.linux-amd64.tar.gz" | |
| cd ~ | |
| wget "https://golang.org/dl/$GOFILE" | |
| sudo tar -C /usr/local -xzf "$GOFILE" | |
| rm "$GOFILE" | |
| echo '#go configuration' >> ~/.bashrc | |
| echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc | |
| echo 'export GOPATH=$HOME/go' >> ~/.bashrc | |
| echo 'export GOBIN=$GOPATH/bin' >> ~/.bashrc | |
| echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc | |
| # export | |
| export PATH="$PATH:/usr/local/go/bin" | |
| export GOPATH="$HOME/go" | |
| export GOBIN="$GOPATH/bin" | |
| export PATH="$PATH:$GOPATH/bin" | |
| # install git | |
| sudo apt-get install git | |
| # install curl | |
| sudo apt-get install curl | |
| # Reload | |
| source ~/.bashrc |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this, run: