added trick to configure wpa wifi network
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 12 Feb 2017 14:33:09 +0000 (15:33 +0100)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 12 Feb 2017 14:33:09 +0000 (15:33 +0100)
src/tricks/index.adoc
src/tricks/raspberry_pi3_configure_wifi.adoc [new file with mode: 0644]
www/tricks/index.html
www/tricks/raspberry_pi3_configure_wifi.html [new file with mode: 0644]

index 0c1e907..7e2de8e 100644 (file)
@@ -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_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]
 
 
 == 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 (file)
index 0000000..f8d485a
--- /dev/null
@@ -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
+}
+
+```
index 3777e38..082ad05 100644 (file)
@@ -36,6 +36,9 @@
 <li>
 <p><a href="raspberry_pi3_change_windows_manager.html">Change the windows manager of the Raspberry PI3</a></p>
 </li>
 <li>
 <p><a href="raspberry_pi3_change_windows_manager.html">Change the windows manager of the Raspberry PI3</a></p>
 </li>
+<li>
+<p><a href="raspberry_pi3_configure_wifi.html">Configure the Wifi</a></p>
+</li>
 </ul>
 </div>
 </div>
 </ul>
 </div>
 </div>
@@ -55,7 +58,7 @@
 </div>
 <div id="footer">
 <div id="footer-text">
 </div>
 <div id="footer">
 <div id="footer-text">
-Last updated 2017-02-10 00:47:37 CET
+Last updated 2017-02-11 18:53:54 CET
 </div>
 </div>
 <footer>
 </div>
 </div>
 <footer>
diff --git a/www/tricks/raspberry_pi3_configure_wifi.html b/www/tricks/raspberry_pi3_configure_wifi.html
new file mode 100644 (file)
index 0000000..6d1bc65
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="UTF-8">
+<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="generator" content="Asciidoctor 1.5.4">
+<title>Raspberry PI - Configure the Wifi</title>
+<link rel="stylesheet" href="./../style.css">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
+<script src="../nav.js"></script>
+</head>
+<body class="article">
+<div id="header">
+<h1>Raspberry PI - Configure the Wifi</h1>
+</div>
+<div id="content">
+<div class="paragraph">
+<p>For WPA Wifi, edit the file <code>/etc/wpa_supplicant/wpa_supplicant.conf</code>
+as root.</p>
+</div>
+<div class="paragraph">
+<p>Example:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlight"><code>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
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Replace <code>MY_SSID</code> by the name of the Wifi network and <code>MY_PASSWORD</code>
+by the password of the Wifi network.</p>
+</div>
+<div class="paragraph">
+<p>Multiple networks can be declared, the one with higher priority will
+be used if possible:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlight"><code>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=1
+}
+
+network={
+       ssid="MY_SSID2"
+       psk="MY_PASSWORD2"
+       key_mgmt=WPA-PSK
+       priority=2
+}</code></pre>
+</div>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+Last updated 2017-02-12 15:32:13 CET
+</div>
+</div>
+<footer>
+        <ul>
+                <li><i class="fa fa-rss" aria-hidden="true"></i>
+                        Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
+                </li>
+
+                <li><i class="fa fa-envelope" aria-hidden="true"></i>
+                    Email: <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>
+                </li>
+
+                <li><i class="fa fa-git-square" aria-hidden="true"></i>
+                    Source repository: <a href="https://git.wpitchoune.net/gitweb">gitweb</a>
+                </li>
+        </ul>
+</footer>
+</body>
+</html>
\ No newline at end of file