How to Set Up Wi-Fi in Lubuntu: From Connection to Troubleshooting

Lubuntu is a lightweight version of Ubuntu based on the environment LXQt, ideal for older computers or systems with limited resources. However, many users encounter difficulties setting up a wireless connection: drivers don't detect the adapter, the network doesn't appear in the list, or the connection keeps dropping. In this article, we'll cover all the steps—from basic connection to troubleshooting complex issues, including manual driver installation and configuration file setup.

The peculiarity of Lubuntu is that its interface is minimalistic, and standard network configuration tools (for example, nm-applet) may be missing or not work correctly. We'll show you how to bypass these limitations using built-in utilities. nmtui, iwconfig and a graphical manager NetworkManager, if it is installed. You will also learn how to check the compatibility of your Wi-Fi adapter with the Linux kernel and what to do if the network requires authentication via 802.1X (for example, in university or corporate networks).

1. Checking the hardware compatibility of the Wi-Fi adapter

Before setting up your network, make sure your Wi-Fi module recognized by the system. Many adapters (especially from Broadcom, Realtek or Ralink) require proprietary drivers that are not included in the kernel by default.

Run the following command in the terminal:

lspci -knn | grep -iA3 net

Or for USB adapters:

lsusb

In the output, find the line mentioning Network controller or WirelessPlease pay attention to the identifiers. [XXXX:XXXX] — these are the manufacturer and device codes. For example, 14e4:43a0 indicates the adapter Broadcom BCM4313.

  • 🔍 If the adapter is not detected: Check the physical connection (especially for PCIe or USB devices). Try rebooting the system.
  • 📋 If the adapter is recognized but the network does not work: Most likely, the driver is missing. Proceed to the section on installing them.
  • ⚠️ If there is a line in the output Kernel driver in use: [name]: The driver is loaded, but may not be compatible with your kernel version.
⚠️ Please note: Some laptops (eg. Dell Latitude or Lenovo ThinkPad) have hardware Wi-Fi switches on the case or key combinations (for example, Fn+F2). Make sure the adapter is not physically disconnected.
📊 What type of Wi-Fi adapter are you using?
Built into the laptop
PCIe card
USB-dongle
Don't know

2. Basic Wi-Fi setup via the graphical interface

