raspberry pi (1) prepare

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/guzhou_diaoke/article/details/88781365
  1. find IP of raspberry pi
    ping raspberrypi.local
    PING raspberrypi.local (192.168.1.101) 56(84) bytes of data.
    64 bytes from 192.168.1.101 (192.168.1.101): icmp_seq=1 ttl=64 time=0.394 ms

  2. ssh to raspberry
    user:password
    pi:raspberry
    ssh [email protected]

  3. wlan
    sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
    country=CN
    network={
    ssid=“xxxxx”
    psk=“yyyyyy”
    }
    (xxxxx为wifi帐号如TP-LINK_abcd,yyyyyy为wifi密码)

    sudo reboot

    ifconfig
    wlan0 Link encap:Ethernet HWaddr b8:27:eb:c0:6d:a3
    inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::bb68:8b17:bccb:7a34/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:412 errors:0 dropped:195 overruns:0 frame:0
    TX packets:181 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:97727 (95.4 KiB) TX bytes:26970 (26.3 KiB)

    ssh [email protected]
    测试联网
    ping baidu.com
    PING baidu.com (220.181.57.216) 56(84) bytes of data.
    64 bytes from 220.181.57.216: icmp_seq=1 ttl=53 time=20.8 ms
    64 bytes from 220.181.57.216: icmp_seq=2 ttl=53 time=24.0 ms

  4. 配置
    sudo raspi-config

                                          ┌─────────────────────────────┤ Raspberry Pi Software Configuration Tool (raspi-config) ├──────────────────────────────┐
                                          │                                                                                                                      │ 
                                          │                  1 Change User Password Change password for the default user (pi)                                    │ 
                                          │                  2 Hostname             Set the visible name for this Pi on a network                                │ 
                                          │                  3 Boot Options         Configure options for start-up                                               │ 
                                          │                  4 Localisation Options Set up language and regional settings to match your location                 │ 
                                          │                  5 Interfacing Options  Configure connections to peripherals                                         │ 
                                          │                  6 Overclock            Configure overclocking for your Pi                                           │ 
                                          │                  7 Advanced Options     Configure advanced settings                                                  │ 
                                          │                  8 Update               Update this tool to the latest version                                       │ 
                                          │                  9 About raspi-config   Information about this configuration tool                                    │ 
                                          │                                                                                                                      │ 
                                          │                                                                                                                      │ 
                                          │                                                                                                                      │ 
                                          │                                  <Select>                                  <Finish>                                  │ 
                                          │                                                                                                                      │ 
                                          └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 
    
  5. IO口,T形扩展板和面包板
    在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/guzhou_diaoke/article/details/88781365