ConnMan

ConnMan is a command-line network manager designed for use with embedded devices and fast resolve times.

Although AGL Settings application provides a GUI for connecting to WiFi networks, in certain cases it could be necessary to do it from the command-line with ConnMan.

Networking configuration

Connecting to a Wi-Fi network

Follow the steps below to connect to a secured Wi-Fi network:

  $ connmanctl
  connmanctl> technologies
  connmanctl> enable wifi
  connmanctl> scan wifi
  connmanctl> services
  connmanctl> agent on
  connmanctl> connect wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk
  Agent RequestInput wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory ]
  Passphrase?

Setting up a static IP address

Follow the steps below to configure a static IP address:

  $ connmanctl services
  $ connmanctl config <service> --ipv4 manual  <ip address> <netmask> <gateway>
  
See Also