nmcli is rather pleasant with tab completion

This morning I was in a scenario where just done an install (Fedora 29 Server), and the device had no wired network, only wifi. I was feeling lazy and didn't want to pull out my USB ethernet dongle and a cable. So out of curiosity, I was wondered how far I could get with the new nmcli (Network Manager CLI) tools, and tab completion. The answer, all the way to working wifi networking. So I thought I'd share the FYI. I see this coming in really handy for Raspberry Pi 3/3+ and Zero-W owners. Example output: [root@dna ~]# nmcli device wifi list IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY ItsAWifi Infra 6 195 Mbit/s 100 ▂▄▆█ WPA2 * The_Terrace Infra 149 405 Mbit/s 97 ▂▄▆█ WPA2 ItsAWifi Infra 36 405 Mbit/s 94 ▂▄▆█ WPA2 -- Infra 153 540 Mbit/s 69 ▂▄▆_ WPA2 N.InetSamura_5G Infra 153 540 Mbit/s 69 ▂▄▆_ WPA2 AC.InetSamurai_5.825GHz Infra 165 195 Mbit/s 65 ▂▄▆_ WPA2 [root@dna ~]# nmcli device wifi <tab><tab> connect help hotspot list rescan [root@dna ~]# nmcli device wifi connect 00:19:BE:1E:C6:18 3C:17:10:22:AE:1E 80:2A:A8:18:2E:52 AC:84:C9:FD:27:95 BC:4D:FB:E2:8D:E8 The_Terrace 24:F5:A2:77:89:D3 6C:19:8F:C5:12:D8 A6:84:C9:FD:27:95 B4:75:0E:3F:CC:9E BELL270 ItsAWifi [root@dna ~]# nmcli device wifi connect ItsAWifi <tab><tab> bssid hidden ifname name password private wep-key-type [root@dna ~]# nmcli device wifi connect ItsAWifi password ***** And that worked! Best part, it also created all the needed files in /etc/sysconfig/network-scripts/ for this network, set to start onboot even! Very handy. -- Scott Sullivan

On 20/01/2019 09:59, Scott Sullivan via talk wrote: [Much snipping] nmcli device wifi connect YOURnet password YOURpass
And that worked!
It also works like a charm on a Dell Latitude 6410 running what, before much modification, was Slack64 v14.2 My question though is: After having given up with WPA_Supplement etc. that have worked on this box with different ISPs, but totally refuse to work and lament about erroneous password/passphrase, something as simple as the single line nmcli string in etc/rc.d/rc.local works without problem. Slackrat

On 2019-01-20 11:59 a.m., Scott Sullivan via talk wrote:
(Network Manager CLI) ...
That seems really cool. One thing though: is Network Manager a competing network setup thing to what's normally used on Debian/Raspbian? Just I tried installing it on a nearby Pi and found it was going to install a whole slew of packages, including ones such as modemmanager which have caused hardware problems with IoT tools. It does look a very cool tool, but wouldn't want it to throw Raspbian's network setup for a loop. cheers, Stewart
participants (3)
-
Scott Sullivan
-
slackrat
-
Stewart C. Russell