RaspberryPi_001.安装 配置

设备:Raspberry Pi 4B  https://www.raspberrypi.org/

raspbain:10(buster)    http://www.raspbian.org/

文档:https://www.raspberrypi.org/documentation/


修改软件源

# 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代:
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib

# 编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代:
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

安装中文输入法

sudo apt install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin
sudo reboot

摄像头

https://www.raspberrypi.org/documentation/raspbian/applications/camera.md

raspivid
$ raspivid -o my_video.flv -rot 180 -t 5000 -p 8 -w 1920 -h 1080

raspistill
$ raspistill -v -o test.jpg
    

https://www.cnblogs.com/wyl-pi/p/9822348.html

https://zlotus.github.io/2018/10/05/rbp3-pyopencv-camera/


关机 重启

系统重新启动总结:reboot,init 6,shutdown -r now

系统关机总结:init 0, shutdown -h now, half

关机命令:
1、halt   立刻关机
2、poweroff 立刻关机
3、shutdown -h now 立刻关机(root用户使用)
4、shutdown -h 10 10分钟后自动关机

 


使用mipi摄像头

https://projects.raspberrypi.org/en/projects/getting-started-with-picamera

https://picamera.readthedocs.io/en/release-1.13/index.html


安装中文字体

sudo apt install fonts-wqy-zenhei

更新固件

sudo rpi-update

 

你可能感兴趣的:(Raspberry)