15 lines
514 B
Plaintext
15 lines
514 B
Plaintext
# Check if NetworkManager service is running
|
|
systemctl status NetworkManager
|
|
# If not running, start it temporarily
|
|
sudo systemctl start NetworkManager
|
|
# Enable Wi-Fi radio (in case it is disabled)
|
|
nmcli radio wifi on
|
|
# List available Wi-Fi networks
|
|
nmcli device wifi list
|
|
# Connect to a Wi-Fi network (replace SSID and PASSWORD)
|
|
nmcli device wifi connect "SSID_NAME" password "YOUR_PASSWORD"
|
|
# Verify that the connection is active
|
|
nmcli connection show --active
|
|
# Optional: show device status
|
|
nmcli device status
|