Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machines

  1. #1
    Join Date
    Sep 2011
    Beans
    102

    Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machines

    I am posting this because this functionality is not available in default Ubuntu 12.10/13.04 installations. Creating a wireless hotspot (infrastructure WPA2 Security) is required to share internet connection from a Ubuntu Machine to Android/Windows powered devices or iPhones.

    Instructions:
    1. To Install the ap-hotspot script (GUI for this script is not available yet), add the following PPA:
    Code:
    sudo add-apt-repository ppa:nilarimogard/webupd8
    The following command is required only if you have Ubuntu 12.04 or earlier releases:
    Code:
    sudo add-apt-repository ppa:network-manager
    Update the repository informations and install the "AccessPoint-Hotspot script":
    Code:
    sudo apt-get update
    sudo apt-get install ap-hotspot

    2. After the installation, either disable the firewall (if you are comfortable enough with no firewall) using gufw or firestarter, OR change the firewall rules to allow traffic for the following two services:
    dnsmasq
    dhclient

    3. A first time configuration can be done on Ubuntu machine by issuing the following command in the linux terminal:
    Code:
    sudo ap-hotspot configure
    This configuration will ask for hotspot name you want to create, your LAN interface name, your WLAN interface name and the password (10 characters) etc. The interface names can be found by clicking network manager icon, and then clicking on 'information'.

    4. Start the hotspot on Ubuntu machine:
    Code:
    sudo ap-hotspot start
    The hotspot is now active and ready to go. Turn the WiFi ON on your Android device/ Windows Phone/ Mac device and your device will show your 'hotspot name' that you had chosen during first time configuration (step 3). Tap on the name of hotspot to connect and enter the required password that you had set during configuration in step 3 above.

    5. This hotspot can be stopped by using the command:
    Code:
    sudo ap-hotspot stop

    Please feel free to discuss/share your experiences/troubles....

    This guide works with Ubuntu 12.10/13.04 and other derivatives of Ubuntu like Kubuntu 12.10/13.04, Xubuntu 12.10/13.04 or Zorin OS 7. Haven't checked yet on Linux Mint.

    References:
    AN UPDATE (#1)
    Code:
    The network manager in default Kubuntu 13.10 installation has inbuilt support for Access Point mode. 
    Just go to "Edit Connections" on the tray icon in the plasma desktop,
    Select "Add"  then select "WiFi(Shared)" connection,
    Select "WiFi tab, mode = AccessPoint",
    Select "WiFi-Security tab,  Security = WPA & WPA2 Personal and give any password" and save the  connection. 
    That is all, you should be done!
    Last edited by sbnwl; November 14th, 2013 at 02:13 PM. Reason: Kubuntu 13.10

  2. #2
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    6,677
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    If someone uses 12.04 or earlier, it should read additionally:
    Code:
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
    to update the NWM

  3. #3
    Join Date
    Sep 2011
    Beans
    102

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    @praseodym
    Thanks for the additional info.

  4. #4
    Join Date
    Sep 2007
    Location
    Central Pennsylvania, USA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    NetworkManager already supports AP mode for hotspots, however wpa_supplicant needs to built with this support as well, which Ubuntu hasn't enabled yet.
    It's a very simple config change, and rebuilding wpa_supplicant is almost easier than setting up extra tools like dnsmasq, so even GUI frontends for these tools are unnecessary IMHO.

    http://pkgs.fedoraproject.org/cgit/w...4294533f2b42a1

  5. #5
    Join Date
    Sep 2011
    Beans
    102

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    @ robjoski
    It would be great if you share/explain the wpa_supplicant configuration a bit in detail...

  6. #6
    Join Date
    Sep 2012
    Beans
    27

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    what's to do if this happen? I'm on 13.10 but I didn't tried this at 13.04
    /home/psy/Desktop# ap-hotspot configure
    Your wireless card does not support Access Point mode
    description: Wireless interface
    product: Centrino Ultimate-N 6300
    vendor: Intel Corporation
    physical id: 0
    bus info: pci@0000:44:00.0
    logical name: wlan0
    version: 35
    serial: 00:24:d7:79:df:3c
    width: 64 bits
    clock: 33MHz
    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
    configuration: broadcast=yes driver=iwlwifi driverversion=3.11.0-4-generic firmware=9.221.4.1 build 25532 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
    Last edited by djibrilcoulibaly; September 12th, 2013 at 11:57 PM.

  7. #7
    Join Date
    Sep 2011
    Beans
    102

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    @djibrilcoulibaly
    Code:
    /home/psy/Desktop# ap-hotspot configure
    Your wireless card does not support Access Point mode
    I have also experienced the same on a three year old Dell M1330 netbook.

    Probably your wireless card is too old to support this feature.

  8. #8
    Join Date
    Nov 2013
    Beans
    182

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    I was using this hot spot, and wonder is it possible to check who is connected to this network?

  9. #9
    Join Date
    Sep 2011
    Beans
    102

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    @sladeinflame7
    It is possible. All you have to do is a ping search on your subnet.

    First find the ipv4 IP address of your shared internet connection, which you can look into network-manager icon. If not there then look into the output of following command
    Code:
    user@mylappy:~$ifconfig
    
    wlan0     Link encap:Ethernet  HWaddr 23:2f:32:d8:4a:d1  
              inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
              inet6 addr: fe80::762f:68ff:fed8:8ad1/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:905 errors:0 dropped:2 overruns:0 frame:0
              TX packets:3109 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:160202 (160.2 KB)  TX bytes:1248214 (1.2 MB)
    So you now have 10.42.0.1 as the IP address of your broadcasting device named "wlan0".
    Now you open a terminal and go like this:
    Code:
    user@mylappy:~$nmap -sn 10.42.0.1/24
    
    Starting Nmap 6.40 ( http://nmap.org ) at 2013-12-16 22:57 GMT
    Nmap scan report for 10.42.0.1
    Host is up (0.00079s latency).
    Nmap scan report for 10.42.0.70
    Host is up (0.045s latency).
    Nmap done: 256 IP addresses (2 hosts up) scanned in 2.82 seconds
    You see in the output that the IP 10.42.0.70 is what you are looking for.
    Last edited by sbnwl; December 16th, 2013 at 06:42 PM.

  10. #10
    Join Date
    Nov 2013
    Beans
    182

    Re: Wireless hotspot (WPA2)/ Acess Point for Android/Windows devices on Ubuntu Machin

    Worked perfectly, thank you sir!

    One thing though, I typed ifconfig, and there is this field:

    Code:
    mon.wlan0 Link encap:UNSPEC  HWaddr 6C-71-D9-91-64-CD-3A-30-00-00-00-00-00-00-00-00            
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:43859 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:12146013 (12.1 MB)  TX bytes:0 (0.0 B)
    which is not my hotspot, but do you know what it is exactly?

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •