added trick to configure wpa wifi network
[www.git] / www / tricks / raspberry_pi3_configure_wifi.html
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