Raspberrypi 给树莓派安装虚拟键盘【已解决】

之前弄了块7寸的触摸屏,一直没怎么用它的触摸功能,最近总需要出门就想试着用一下,结果发现没有虚拟键盘,心想着这还不容易,装一个呗。

其实,安装虚拟键盘主要就三步:更换国内源、安装虚拟键盘、修复乱码;具体操作如下:

Step 1:替换国内源

第一步:打开source.list文件
sudo nano /etc/apt/sources.list

第二步:注释掉原有内容,添加如下内容:
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi

第三步:更新树莓派
sudo apt-get update

备注:国内镜像源地址
清华大学镜像:https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
阿里云镜像:https://mirrors.aliyun.com/raspbian/raspbian/

Step 2:安装matchbox

sudo apt-get install matchbox-keyboard

Step 3:解决乱码

sudo apt-get install ttf-wqy-zenhei

弄好之后重启【sudo reboot】,虚拟键盘就乖乖的出现在系统菜单里面啦~!

爱好编程、喜欢计算机、也喜欢美食~
原文地址:https://www.cnblogs.com/x5115x/p/14922545.html