<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Server_22.04_Wifi_Setup_CLI</id>
	<title>Ubuntu Server 22.04 Wifi Setup CLI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Server_22.04_Wifi_Setup_CLI"/>
	<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Server_22.04_Wifi_Setup_CLI&amp;action=history"/>
	<updated>2026-04-30T03:39:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Server_22.04_Wifi_Setup_CLI&amp;diff=232&amp;oldid=prev</id>
		<title>Noob: Created page with &quot;  ==Find wifi card name== First, make sure that your Ubuntu server has a wifi adapter installed. This is usually a small device that plugs into a USB port or is built into the computer. If you&#039;re not sure if your server has a wifi adapter, you can check the documentation or ask someone who knows more about computers. &lt;br&gt; &lt;code&gt;sudo lshw -C network&lt;/code&gt;&lt;br&gt; &lt;div class=&quot;toccolours mw-collapsible mw-collapsed&quot;&gt; Other methods to find wifi card: &lt;div class=&quot;mw-collapsible-...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Server_22.04_Wifi_Setup_CLI&amp;diff=232&amp;oldid=prev"/>
		<updated>2023-03-29T21:45:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  ==Find wifi card name== First, make sure that your Ubuntu server has a wifi adapter installed. This is usually a small device that plugs into a USB port or is built into the computer. If you&amp;#039;re not sure if your server has a wifi adapter, you can check the documentation or ask someone who knows more about computers. &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;sudo lshw -C network&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt; &amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt; Other methods to find wifi card: &amp;lt;div class=&amp;quot;mw-collapsible-...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Find wifi card name==&lt;br /&gt;
First, make sure that your Ubuntu server has a wifi adapter installed. This is usually a small device that plugs into a USB port or is built into the computer. If you&amp;#039;re not sure if your server has a wifi adapter, you can check the documentation or ask someone who knows more about computers.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo lshw -C network&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Other methods to find wifi card:&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;ls /sys/class/net&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;iwconfig&amp;lt;/code&amp;gt; requires installing &amp;lt;b&amp;gt;wireless-tools&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo apt install wireless-tools&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
OutPut from &amp;lt;code&amp;gt;sudo lshw -C network&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  *-network DISABLED        &lt;br /&gt;
       description: Wireless interface&lt;br /&gt;
       product: RTL8723BE PCIe Wireless Network Adapter&lt;br /&gt;
       vendor: Realtek Semiconductor Co., Ltd.&lt;br /&gt;
       physical id: 0&lt;br /&gt;
       bus info: pci@0000:02:00.0&lt;br /&gt;
       logical name: wlp2s0&lt;br /&gt;
       version: 00&lt;br /&gt;
       serial: 40:e2:30:0e:8e:07&lt;br /&gt;
       width: 64 bits&lt;br /&gt;
       clock: 33MHz&lt;br /&gt;
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless&lt;br /&gt;
       configuration: broadcast=yes driver=rtl8723be driverversion=5.15.0-69-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11&lt;br /&gt;
       resources: irq:17 ioport:e000(size=256) memory:d0700000-d0703fff&lt;br /&gt;
  *-network&lt;br /&gt;
       description: Ethernet interface&lt;br /&gt;
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller&lt;br /&gt;
       vendor: Realtek Semiconductor Co., Ltd.&lt;br /&gt;
       physical id: 0&lt;br /&gt;
       bus info: pci@0000:03:00.0&lt;br /&gt;
       logical name: enp3s0&lt;br /&gt;
       version: 0c&lt;br /&gt;
       serial: fc:aa:14:6c:a9:33&lt;br /&gt;
       size: 1Gbit/s&lt;br /&gt;
       capacity: 1Gbit/s&lt;br /&gt;
       width: 64 bits&lt;br /&gt;
       clock: 33MHz&lt;br /&gt;
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation&lt;br /&gt;
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.15.0-69-generic duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.0.167 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s&lt;br /&gt;
       resources: irq:18 ioport:d000(size=256) memory:d0604000-d0604fff memory:d0600000-d0603fff&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Turn on wifi adapter===&lt;br /&gt;
&lt;br /&gt;
My adapter was called &amp;lt;b&amp;gt;wlp2s0&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo ip link set wlp2s0&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Connect to wifi using network-manager nmcli==&lt;br /&gt;
Requires &amp;lt;b&amp;gt;network-manager&amp;lt;/b&amp;gt; package.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo apt  install network-manager&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Now that your wifi adapter is turned on and working, you can use the &amp;quot;nmcli&amp;quot; command to connect to a wifi network. To see a list of available networks, run the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;nmcli device wifi list&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Connect to wifi===&lt;br /&gt;
Once you&amp;#039;ve found the network you want to connect to, you can use the following command to connect:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo nmcli device wifi connect SSID password PASSWORD&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note: Replace &amp;quot;SSID&amp;quot; with the name of the network you want to connect to, and &amp;quot;PASSWORD&amp;quot; with the password for that network.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
For example, if you wanted to connect to a network called &amp;quot;MyWifi&amp;quot; with a password of &amp;quot;1234&amp;quot;, you would run the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo nmcli device wifi connect MyWifi password 1234&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If the connection was successful, you should see a message saying that you are now connected to the wifi network. You can confirm that you are connected by running the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;nmcli device status&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
This will show you information about your network connections, including whether you are connected to wifi.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&amp;#039;s it! Those are the steps to connect an Ubuntu 22.04 server to wifi. If you have any questions or run into any problems, feel free to ask someone who knows more about computers for help.&lt;br /&gt;
&lt;br /&gt;
===Disconnect from wifi===&lt;br /&gt;
&lt;br /&gt;
Syntax:&amp;lt;code&amp;gt;nmcli device disconnect WIFI&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo nmcli device disconnect wlp2s0&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Turn off wifi card===&lt;br /&gt;
&amp;lt;code&amp;gt;sudo ip link set wlp2s0 down&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Noob</name></author>
	</entry>
</feed>