树莓派基础配置

安装树莓派系统后

1 更换软件源

先查看自己树莓派系统的型号:

lsb_release -c

结果是:Codename: stretch

这个链接就是详细修改软件源,我给总结到下面了
https://www.jianshu.com/p/ef039e39cfa9

/etc/apt/sources.list文件改成这个,其他删除

deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

/etc/apt/sources.list.d/raspi.list

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ stretch main ui

2 安装输入法

sudo apt-get install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin
3 安装wiringPi
sudo apt-get install git-core
git clone git://git.drogon.net/wiringPi

在git下载wiringPi出错,一生气,自己下载了一个压缩包,解压到自己的环境中就好了
在我的下载中

https://download.csdn.net/download/qq_32460819/11863789

加压后, ./build
出错后, chmod 777 build
运行wiringPi

更新wiringPI

cd wiringPi
git pull origin

查看是否配置成功:

gpio -v
发布了97 篇原创文章 · 获赞 18 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_32460819/article/details/102554212