软件安装
基础软件安装
- 安装树莓派操作系统。linux下使用
dd -if -of
写入操作系统,或者通过跨平台工具etcher
写入镜像。 - 开启ssh(在boot下创建一个ssh文件(不需要任何文件))
- 至此即可通过ssh连接树莓派
- 安装
vim
常用软件列表清单: zsh
:比bash更好用(sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
)cmake
:跨平台编译工具- 安装输入法:
sudo apt-get install scim-pinyin
reboot
配置
- 设置树莓派镜像源(选择自己的系统):
# 编辑 `/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
配置vncverver服务允许远程通过图形化界面连接树莓派
vncserver -geometry 1920x1080 :1
在vncviewer通过ip:1
连接图形化界面
- 配置ssh免密码登录
ssh-keygen -t RSA -c username@126.com
# 添加面密码登录的机器的公钥进文件
vim ~/.ssh/authorized_keys
开发环境安装
- 安装python:
wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-armv7l.sh
bash Miniconda3-latest-Linux-armv7l.sh
- 安装编译器codium(编写Python和C++)
wget https://mirrors.tuna.tsinghua.edu.cn/github-release/VSCodium/vscodium/LatestRelease/codium_1.44.0-1586429080_armhf.deb
sudo dpkg -i codium_1.44.0-1586429080_armhf.deb