If your Ubuntu machine is having problems with network configuration (Network Manager is refusing to configure an interface for some reason), these tips may help you fix it.
A Python module for interfacing with NetworkManager.