DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Connect to Wireless Network in Linux Mint Command Line


Show current network status of the computer: nmcli c status, nmcli nm and nmcli d;

List all available Wi-Fi access points (no need for sudo):

nmcli d wifi rescan
nmcli d wifi list   # or nmcli d wifi

The second column is the SSID Name which will be used in the following steps.

List current connected AP (access point): nmcli c show.

Connect to a new (unconnected before) AP: nmcli d wifi connect <SSIDName> password <ThePassword>.

Check with ip a, if the wireless interface get an IP address, the connection is established.

Or specify the NIC name: nmcli dev wifi con <SSIDName> password <ThePassword> iface wlan0. replace "wlan0", "SSIDName" and "MyPassword" with yours.

Connect to a used (connected before) access point: nmcli c up <SSID> or nmcli con up id <SSIDName>. You can use to list available SSIDs, or select from output of nmcli c show.

Turn off current connected wifi: nmcli c down <SSID> or nmcli nm wifi off.

Next time when connected this wifi, turn on with nmcli nm wifi on.

Other unverified versions:

nmcli d wifi connect <WiFi-ESSID> password <WiFi-Password> iface wlan0
iwconfig wlan0 essid <WiFi-ESSID> key <WiFi-Password>

Note:

iwlist wlan0 scan|grep ESSID only list the connected Wifi, instead of all available Wi-Fi access points.

Ref:

man nmcli;

connect to wifi from command line;



Published

Dec 13, 2014

Last Updated

Dec 13, 2014

Category

Tech

Tags

  • mint 24
  • scan 1
  • wifi 4

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor