Ubuntu 22.04 LTS 新系统环境配置 目录一、安装wps二、截图工具flameshot三、必备中文输入法fcitx-googlepinyin安装四、python3环境五、解决ssh环境恢复遇到问题六、CP210X驱动频繁掉线一、安装wps搜索wps linux版本下载到最新版本进入到deb包下载目录执行安装命令。WPS Office 2019 for Linux-支持多版本下载_WPS官方网站WPS Office For Linux,支持不同格式多版本WPS For Linux版下载实现多人在线协同办公。https://linux.wps.cn/sudo dpkg -i xxx.deb二、截图工具flameshotubuntu22不带截图工具安装一款实用的截屏工具flameshot安装教程 Ubuntu上好用的截图工具——flameshot - 走看看三、必备中文输入法fcitx-googlepinyin安装对比使用sougou-linux和baidu-linux体验不及googlepinyin。安装fcitx-googlepinyin教程 Ubuntu/Kali 安装谷歌拼音输入法 - 知乎四、python3环境由于使用开发工具里面直接使用了python命令ubuntu22自带的python版本是3.10。并且没有python的软链接。在/usr/bin目录下面创建一个python软链接sudo ln -s /usr/bin/python3 /usr/bin/python安装python3-pipsudo apt install python3-pip五、解决ssh环境恢复遇到问题由于系统进行了重装保留了home分区里面的内容不想重新配置ssh key。使用git拉取代码的时候报错了。先执行ssh-add ~/.ssh/id_rsa仍然报错Git error: no matching host key type found. Their offer: ssh-rsa打开或者新建~/.ssh/config文件增加以下配置。此方法适用于window用户目录为 /c/用户/用户名/.ssh/config文件)Host * KexAlgorithms diffie-hellman-group1-sha1 HostkeyAlgorithms ssh-dss,ssh-rsa PubkeyAcceptedKeyTypes ssh-dss,ssh-rsa六、CP210X驱动频繁掉线配置好环境后使用乐鑫esp32开发版进行日志输出使用一会儿后串口就断开连接。换了多根数据线、想着应该是新系统不兼容的问题。百度搜索到解决办法网上找到教程 Ubuntu22.04:CP210X驱动频繁掉线的问题解决_入不流的博客-CSDN博客_cp210x按照步骤进行解决检查系统驱动安装正常$ lsmod|grep -i cp210x cp210x 36864 1 usbserial 57344 3 cp210x检查CP210X驱动正常安装。$ lsusb|grep -i cp210x Bus 001 Device 004: ID 10c4:ea60 Silicon Labs CP210x UART Bridge接着检查系统log信息看到为什么usb转串口断开了连接被brltty这个程序占用了。$sudo dmesg|grep -i cp210x [Tue Apr 26 19:09:35 2022] cp210x 1-8:1.0: cp210x converter detected [Tue Apr 26 19:09:35 2022] usb 1-8: cp210x converter now attached to ttyUSB0 [Tue Apr 26 19:09:38 2022] usb 1-8: usbfs: interface 0 claimed by cp210x while ‘brltty’ sets config #1 [Tue Apr 26 19:09:38 2022] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0 [Tue Apr 26 19:09:38 2022] cp210x 1-8:1.0: device disconnected直接卸载brltty$sudo apt-get purge brltty卸载完成后再次连接开发板问题已解决。七、安装git工具sudo apt-get install git gitk