• 树莓派安装使用全记录


    树莓派安装使用全记录

    昨天手残,把原来装好的树莓派3B+删除了一些不知道什么东西,刚好手上的4一直用的不爽,刚好一起重新搞一下。

    安装系统

    这个很简单,在官网https://www.raspberrypi.com/software/operating-systems/上选择需要安装的系统,下载到本地,下载一个官网的Raspberry Pi Imager,写SD卡很方便。

    SSH

    这个还没用,留着,万一有用
    网上的说法

    第一次开机的时候,树莓派自动创建了一个SSH,没有用过。

    系统上电

    1、一路设置用户名,选择地域和键盘后,连接Wifi,在Installing languages时卡了好久,应该是还没有设置国内源的原因。
    2、直接断电,重新开机,一路设置,跳过更新,在进入系统后,右上角提示更新可以安装了,点击安装后还是一路等……

    2、更换源
    修改 sources.list

    #编辑sources.list
    pi@raspberry $ sudo nano /etc/apt/sources.list

    #网址替换为
    http://mirrors.aliyun.com/raspbian/raspbian/
    http://mirrors.aliyun.com/raspbian/raspbian/

    修改 raspi.list

    pi@raspberry $ sudo nano /etc/apt/sources.list.d/raspi.list

    #网址替换为
    http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/
    全部修改完成后, 更新软件源
    sudo apt-get update
    sudo apt-get upgrade

    @@@@@各种问题,各种报错,最后放弃了,重新刷系统,用系统自带的源更新了系统,还行吧,等等总会好的。

    修改镜像
    @raspberry $ sudo nano /etc/apt/sources.list
    ///
    deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
    deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
    deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
    deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
    deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

    #编辑 /etc/apt/sources.list.d/raspi.list 文件,删除原文件所有内容,用以下内容取代:
    deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main

    3、中文输入法
    sudo apt-get update
    sudo apt-get upgrade
    无更新,我安装的是2022年版的系统,应该是在开机的时候已经都更新过了
    sudo apt-get install scim-pinyin
    这个过程还是比较慢的,等什么时候解决源的问题吧

  • 相关阅读:
    [RK3568 Android11]libusb流程简介
    高性能MySQL实战第04讲:高性能数据库表该如何设计?
    「ETL趋势」FDL数据中心库/表查看和调试功能上线、数据源新增支持MongoDB写入
    Spring Boot 中利用 ThreadPoolTaskExecutor 批量插入百万级数据实测!
    C++学习笔记之四(标准库、标准模板库、vector类)
    .NET面试宝典130道经典面试真题及答案
    软件设计与体系结构——创建型模式
    【C语言刷LeetCode】451. 根据字符出现频率排序(M)
    qt 使用单例模式操作数据库
    安卓教材学习
  • 原文地址:https://blog.csdn.net/rong81117/article/details/127712404