1. Install google-chrome
1.1 First download the google-chrome.deb installation package
After that install the gdebi package
sudo apt install gdebi
1.2 Install the software to be installed
sudo gdebi code_1.81.1-1691620686_amd64.deb
1.3 Solve the problem that Chrome cannot start
root@ubuntu:~/Downloads# whereis google-chrome
google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz
root@ubuntu:~/Downloads# vim /usr/bin/google-chrome
//在最后一行 exec -a "$0" "$HERE/chrome" "$@" 后面添加--user-data-dir --no-sandbox
2. Install go under linux
2.1 Download Go
Go Download- Go Language Chinese Network- Golang Chinese Community
Extract the file to the /usr/local directory
sudo tar -xzf go1.13.5.linux-amd64.tar.gz -C /usr/local
2.2 Configure environment variables
sudo vim /etc/profile
Add the following:
export GOPATH=/root/home/go_workSpace
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
GOPATH is the directory where the Go project is stored; GOROOT is the directory where the Go installation package is located.
Reload environment variables.
source /etc/profile
Type go env
Successful installation
2.3 Modify Proxy
go env -w GO111MODULE=on #设置变量
go env -w GOPROXY=https://goproxy.cn,direct #设置变量