Ubuntu 22环境配置

Update

1
sudo apt -y update && sudo apt -y upgrade

zsh

1
2
3
sudo apt -y install zsh
chsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

git

1
2
3
git config --global init.defaultBranch main
git config --global user.email "xxxxxxxxx"
git config --global user.name "xxxx"

Node.js

Install nvm & node.js:

1
2
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install v16.15.1

Python

在Ubuntu 22上,已经默认安装了Python3

1
2
3
4
5
6
7
sudo apt install -y python3-pip
sudo apt install -y build-essential libssl-dev libffi-dev python3-dev
sudo apt install -y python3-venv
mkdir environments
cd environments
python3 -m venv myenv
source myenv/bin/activate

AWS CLI

一定要选择正确的安装包,x86/arm架构对应的安装包是完全不一样的。。。

1
2
3
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

评论