The network manager is responsible for the administration, detection, and connection of the server with internet connectivity. It is a tool that assists the user in automatically connecting the Arch Linux operating system with the network. You can also opt for the netctl utility that comes along the Arch Linux server. An effective network manager puts up your system defenses against unknown connectivity bugs. Arch Linux is a complex system, so it requires an efficient network-manager to oversee the secure connection. This guide provides a detailed understanding of downloading and using the network manager in Arch Linux.
To get the network manager for your system, there are only two steps that you need to follow:
- Step 1: Installation
- Step 2: Configuration
Once the network manager is working effectively on your server, you can use the manager to connect to your network. After the successful installation of the network manager, you can opt for various command-line tools to maximize the efficacy and ease of operationality of this tool.
The essential components for installing the network manager in Arch Linux include a sudo user and the Pacman package manager.
Installing the Network Manager
First, input the following command to update and sync any existing system packages:
This command will sync, refresh, and update packages that are already available in your Arch Linux official database. It is very easy to install the network manager in Arch Linux because it comes in the Arch repository packages.
$ sudo pacman -S wpa_supplicant wireless_tools networkmanager
To install a network-manager for your mobile device, run the following command for the additional installation of the related package:
$ sudo pacman -S modemmanager mobile-broadband-provider-info usb_modeswitch
To obtain the respective packages for PPPoE support, issue the following command:
$ sudo pacman -S rp-pppoe
This last command allows you to obtain the respective packages to support the UI. Installing any of these packages depends on your preferences.
$ sudo pacman -S nm-connection-editor network-manager-applet
Enabling the network manager will assist you in setting up the network manager as the main package for network connectivity after booting the system.
$ sudo systemctl enable NetworkManager.service
Disable the default dhcpcd service to avoid conflict over network management by issuing the following command:
$ sudo systemctl disable dhcpcd.service
You may also need to enable some supportive services. Run the following command to enable supportive services:
$ sudo systemctl enable wpa_supplicant.service
Lastly, input the following command to start the network manager and reboot the system to bring the changes into effect:
$ sudo systemctl start NetworkManager.service
Using Network Manager
Now, you can use the network manager on your Arch Linux system with the netctl utility or some other command-line tool. The priority is to get the list of networks that are nearby your system. Enter the cli command below to list out the networks. I am using a Virtual box here, so it will not display any devices, as I am using the host machine connection as ethernet.
You can also input the following command using netctl:
Once you have selected your preferable network, proceed with connectivity via the following command:
$ nmcli device wifi connect <SSID> password <SSID_password>
Input the network and its respective password to connect the network to your server via the following command:
$ nmcli device wifi connect <SSID> password <SSID_password> hidden yes
This command will visualize all the hidden networks available to your system.
If you are curious about the connected network details, then input the following command:
The above command will present a list onscreen of all connected networks on your system, along with their respective details. After checking the network, you can also check the available device connected with that network. You can add your interface to the wireless network before disconnecting it via the following command:
$ nmcli device disconnect <interface>
Visualize the network to reconnect to it using UUID.
$ nmcli connection up uuid <UUID>
The next phase is to edit the connection. You can save the settings in the respective repository of the network via the following command:
$ sudo ls /etc/NetworkManager/system-connection
To alter the settings of the respective file, execute the following cli command:
$ sudo nano /etc/NetworkManager/system-connections/<connection_ID>.nmconnection
The last step is to reload the server to ensure that the changes have been made successfully. To do so, issue the following:
$ sudo nmcli connection reload
Using Network Manager nmti
Using the nmti network manager is comparatively easy because it applies the user interface to select the options, instead of running the command. Nmti is a command-line UI tool, and you can navigate the network manager after launching this tool.
Select the “Edit a connection” option in the window visible on your screen and hit “OK.” Select the connection and click “Edit.” You can delete any networks that you do not need and add those that you wish to edit. Type the details of the network you are editing and press “OK.” You can also activate and deactivate the connection in this way.
If you are using a desktop environment like GNOME or KDE, then you can integrate the network manager with the desktop environment. You can manage settings on GNOME with the GNOME plug-in. You can also use the following command in KDE Plasma to configure the settings:
$ sudo pacman -S plasma-nm
Using the network manager in Arch Linux can save you a lot of trouble. This tool makes managing your internet connection swift and easy. You can secure your network devices and also get detailed information about the network with the network manager. Moreover, you do not need to concern yourself with network issues anymore. The network manager allows automatic connection with your preferred networks. You can connect to your server and also mobile networking through the network manager.
This guide shares the complete details of the Arch Linux network manager, from its installation to its uses. This way, even if you are a beginner, you can still effectively ace the operations of the network manager in Arch Linux.