美文网首页
树莓派系统安装

树莓派系统安装

作者: 断断断续 | 来源:发表于2018-11-13 15:18 被阅读0次

一、下载镜像

官网

可以通过官方的NOOBS工具或者直接下载系统镜像写入SD卡,此处通过写入SD的方式安装RASPBIAN系统

二、SD卡写入镜像

烧录工具:Etcher

三、系统启动前的准备

1.开启ssh

新建ssh文件,没有后缀,内容为空,复制到SD卡boot分区下

2.连接wifi

新建wpa_supplicant.conf,添加内容:

country = CN
ctrl_interface = DIR = /var/run / wpa_supplicant GROUP = netdev
update_config = 1
network = {
    ssid = "wifi名称"
    psk = "wifi密码" 
    key_mgmt = WPA-PSK
    priority = 100
}

key_mgmt为加密方式,priority 为优先级,数字越大优先级越高

四、修改密码

树莓派默认用户名:pi,默认密码:raspberry
设置root账户密码sudo passwd root

五、修改软件源

先备份或注释掉原来的源,要修改两处,这里改为清华大学的镜像
1.编辑文件sudo nano /etc/apt/sources.list
注释第一行,然后添加:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rp

2.编辑文件sudo nano /etc/apt/sources.list.d/raspi.list
注释原来的内容,然后添加:

deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui 
deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

3.更新软件列表 sudo apt-get update

相关文章

网友评论

      本文标题:树莓派系统安装

      本文链接:https://www.haomeiwen.com/subject/zxclfqtx.html