Raspbery Pi OS(Raspbian)软件初始化

Raspbery Pi OS(Raspbian) 系统安装完成后,根据不同需求环境,进行软件安装

备注

我的实践是安装 Raspberry Pi OS Lite 仅包含核心操作系统 ,所以本文实践都是在这个基础上完成的。如果你安装完整桌面版本,则会和我的情况不同

底层OS基础应用

我的 树莓派Raspberry Pi 5 是作为一个物理底座来运行,也就是说:

  • 保持物理主机操作系统最小精简化,只安装必要的维护工具

  • 所有应用都通过 DockerKVM 在 容器/虚拟机 中运行,所以物理主机OS不需要复杂部署,力求精简化方便迁移应用

Raspbery Pi OS(Raspbian) Lite版本默认已经安装了很多运维工具,比我在 Debian精简系统初始化 中需要安装的应用要少一些。我的实践适当做了调整:

安装运维管理工具
# tmux: 多会话终端
# neovim: 增强型vim编辑器

# 以下软件包提供必要工具
# cron: 定时任务(可选)
# locales: Debian的Docker镜像默认缺少需要补全
# net-tools: netstat
# dnsutils: dig/nslookup
# plocate: updatedb/locate
# gnupg2: GPG (安装rvm需要)
# git: git版本管理
# tree: tree目录检查
# unzip: unzip解压缩

# debian 安装
#apt install cron tmux neovim locales net-tools dnsutils plocate gnupg2 git tree unzip

# Raspberry Pi OS默认已经安装部分应用,
# OS底座缺少部分按以下补全(没有安装 gnupg2, git)
apt install tmux dnsutils plocate tree