The following guide allows you to wirelessly sync an iPhone with Amarok in Ubuntu 7.10, including adding, editing and playing songs and playlists. Note :- it requires a jailbroken iPhone.
Step1 :- Set up the iPhone
On your iPhone: Click Settings → General and set Auto-lock to Never. This will ensure the iPhone keeps the WiFi connection open.
Click Settings → WiFi and select your WiFi network. Click the Static button and change the IP Address to something outside the dynamically assigned range of your network. For example, if your wireless router normally assigns 192.168.1.1 - 192.168.1.5, try 192.168.1.10. This will ensure your iPhone is always contactable at the same address for syncing.