GUI for WiFi settings in SolarNode

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major
    • Component/s: Setup
    • None

      Currently in SolarNodeOS the sn-wifi package uses debconf to manage the WiFi settings, so to change the settings one must SSH into the node and run

      dpkg-reconfigure sn-wifi

      This can be difficult to do for non-technical users. It would be helpful if WiFi configuration could be integrated into SolarNode, including right on the initial Association page. The GUI should be created so that the existing debconf settings are maintained. I imagine a helper script like sn-wifi could be added that did all the heavy lifting and could be called from SolarNode with simple commands like

      $ sn-wifi configure NZ myssid username password
      $ sn-wifi settings # return NZ myssid username (but no password)
      $ sn-wifi status   # return something like "Connected" vs "Not connected"
      $ sn-wifi restart  # try to restart connection

      SO has useful examples of using debconf-set-selections to manipulate debconf settings from a script. For example to read the current value of a non-password value:

      $ sudo debconf-show sn-wifi |awk -F: '/country/{gsub(/^ +/, "", $2); print $2}'
      NZ
      
      $ sudo debconf-show sn-wifi |awk -F: '/ssid/{gsub(/^ +/, "", $2); print $2}'
      mywifi

            Assignee:
            Matt Magoffin
            Reporter:
            Matt Magoffin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: