Can someone please help me with a complete step by step guide to share my internet connection (which is through a USB modem by ZTE) with my iphone 3G?
Create Wireless (Ad-Hoc) Network
First make sure that your wireless network is enabled by hardware switch.
Click the network menu (located in panel, top right in Unity). Select Create New Wireless Network from the menu.
Enter a Network name and password. You can also create a network without any password. For that change wireless security to None.
After you click on Create, a new wireless network would be created. Note that if you were already connected with some wireless network, that connection would be disconnected.
Edit Wireless Network
In case you want to edit an earlier created network (like if you want to change the password), go to the network menu again and select Edit Connections...
Go to the Wireless tab and double click the network you want to edit.
From here, you can change the Network Name, Security Settings and passphrase. You can also modify more advanced settings like the Band and Channel, IPv4 and IPv6, MAC addresses, Basic SSID (BSSID), MTU, Automatic Connection (Creation), and the Availability of this to other users on your machine.
Delete/Disconnect Wireless Network
To disconnect a wireless network, again go to network menu. You will see your network listed under the heading Wireless Networks. Click on Disconnect option just below it. Network manager remembers all the wireless networks that you created/joined. To delete them, go to Edit Connections under network menu, choose the network and select the Delete option.
Please have a look at Ubuntu Wiki.
This worked for me:
Do NOT forget to restart
service network-manager restart
[connection] id=kuba2 uuid=0b38ea2c-68e7-4522-8241-d1f3631c7f6a type=wifi autoconnect=false timestamp=1472243821 [wifi] ssid=kuba2 mode=ap band=bg mac-address=A4:4E:31:6A:CA:E0 security=802-11-wireless-security hidden=false [wifi-security] key-mgmt=wpa-psk proto=rsn; pairwise=ccmp; group=ccmp; psk-flags=1 [ipv4] method=shared [ipv6] method=auto ip6-privacy=0