sudo apt install -y openssh-server
sudo apt install -y git lrzsz curl wget
sudo apt install -y gcc g++ cmake build-essential ninja-build
sudo apt install -y zsh
sh -c "$(wget -O- https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
# 插件
git clone https://gitee.com/asddfdf/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://gitee.com/chenweizhen/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sudo apt-get install fonts-powerline
source ~/.zshrc
echo "setopt no_nomatch" >> ~/.zshrc
# 代理配置
# 下面内容添加到~/.zshrc文件中
proxy_ip="10.10.107.123"
proxy_port="7890"
alias proxy='export http_proxy=${proxy_ip}:${proxy_port}; export https_proxy=${http_proxy}'
alias proxyOff='unset http_proxy;unset https_proxy'
alias gitproxy='git config --global http.proxy socks5://${proxy_ip}:${proxy_port};git config --global https.proxy socks5://${proxy_ip}:${proxy_port}'
alias gitproxyOff='git config --global --unset http.proxy;git config --global --unset https.proxy'
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
bash Miniforge3-Linux-x86_64.sh
# 配置
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/