Installation
This page contains the instructions how to install indicator-network and connman for various distributions.
Ubuntu 10.04 LTS
Installation instructions for Ubuntu 10.04 LTS, applies both to Desktop and UNE:
- Install Indicator Network PPA:
sudo add-apt-repository ppa:indicator-network-developers/ppa sudo apt-get update
- Install indicator-network (which will also install connman):
sudo apt-get install indicator-network
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
- Reboot computer.
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.
- Install indicator-network (which will also install connman):
sudo apt-get install indicator-network
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
- Reboot computer.
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.
- Install ofono:
sudo apt-get install ofono
- Install usb-modeswitch:
sudo apt-get install usb-modeswitch
- Plug in the modem and wait for the initialisation to finish
- Check that cellular network is found:
cmcc list
- Edit APN for the connection (usually it's "internet", but depends on the operator):
cmcc edit <connectionname> apn <apnname>
Start connection normally using the NetworkMenu
Removing network-manager
If you want to continue using ConnMan and want to remove network-manager:
- Remove network-manager
sudo apt-get remove network-manager-gnome network-manager
- 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:
- 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
- Remove all connman related packages:
sudo apt-get remove indicator-network connman
- Reboot computer.