How to Turn Your Ubuntu 22.04 PC/Laptop into Wifi HotSpot

This simple tutorial shows how to enable Wi-Fi hotspot in Ubuntu 22.04 and configure bandwidth (2.4/5GB), security type, etc.

It’s for GNOME desktop that should also work in Fedora Workstation. For other desktops, and/or Linux server without GUI, try the single command in the bottom.

Requirements:

First of all, you have to make sure that:

  • Your PC/laptop has connected to internet.
  • A Wi-Fi adapter is free for access point.

A laptop usually has only one wireless card, so you have to connect a wired network.

Enable Wi-Fi HotSpot

Firstly, open Gnome-control-center (aka Settings) from upper right corner system menu.

Open Gnome Control Center

In the first Wi-Fi page, make sure you have turned on the switch in header bar. Then click on the tree dots ‘‘ icon, and select ‘Turn on Wi-Fi HotSpot‘ menu option.

Turn on Wi-Fi HotSpot

In the next pop-up dialog, just type a password for authentication when trying to connect this hostspot.

Once you click ‘Turn on’, the Wi-Fi settings page should display QR code that mobile device can scan to connect. As well, it displays the network name, security type (WPA & WPA2 Personal by default) and the password.

Access point status

Configure more about the hotspot:

The default settings are usually OK. But, if you want, there are more options for the access point.

Firstly, press Windows (Super) key on keyboard to open the overview screen. Then search for and open “Advanced network configuration”.

Open Advanced Network Settings

When the utility opens, select “HotSpot” in the list and click on the gear button to configure it.

In next pop-up dialog, you’ll see the options to configure SSID, Bandwidth (2.4GHz/5GHz), channel, speed limit, etc.

HotSpot settings

If you’re not OK with default security type, go to ‘Wi-Fi Security’ tab and select another one. There are also automatic connect, proxy, IPv4/IPv6 settings, see the screenshots below for details:

Create Wi-Fi hotspot from Command Line

For those familiar with Linux commands, or do NOT has GNOME desktop, the single command below may help creating wifi hotspot in Linux:

nmcli device wifi hotspot ifname DEVICE_NAME ssid AP_NAME password "PASSWORD"

In the command, you need to replace DEVICE_NAME with your Wi-Fi device name, and set custom AP_NAME and PASSWORD as prefer.

Once created successfully, try connect to the AP_NAME network in your mobile device and use the password you set to authenticate.

If you don’t know your wireless device name, run command:

iw dev

NOTE: The command works on my Ubuntu Desktop, but not tested in Server edition.
If the iw tool is not available, run command:

sudo apt install iw

For Ubuntu Server, you may also need to run sudo apt install network-manager to get the nmcli command line tool.
Exit mobile version