配置Ubuntu虚拟机需要的链接列表

Posted by Kody Black on October 18, 2023

因为经常出于各种需要会新建虚拟机,每次都需要重复找一些资源,这里列出来便于使用

Ubuntu

镜像仓库

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #最好还是先备份一下,真的~

sudo vi /etc/apt/sources.list
[ubuntu 镜像站使用帮助 清华大学开源软件镜像站 Tsinghua Open Source Mirror](https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/)

上海交通大学 Linux 用户组 软件源镜像服务 (sjtu.edu.cn)

常用软件:tmux;ssh;build-essential;

python和pip

docker

  • 安装docker

    [Install Docker Engine on Ubuntu Docker Docs](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)
  • run without sudo

    [Linux post-installation steps for Docker Engine Docker Docs](https://docs.docker.com/engine/install/linux-postinstall/)
  • docker源

    上海交通大学 Linux 用户组 软件源镜像服务 (sjtu.edu.cn)

  • docker-compose

    [Install Compose standalone Docker Docs](https://docs.docker.com/compose/install/standalone/#on-linux)

代理

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
  • powerlevel10k: A Zsh theme (github.com)

  • 插件

    # 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
    )
    

待续~