How to connect to Wifi Network with i3wm?
Solution 1
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
.
Solution 2
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
Solution 3
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.
Solution 4
If you don't have NetworkManager, install it:
$: sudo apt -y install network-manager-gnome
Set up your connection:
$: nm-connection-editor
This way your connection will be persistent on restart.
Related videos on Youtube
Vorsek
Updated on September 18, 2022Comments
-
Vorsek almost 2 years
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?
-
desgua about 5 yearsmake sure that you have nm-applet installed running:
apt install network-manager
-
-
Vorsek over 7 yearsThanks for the answer, i did have the network-manager-gnome installed, but the i3 status bar doesnt show any icon, also im having the same problem with dropbox. Any other suggestion? Thanks.
-
Vincent. over 7 yearsCan you try running nm-applet from a terminal to see if gives any errors?
-
Vorsek over 7 yearsnm-applet doesnt give any error or message when i run it from the console, what can it be?
-
Vincent. over 7 years
-
Vorsek over 7 yearsI connected to the network via the command line, i cant fix the tray problem with i3, no idea what can it be. Thanks a lot for your help.
-
Fan about 5 yearsIs it possible to set it connect to wifi when log in using i3?
-
Qinsheng Zhang over 2 yearsthis should be the easiest option