Re: How to deal with a new Wifi Adapter?
Thanks. -derek Thomas Haller writes: > On Thu, 2019-04-11 at 10:16 -0400, Derek Atkins wrote: >> Thanks, Thomas, >> >> Thomas Haller via networkmanager-list >> writes: >> >> [snip] >> >> Any chance you could give a quick explanation of what these (two?) >> sets >> of commands are doing? > > Hi, > > > UUIDS is a variable containing all the "connection.uuid"s for your Wi- > Fi profiles. > > Then, the first "for" iterates over them, and for each connection > profile it prints 5 fields (so you see what is configured in these > profiles). > > The second, itereates over the same profiles, but clears the > connection.interface-name and wifi.mac-address properties. These two > properties (among others) tie a connection profile to a certain device, > by clearing them, the profile is applicable for any device, regardless > of the interface name and MAC address. See `man nm-settings` for the > properties. And see `man nmcli` or just `nmcli help` for info about > nmcli. > > > Does this help? > > best, > Thomas > >> >> Thanks, >> >> -derek >> >> > Hi, >> > >> > I'd do: >> > >> > UUIDS="$(nmcli -g TYPE,UUID connection show | \ >> > sed -n 's/802-11-wireless://p')" >> > >> > for UUID in $UUIDS; \ >> > do \ >> > nmcli \ >> >-f connection.id,connection.uuid,802-11- >> > wireless.ssid,connection.interface-name,802-11-wireless.mac-address >> > \ >> >-mode multiline \ >> >connection show uuid "$UUID" ; \ >> > echo ; \ >> > done >> > >> > if you want to clear these values: >> > >> > for UUID in $UUIDS; \ >> > do \ >> > echo "$UUID ..." ; \ >> > nmcli connection modify uuid "$UUID" \ >> > connection.interface-name '' \ >> > wifi.mac-address '' ; \ >> > done >> > >> > >> > > In a similar vein, is there a way to tell NM to disable to >> > > embedded >> > > wifi >> > > adapter? >> > >> > put >> > >> > [device-unmanage-internal-wifi] >> > match-device=mac:aa:bb:cc:dd:ee:ff >> > managed=0 >> > >> > to /etc/NetworkManager/conf.d/99-unmanaged-internal-wifi.conf and >> > restart. >> > >> > Or even blacklist the module from loading in /etc/modprobe.d. >> > >> > >> > best, >> > Thomas >> > >> > ___ >> > networkmanager-list mailing list >> > networkmanager-list@gnome.org >> > https://mail.gnome.org/mailman/listinfo/networkmanager-list >> > > -- Derek Atkins 617-623-3745 de...@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: How to deal with a new Wifi Adapter?
On Thu, 2019-04-11 at 10:16 -0400, Derek Atkins wrote: > Thanks, Thomas, > > Thomas Haller via networkmanager-list > writes: > > [snip] > > Any chance you could give a quick explanation of what these (two?) > sets > of commands are doing? Hi, UUIDS is a variable containing all the "connection.uuid"s for your Wi- Fi profiles. Then, the first "for" iterates over them, and for each connection profile it prints 5 fields (so you see what is configured in these profiles). The second, itereates over the same profiles, but clears the connection.interface-name and wifi.mac-address properties. These two properties (among others) tie a connection profile to a certain device, by clearing them, the profile is applicable for any device, regardless of the interface name and MAC address. See `man nm-settings` for the properties. And see `man nmcli` or just `nmcli help` for info about nmcli. Does this help? best, Thomas > > Thanks, > > -derek > > > Hi, > > > > I'd do: > > > > UUIDS="$(nmcli -g TYPE,UUID connection show | \ > > sed -n 's/802-11-wireless://p')" > > > > for UUID in $UUIDS; \ > > do \ > > nmcli \ > >-f connection.id,connection.uuid,802-11- > > wireless.ssid,connection.interface-name,802-11-wireless.mac-address > > \ > >-mode multiline \ > >connection show uuid "$UUID" ; \ > > echo ; \ > > done > > > > if you want to clear these values: > > > > for UUID in $UUIDS; \ > > do \ > > echo "$UUID ..." ; \ > > nmcli connection modify uuid "$UUID" \ > > connection.interface-name '' \ > > wifi.mac-address '' ; \ > > done > > > > > > > In a similar vein, is there a way to tell NM to disable to > > > embedded > > > wifi > > > adapter? > > > > put > > > > [device-unmanage-internal-wifi] > > match-device=mac:aa:bb:cc:dd:ee:ff > > managed=0 > > > > to /etc/NetworkManager/conf.d/99-unmanaged-internal-wifi.conf and > > restart. > > > > Or even blacklist the module from loading in /etc/modprobe.d. > > > > > > best, > > Thomas > > > > ___ > > networkmanager-list mailing list > > networkmanager-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/networkmanager-list > > signature.asc Description: This is a digitally signed message part ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: How to deal with a new Wifi Adapter?
Thanks, Thomas, Thomas Haller via networkmanager-list writes: [snip] Any chance you could give a quick explanation of what these (two?) sets of commands are doing? Thanks, -derek > Hi, > > I'd do: > > UUIDS="$(nmcli -g TYPE,UUID connection show | \ > sed -n 's/802-11-wireless://p')" > > for UUID in $UUIDS; \ > do \ > nmcli \ >-f > connection.id,connection.uuid,802-11-wireless.ssid,connection.interface-name,802-11-wireless.mac-address > \ >-mode multiline \ >connection show uuid "$UUID" ; \ > echo ; \ > done > > if you want to clear these values: > > for UUID in $UUIDS; \ > do \ > echo "$UUID ..." ; \ > nmcli connection modify uuid "$UUID" \ > connection.interface-name '' \ > wifi.mac-address '' ; \ > done > > >> In a similar vein, is there a way to tell NM to disable to embedded >> wifi >> adapter? > > put > > [device-unmanage-internal-wifi] > match-device=mac:aa:bb:cc:dd:ee:ff > managed=0 > > to /etc/NetworkManager/conf.d/99-unmanaged-internal-wifi.conf and > restart. > > Or even blacklist the module from loading in /etc/modprobe.d. > > > best, > Thomas > > ___ > networkmanager-list mailing list > networkmanager-list@gnome.org > https://mail.gnome.org/mailman/listinfo/networkmanager-list > -- Derek Atkins 617-623-3745 de...@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: How to deal with a new Wifi Adapter?
On Wed, 2019-04-10 at 12:24 -0400, Derek Atkins wrote: > Hi, > I'm currently running Fedora 29 and my embedded wifi adapter is > failing. So I bought a USB Wifi adapter, which seems to be working > well.. Except for one problem: Network Manager does not know to > apply > all my existing wifi connection information to the new adapter. > > Short of going through each connection, changing it to the new > adapter, > then deleting the " 2" network that gets created --- is there > some > way to tell NM to apply all wifi networks to all wifi adapters? > Hi, I'd do: UUIDS="$(nmcli -g TYPE,UUID connection show | \ sed -n 's/802-11-wireless://p')" for UUID in $UUIDS; \ do \ nmcli \ -f connection.id,connection.uuid,802-11-wireless.ssid,connection.interface-name,802-11-wireless.mac-address \ -mode multiline \ connection show uuid "$UUID" ; \ echo ; \ done if you want to clear these values: for UUID in $UUIDS; \ do \ echo "$UUID ..." ; \ nmcli connection modify uuid "$UUID" \ connection.interface-name '' \ wifi.mac-address '' ; \ done > In a similar vein, is there a way to tell NM to disable to embedded > wifi > adapter? put [device-unmanage-internal-wifi] match-device=mac:aa:bb:cc:dd:ee:ff managed=0 to /etc/NetworkManager/conf.d/99-unmanaged-internal-wifi.conf and restart. Or even blacklist the module from loading in /etc/modprobe.d. best, Thomas signature.asc Description: This is a digitally signed message part ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
How to deal with a new Wifi Adapter?
Hi, I'm currently running Fedora 29 and my embedded wifi adapter is failing. So I bought a USB Wifi adapter, which seems to be working well.. Except for one problem: Network Manager does not know to apply all my existing wifi connection information to the new adapter. Short of going through each connection, changing it to the new adapter, then deleting the " 2" network that gets created --- is there some way to tell NM to apply all wifi networks to all wifi adapters? In a similar vein, is there a way to tell NM to disable to embedded wifi adapter? Thanks, -derek -- Derek Atkins 617-623-3745 de...@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list