2014年10月14日 星期二

Ubuntu 14.04 LTS using iPhone hotspot wireless

After installing Ubuntu Server 14.04 LTS with UNetbootin (my image is 14.04_HdMedia_x64).
The system will boot to OS with only "lo" network interface.

To add wireless network with my iPhone hotspot wifi, here are something to do.

Since Apple WiFi always use WPA/WPA2 instead of WEP, so the iwconfig only setting doesn't work.

You have to do following:

1. ifconfig -a (To make sure you do have a wireless interface and its name - ex wlan0)
2. iwlist wlan0 scan | more (To figure out the essid you like to link exists - ex myiphone)
3. vim /etc/network/interfaces and add below content:
    allow-hotplug wlan0
    iface wlan0 inet dhcp
    wpa-ssid myiphone
    wpa-psk myiphonepassword
4. /etc/init.d/networking restart
5. Then you should be able to see the interface detecting network and dhcp the ip address.
6. It is done!

沒有留言:

張貼留言