How to Enable WiFi in Kali Linux using Terminal & GUI (2024)

There are two ways to enable WiFi in Kali Linux. You can either use the Graphical User Interface (GUI) or use the terminal on Kali to enable WiFi.

Enabling WiFi in Kali is easier if you go with the GUI solution. You can enable WiFi in famous Linux GUI like KDE, GNOME, and Xfce.

And you can use the nmcli, nmtui, and ip commands in the terminal to enable the WiFi in Kali.

Table of Contents

Prerequisite for enabling wifi on Kali Linux

You need some prerequisites to connect Kali Linux to wifi. These prerequisites are:

  • A system or VPS server With Kali Linux or virtualization software like VMware and VirtualBox with the Kali distribution
  • A root user logged in

Enable WiFi in Kali Linux via GUI

The first way to turn on wifi in Kali Linux is using the GUI. The ways to connect to WiFi in KDE, GNOME, and XFCE desktops are almost the same.

The following steps depict the way to connect Kali Linux to wifi.

First step: Find the network icon

Find the network icon at the top right corner of your Kali screen and right-click on it.

How to Enable WiFi in Kali Linux using Terminal & GUI (1)

Second step: Enable wifi

Now that a small window has appeared select “Enable Wi-Fi” from the options.

How to Enable WiFi in Kali Linux using Terminal & GUI (2)

After enabling the WiFi, you can choose any wireless network you want to connect to from the available WiFis.

Then, you will be asked to provide the password of the wifi network in order to connect to it.

Also, you can right-click on the Network icon and select “Connection Information” to review the connection details.

How to disable wifi in Kali via GUI

To disable the WiFi through GUI in Kali Linux, find the network icon, right-click on it, and uncheck the “Enable Wi-Fi” box.

Enable WiFi Network in Kali Linux through the terminal

You can use various commands to connect to the desired WiFi in Kali Linux. We will teach different methods for connecting to wifi in Kali using the terminal.

1. Connect Kali Linux to WiFi via nmcli command

Using the nmcli command is a simple and practical method to control the NetworkManager and connect to any network.

To run the nmcli command, you need to enter the network name and password in the following format:

nmcli d wifi connect [The desired network name ] password [The desired network password]

You will be connected to the desired network by executing the above command.

If you need help with the nmcli command, you can refer to the nmcli command’s web page.

2. Connect to WiFi in Kali Linux via nmtui command

The nmtui command, like the nmcli command, enables you to control the NetworkManager. To connect to the desired WiFi network, type the following command:

nmtui

After running the command, the menu shown in the image below will be displayed for you.

You must select the “Activate a Connection” option using the keyboard and then press the Enter button.

How to Enable WiFi in Kali Linux using Terminal & GUI (3)

In the next menu, you will see the available networks. Select your desired option using the keyboard and then press Enter.

Select the Back option after connecting to the desired network and press Enter.

How to Enable WiFi in Kali Linux using Terminal & GUI (4)

To exit the nmtui command prompt, select Quit and press Enter.

How to Enable WiFi in Kali Linux using Terminal & GUI (5)

3. Connect to the WiFi network through the ip command

Another way to connect to a WiFi network in Kali Linux is to use the ip command.

To access the desired WiFi, enter the following command in the terminal environment:

$ ip a

Also, to enable WiFi by Backupping your desired adapter, run the following command:

$ sudo ip link set dev [name of desired WiFi ] up

You can run the “ip” command again to check the WiFi connection.

How to disable wifi in Kali via terminal

If you want to disable your WiFi connection in Kali Linux through the terminal, the following command is of help:

$ sudo ip link set dev [name of desired WiFi ] down

How to list wifi networks through the terminal

If you need to list the available wifi networks via the terminal, this is the command you need:

iwlist wlan0 scan

How to Enable WiFi in Kali Linux using Terminal & GUI (6)

In case you need the ESSID (Extended Service Set Identifier) of the available networks, you can run the following command:

iwlist wlan0 scan | grep ESSID

How to Enable WiFi in Kali Linux using Terminal & GUI (7)

How to fix wifi not showing in Kali

This problem is not common in Kali Linux, but if you encounter this issue, you can use the following command to fix it:

sudo apt install kali-linux-wireless

Of course, this problem may be related to the failure of your wireless card, so it is better to identify your network device name first so that you can make the necessary changes:

iwconfig

After identifying the name of your network device, run the following command:

ifconfig [wireless card name ] up

How to Enable WiFi Adapter in Kali Linux

Disabling Wifi Adapter may be one of the reasons why you cannot see the wireless device and available networks in the list.

To enable the Wi-Fi adapter in Kali Linux, open the Kali Linux terminal environment and execute the following command:

sudo ifconfig wlan0 up

By running this command, you should access a list of available networks. Otherwise, it is better to restart the Kali Linux operating system.

The WiFi adapter is used when connecting to the WiFi network. So you must enable the Kali Linux Wifi and enter the Wifi network password to connect to it in the same.

Kali Linux may not recognize the wireless adapter in virtual environments like VMware and Virtualbox. Using an external adapter can solve this common concern.

If executing the provided command and restarting the Kali Linux system does not activate your WiFi adapter, consider using an external adapter.

Wireless adapter enhances Kali Linux WiFi on physical systems, which is unnecessary for VMware and Virtualbox.

How to enable wlan0 in Kali Linux VMware/Virtualbox?

Follow this method if you have run your Kali Linux on VMware or Virtualbox and have trouble connecting to the wifi.

Step one: Download the wireless adapter driver

Download the “compat-wireless” file directly from the download link. Then, go to the directory where it is saved and unzip the file.

Step two: Change the directory in the terminal

First, switch to the root user using the command below:

$ sudo su

How to Enable WiFi in Kali Linux using Terminal & GUI (8)

Now, change the directory to where the file has been downloaded. Here, we switch it to the Downloads directory using this command:

cd Downloads

How to Enable WiFi in Kali Linux using Terminal & GUI (9)

Then, move to the directory where the file has been extracted. The command will be:

cd compat-wireless-2010-06-28

How to Enable WiFi in Kali Linux using Terminal & GUI (10)

The compat-wireless-2010-06-28 is the extraction directory.

Step three: Unload and load the driver

In this directory, type the following commands respectively:

make unload

How to Enable WiFi in Kali Linux using Terminal & GUI (11)

make load

How to Enable WiFi in Kali Linux using Terminal & GUI (12)

The Kali Linux not showing available wifi networks is fixed, and you can see the available wifis if you click on the network icon.

How to Enable WiFi in Kali Linux using Terminal & GUI (13)

Also, you can see the “wlan0” and “wlan1” enabled by typing the following command in the terminal:

iwconfig

How to Enable WiFi in Kali Linux using Terminal & GUI (14)

Why is Kali Linux WiFi not Working?

If you are experiencing connectivity issues, it’s likely due to incorrect network drive configuration or not having them installed.

However, if your hardware is functioning properly and you still can’t connect, it could be because your network drives are outdated.

You must click on the shell button on the bottom right side of the screen and find and update the desired software by typing “software and updates” in the search bar.

How to install WiFi driver in Kali Linux without Internet?

If you do not have access to the internet and want to install the wifi driver, here is what you have to do:

  • Run either of the commands below to identify your wifi adapter’s model.
lspci
lsusb
  • Download the adapter’s driver on another system connected to the internet.
  • Transfer the driver using a USB to your Kali Linux system.
  • In the terminal, navigate to the directory where you have put the driver’s file and install it by the method mentioned earlier.

Now you can check if your wifi in Kali Linux is working.

How to check WiFi adapter in Kali Linux?

To check the WiFi adapter, open the terminal in Kali Linux and run:

airmon-ng

You will see the WiFi cards, for example, wlan0. To observe any card, here wlan0, run this command:

airmon-ng start wlan0

Its name will be changed to “wlan0mon” because it is in monitor mode.

Now type the command below to list all the networks:

airodump-ng wlan0mon

You can stop observing by pressing the “ctrl” and “c” buttons, then running the command:

airmon-ng stop wlan0mon

Finally to reclaim your WiFi, run the:

systemctl restart NetworkManager.service

FAQ

What command should we use to check available WiFi networks?

Nmcli is a command that allows you to control NetworkManager and provides information about the network status, so run the following command to scan WiFi networks:

nmcli dev wifi

Conclusion

Kali wifi not working can sometimes happen on your system. The GUI and terminal/cmd solutions both help you fix the problem.

We also provided the ways to check the WiFI adapter in Kali, install WiFi driver in Kali Linux without Internet and the way to to enable wlan0 in Kali Linux VMware/Virtualbox.

Related Service :Buy Kali linux VPS

How to Enable WiFi in Kali Linux using Terminal & GUI (2024)

FAQs

How to enable WiFi on Kali Linux terminal? ›

Enable WiFi Network in Kali Linux through the terminal
  1. Connect Kali Linux to WiFi via nmcli command. Using the nmcli command is a simple and practical method to control the NetworkManager and connect to any network. ...
  2. Connect to WiFi in Kali Linux via nmtui command. ...
  3. Connect to the WiFi network through the ip command.
Mar 16, 2024

How to connect to WiFi in Linux through terminal? ›

Connecting to wifi network through command line
  1. Option 1. Just edit /etc/network/interfaces and write: auto wlan0 iface wlan0 inet dhcp wpa-ssid {ssid} wpa-psk {password} ...
  2. Option 2. Provided you replace your Wireless network card, Wi-Fi Network name, and Wi-FI Password this should also work. ...
  3. Best option. ...
  4. Second best option.

How do I enable network interface in Kali Linux? ›

Step by step enable the network in kali linux:
  1. Open your kali linux virtual box like this. ...
  2. Now the new window to set up the kali linux virtual box will open.
  3. By default the network adapter is attached to NAT. ...
  4. the next step you need to choose which network interface you want to bridge to.

How to enable WiFi? ›

Right-click Start and select Settings. Select Network & Internet. Select Wi-Fi/Status and click Change adapter options. Right-click Wireless Network Connection and select Enable.

How to enable internet connection in Linux? ›

If you are working with a Linux system using a GUI, you can configure the network interface via an icon in the far upper right of the screen. The function of this icon is very similar to the windows “TV Set” down in the lower right of the screen in the taskbar of a Windows desktop system.

How to connect to hidden Wi-Fi Linux terminal? ›

Linux:
  1. Open the system menu. For more information, refer to your device's user manual.
  2. Select Wi-Fi Not Connected. The Wi-Fi menu displays.
  3. Click Wi-Fi Settings > Connect to Hidden Network.
  4. In the Connection drop-down list, select New.
  5. Enter the Network name, Wi-Fi security type, and password.
  6. Click Connect.
Mar 3, 2023

How to turn on Wi-Fi adapter in Linux command line? ›

Open the terminal. Type ifconfig wlan0 and press Enter . You will not see any output in the terminal, as this command just turns your wireless card on.

Why Linux is not connecting to WiFi? ›

There are three possible reasons: (1) There is not a driver for your device built into Linux, (2) your device needs firmware that your distro has not provided or (3) You do not know how to make a wireless connection in Linux. Without further information, it is impossible to tell which is the real reason.

How to reset network connection in Kali Linux? ›

To restart the network service on Kali Linux, you can use the command ` service networking restart` or ` systemctl restart networking` .

How to enable network manager in Kali Linux? ›

Getting Kali Linux Network Manager Up and Running
  1. Check Network Manager Status.
  2. Restart Network Manager.
  3. Reinstall the Network Manager Package.
  4. Check for Hardware Issues.
  5. Review Log Files.
Jan 19, 2024

How to enable Internet connection on Kali Linux? ›

Using the GUI, enable and disable WiFi on Kali Linux.

Then, if you wish to connect to WiFi, right-click on the Network icon and choose “Enable Wi-Fi” from the list of options. Check the Disable WiFi option to disable the WiFi connection.

How do I enable a network in Linux? ›

To enable a network interface in linux we cna use ifconfig and ip command available in Linux , now we will go through both of the methods.

How to enable WiFi hotspot in Kali Linux? ›

Kali/Hotspot
  1. 2.1 Install Software.
  2. 2.2 Optional - Connect to Wifi via Command Line. 2.2.1 Troubleshooting.
  3. 2.3 Set up DHCP. 2.3.1 Edit dhcpcd config file. ...
  4. 2.4 DNS. 2.4.1 Edit dnsmmasq config file. ...
  5. 2.5 Host an AP. 2.5.1 Edit hostapd config file. ...
  6. 2.6 Linking AP to Existing Connection. 2.6.1 iptables rules.

Why is my WiFi adapter not found in Kali Linux VirtualBox? ›

Check if the network adapter is enabled in the virtual machine settings. Open VirtualBox and select the Kali Linux virtual machine. Then, click on Settings and navigate to the Network tab. Make sure the Enable Network Adapter option is checked.

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 6448

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.