To be able to charge Apple devices, such as iPhones or iPods, in Ubuntu 12.10 and Ubuntu 13.04, you need to install some software.

The appication needed is ipad_charge, but you also need to install the dependecies for it.
So, let’s get to work.
Installing the dependencies:
$ sudo apt-get install build-essential libusb-1.0-0 libusb-1.0-0-dev git-core git-doc
Getting the source code:
$ git clone https://github.com/mkorenkov/ipad_charge.git
Installing ipad_charge:
$ cd ipad_charge/
$ make
$ sudo make install
After the first reboot, the udev rule gets enabled at startup and starts charging the iPad/iPod when it is connected via USB.