版本
WSL Ubuntu_2004.2020.424.0_x64
终端工具
使用的是MobaXterm
优点有
- 有文件管理器,方便文件的管理
- 可以在WSL下执行带UI的程序
更换源
ubuntu 20.04版本更新软件源为国内源(清华、网易、阿里云等等)
如果送MobaXterm,可以直接找到/etc/apt/sources.list文件,进行备份修改等操作
个人习惯用清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
系统更新
更新ubuntu系统的apt资源:
sudo apt-get update
进行ubuntu系统与软件更新:
sudo apt-get upgrade
安装lcov
sudo apt install lcov
配置Git
设置用户名:
git config --global user.name "xxx"
设置邮箱:
git config --global user.email "xxx@xxx.com"