欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

树莓派安装和启动2

程序员文章站 2024-01-02 20:51:34
1、树莓派起来了,顺手改个密码:pi@raspberrypi:~$ passwd piChanging password for pi.Current password: New password: Retype new password: passwd: password updated successfullypi@raspberrypi:~$ 2、检查下wifipi@raspberrypi:~$ ifconfigeth0: flags=4099

1、树莓派起来了,顺手改个密码:

pi@raspberrypi:~$ passwd pi
Changing password for pi.
Current password: 
New password: 
Retype new password: 
passwd: password updated successfully
pi@raspberrypi:~$ 

2、检查下wifi

pi@raspberrypi:~$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:dc:d2:08  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:89:87:5d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 44:33:4c:e8:d1:3c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

pi@raspberrypi:~$ 

3、配置下wifi

 sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

增加下自己的网络配置

network={
        ssid="your SSID"
        key_mgmt=WPA-PSK
        psk="your password"
}

4、reboot下

pi@raspberrypi:~$ sudo reboot

好了,起来之后,等一会儿,ifconfig就能看到wlan1有IP了。

本文地址:https://blog.csdn.net/shanruo/article/details/107946679

上一篇:

下一篇: