Download Article Download Article

Do you need to connect to a wireless network on Linux? In order to do so, you need to have a network adapter that is compatible with Linux. Then you can easily configure your wireless card using the graphical user interface, or using the Terminal. This wikiHow teaches you how to set up your wireless network in Linux.

Section 1 of 5:

Setting Up Your Wireless Router

Download Article
  1. To do so, connect the internet cable to the "Internet" or "WAN" port on the back of your modem. Then plug in your modem. The internet cable is the cable that carries the internet into your home. It may be an ethernet cable or a coaxial cable. It may be a cable that comes in from the outside, or there may be a wall outlet that you use to connect to the internet.
  2. Many wireless routers come with a modem already built-in. If you do not have a 2-in-1 modem and router, use an ethernet cable to connect your wireless router to one of the "LAN" ports on the back of your modem. Then connect the other end of the ethernet cable to the "WAN" or "Internet" port on the back of your router.
    Advertisement
  3. To do so, connect an ethernet cable to one of the LAN ports on the back of the router. Then connect it to an ethernet port on your PC.
    • If your PC does not have an ethernet port, you can purchase an ethernet-to-USB adapter.
  4. You can use any web browser.
  5. This opens your router's user interface. The IP address you use to open your router's interface is different from one manufacturer to another. Consult the user's manual or manufacturer's web page to find out the IP address for your router's make and model.
    • Common router IP addresses include "192.168.1.1," "192.168.0.1," and "10.0.0.1". You may be able to find the IP address on a sticker on the back or bottom of your router.[1]
  6. If you have not set an admin username and password for your router, you can use the default username and password. Consult the user's manual or for your router to find the default username and password. There may also be a sticker on the back or bottom of your router with the default username and password.
  7. The user interface is different from one router model to the next. Locate the wireless settings in the user interface and make sure wireless networking is enabled.
  8. When you enable wireless networking, you need to select an encryption method. The most common wireless encryption type is WPA, WPA2, or WPA3.
    • Do not use WEP encryption. WEP is an outdated encryption method that is [easy to break]. For the best security, make sure you use WPA encryptions.
  9. Advertisement
Section 2 of 5:

Connecting through the GUI

Download Article
  1. Most Linux distributions have their own built-in Wi-Fi interface called NetworkManager that you can use to connect to Wi-Fi. Click the Wi-Fi icon, which typically resembles a fan with arching lines in the middle. If you are not connected to Wi-Fi, it will most likely resemble an empty fan with no arching lines. The Wi-Fi icon is usually in the upper-right corner or lower-right corner, depending on which Linux distribution you are using.
  2. Look for an option in the drop-down menu that says "Enable Wi-Fi" or something similar. Ensure there is a checkmark next to the icon that says "Enable Wi-Fi." It should start scanning for nearby wireless networks.
  3. Once your wireless network is found, it should be listed below "Wi-Fi Networks." Click your wireless network to display the "Network Authentication Required" window.
    • If you do not see your wireless network, click More Networks to display additional wireless networks.
    • If you want to connect to a hidden network, click Connect to Hidden Wi-Fi Network instead. Then enter the name of your wireless network and password.
  4. This is the password that is set up in the router's user interface. Enter the password and click Connect. Once it is connected, you are ready to surf the internet without a wire connected to your router or modem.[2]
  5. Advertisement
Section 3 of 5:

Connecting with Network Manager TUI

Download Article
  1. This opens the NetworkManager TUI window.
  2. It's the second option in the NetworkManager TUI window. Use the arrow keys on your keyboard to navigate the menu options. Press Enter to select an option.
  3. All wireless networks should be listed below "Wi-Fi." Highlight the wireless network you want to use and press Enter to select it.
  4. If your password is correct, you should be connected to your wireless network. You can now use your wireless network to connect to the internet.
  5. Advertisement
Section 4 of 5:

Connecting with Nmcli

