how to connect android phone with ubuntu 12.04 laptop for accessing laptop's internet connection over wifi

8,105

Some mobile devices doesn't able to detect the hotspot created on ubuntu by default method.
Solution for this problem is to install ap-hotspot software on Ubuntu.


For Ubuntu 12.10,13.04,13.10


Run these commands to install ap-hotspot.

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot

Run these commands to start and stop ap-hotspot.

sudo ap-hotspot start
sudo ap-hotspot stop

Run this command to configure ap-hotspot

sudo ap-hotspot configure

enter image description here

If it asks for WPA passphrase give a key with the minimum of 8 characters.


OR

For Ubuntu 12.04

you can download the script from here.This script requires Hostapd 1.0 which was available by default in Ubuntu 12.10,13.04,13.10.

For Ubuntu 12.04,add these two lines to /etc/apt/sources.list

deb http://ppa.launchpad.net/network-manager/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/network-manager/ppa/ubuntu precise main

and save the file and run the below commands in terminal.

sudo apt-get update
sudo apt-get install hostapd
Share:
8,105

Related videos on Youtube

Detro
Author by

Detro

Updated on September 18, 2022

Comments

  • Detro
    Detro over 1 year

    i have an android ics phone and i want to use my wired internet connection on my laptop through wifi.

    it can be done easily on windows 7 using softwares like virtual router or connectify.

    is there any similar software for ubuntu. i am new to linux. i have

    1.android 4.0.4

    2.ubuntu 12.04

    • razor
      razor over 11 years
      + android 4.0.4 is not rooted, and android cannot connect to the ad-hoc wireless network created in ubuntu
    • Detro
      Detro over 11 years
      sir i know this. but i needed a solution for this problem. if there is a way to use ubuntu system as hotspot for android phones like we do in windows via connectify or virtual router
    • Shaharil Ahmad
      Shaharil Ahmad almost 11 years
      Try here
  • Detro
    Detro over 11 years
    buddy i need a solution to connect android phone to linux os so that i can use my computers internet on my phone.anyways thanks for the rpl