💾 Archived View for darknesscode.xyz › notes › network-manager.gmi captured on 2023-11-14 at 07:57:48. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-05)
-=-=-=-=-=-=-
NetworkManager's functionality can be useful for both wireless and wired networks. For a wired network is a simple as plug and play
run nmcli to list all nearby wireless networks
nmcli device wifi list
Connect to wireless network
nmcli device wifi connect <SSID> password <PASSWORD>
If the network is hidden
nmcli device wifi connect <SSID> password <PASSWORD> hidden yes
To list all networks
nmcli connection show
nmcli device disconnect <INTERFACE>
nmcli connection up <NAME-OR-UUID>
Check the status of the network adapter
nmcli device
nmcli radio wifi off
nmcli radio wifi on
The connection options are stored in /etc/NetworkManager/system-connections directory in their respective <connection_ID>.nmconnection files
sudo ls /etc/NetworkManager/system-connection
Edit the respective file for changing the settings
sudo vim /etc/NetworkManager/system-connections/<connection_ID>.nmconnection
After editing, make sure that the new settings take into effect by reloading nmcli
sudo nmcli connection reload
Launch the command line UI for an easy setup of a network
nmtui
----------
----------
© DarknessCode