added tricks about the sound
[www.git] / www / tricks / raspberry_pi3_configure_wifi.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta name="generator" content="Asciidoctor 1.5.4">
8 <title>Raspberry PI - Configure the Wifi</title>
9 <link rel="stylesheet" href="./../style.css">
10 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
11 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
12 <script src="../nav.js"></script>
13 </head>
14 <body class="article">
15 <div id="header">
16 <h1>Raspberry PI - Configure the Wifi</h1>
17 </div>
18 <div id="content">
19 <div class="paragraph">
20 <p>For WPA Wifi, edit the file <code>/etc/wpa_supplicant/wpa_supplicant.conf</code>
21 as root.</p>
22 </div>
23 <div class="paragraph">
24 <p>Example:</p>
25 </div>
26 <div class="listingblock">
27 <div class="content">
28 <pre class="highlight"><code>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
29 update_config=1
30 country=FR
31
32 network={
33         ssid="MY_SSID"
34         psk="MY_PASSWORD"
35         key_mgmt=WPA-PSK
36 }</code></pre>
37 </div>
38 </div>
39 <div class="paragraph">
40 <p>Replace <code>MY_SSID</code> by the name of the Wifi network and <code>MY_PASSWORD</code>
41 by the password of the Wifi network.</p>
42 </div>
43 <div class="paragraph">
44 <p>Multiple networks can be declared, the one with higher priority will
45 be used if possible:</p>
46 </div>
47 <div class="listingblock">
48 <div class="content">
49 <pre class="highlight"><code>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
50 update_config=1
51 country=FR
52
53 network={
54         ssid="MY_SSID"
55         psk="MY_PASSWORD"
56         key_mgmt=WPA-PSK
57         priority=2
58 }
59
60 network={
61         ssid="MY_SSID2"
62         psk="MY_PASSWORD2"
63         key_mgmt=WPA-PSK
64         priority=1
65 }</code></pre>
66 </div>
67 </div>
68 </div>
69 <div id="footer">
70 <div id="footer-text">
71 Last updated 2017-02-12 15:32:35 CET
72 </div>
73 </div>
74 <footer>
75         <ul>
76                 <li><i class="fa fa-rss" aria-hidden="true"></i>
77                         Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
78                 </li>
79
80                 <li><i class="fa fa-envelope" aria-hidden="true"></i>
81                     Email: <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>
82                 </li>
83
84                 <li><i class="fa fa-git-square" aria-hidden="true"></i>
85                     Source repository: <a href="https://git.wpitchoune.net/gitweb">gitweb</a>
86                 </li>
87         </ul>
88 </footer>
89 </body>
90 </html>