How to connect to Wifi Network with i3wm?
Olivia Zamora
I just installed Ubuntu minimal with i3wm, but I can't figure out, how to connect it to the wireless network.
I already have installed network-manager package. Also I added exec --no-startup-id nm-applet to my ~/.config/i3 but apt-get cannot find network-manager-applet to install.
Im stuck here, what can I do?
15 Answers
I use (and would recommend) nmtui, a curses based TUI that will allow you to edit and activate connections.
It should already be installed on your system, but if not, you can get it by running sudo apt install network-manager.
You can use Network Manager's command line tool called nmcli.
1. Use nmcli dev wifi to locate the access point(AP) name.
2. Use nmcli device wifi connect APname password password
Use dmenu ($mod+d by default) and type gnome-control-center then Network → Wireless.
On some older Ubuntu versions you'll need to do unity-control-center instead.
If you don't have NetworkManager, install it:
$: sudo apt -y install network-manager-gnomeSet up your connection:
$: nm-connection-editorThis way your connection will be persistent on restart.
I think the applet should be in the network-manager-gnome package. If you don't have it run:
sudo apt-get install network-manager-gnomeAlso make sure the network manager service is running. You can check with:
systemctl list-units NetworkManager.serviceIf it's not loaded you should either start it with:
sudo systemctl start NetworkManager.serviceor enable so it will also be there after restarting with:
sudo systemctl enable NetworkManager.service 5