30.7.15

Using nmcli to grab wifi on headless machines

If you want to use linux for a dev machine and don't need the windowing manager, you still might need to every once in a while do some things that you're used to doing via the Gnome GUI app, for example, networking management.  Well... in linux, Its super easy to connect to a wifi network from the terminal.

Actually easier than using the damn network ui.
nmcli device wifi list | grep joesrouter
This will list out all routers with "joesrouter" in the name.  Grab the one you want...

joesrouter100
joesrouter_5ghz
joesrouter_blahblah
hello_this_is_joesrouter

Then afterwords, pick the router
nmcli dev wifi con joesrouter_5ghz the_z123_password_xyz
 Thats it !

No comments:

Post a Comment