记录下安装Ubuntu的一些基本配置

note: 安装的时候不要选择边安装边下载,贼慢

安装完后的基本配置

  1. 换国内源

    • 先备份一份软件源配置:sudo cp /etc/apt/sources.list /etc/apt/sources_bak.list

    • 修改源文件: sudo vi /etc/apt/source.list

      # 默认注释了源码仓库,如有需要可自行取消注释
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
      # deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
      # deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
      # deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
      # deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
      
      # 预发布软件源,不建议启用
      

    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

    # deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    ```
    
  2. 打开“软件和更新”,把五个选项都勾选,然后下拉框里点其他站点选择USTC的源

  3. 更新索引:sudo apt-get update

  4. 更新软件:sudo apt-get upgrade

  5. 打开语言支持,如果选择安装时简体中文可能没下载完整,打开后有弹框选择下载

  6. 下载完后点应用到整个系统,注销再登录就可以了

相关问题记录

ubuntu Files文件左侧边栏不见了解决方法:

  1. F9
  2. Shift + F9

Ubuntu的壁纸文件存放位置为:/usr/share/backgrounds

虚拟机安装vmtool:

  1. 复制tar.gz文件
  2. 用tar -zxvf 解压文件
  3. 运行.pl文件