Installation

Revision 4 as of 2010-10-06 06:45:57

Clear message

This page contains the instructions how to install indicator-network and connman for various distributions.

Back to main page

Ubuntu 10.04 LTS

Installation instructions for Ubuntu 10.04 LTS, applies both to Desktop and UNE:

  1. Install Indicator Network PPA:
    • sudo add-apt-repository ppa:indicator-network-developers/ppa
      sudo apt-get update
  2. Install indicator-network (which will also install connman):
    • sudo apt-get install indicator-network
  3. Disable NetworkManager from starting during boot:

    • sudo mv /etc/init/network-manager.conf /etc/init/network-manager.conf-disabled
      sudo mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart/nm-applet.desktop.disabled
  4. Reboot computer.
  5. Use NetworkMenu by clicking network indicator icon.

Please note that network-manager is still installed, but not running. Also the nm-applet is removed from the panel.

Maverick Meerkat

indicator-network and connman are now included in Maverick Meerkat, so there is no need to install any PPAs.

  1. Install indicator-network (which will also install connman):
    • sudo apt-get install indicator-network
  2. Disable NetworkManager from starting during boot:

    • sudo mv /etc/init/network-manager.conf /etc/init/network-manager.conf-disabled
      sudo mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart/nm-applet.desktop.disabled
  3. Reboot computer.
  4. Use NetworkMenu by clicking network indicator icon.

Please note that network-manager is still installed, but not running. Also the nm-applet is removed from the panel.

Usage

ConnMan can be used in two different ways, either with Network Menu found from the panel or via a command-line tool called cmcc , both are in indicator-network package.

Current usage options:

  • Wired: plug in cable and network will be automatically enabled
  • Wi-Fi: click indicator icon and choose network
  • Wi-Fi security: a dialog asks passphrase from user during connection establishment
  • Command-line tool cmcc for debugging and editing connections. For usage run:
    • cmcc help

3G modems

For 3G modems a separate package ofono is needed. Also it's a good idea to install use-modeswitch also.

  1. Install ofono:
    • sudo apt-get install ofono
  2. Install usb-modeswitch:
    • sudo apt-get install usb-modeswitch
  3. Plug in the modem and wait for the initialisation to finish
  4. Check that cellular network is found:
    • cmcc list
  5. Edit APN for the connection (usually it's "internet", but depends on the operator):
    • cmcc edit <connectionname> apn <apnname>
  6. Start connection normally using the NetworkMenu

Removing network-manager

If you want to continue using ConnMan and want to remove network-manager:

  1. Remove network-manager
    • sudo apt-get remove network-manager-gnome network-manager
  2. Also remove the files the we renamed above so that we don't leave them lingering for ever:
    • sudo rm /etc/init/network-manager.conf-disabled /etc/xdg/autostart/nm-applet.desktop.disabled

Reverting back to network-manager

To revert back to network-manager and remove all connman related:

  1. Enable network-manager:
    • sudo mv /etc/init/network-manager.conf-disabled /etc/init/network-manager.conf
      sudo mv /etc/xdg/autostart/nm-applet.desktop.disabled /etc/xdg/autostart/nm-applet.desktop
  2. Remove all connman related packages:
    • sudo apt-get remove indicator-network connman
  3. Reboot computer.