Setting up your Node (v2.1.0-p2)
3. Prerequisite software
1. Use root user for this installation
Make sure you are using the root user as this guide is tailored
2. Update
Run apt update to fetch the latest version of the package list from Ubuntu's software repository
sudo apt -q update3. Install Git (Optional)
sudo apt install git -ygit --versionIt must show:
git version 2.34.1
4. Install GO (Optional)
Download the distribution source
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gzOR
wget https://go.dev/dl/go1.22.4.linux-arm64.tar.gzThe project support both AMD and ARM.
KNOWN ISSUE FOR CherryServers in Singapore region, For some of their IP addresses, Google.com blocks them and this will prevent you from downloading (wget) the go1.22.4 gzip file from the URL above. To solve this, unfortunately, the only way is to cancel your new VDS and order a new one so that you get a new Primary IP address. I know this because I experienced this when I purchased my Cloud VDS4.
Extract the zipped (gz) file
tar -xvf go1.22.4.linux-amd64.tar.gzMove the GO folder to usr folder
mv go /usr/localDelete (remove) the downloaded GO zipped file
rm go1.22.4.linux-amd64.tar.gzPermanently set GO environment variables
vim ~/.bashrcPress i to start inserting text into ~/.bashrc file
Scroll until the end of the file, and insert the following in new lines at the end:
GOROOT=/usr/local/go
GOPATH=$HOME/go
PATH=$GOPATH/bin:$GOROOT/bin:$PATHPress esc to stop the insert-text mode
Press shift + :wq, and press enter or return on the keyboard
Run:
source ~/.bashrc
go versionIt must show:
go version go1.22.4 linux/amd64
