[Raspi]树莓派装机使用上手指南

[Raspi]树莓派装机使用上手指南

本文是一篇针对本人重装树莓派Raspbian系统操作的记录,对许多地方没有做详细说明,所以更适合对树莓派略有了解的及和我一样有重装系统需求的读者 : - )

准备材料

  • 树莓派4B(Raspberry Pi 4 Computer Model B 4GB)
  • SD卡(SanDisk Ultra 128GB UHS-I Class 10 MicroSDXC Memory Card)
  • 屏幕(1024x600)
  • 若干数据线及转接线

操作步骤

  1. 使用"SD Card Formatter"格式化SD卡

  2. 使用"Win32 Disk Imager"将系统镜像写入SD卡

  3. 无视系统关于SD卡的所有报错,打开SD卡,找到config.txt,在其中添加以下内容

    max_usb_current=1
    hdmi_group=2
    hdmi_mode=1
    hdmi_mode=87
    hdmi_cvt 1024 600 60 6 0 0 0
    hdmi_force_hotplug=1
    config_hdmi_boost=4
  4. micro-HDMI选择左边的接口(此步仅针对本人设备)

  5. 开机引导,最后一步"检查更新"选择跳过

  6. 换阿里云Buster源

    sudo nano /etc/apt/sources.list

    改为

    deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
    deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi

    另外

    sudo nano /etc/apt/sources.list.d/raspi.list

    改为

    deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main
    deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main

    并且

    sudo nano /etc/resolv.conf

    改为

    nameserver 114.114.114.114

    重启树莓派

    sudo reboot

    重启后

    sudo apt-get update && sudo apt-get upgrade -y
  7. 安装Vim

    sudo apt-get remove vim-common
    sudo apt-get install vim

    配置

    vim ~/.vimrc

    改为

    set number
    syntax on
    set tabstop=4
  8. 备份当前系统

    将能够存储下树莓派系统的SD卡通过读卡器插入树莓派,用附件里的SD Card Copier备份

猜你喜欢

转载自www.cnblogs.com/Clouds42/p/12325784.html