markdown Raspbian - 首次启动时的Wi-Fi和SSH

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Raspbian - 首次启动时的Wi-Fi和SSH相关的知识,希望对你有一定的参考价值。

1. Download the image
2. Flash the image to your microSD using Etcher
3. Unmount/remount the microSD as necessary
4. For wi-fi, add a file to the root folder named `wpa_supplicant.conf`
    * Content can be generated using 
        ```shell
        read -p "SSID: " ssid
        read -s -p "Passphrase: " passphrase
        psk=$(wpa_passphrase $ssid $passphrase)
        echo "country=US
        ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
        update_config=1
        $(echo "$psk" | grep -v '#psk')" > wpa_supplicant.conf
        ```
5. For SSH, add an empty file to the root folder named `ssh`:
    * Simply run `touch ssh`
6. Unmount the card, and boot the device.
7. After it boots, you should be able to log in using the default username/password `pi`/`raspberry`
8. Make sure to change the default password after logging in
9. Run updates
    * `sudo apt-get update -y`
    * `sudo apt-get upgrade -y`

以上是关于markdown Raspbian - 首次启动时的Wi-Fi和SSH的主要内容,如果未能解决你的问题,请参考以下文章

raspbian 如何启动系统修复

DAC 在 Raspbian 的歌曲开始/停止时弹出

使用 Raspbian JESSIE 启动 Pi3 时自动启动“Chromium”

PM2 - Raspbian(Raspberry Pi)上的自动启动不起作用

如何从 Raspbian 上的 systemd 服务正确重定向 stdout/stderr?

markdown 新的首次经理的最佳书籍