# script Linux windows

```
sudo apt-get update

sudo apt-get install make

cd /mnt/c/project/go/
rm -rf /mnt/c/project/go/golinux
mkdir golinux
wget https://golang.org/dl/go1.16.8.linux-amd64.tar.gz
tar -C /mnt/c/project/go/golinux -xzf go1.16.8.linux-amd64.tar.gz


cd /mnt/c/project/go/
rm -rf /mnt/c/project/go/golinux
mkdir golinux
wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz
tar -C /mnt/c/project/go/golinux -xzf go1.16.4.linux-amd64.tar.gz


vi ~/.bashrc
export PATH=$PATH:/mnt/c/project/go/golinux/go/bin


#https://www.atlassian.com/git/tutorials/git-ssh
ssh-keygen -t rsa -b 4096 -C "tuong.vv@xx.vn"
cat /home/wall/.ssh/id_rsa.pub
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

git config --global url."git@git.xx.vn:".insteadOf "https://git.xx.vn/"
#clone another project, turn on unikey english mode


#https://grpc.io/docs/protoc-installation/
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.12.4/protoc-3.12.4-linux-x86_64.zip
unzip protoc-3.12.4-linux-x86_64.zip -d $HOME/.local

vi ~/.bashrc
export PATH="$PATH:$HOME/.local/bin"

#https://grpc.io/docs/languages/go/quickstart/
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
vi ~/.bashrc
export PATH="$PATH:$(go env GOPATH)/bin"


go get github.com/gogo/protobuf/protoc-gen-gofast
go get github.com/google/wire/cmd/wire
go get github.com/vektra/mockery/v2/.../
go get -d github.com/envoyproxy/protoc-gen-validate


mkdir -p /opt/oracle
cd /opt/oracle
wget https://download.oracle.com/otn_software/linux/instantclient/217000/instantclient-basic-linux.x64-21.7.0.0.0dbru.zip
instantclient-basic-linux.x64-21.7.0.0.0dbru.zip
sudo sh -c "echo /opt/oracle/instantclient_21_7 > /etc/ld.so.conf.d/oracle-instantclient.conf"
sudo ldconfig
vi ~/.bashrc
export LD_LIBRARY_PATH=/opt/oracle/instantclient_21_7:$LD_LIBRARY_PATH
source ~/.bashrc

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tritueviet.gitbook.io/server/linux/script-linux-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
