1

I have gone through other questions on connecting to a Wi-Fi network from a terminal. nmcli works from the command line if the password provided is correct. If the password is wrong:

  1. The network manager opens a dialog box asking for the right password
  2. The command doesn't exit till I click on "Cancel" (returns 4 on cancel)

Is there a way to try to connect to a network without having this dialog box pop up if there is an error?

I need this to connect to a Wi-Fi network from a ctrl + alt + F<num> terminal. Here it just keeps waiting and the prompt doesn't return.

rohithpr
  • 157

1 Answers1

0

I do not see your Ubuntu release ID and I do not know why you want to avoid the NetworkManager GUI but here is an alternative to using NetworkManager:

  1. Put the connection name and attributes in /etc/network/interfaces. This will cause NetworkManager to ignore this interface as "unmanaged".
  2. See the Answer in ubuntu 14.04 connect to a wifi network using command line