Ubuntu#
- Ubuntu Releases
- Ubuntu 22.04.3 LTS (Jammy Jellyfish)
- Ubuntu 20.04.6 LTS (Focal Fossa)
- Ubuntu 18.04.6 LTS (Bionic Beaver)
CentOS#
镜像仓库#
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #最好还是先备份一下,真的~
sudo vi /etc/apt/sources.list
ubuntu | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
上海交通大学 Linux 用户组 软件源镜像服务 (sjtu.edu.cn)
常用软件:tmux;ssh;build-essential;
python和pip#
sudo ln -sf /usr/bin/python3 /usr/bin/python
#给python链接到python3python要安装别的版本直接问gpt就行
Installation - pip documentation v23.3 (pypa.io)
wget https://bootstrap.pypa.io/get-pip.py
- sudo python get-pip.py
pip源:
docker#
安装docker
run without sudo
Linux post-installation steps for Docker Engine | Docker Docs
docker源
docker-compose
代理#
Releases · trojan-gfw/trojan (github.com)
zsh相关#
ohmyzsh没有代理安装起来总是失败,可以换用下面的方法:
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
chmod +x install.sh
vim install.sh
# 修改git仓库为gitee,找到下面两行并进行修改
REPO=${REPO:-ohmyzsh/ohmyzsh}
REMOTE=${REMOTE:-https://github.com/${REPO}.git}
==>
REPO=${REPO:-mirrors/oh-my-zsh}
REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}
# 保存后执行
sh install.sh
插件
# zsh-syntax-highlighting 需要代理 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting # zsh-autosuggestions 需要代理 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# vim ~/.zshrc plugins=( git zsh-autosuggestions zsh-syntax-highlighting z sudo # tmux )