增加 远程开发快速入门
This commit is contained in:
+76
@@ -0,0 +1,76 @@
|
||||
# 各类软件速查
|
||||
|
||||
## NodeJs[下载页面](https://nodejs.org/en/download/package-manager)
|
||||
|
||||
Linux & macOS
|
||||
```bash
|
||||
# installs nvm (Node Version Manager)
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
|
||||
# 需要重启shell 或者 重载配置
|
||||
source ~/.bashrc
|
||||
# download and install Node.js
|
||||
nvm install 20
|
||||
|
||||
# (可选) 全局安装vite 和 pnpm
|
||||
npm i -g vite pnpm
|
||||
# (可选) 配置pnpm, 开启install -g
|
||||
pnpm setup
|
||||
```
|
||||
|
||||
## GoLang[下载页面](https://go.dev/dl/)[安装说明]( https://go.dev/doc/install)
|
||||
Linux
|
||||
```bash
|
||||
wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
|
||||
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
go verion
|
||||
```
|
||||
|
||||
## Rust [下载页面](https://forge.rust-lang.org/infra/other-installation-methods.html)
|
||||
Linux
|
||||
```bash
|
||||
sudo apt install gcc
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
|
||||
# 需要重启shell 或者 重载配置
|
||||
source ~/.bashrc
|
||||
rustup
|
||||
|
||||
```
|
||||
|
||||
## Docker[下载页面](https://docs.docker.com/engine/install/)
|
||||
|
||||
Linux - Ubuntu24.04
|
||||
|
||||
移除旧的
|
||||
```bash
|
||||
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
|
||||
```
|
||||
|
||||
安装新的
|
||||
```bash
|
||||
# Add Docker's official GPG key:
|
||||
sudo apt-get update
|
||||
sudo apt-get install ca-certificates curl
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
# Add the repository to Apt sources:
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
sudo apt-get update
|
||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
```
|
||||
|
||||
(可选) docker 用户组修改, 免root运行
|
||||
|
||||
```bash
|
||||
sudo groupadd docker
|
||||
sudo usermod -aG docker $USER
|
||||
## 需要重启shell.
|
||||
## 注意!! 每次登录shell都需要执行以下语句, 才能实现免root运行命令!!
|
||||
newgrp docker
|
||||
# 验证无需root运行docker
|
||||
docker run hello-world
|
||||
```
|
||||
Reference in New Issue
Block a user