wpa_gui

Synopsis

Project wpa_supplicant provides the complete set of utilities to configure wireless interfaces

Instead of NetworkManager you can use wpa_gui to configure and manage wireless interafces.

Create a playbook

shell> cat lp.yml
---
- hosts: test_01
  become: true
  roles:
    - vbotka.linux_postinstall

Enable tasks import and install wpa_qui

By default, the management of wpa_gui is disabled

- name: Import wpagui.yml
  ansible.builtin.import_tasks: wpagui.yml
  when: ((ansible_os_family == 'RedHat') or
        (ansible_os_family == 'Debian')) and lp_wpagui|bool
  tags: lp_wpagui

Enable it if you want to proceed

lp_wpagui: true

If you want to install or upgrade wpa_supplicant set

lp_wpagui_install: true

Run the play

(env) > ansible-playbook lp.yml -t lp_wpagui

Run wpa_gui

  • In a desktop, you will probably start wpa_gui in the system tray by the window manager.

  • Optionally, as a user, you can run wpa_gui from the command line

    test_01> wpa_gui -t -i wlan0 -p /var/run/wpa_supplican &
    
  • Optionally, as a root, you can run the script wpa_ctl to initialize an interface

    test_01> wpa_ctl wlan0
    [OK]  wpa_ctl: wpa_supplicant is running on wlan0
    [OK]  wpa_ctl: wpa_gui is running
    

Note

Install the script wpa_ctl from the role’s directory contrib

See below the example of running processes

test_01> ps ax | grep wpa
 3455 ?        Ss     0:00 /usr/sbin/wpa_supplicant -B -iwlan0 -P/var/run/wpa_supplicant.wlan0.pid -c/etc/wpa_supplicant/wpa_supplicant-wlan0.conf -f/var/log/wpa_supplicant.wlan0.log
 3858 pts/2    Sl     0:00 wpa_gui -t -i wlan0 -p /var/run/wpa_supplicant