Linux Mint

How do I connect to Wi-Fi on Linux Mint

Wi-Fi is simply an internet connection that is used to connect the computing devices, laptops, smartphones or tablets to the internet. In this modern tech era, every computer needs an internet connection and to avoid inconvenience, a wireless connection is preferred. The internet service providers use Wi-Fi routers to convert the ethernet connection to wireless signals and any computing device can connect to that wireless connection by entering correct credentials. In this article, several ways are provided to connect to Wi-Fi on a Linux Mint.

Prerequisites

Before getting into connection with a wireless network, there are a set of prerequisites that are necessary to connect to a wireless network.

  • The wireless adapter is in a functional state.
  • And you are using a Linux Mint based operating system

How to connect Wi-Fi on Linux Mint

To connect your Linux Mint to Wi-Fi, there are two ways to do so, and they are mentioned below:

  • Using graphical user interface
  • Using command line support of Linux Mint

The upcoming sections briefly describe both methods.

How to connect Wi-Fi on Linux Mint using Graphical Interface

This section guides you to the graphical support of Linux Mint to connect to Wi-Fi. You must follow the steps carefully.

Step 1 : Navigate to the connection icon, and you would observe the available wireless connections.

A screenshot of a computer screen Description automatically generated with medium confidence

Step 2 : Select on your wireless connection that you want to connect, and if it is encrypted you have to enter its password to connect successfully.

Graphical user interface, application Description automatically generated

After connecting, the “Connection Established” prompt will appear.

Diagram Description automatically generated with low confidence

How to connect Wi-Fi on Linux Mint using the command-line interface

The command-line interface of Linux-Mint is enriched in features as any terminal of Linux-based distribution. You have to execute several commands to enable Linux-Mint to connect with the Wi-Fi.

Step 1 : Firstly, it is recommended to trace your wireless network by navigating to the directory where network information resides. The directory’s address is “/sys/class/net“, and use the ls command to get the list of available networks.

$ sudo /sys/class/net

Text Description automatically generated with medium confidence

Step 2 : Look for the network configuration file using the netplan utility. By doing so, you would get the .yaml file, where you can put your wireless network configuration.

So, use the command written below to verify that the file exists in the “/etc/netplan” directory or not.

$ ls /etc/netplan

Text Description automatically generated

Note : Netplan is a Linux utility that is used to configure network interfaces. For that, a .yaml file is used to add the details of the network interface.

Step 3 : As the output of the above command returns the file 1-network-manager-all.yaml. Open the 1-network-manager-all.yaml file in nano(any editor can be used) editor.

The first three lines are already there; append the following lines after entering the details in the network-manager file, press “Ctrl+S” and “Ctrl+X” to save and exit the file.

Note: It is recommended that you keep the indentation in mind as you might not connect if proper indentation rules are not followed.

Wifis:
    Wlp2s0:
        optional: true
          access points:
              "SSID of wireless-connection"
                     Password: "password-of-wireless-connection"
          dhcp4: true
$ sudo nano /etc/netplan/1-network-manager

Graphical user interface, text, application Description automatically generated

Note: In the above syntax, SSID is the name of your wireless network, and the name selection depends on the user; thus, it varies from user to user.

For completing the configuration of netplan, you must execute the command written below.

$ sudo netplan --debug apply

A screenshot of a computer Description automatically generated with medium confidence
Graphical user interface, text Description automatically generated

After applying the changes, the connection will be made, and you can use the ip command to check the state of your wireless network.

$ ip a

After this, you would be able to use the internet provided by your wireless network interface.

Conclusion

Wireless technology has emerged as a key player in revolutionizing the world. The Wi-Fi connection has eased the way of communicating with the world. Their application can be seen from computing devices to tablets/phones, from several electrical appliances to setting up an IoT-based network. This demonstration provides the procedural guide to connect your Linux Mint system with Wi-Fi. The two methods are mentioned here that can be followed to connect to a Wi-Fi network. The graphical interface is quite easy and quick to make a connection, whereas Linux users should be familiar with the command line method.

About the author

Adnan Shabbir