zoukankan      html  css  js  c++  java
  • 树莓派无显示器配置

    刷入镜像

    使用win32diskimager(Win)或 Etcher(Ubuntu)将镜像刷入SD卡。

    配置 sshWIFI

    在boot分区创建以下文件 ssh wpa_supplicant.conf

    配置wpa_supplicant.conf

    country=CN
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    
    network={
    ssid="WiFi-SSID"
    psk="pwd"
    key_mgmt=WPA-PSK
    priority=1
    }
    

    key_mgmt为WIFI加密方式,“WPA-PSK,WPA2-PSK”都填“WPA-PSK”。
    priority为优先级。network可填写多个。连接隐藏WiFi时需要指定该值scan_ssid=1更多参数


    ####默认配置 默认账号:`pi` 默认密码:`raspberry`

    sudo raspi-config

    更换国内源

    配置 /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
    #deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
    # 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
    

    不要更改 /etc/apt/sources.list.d/raspi.list。此为系统源文件,第三方源里找不到的都从里边的官方源找,比如最新的驱动。

  • 相关阅读:
    jquery动画效果---animate()--滚屏
    一个前端的自我修养
    开发和测试
    jquery.find()
    c99和c++11的差异之一
    容器经典图
    C/C++中的##用法
    【心学.悟道】千圣皆过影,良知乃吾师
    memcpy, memset代码改写的方式
    三大软件原则
  • 原文地址:https://www.cnblogs.com/srczhang/p/11684524.html
Copyright © 2011-2022 走看看