mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-05-14 02:43:43 +00:00
418 lines
27 KiB
HTML
418 lines
27 KiB
HTML
|
||
<!DOCTYPE html>
|
||
|
||
<html lang="en" data-content_root="../../">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
||
<title>Configure Wi-Fi — Documentation for Clear Linux* project</title>
|
||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
|
||
<link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css?v=5283bb3d" />
|
||
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
|
||
|
||
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
|
||
<script src="../../_static/doctools.js?v=9bcbadda"></script>
|
||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
|
||
<script src="../../_static/copybutton.js?v=a56c686a"></script>
|
||
<script src="../../_static/bizstyle.js"></script>
|
||
<link rel="canonical" href="https://clearlinux.github.io/clear-linux-documentation/guides/network/wifi.html" />
|
||
<link rel="icon" href="../../_static/favicon.ico"/>
|
||
<link rel="author" title="About these documents" href="../../about.html" />
|
||
<link rel="index" title="Index" href="../../genindex.html" />
|
||
<link rel="search" title="Search" href="../../search.html" />
|
||
<link rel="next" title="Change Kernel Boot" href="../kernel/change-kernel-boot.html" />
|
||
<link rel="prev" title="Remote-desktop to a host using VNC" href="vnc.html" />
|
||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||
<!--[if lt IE 9]>
|
||
<script src="_static/css3-mediaqueries.js"></script>
|
||
<![endif]-->
|
||
</head><body>
|
||
<div class="related" role="navigation" aria-label="Related">
|
||
<h3>Navigation</h3>
|
||
<ul>
|
||
<li class="right" style="margin-right: 10px">
|
||
<a href="../../genindex.html" title="General Index"
|
||
accesskey="I">index</a></li>
|
||
<li class="right" >
|
||
<a href="../kernel/change-kernel-boot.html" title="Change Kernel Boot"
|
||
accesskey="N">next</a> |</li>
|
||
<li class="right" >
|
||
<a href="vnc.html" title="Remote-desktop to a host using VNC"
|
||
accesskey="P">previous</a> |</li>
|
||
<li class="nav-item nav-item-0"><a href="../../index.html">Documentation for Clear Linux* project</a> »</li>
|
||
<li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Guides</a> »</li>
|
||
<li class="nav-item nav-item-this"><a href="">Configure Wi-Fi</a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="document">
|
||
<div class="documentwrapper">
|
||
<div class="bodywrapper">
|
||
<div class="body" role="main">
|
||
|
||
<section id="configure-wi-fi">
|
||
<span id="wi-fi"></span><h1>Configure Wi-Fi<a class="headerlink" href="#configure-wi-fi" title="Link to this heading">¶</a></h1>
|
||
<p>We recommend using <a class="reference external" href="https://developer.gnome.org/NetworkManager/stable/NetworkManager.html">NetworkManager</a> to
|
||
manage wireless network connections. If you choose to connect to Wi-Fi while
|
||
using the <a class="reference internal" href="../../get-started/bare-metal-install-desktop.html#bare-metal-install-desktop"><span class="std std-ref">live installer</span></a> image, your Wi-Fi
|
||
settings will be added to your system during the installation process.</p>
|
||
<p>NetworkManager provides three simple methods for configuring Wi-Fi: Desktop,
|
||
CLI, and TUI. NetworkManager uses <strong class="command">wpa_supplicant</strong>, which can also be
|
||
used on its own for a more lightweight installation.</p>
|
||
<nav class="contents local" id="contents">
|
||
<ul class="simple">
|
||
<li><p><a class="reference internal" href="#using-network-manager" id="id1">Using Network Manager</a></p></li>
|
||
<li><p><a class="reference internal" href="#using-wpa-supplicant" id="id2">Using wpa_supplicant</a></p></li>
|
||
<li><p><a class="reference internal" href="#other-resources" id="id3">Other resources</a></p></li>
|
||
</ul>
|
||
</nav>
|
||
<section id="using-network-manager">
|
||
<h2><a class="toc-backref" href="#id1" role="doc-backlink">Using Network Manager</a><a class="headerlink" href="#using-network-manager" title="Link to this heading">¶</a></h2>
|
||
<section id="desktop-gui-graphical-user-interface">
|
||
<h3>Desktop GUI (Graphical User Interface)<a class="headerlink" href="#desktop-gui-graphical-user-interface" title="Link to this heading">¶</a></h3>
|
||
<ol class="arabic">
|
||
<li><p>Click anywhere on the icons at the right side of the top of the screen to
|
||
bring up a menu and click on <span class="guilabel">Wi-Fi Not Connected</span> then choose
|
||
<span class="guilabel">Select Network</span>.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/wifi-1.1.png" src="../../_images/wifi-1.1.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>Scroll through the list and select the network you’d like to connect to and
|
||
click <span class="guilabel">Connect</span>.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/wifi-2.png" src="../../_images/wifi-2.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>Enter the password and click <span class="guilabel">Connect</span>.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/wifi-3.png" src="../../_images/wifi-3.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>The Wi-Fi icon should now show the signal strength of the connection.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/wifi-4.png" src="../../_images/wifi-4.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>If you are installing using the live image, resume the
|
||
<a class="reference internal" href="../../get-started/bare-metal-install-desktop.html#install-on-target-end"><span class="std std-ref">installation process</span></a> now. Your Wi-Fi
|
||
configuration will automatically be included in the install.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/wifi-5.png" src="../../_images/wifi-5.png" />
|
||
</figure>
|
||
</li>
|
||
</ol>
|
||
</section>
|
||
<section id="cli-command-line-interface">
|
||
<h3>CLI (Command Line Interface)<a class="headerlink" href="#cli-command-line-interface" title="Link to this heading">¶</a></h3>
|
||
<ol class="arabic">
|
||
<li><p>List the available Wi-Fi networks</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>nmcli<span class="w"> </span>device<span class="w"> </span>wifi<span class="w"> </span>list
|
||
</pre></div>
|
||
</div>
|
||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY</span>
|
||
<span class="go"> 1st Network Infra 1 54 Mbit/s 65 ▂▄▆_ --</span>
|
||
<span class="go"> 2nd Network Infra 1 130 Mbit/s 52 ▂▄__ --</span>
|
||
<span class="go"> 3rd Network Infra 10 195 Mbit/s 29 ▂___ WPA2</span>
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Join the network.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>nmcli<span class="w"> </span>device<span class="w"> </span>wifi<span class="w"> </span>connect<span class="w"> </span><span class="nv">$SSID</span><span class="w"> </span>password<span class="w"> </span><span class="nv">$password</span>
|
||
</pre></div>
|
||
</div>
|
||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">Device 'wlp1s0' successfully activated with 'f2501e67-27a3-4cf2-a8d9-cce3d029b788'.</span>
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
</ol>
|
||
<div class="admonition note">
|
||
<p class="admonition-title">Note</p>
|
||
<p>To avoid having the Wi-Fi password stored in bash history, consider using the TUI.</p>
|
||
</div>
|
||
</section>
|
||
<section id="tui-text-based-user-interface">
|
||
<span id="wifi-nm-tui"></span><h3>TUI (Text-based User Interface)<a class="headerlink" href="#tui-text-based-user-interface" title="Link to this heading">¶</a></h3>
|
||
<ol class="arabic">
|
||
<li><p>Launch the NetworkManager Text User Interface</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>nmtui
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Select <span class="guilabel">Activate a connection</span> and hit <kbd class="kbd docutils literal notranslate">return</kbd>.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/nmtui_1.png" src="../../_images/nmtui_1.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>Use the arrow keys to select your network and then select
|
||
<span class="guilabel">Activate</span> and hit <kbd class="kbd docutils literal notranslate">return</kbd>.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/nmtui_2.png" src="../../_images/nmtui_2.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>Enter your password and hit <kbd class="kbd docutils literal notranslate">return</kbd> to select <span class="guilabel">OK</span>.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/nmtui_3.png" src="../../_images/nmtui_3.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>Select <span class="guilabel">Back</span> and hit <kbd class="kbd docutils literal notranslate">return</kbd>.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/nmtui_4.png" src="../../_images/nmtui_4.png" />
|
||
</figure>
|
||
</li>
|
||
<li><p>Select <span class="guilabel">Quit</span> and hit <kbd class="kbd docutils literal notranslate">return</kbd> to exit.</p>
|
||
<figure class="align-default">
|
||
<img alt="../../_images/nmtui_5.png" src="../../_images/nmtui_5.png" />
|
||
</figure>
|
||
</li>
|
||
</ol>
|
||
</section>
|
||
</section>
|
||
<section id="using-wpa-supplicant">
|
||
<h2><a class="toc-backref" href="#id2" role="doc-backlink">Using wpa_supplicant</a><a class="headerlink" href="#using-wpa-supplicant" title="Link to this heading">¶</a></h2>
|
||
<p>wpa_suppliant can be used directly, without NetworkManager, to associate a
|
||
wireless adapter with an access point. After association is established, an IP
|
||
address needs to be assigned or obtained.</p>
|
||
<section id="associate-with-a-wireless-access-point">
|
||
<h3>Associate with a wireless access point<a class="headerlink" href="#associate-with-a-wireless-access-point" title="Link to this heading">¶</a></h3>
|
||
<ol class="arabic">
|
||
<li><p>Make sure NetworkManager is stopped and disabled by masking the service.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>systemctl<span class="w"> </span>stop<span class="w"> </span>NetworkManager.service
|
||
sudo<span class="w"> </span>systemctl<span class="w"> </span>mask<span class="w"> </span>NetworkManager.service
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Stop the wpa_supplicant.service, which may have been started by NetworkManager.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>systemctl<span class="w"> </span>stop<span class="w"> </span>wpa_supplicant.service
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Create a <code class="docutils literal notranslate"><span class="pre">wpa_supplicant</span></code> configuration directory.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mkdir<span class="w"> </span>-p<span class="w"> </span>/etc/wpa_supplicant
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Determine your wireless interface name.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>iw<span class="w"> </span>dev
|
||
</pre></div>
|
||
</div>
|
||
<p>Use the name following “Interface” on the first line (eg. wlp1s0)</p>
|
||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="hll"><span class="go"> Interface wlp1s0</span>
|
||
</span><span class="go"> ifindex 3</span>
|
||
<span class="go"> wdev 0x1</span>
|
||
<span class="go"> addr 00:xx:xx:38:34:7a</span>
|
||
<span class="go"> type managed</span>
|
||
<span class="go"> txpower 0.00 dBm</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>Set the $INTERFACE_NAME environment variable to take advantage of copying
|
||
and pasting commands.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span><span class="w"> </span><span class="nv">INTERFACE_NAME</span><span class="o">=</span>wlp1s0
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Create a minimal configuration file called
|
||
<code class="file docutils literal notranslate"><span class="pre">/etc/wpa_supplicant/wpa_supplicant-$INTERFACE_NAME.conf</span></code>
|
||
and add the following:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>tee<span class="w"> </span>/etc/wpa_supplicant/wpa_supplicant-<span class="nv">$INTERFACE_NAME</span>.conf<span class="w"> </span>><span class="w"> </span>/dev/null<span class="w"> </span><span class="s"><<'EOF'</span>
|
||
<span class="s">ctrl_interface_group=wheel</span>
|
||
<span class="s">ctrl_interface=/run/wpa_supplicant</span>
|
||
<span class="s">update_config=1</span>
|
||
<span class="s">EOF</span>
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Start the wpa_supplicant service to complete the configuration process.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>systemctl<span class="w"> </span>start<span class="w"> </span>wpa_supplicant@<span class="nv">$INTERFACE_NAME</span>.service
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Use <strong class="command">wpa_cli</strong> (interactive mode) to scan for available networks.
|
||
In this example, our network is named <em>Network1</em>.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="hll">sudo<span class="w"> </span>wpa_cli
|
||
</span><span class="hll">><span class="w"> </span>scan
|
||
</span>OK
|
||
<<span class="m">3</span>>CTRL-EVENT-SCAN-STARTED
|
||
<span class="hll"><<span class="m">3</span>>CTRL-EVENT-SCAN-RESULTS
|
||
</span>><span class="w"> </span>scan_results
|
||
<span class="hll">bssid<span class="w"> </span>/<span class="w"> </span>frequency<span class="w"> </span>/<span class="w"> </span>signal<span class="w"> </span>level<span class="w"> </span>/<span class="w"> </span>flags<span class="w"> </span>/<span class="w"> </span>ssid
|
||
</span><span class="m">00</span>:xx:xx:73:7b:46<span class="w"> </span><span class="m">5180</span><span class="w"> </span>-55<span class="w"> </span><span class="o">[</span>WPA2-PSK-CCMP<span class="o">][</span>ESS<span class="o">]</span><span class="w"> </span>Network1
|
||
<span class="m">00</span>:xx:xx:83:fa:70<span class="w"> </span><span class="m">5240</span><span class="w"> </span>-76<span class="w"> </span><span class="o">[</span>WPA2-EAP-CCMP<span class="o">][</span>ESS<span class="o">]</span><span class="w"> </span>Network2
|
||
<span class="m">00</span>:xx:xx:4f:e9:2c<span class="w"> </span><span class="m">2412</span><span class="w"> </span>-67<span class="w"> </span><span class="o">[</span>WPA2-PSK-CCMP<span class="o">][</span>ESS<span class="o">][</span>P2P<span class="o">]</span><span class="w"> </span>Printer
|
||
<span class="m">00</span>:xx:xx:af:fe:3e<span class="w"> </span><span class="m">5765</span><span class="w"> </span>-79<span class="w"> </span><span class="o">[</span>WPA2-PSK-CCMP<span class="o">][</span>ESS<span class="o">]</span><span class="w"> </span>Network3
|
||
<span class="m">00</span>:xx:xx:e9:eb:29<span class="w"> </span><span class="m">2412</span><span class="w"> </span>-76<span class="w"> </span><span class="o">[</span>WPA2-PSK-CCMP<span class="o">][</span>ESS<span class="o">]</span><span class="w"> </span>Network4
|
||
<span class="m">00</span>:xx:xx:26:4a:b9<span class="w"> </span><span class="m">2412</span><span class="w"> </span>-79<span class="w"> </span><span class="o">[</span>WPA2-PSK-CCMP<span class="o">][</span>ESS<span class="o">][</span>P2P<span class="o">]</span><span class="w"> </span>Printer2
|
||
<span class="m">00</span>:xx:xx:b9:0d:d4<span class="w"> </span><span class="m">2462</span><span class="w"> </span>-79<span class="w"> </span><span class="o">[</span>WPA2-PSK-CCMP<span class="o">][</span>ESS<span class="o">]</span><span class="w"> </span>Network5
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Set up your network connection replacing <em>Network1</em> with your wireless
|
||
SSID name and <em>Network1Password</em> with the password for your network.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="hll">><span class="w"> </span>add_network
|
||
</span><span class="m">0</span>
|
||
<span class="hll">><span class="w"> </span>set_network<span class="w"> </span><span class="m">0</span><span class="w"> </span>ssid<span class="w"> </span><span class="s2">"Network1"</span>
|
||
</span>OK
|
||
<span class="hll">><span class="w"> </span>set_network<span class="w"> </span><span class="m">0</span><span class="w"> </span>psk<span class="w"> </span><span class="s2">"Network1Password"</span>
|
||
</span>OK
|
||
<span class="hll">><span class="w"> </span>enable_network<span class="w"> </span><span class="m">0</span>
|
||
</span>OK
|
||
<<span class="m">3</span>>CTRL-EVENT-SCAN-STARTED
|
||
<<span class="m">3</span>>CTRL-EVENT-SCAN-RESULTS
|
||
<<span class="m">3</span>>SME:<span class="w"> </span>Trying<span class="w"> </span>to<span class="w"> </span>authenticate<span class="w"> </span>with<span class="w"> </span><span class="m">00</span>:xx:xx:5d:d9:26<span class="w"> </span><span class="o">(</span><span class="nv">SSID</span><span class="o">=</span><span class="s1">'Network1'</span><span class="w"> </span><span class="nv">freq</span><span class="o">=</span><span class="m">5180</span><span class="w"> </span>MHz<span class="o">)</span>
|
||
<<span class="m">3</span>>Trying<span class="w"> </span>to<span class="w"> </span>associate<span class="w"> </span>with<span class="w"> </span><span class="m">00</span>:xx:xx:5d:d9:26<span class="w"> </span><span class="o">(</span><span class="nv">SSID</span><span class="o">=</span><span class="s1">'Network1'</span><span class="w"> </span><span class="nv">freq</span><span class="o">=</span><span class="m">5180</span><span class="w"> </span>MHz<span class="o">)</span>
|
||
<<span class="m">3</span>>Associated<span class="w"> </span>with<span class="w"> </span><span class="m">00</span>:xx:xx:5d:d9:26
|
||
<<span class="m">3</span>>CTRL-EVENT-SUBNET-STATUS-UPDATE<span class="w"> </span><span class="nv">status</span><span class="o">=</span><span class="m">0</span>
|
||
<<span class="m">3</span>>WPA:<span class="w"> </span>Key<span class="w"> </span>negotiation<span class="w"> </span>completed<span class="w"> </span>with<span class="w"> </span><span class="m">00</span>:xx:xx:5d:d9:26<span class="w"> </span><span class="o">[</span><span class="nv">PTK</span><span class="o">=</span>CCMP<span class="w"> </span><span class="nv">GTK</span><span class="o">=</span>CCMP<span class="o">]</span>
|
||
<<span class="m">3</span>>CTRL-EVENT-CONNECTED<span class="w"> </span>-<span class="w"> </span>Connection<span class="w"> </span>to<span class="w"> </span><span class="m">00</span>:xx:xx:5d:d9:26<span class="w"> </span>completed<span class="w"> </span><span class="o">[</span><span class="nv">id</span><span class="o">=</span><span class="m">0</span><span class="w"> </span><span class="nv">id_str</span><span class="o">=]</span>
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Save the configuration and quit out of <strong class="command">wpa_cli</strong>.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>><span class="w"> </span>save_config
|
||
OK
|
||
><span class="w"> </span>quit
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
</ol>
|
||
<div class="admonition note">
|
||
<p class="admonition-title">Note</p>
|
||
<p>The network password is saved as plaintext in
|
||
<code class="file docutils literal notranslate"><span class="pre">/etc/wpa_supplicant/wpa_supplicant-$INTERFACE_NAME.conf</span></code>. Use
|
||
<a class="reference external" href="https://wiki.archlinux.org/index.php/WPA_supplicant#Connecting_with_wpa_passphrase">wpa_passphrase</a>
|
||
for a more secure method.</p>
|
||
</div>
|
||
</section>
|
||
<section id="assign-an-ip-address">
|
||
<h3>Assign an IP address<a class="headerlink" href="#assign-an-ip-address" title="Link to this heading">¶</a></h3>
|
||
<p>After the wireless adapter has been associated with wireless access point, an
|
||
IP address needs to be assigned for access to the network.</p>
|
||
<p>The example below uses <code class="docutils literal notranslate"><span class="pre">systemd-networkd</span></code> to request an IP address from the
|
||
access point via DHCP. Another network manager can be used if preferred. If
|
||
there is a static IP address you’d like to assign, see the
|
||
<a class="reference internal" href="assign-static-ip.html#assign-static-ip"><span class="std std-ref">Assign a static IP address</span></a> documentation.</p>
|
||
<ol class="arabic">
|
||
<li><p>Create the <code class="file docutils literal notranslate"><span class="pre">/etc/systemd/network</span></code> directory</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mkdir<span class="w"> </span>-p<span class="w"> </span>/etc/systemd/network
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Create a <code class="file docutils literal notranslate"><span class="pre">/etc/systemd/network/25-wireless-$INTERFACE_NAME.network</span></code> file
|
||
with a Match and Network section.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">printf</span><span class="w"> </span><span class="s2">"[Match]\nName=</span><span class="nv">$INTERFACE_NAME</span><span class="s2">\n\n[Network]\nDHCP=ipv4"</span><span class="w"> </span><span class="p">|</span><span class="w"> </span>sudo<span class="w"> </span>tee<span class="w"> </span>/etc/systemd/network/25-wireless-<span class="nv">$INTERFACE_NAME</span>.network
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Restart the <code class="docutils literal notranslate"><span class="pre">systemd-networkd.service</span></code>.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>systemctl<span class="w"> </span>restart<span class="w"> </span>systemd-networkd.service
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Enable the <code class="docutils literal notranslate"><span class="pre">systemd-networkd</span></code> and <code class="docutils literal notranslate"><span class="pre">wpa_supplicant</span></code> services to start automatically
|
||
on future boots.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>systemctl<span class="w"> </span><span class="nb">enable</span><span class="w"> </span>--now<span class="w"> </span>systemd-networkd.service
|
||
sudo<span class="w"> </span>systemctl<span class="w"> </span><span class="nb">enable</span><span class="w"> </span>--now<span class="w"> </span>wpa_supplicant@<span class="nv">$INTERFACE_NAME</span>.service
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
</ol>
|
||
</section>
|
||
</section>
|
||
<section id="other-resources">
|
||
<h2><a class="toc-backref" href="#id3" role="doc-backlink">Other resources</a><a class="headerlink" href="#other-resources" title="Link to this heading">¶</a></h2>
|
||
<ul class="simple">
|
||
<li><p>NetworkManager CLI <a class="reference external" href="https://developer.gnome.org/NetworkManager/stable/nmcli.html">documentation</a>.</p></li>
|
||
<li><p>Additional CLI <a class="reference external" href="https://developer.gnome.org/NetworkManager/stable/nmcli-examples.html">examples</a>.</p></li>
|
||
<li><p>wpa_supplicant <a class="reference external" href="https://wiki.archlinux.org/index.php/WPA_supplicant#Advanced_usage">advanced usage documentation</a></p></li>
|
||
</ul>
|
||
</section>
|
||
</section>
|
||
|
||
|
||
<div class="clearer"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="sphinxsidebar" role="navigation" aria-label="Main">
|
||
<div class="sphinxsidebarwrapper">
|
||
<p class="logo"><a href="../../index.html">
|
||
<img class="logo" src="../../_static/clearlinux.png" alt="Logo of Clear Linux* Project Docs"/>
|
||
</a></p>
|
||
<div>
|
||
<h3><a href="../../index.html">Table of Contents</a></h3>
|
||
<ul>
|
||
<li><a class="reference internal" href="#">Configure Wi-Fi</a><ul>
|
||
<li><a class="reference internal" href="#using-network-manager">Using Network Manager</a><ul>
|
||
<li><a class="reference internal" href="#desktop-gui-graphical-user-interface">Desktop GUI (Graphical User Interface)</a></li>
|
||
<li><a class="reference internal" href="#cli-command-line-interface">CLI (Command Line Interface)</a></li>
|
||
<li><a class="reference internal" href="#tui-text-based-user-interface">TUI (Text-based User Interface)</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#using-wpa-supplicant">Using wpa_supplicant</a><ul>
|
||
<li><a class="reference internal" href="#associate-with-a-wireless-access-point">Associate with a wireless access point</a></li>
|
||
<li><a class="reference internal" href="#assign-an-ip-address">Assign an IP address</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#other-resources">Other resources</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
</div>
|
||
<div>
|
||
<h4>Previous topic</h4>
|
||
<p class="topless"><a href="vnc.html"
|
||
title="previous chapter">Remote-desktop to a host using VNC</a></p>
|
||
</div>
|
||
<div>
|
||
<h4>Next topic</h4>
|
||
<p class="topless"><a href="../kernel/change-kernel-boot.html"
|
||
title="next chapter">Change Kernel Boot</a></p>
|
||
</div>
|
||
<div role="note" aria-label="source link">
|
||
<h3>This Page</h3>
|
||
<ul class="this-page-menu">
|
||
<li><a href="../../_sources/guides/network/wifi.rst.txt"
|
||
rel="nofollow">Show Source</a></li>
|
||
</ul>
|
||
</div>
|
||
<search id="searchbox" style="display: none" role="search">
|
||
<h3 id="searchlabel">Quick search</h3>
|
||
<div class="searchformwrapper">
|
||
<form class="search" action="../../search.html" method="get">
|
||
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
|
||
<input type="submit" value="Go" />
|
||
</form>
|
||
</div>
|
||
</search>
|
||
<script>document.getElementById('searchbox').style.display = "block"</script>
|
||
</div>
|
||
</div>
|
||
<div class="clearer"></div>
|
||
</div>
|
||
<div class="related" role="navigation" aria-label="Related">
|
||
<h3>Navigation</h3>
|
||
<ul>
|
||
<li class="right" style="margin-right: 10px">
|
||
<a href="../../genindex.html" title="General Index"
|
||
>index</a></li>
|
||
<li class="right" >
|
||
<a href="../kernel/change-kernel-boot.html" title="Change Kernel Boot"
|
||
>next</a> |</li>
|
||
<li class="right" >
|
||
<a href="vnc.html" title="Remote-desktop to a host using VNC"
|
||
>previous</a> |</li>
|
||
<li class="nav-item nav-item-0"><a href="../../index.html">Documentation for Clear Linux* project</a> »</li>
|
||
<li class="nav-item nav-item-1"><a href="../index.html" >Guides</a> »</li>
|
||
<li class="nav-item nav-item-this"><a href="">Configure Wi-Fi</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="footer" role="contentinfo">
|
||
© Copyright 2022 Intel Corporation. All Rights Reserved..
|
||
Last updated on Nov 04, 2024.
|
||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.1.3.
|
||
</div>
|
||
</body>
|
||
</html> |