以下内容只针对于 Ubuntu/Debian,推荐使用 Ubuntu Jammy 或者 Ubuntu Focal

  1. 换源
  2. zsh & powerlevel10k
  3. 语言包 & 搜狗输入法
  4. cpp: run sudo apt install build-essential -y
  5. miniconda & cuda & pytorch
  6. nvm & node
    Reference:
1
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
  1. java & jenv

Reference:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# java
sudo apt-get update && sudo apt-get install -y wget apt-transport-https
sudo mkdir /etc/apt/keyrings/
sudo wget -O /etc/apt/keyrings/adoptium.asc https://packages.adoptium.net/artifactory/api/gpg/key/public
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://mirrors.tuna.tsinghua.edu.cn/Adoptium/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
sudo apt-get update
sudo apt-get install temurin-8-jdk temurin-11-jdk temurin-17-jdk

# jenv
git clone https://github.com/jenv/jenv.git ~/.jenv
# Shell: bash
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(jenv init -)"' >> ~/.bash_profile
# Shell: zsh
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(jenv init -)"' >> ~/.zshrc

# 重启 shell & 添加 java 版本
dirname $(dirname $(readlink -f $(which java)))
jenv add "$(dirname $(dirname $(readlink -f $(which java))))"

jenv versions

jenv global 11

8、PHP & phpenv

phpstudy 或者 宝塔 吧,编译要搞死人