If you have installed it on your system NetworkManager (It's usually there by default), setting it up takes just a few clicks. Find the network icon in the taskbar (usually in the lower right corner) and click it.

If there is no icon, launch it manually:

nm-applet &

In the menu that opens, select your network, enter the password, and connect. If the network is hidden, click Connect to a hidden network and indicate SSID manually.

  • 🔄 Network not showing? Check if the mode is enabled Ad-Hoc On the router, Lubuntu may not show such networks.
  • 🔒 Can't connect to a secure network? Make sure the correct security type is selected (WPA2-PSK instead of WEP).
  • 📡 Is the signal weak? Try changing the channel on your router (for example, from 13 on 6) or reduce the transmit power.
Problem Possible cause Solution
The network is visible but does not connect. Incorrect password or encryption type Remove the network from your saved connections and reconnect.
The network icon is missing nm-applet not running Run it in terminal or add it to startup
The connection is broken Adapter power saving Disable with iwconfig wlan0 power off

3. Configuring Wi-Fi via the terminal (nmtui and iwconfig)

If the graphical interface is unavailable or does not work, use text-based utilities. The simplest one is nmtui (interface for NetworkManager):

sudo nmtui

In the menu, select Activate a connection, then find your network, enter the password and save. If nmtui is missing, install it:

sudo apt install network-manager

For manual adjustment without NetworkManager use iwconfig And wpa_supplicant:

sudo ifconfig wlan0 up

sudo iwconfig wlan0 essid "network_name" key "password"

sudo dhclient wlan0

For networks with WPA/WPA2 create a configuration file:

wpa_passphrase "network_name" "password" | sudo tee /etc/wpa_supplicant.conf

sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf

sudo dhclient wlan0

⚠️ Attention: Teams ifconfig And iwconfig are considered deprecated in newer versions of Linux. It is recommended to use them instead. ip And iw. For example, ip link set wlan0 up.

Ping to the router: ping 192.168.1.1 (replace with your router's IP)|

Ping to DNS: ping 8.8.8.8|

Checking routes: ip route|

DNS Check: nslookup google.com

-->

4. Installing drivers for Wi-Fi adapters

If the network is not detected at all, the driver is most likely missing. The most problematic adapters are Broadcom (series BCM43xx) and some models Realtek (For example, RTL8188EE or RTL8723DE).

Find out the exact adapter model (see section 1) and install the driver:

  • 🔧 For Broadcom:
    sudo apt install firmware-b43-installer

    or for new models:

    sudo apt install bcmwl-kernel-source
  • 🔧 For Realtek:
    sudo apt install firmware-realtek

    If it doesn't help, download the driver from GitHub (for example, for RTL8821CE).

  • 🔧 For Intel: Drivers are usually included in the kernel. Update your system:
    sudo apt update && sudo apt upgrade

After installation, reboot the system or load the kernel module manually:

sudo modprobe -r [module_name] && sudo modprobe [module_name]

For example, for Broadcom:

sudo modprobe -r b43 && sudo modprobe b43
How do I find the kernel module name for my adapter?

Run the command lsmod | grep -i [part of adapter name]For example, for Broadcom:

lsmod | grep -i b43

If the output is empty, try dmesg | grep -i firmware - there may be hints about missing firmware files.

5. Troubleshooting Common Wi-Fi Problems in Lubuntu

Even after a successful connection, problems may arise: slow speed, frequent disconnections, or an inability to connect to certain networks. Let's look at the most common cases.

5.1 The network connects, but the Internet doesn't work

Check your settings DNS And routing:

ip route

If there is no default route, add one:

sudo ip route add default via 192.168.1.1

Replace 192.168.1.1 to your router's IP address. Also check the DNS in the file /etc/resolv.confIf there is no line there nameserver, add:

echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf

5.2. Low speed or frequent interruptions

The issue may be related to the adapter's power saving settings or channel interference. Disable power saving:

sudo iwconfig wlan0 power off

Check the current channel and signal strength:

iwlist wlan0 scanning | grep -E "Channel|Quality"

If the signal quality is low (Quality=30/100), try changing the channel on your router or move the device closer to the access point.

5.3. Unable to connect to a hidden network

Hidden Networks (hidden SSID) may cause problems. Connect manually:

sudo nmcli dev wifi connect "network_name" password "password" hidden yes

Or through wpa_supplicant add the following line to the configuration file:

scan_ssid=1

6. Setting up Wi-Fi for corporate networks (802.1X)

University campuses or offices often use authentication by 802.1X (for example, through PEAP or TTLS). Connecting to such networks in Lubuntu will require manual configuration.

Install the support package 802.1X:

sudo apt install wpasupplicant

Create a configuration file (replace the parameters with your own):

network={

ssid="network_name"

key_mgmt=WPA-EAP

eap=PEAP

identity="your_login"

password="your_password"

phase2="auth=MSCHAPV2"

}

Save it as /etc/wpa_supplicant.conf and connect:

sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf

sudo dhclient wlan0

For NetworkManager set up a connection via nmtui or graphical interface by selecting the security type WPA & WPA2 Enterprise and specifying the authentication method.

⚠️ Note: Some networks require you to install a root certificate (CA certificate). You can download it from the organization's website and specify the path in the configuration wpa_supplicant How ca_cert="/path/to/certificate.pem".

7. Automatically connect to Wi-Fi on startup

To connect the network automatically after a reboot, configure NetworkManager or add the script to startup.

For NetworkManager:

sudo nmcli connection modify "network_name" connection.autoconnect yes

If you use wpa_supplicant, add in /etc/rc.local (before the line exit 0):

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf

dhclient wlan0

Do it rc.local executable:

sudo chmod +x /etc/rc.local

To check auto-connection, reboot the system and run:

ip a show wlan0

If there is a line in the output inet with IP address, connection successful.

8. Alternative connection methods (USB tethering, Bluetooth)

If Wi-Fi setup fails, temporarily use other methods of connecting to the Internet:

  • 📱 USB tethering from phone:
    1. Connect your phone via USB and enable modem mode in the settings.
    2. In Lubuntu, check the new network device: ip a.
    3. Set up NetworkManager or use dhclient to obtain IP.
  • 🔵 Bluetooth tethering:
    1. Install packages: sudo apt install bluez blueman.
    2. Pair your phone with your computer via blueman-manager.
    3. Enable Internet sharing via Bluetooth on your phone.
    4. 🌐 Ethernet via USB adapter: If you have an adapter USB-to-Ethernet, connect the cable from the router directly.
    5. These methods will help you temporarily gain network access to download missing drivers or update your system.

      FAQ: Frequently asked questions about setting up Wi-Fi in Lubuntu

      Why can't Lubuntu see my Wi-Fi network, even though other devices do?

      Possible reasons:

      • The adapter is disabled by hardware (check the switch on the laptop case or a key combination, for example, Fn+F2).
      • The driver doesn't support your region. Try changing the country in your router settings (for example, with RU on US).
      • The network is operating in the mode 802.11ac (5 GHz), and your adapter only supports 802.11n (2.4 GHz). Check your router settings.

      Also run in terminal:

      sudo dmesg | grep -i firmware

      If the output shows firmware download errors, install the missing packages (eg. firmware-misc-nonfree).

      How to reset all network settings in Lubuntu?

      To reset your network settings to their default state, run:

      sudo rm /etc/NetworkManager/system-connections/*
      

      sudo systemctl restart NetworkManager

      If you use wpa_supplicant, delete the configuration file:

      sudo rm /etc/wpa_supplicant.conf

      After this, reboot the system. All saved networks and passwords will be deleted.

      Can I use Lubuntu without NetworkManager?

      Yes, but manual configuration will be required via wpa_supplicant And dhclient. Delete NetworkManager (optional):

      sudo apt purge network-manager

      Then set up startup wpa_supplicant through systemd or rc.local, as described in section 7.

      To simplify network management, you can install alternatives:

      • wicd — lightweight network manager: sudo apt install wicd.
      • connman - minimalist demon: sudo apt install connman.
      How do I check which Wi-Fi standard my adapter supports?

      Run the command:

      iw list | grep -A 10 "Supported interface modes"

      Look for lines like:

      • VHT Capabilities - support 802.11ac (5 GHz, speed up to 1.3 Gbps).
      • HT Capabilities - support 802.11n (2.4/5 GHz, up to 600 Mbps).
      • The absence of these lines means support only 802.11g (up to 54 Mbps).

    Also check out the supported frequencies:

    iw list | grep -A 5 "Frequencies"

    If the output contains 5 GHz, the adapter supports dual-band networks.

    How to share Wi-Fi with Lubuntu (access point mode)?

    To share the Internet via Wi-Fi, install hostapd And dnsmasq:

    sudo apt install hostapd dnsmasq

    Set up hostapd (example config for /etc/hostapd/hostapd.conf):

    interface=wlan0
    

    driver=nl80211

    ssid=MyHotspot

    hw_mode=g

    channel=6

    wpa=2

    wpa_passphrase=12345678

    wpa_key_mgmt=WPA-PSK

    Start the access point:

    sudo systemctl unmask hostapd
    

    sudo systemctl enable hostapd

    sudo systemctl start hostapd

    Set up dnsmasq to distribute IP addresses and enable traffic forwarding:

    sudo sysctl net.ipv4.ip_forward=1
    

    sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

    For more information on setting up, please refer to the manual. Software access point (the principles are the same for all distributions).