树莓派WiFi设置

时间:2017-07-01 21:36:40 阅读:595次
树莓派WiFi设置,raspberry
默认密码pi raspberry

1.设置WiFi密码
    输入命令:  wpa_passphrase SSID名称 密码
    network={
            ssid="wp"
            #psk="Wang123456"
            psk=f8939c7c0524d8bb7e64ee4fd9b8dda5f3d29b402be56b5228235b6c2b345261
    }
    复制一下信息添加到该文件末尾
    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
    
2.设置固定IP
    sudo nano /etc/dhcpcd.conf 
    #有线网络
    interface eth0
    static ip_address=192.168.0.10/24
    static routers=192.168.0.1
    static domain_name_servers=192.168.0.1
    #无线网络
    interface wlan0
    static ip_address=192.168.0.11/24
    static routers=192.168.0.1
    static domain_name_servers=192.168.0.1


扫描二维码关注程序员爱笔记,接收更多资讯

评论

快速评论