工作记录文档 #树莓派

安装

参考了网上的各种资源

前期准备

  • 硬件

一台树莓派
一张 TF 卡
一个读卡器
一台 windows 电脑

  • 软件

树莓派官网下载的操作系统镜像
WIn32DiskImages

安装步骤

  1. 将 TF 卡格式化. 一般为 exFAT 格式
  2. 利用 WIn32DiskImages 将树莓派镜像烧录到 TF 卡内. 【注意:存在多个U盘时不要烧录错硬件】
  3. 将 TF 插入树莓派, 开机即可.

静态IP 配置

  • 以管理员身份编辑文件 /ect/dhcpcd.conf 在文件的末尾增加如下信息 ```

    有线网配置

    interface eth0

static ip_address=192.168.1.100/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1

无线网配置

interface wlan0

static ip_address=192.168.1.101/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1

  1. - 重启 树莓派
  2. ```bash
  3. sudo reboot now

VNC 的设置

参考 https://blog.csdn.net/qq_43279579/article/details/109142276

注意: 此步操作需要在树莓派连接显示器的情况下完成, 使用的树莓派版本为
开始菜单首选项Raspberry Pi Configuration 中找到 interfaces 选项卡。
image.png
然后,为了在没有显示屏时也能使用