From 59b8914458cc7575272f1df48340ed4850efce73 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sun, 12 Feb 2017 15:33:09 +0100 Subject: [PATCH 1/1] added trick to configure wpa wifi network --- src/tricks/index.adoc | 1 + src/tricks/raspberry_pi3_configure_wifi.adoc | 47 +++++++++++++++ www/tricks/index.html | 5 +- www/tricks/raspberry_pi3_configure_wifi.html | 90 ++++++++++++++++++++++++++++ 4 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 src/tricks/raspberry_pi3_configure_wifi.adoc create mode 100644 www/tricks/raspberry_pi3_configure_wifi.html diff --git a/src/tricks/index.adoc b/src/tricks/index.adoc index 0c1e907..7e2de8e 100644 --- a/src/tricks/index.adoc +++ b/src/tricks/index.adoc @@ -9,6 +9,7 @@ * link:raspberry_pi3_configure_timezone.html[How to configure the timezone of the Raspberry PI3] * link:raspberry_pi3_overclock.html[Overclocking of the Raspberry PI3] * link:raspberry_pi3_change_windows_manager.html[Change the windows manager of the Raspberry PI3] +* link:raspberry_pi3_configure_wifi.html[Configure the Wifi] == https://letsencrypt.org[Let's Encrypt] diff --git a/src/tricks/raspberry_pi3_configure_wifi.adoc b/src/tricks/raspberry_pi3_configure_wifi.adoc new file mode 100644 index 0000000..f8d485a --- /dev/null +++ b/src/tricks/raspberry_pi3_configure_wifi.adoc @@ -0,0 +1,47 @@ += Raspberry PI - Configure the Wifi +:docinfo2: +:icons: font + +For WPA Wifi, edit the file `/etc/wpa_supplicant/wpa_supplicant.conf` +as root. + +Example: + +``` +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 +country=FR + +network={ + ssid="MY_SSID" + psk="MY_PASSWORD" + key_mgmt=WPA-PSK +} +``` + +Replace `MY_SSID` by the name of the Wifi network and `MY_PASSWORD` +by the password of the Wifi network. + +Multiple networks can be declared, the one with higher priority will +be used if possible: + +``` +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 +country=FR + +network={ + ssid="MY_SSID" + psk="MY_PASSWORD" + key_mgmt=WPA-PSK + priority=2 +} + +network={ + ssid="MY_SSID2" + psk="MY_PASSWORD2" + key_mgmt=WPA-PSK + priority=1 +} + +``` diff --git a/www/tricks/index.html b/www/tricks/index.html index 3777e38..082ad05 100644 --- a/www/tricks/index.html +++ b/www/tricks/index.html @@ -36,6 +36,9 @@
  • Change the windows manager of the Raspberry PI3

  • +
  • +

    Configure the Wifi

    +
  • @@ -55,7 +58,7 @@