Skip to content

Instantly share code, notes, and snippets.

@jwegas
Created December 16, 2020 02:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwegas/be8f242f8d3202652ec48dd3683461d5 to your computer and use it in GitHub Desktop.
Save jwegas/be8f242f8d3202652ec48dd3683461d5 to your computer and use it in GitHub Desktop.
Allow you Raspberry Pi to connect to Wi-Fi.

[EN] To make you Raspberry Pi being connected to your Wi-Fi do the steps:

  1. on SD-card with Rapbian OS create file /boot/wpa_supplicant.conf;
  2. fill this file with content from snippet wpa_supplicant.conf;
  3. replace <your_wifi_network_name> with name (ssid) of your home network;
  4. replace <password_to_connect> with password you use to connect to your network;
  5. Optional. You can replace value of country field with your country's key (US, GB, etc).

Insert SD-card into Raspberry Pi and it will connect to your Wi-Fi after start.

[RU] Для того, чтобы подключить Raspberry Pi к вашей Wi-Fi сети, нужно:

  1. на SD-карте с операционной системой Rapbian OS создать файл /boot/wpa_supplicant.conf;
  2. скопировать в файл содержимое сниппета wpa_supplicant.conf;
  3. значение <your_wifi_network_name> заменть на имя (ssid) вашей Wi-Fi сети;
  4. значение <password_to_connect> заменть на пароль, который требуется для подключения к вашей Wi-Fi сети.

Вставить SD-карту в Raspberry Pi, и одноплатник подключится к Wi-Fi сразу после загрузки.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=RU
network={
ssid="<your_wifi_network_name>"
psk="<password_to_connect>"
key_mgmt=WPA-PSK
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment