树莓派安装系统

树莓派安装系统

前言

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

刻盘

1.Win32DiskImager.exe
位置:D:\SoftWare\A树莓派\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小时左右

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值