Download Article
  1. This displays a list of network adapters connected to your computer. Network adapters that say "no wireless extension" are not usable. Look for a wireless adapter that says "Mode: Managed" and "Access Point: Not-Associated" in the second line below network adapter name.
  2. Replace "[network adapter name]" with the name of the network adapter you retrieved using the "iwconfig" command. This uses the network adapter to scan for nearby wireless networks and displays a list of all available wireless networks.
  3. This is the start of the command used to connect to a wireless network. Do not press "Enter" just yet. You still need to enter the wireless network name and password.
  4. Enter the name of the wireless network you want to connect to after "connect" in the command. Make sure the spelling matches the network name as displayed in the list of wireless networks from the previous command.
  5. Replace "[password]" with your wireless password. Then press Enter. If your network name and password are correct, you should see a message informing you that your network adapter device was successfully activated. You can now use your network adapter to connect to the internet.[3]
  6. Advertisement
Section 5 of 5:

Troubleshooting

Download Article
  1. If you are having problems connecting to the internet, the first thing you should try is restarting your modem and/or router. To do so, unplug your modem and router for about 20 seconds. Then plug your modem back in and wait a minute for it to fully boot up. Then plug your router back in and wait a minute for it to fully boot up.
  2. If you are not able to connect to the internet using any device, chances are the issue is with your internet service. Contact your internet service provider for assistance. If your Linux computer is the only device that isn't able to connect to the internet, chances are the problem is with your computer software or hardware.
  3. Keeping your Linux system up to date is a good way to ensure all bugs and security problems are patched. If you are unable to connect to the internet, make sure you are running the latest version of Linux. Connect your computer to your modem or router using an ethernet cable and use one of the following Terminal commands to update your system:[4]
    • Debian/Ubuntu: sudo apt-get update.
    • Fedora: sudo dnf upgrade
    • Red Hat/CentOS: sudo yum update
    • Arch Linux: sudo pacman -Syyu
  4. Not all network adapters are supported by Linux. You can use Google to see if your network adapter model is supported by Linux. Also, most Linux distributions keep a list of supported hardware. You can check to see what network adapters are supported for Ubuntu, Arch Linux, Fedora, and OpenSUSE.
    • Alternatively, you can use the Terminal command lshw -C network to see if Linux recognizes your network adapter.[5]
  5. Most network adapters that Linux supports use free and open-source drivers. However, not all manufacturers use free and open-source drivers. You can check the web page for your network adapter's manufacturer to see if they have a Linux driver you can download and install. Some network adapters do not have a Linux driver.
    • If your network adapter does not have a Linux driver, you can try installing NDISWrapper on your Linux computer. NDISWrapper allows you to use the Windows driver for some network adapter models.[6]
  6. Some network adapters may work with Linux, but not right out of the box. Some network adapters need additional configuration. If your network adapter does not work with Linux, you can use Google to check and see if anybody has figured out how to get it to work with Linux. You may find a solution on a Linux web forum or your Linux distributions official website.
  7. If you cannot get your computer's built-in network adapter to connect to a wireless network, you may get an external network adapter. You can purchase an external network adapter that connects to your PC through a USB connection. Before you buy, check to make sure the network adapter is on your Linux distribution's list of supported devices. You can also check the network adapter's box to see if it has the Linux penguin logo indicating it supports Linux
  8. NetworkManager comes pre-installed on most Linux distributions. However, some Linux distributions do not have Network Manager installed, or use a different network interface. If NetworkManager is not installed on your version of Linux, connect your computer directly to your modem using an ethernet cable and use one of the following Terminal commands to install NetworkManager:[7] [8] [9]
    • Debian/Ubuntu: sudo apt-get install network-manager
    • Fedora: sudo dnf install NetworkManager
    • Red Hat/CentOS: sudo yum install NetworkManager
    • Arch Linux: sudo pacman -S wpa_supplicant wireless_tools networkmanager
  9. If you just installed NetworkManager, you'll need to enter the Terminal command to start a new session. If you want Network Manager to start up every time you boot up your PC, you will need to enable it. Use the following Terminal commands to start and enable NetworkManager:
    • Start NetworkManager: systemctl start NetworkManager
    • Enable NetworkManager: systemctl enable NetworkManager
  10. If NetworkManager is already installed, you may need to restart it if it's not working properly. You can use the following Terminal command to restart NetworkManager: sudo service NetworkManager restart
  11. If your network interface is installed and working properly, and you are sure your network adapter is supported by Linux, your Linux installation may be corrupted and need to be repaired. The way you repair your Linux system is different from one distribution to the next. Check the web page for your Linux distribution to learn how to do a system repair on your Linux distribution.
  12. If you have tried everything and you still can't get your Linux computer to connect to a wireless network, the last resort is to do a [{Install-Linux|clean installation]]. This will wipe all the data on your computer, so back up everything you want to keep before you begin. Then you will need to make an installation CD or USB drive. Boot from the USB drive and follow the instructions to perform a clean installation of your Linux operating system.
  13. Advertisement


