Docker Compose 是用来做什么的 最直接的就是把原先要在命令行跑容器所需的参数整合到一个文件(docker-compose.yaml)里面,组织起来。这样就
配置国内源 1 2 3 4 5 6 7 8 9 10 11 12 cp /etc/apt/sources.list /etc/apt/sources.list.default sudo cat > /etc/apt/sources.list << DELIM 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 DELIM cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.default sudo cat > /etc/apt/sources.list.d/raspi.list << DELIM deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui DELIM sudo apt-get update 从 Windows 连接到 Raspberry 的远程桌面 法一
1 2 3 4 5 yum install -y make autoconf gcc zlib-devel gettext-devel make config ./configure --prefix=/usr make all make install https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
TTL 救砖和刷机看这篇: https://linan.blog/2019/N1-Burn-img/ 注意!! 擦除 flash 和 擦除 bootloader 是要 取消勾选!!!眼瞎看成 勾选 导致多花了些时间。 见:https://www.right.com.
基础操作 添加用户: useradd -m username -m 参数是为了给用户创建 home 目录。例如 /home/username 设置密码或修改密码: passwd username 用户加组: gpasswd -a username groupname 组移除用户: gpasswd -d username groupname 删除用户: userdel username 允许
工具 yum install -y NetworkManager-wifi 查看网卡状态 nmcli dev status 结果示例: 1 2 3 4 5 DEVICE TYPE STATE CONNECTION eth0 ethernet connected Wired connection 1 wlan0 wifi disconnected -- p2p-dev-wlan0 wifi-p2p disconnected -- lo loopback unmanaged -- 如果是 unavailable,则重启系统。 查看