Post

Linux connect to wifi using nmtui

Linux connect to wifi using nmtui

After a minimal Debian install, you often end up with no GUI and need to connect to WiFi from the terminal. nmtui is the text-based UI for NetworkManager — much friendlier than editing config files directly. The saved network cleanup step is useful when connections get into a confused state.

After installing Debian 10 using the netinst.iso, I wanted to connect to my wifi.

Inorder to do that I used the nmtui.

  • First install network-manager
1
2
3

$ sudo apt install network-manager

  • Now run nmtui and select network
1
$ nmtui
  • Incase of issues
1
2
3
4
5
6
7
$ # Remove saved networks

$ sudo rm -rf /etc/NetworkManager/system-connections/*

$ # Reboot

$ /usr/sbin/reboot
  • Now re-run nmtui
1
2
3
4
5
6
7
$ nmtui

"Activate a Connection" 

Select network

"Activate" 
This post is licensed under CC BY 4.0 by the author.