栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

树莓派安装系统

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

树莓派安装系统

树莓派安装系统
  • 前言
    • 刻盘
    • 初始配置
    • 系统换源

前言

树莓派买了有快两年了,有时候因为自己操作错误导致系统需要重装,时间长了装机过程都忘了,所以现在重新整理一份,备用。

刻盘

1.Win32DiskImager.exe
位置:D:SoftWareA树莓派Win32DiskImager-0.9.5-binary
2. 系统镜像: 2020-02-13-raspbian-buster-full.img
位置:H:90系统镜像
基本操作,具体就不细说了。

3.将刻好的盘装入树莓派,插电静等,启动后进入桌面

初始配置

设置初始密码,选择wifi


vnc,ssh启用

重新启动

系统换源

树莓派系统使用的linux是debian系统,所以树莓派启用root和debian是相同的。
debian里root账户默认没有密码,但账户锁定。
当需要root权限时,由默认账户经由sudo执行,Raspberry pi 系统中的Raspbian
默认主机名是 raspberrypi 默认用户是 pi 密码为 raspberry

// 启用 root 账号登录
sudo passwd --unlock root
passwd: password expiry information changed.

1、修改软件更新源,选择中科大的源,删除或修改或注释掉原来的
**sudo nano /etc/apt/sources.list


#Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi


2、修改系统更新源
**sudo nano /etc/apt/sources.list.d/raspi.list


deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ buster main

3、更新软件源列表、软件版本和内核版本
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update

电脑配置较低,更新约1小时左右

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/288857.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号