WSL2(Ubuntu)使用小记

这篇博客介绍了如何在WSLUbuntu 2004上使用MobaXterm进行文件管理和执行UI程序。内容包括更换为清华源的步骤,详细列出新的sources.list,并指导如何更新系统和安装lcov。此外,还提供了配置Git的基本设置,如设置用户名和邮箱。
摘要由CSDN通过智能技术生成

版本

WSL Ubuntu_2004.2020.424.0_x64

终端工具

使用的是MobaXterm
优点有

  1. 有文件管理器,方便文件的管理
  2. 可以在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"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值