Community Q&A

Search
Add New Question
  • Question
    Is there any software for Linux to use in a laptop as a WiFi signal-booster/repeater?
    Community Answer
    Community Answer
    There is most likely no such software, as you wouldn't regularly find booster/repeater hardware inside of a device which uses Linux.
  • Question
    How can I update my Android App?
    Community Answer
    Community Answer
    Updating applications is done from Play Store, where app initially downloaded from. If app wasn't downloaded from play store but from Unknown Source or unofficial store user can check the available versions from that source.Note: Avoid downloading from "Unknown Source" or external store. File you download may be modified and can gain access to critical/personal data on the device.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Thanks for submitting a tip for review!

You Might Also Like

Set up a Wireless Network (WiFi) ConnectionHow to Set Up and Connect to a Wi-Fi Network: Easy Guide
Secure Your Wireless Home NetworkSecure Your Wireless Home Network
Break WEP EncryptionBreak WEP Encryption
Add an HP Printer to a Wireless Network4 Simple Ways To Add an HP Printer to a Wireless Network
Connect to a Wireless Internet ConnectionConnect to a Wireless Internet Connection
Install Google Chrome Using Terminal on Linux
Can Linux Run ExeCan Linux Run .exe Files? How to Run Windows Software on Linux
Linux How to Mount DriveHow to Mount Drives on Linux: Command Line & GUI
Become Root in LinuxBecome Root in Linux
Tar a DirectoryHow to Tar a Directory and Subdirectories in Linux
Take a Screenshot in LinuxTake a Screenshot in Linux
Find a File in LinuxFinding Linux Files: Complete Guide to Using Find Commands
Use Wine on LinuxHow to Install and Use Wine on Linux
Add or Change the Default Gateway in LinuxAdd or Change the Default Gateway in Linux
Advertisement

Expert Interview

Thanks for reading our article! If you’d like to learn more about troubleshooting computers and printers, check out our in-depth interview with Blain Gunter.

About This Article

Blain Gunter
Written by:
Computer Repair Specialist
This article was written by Blain Gunter and by wikiHow staff writer, Travis Boylls. Blain Gunter is a Computer Repair Specialist and small business owner based in Bakersfield, California. He was first introduced to computers at the age of five and has over twenty years of experience in his field. He is both an IT consultant and computer repair technician and takes pride in his ability to troubleshoot anything. He works with hardware, software, Windows, macOS, GNU/Linux, and even vintage electronics. This article has been viewed 438,389 times.
How helpful is this?
Co-authors: 22
Updated: February 1, 2024
Views: 438,389
Categories: Linux | Wireless Networking
Thanks to all authors for creating a page that has been read 438,389 times.

Is this article up to date?

Advertisement