Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running Ubuntu 12.04 LTS on my notebook, and I've got a Motorola Razr which I updated to Android 4.1.2. Before updating, I connected my smartphone to my hotspot wifi very quickly, but after the update it no longer works. Android 4.1.2 can't see the hotspot created by Ubuntu; it sees all other wifi networks and can connect to them, but not mine. What could be wrong?

share|improve this question
    
Did you try forgetting the network on your smartphone, and then connecting again? –  Sandeep Y Jun 19 '13 at 20:47

4 Answers 4

You can use ap-hotspot from the webupd8 repository to create an infrastracture AP instead of adhoc. I am using this on Ubuntu Precise (12.04), but it is available for Saucy, Raring and Quantal as well.

$ sudo su -
# add-apt-repository ppa:nilarimogard/webupd8
# aptitude update
# aptitude install ap-hotspot
# ap-hotspot configure
# ap-hotspot start
share|improve this answer
    
Great answer, thank you! –  Dmitriy Ugnichenko Dec 7 '13 at 21:16
    
thanks bro...work for me .. –  mrYogi Jan 20 at 10:59
    
On aptitude update, terminal gets stuck with the message Something wicked happened resolving 'packages.medibuntu.org:http' I had to remove all medibuntu related stuff from my /etc/apt/sources.list.d/ just to get aptitude update to work again. But I still can't install ap-hotspot because of unmet dependencies. What should I do next? –  John Jun 3 at 22:21

Follow the steps to create detectable hotspot in Ubuntu:

  1. To install hostapd just type this command on the terminal:

    sudo apt-get install hostapd</pre>
    
  2. Then, open a text editor program, for example, gedit. Copy the following into it.

    interface=wlan0
    driver=nl80211
    ssid=MyAP
    hw_mode=g
    channel=11
    wpa=1
    wpa_passphrase=MyPasswordHere
    wpa_key_mgmt=WPA-PSK
    wpa_pairwise=TKIP CCMP
    wpa_ptk_rekey=600
    
  3. Please don’t forget to fill in the name of your network after ssid=, as well as the password after wpa_passphrase=.

  4. After all these, save the file as hostapd.conf in your home folder.

  5. Then create a normal ad-hoc network from the wireless menu from the top bar click on “Create New Wireless Network“

  6. After the new network created successfully proceed to the next and the final step

    Now, in your terminal:

    sudo hostapd hostapd.conf
    

    Turn the wifi connection on in your devices and enjoy the fast network share!

share|improve this answer

There are 2 things you need to make sure you have configured correctly. The WIFI hotspot on Ubuntu and your Android device's ability to connect to an ad-hoc hotspot.

Setting up WIFI ad-hoc on computer

This tutorial covers getting your ad-hoc, titled: How to set up Ubuntu 12.04 laptop as WiFi hotspot (ad-hoc) to share wired internet. In general you need to setup a WIFI hotspot under "Edit Connections -> Add" similar to the screenshot below:

                ss #1

Then specify your wireless security settings similar to the following screenshot:

                ss #2

Make sure it's set with the following options:

  • “WEP 40/128-bit Key (Hex or ASCII)”
  • make the length of the key 5 characters

Under the “IPv4-Settings” tab, choose the option “Shared to other computers” for “Method”.

Setting up Android ad-hoc

According to this thread over on the Ubuntu Forums titled: Hotspot is not visible on other devices (12.04 precise), you need to follow this tutorial. It's reported to work for HTC Sensation 4G devices but might work for Motorial Razr. These are patches so YMMV.

share|improve this answer
    
I follow instructions for Ubuntu: that's all ok. I don't understand very well instructions for Android. Ad-hoc Sensation-Ad-hoc.zip link is not active. I don't understand where I find it for dowload... –  SPS Jun 22 '13 at 10:21
    
No other help?? Thanks –  SPS Jul 4 '13 at 19:50
    
@SPS - That was all I found. I'd try and google for the Android part, I looked a bit but couldn't locate it. –  slm Jul 4 '13 at 22:47
    
Other helps??How? No one has another suggestion? –  SPS Jul 6 '13 at 10:21

Maybe you can select another choice of security. As I tried before, WEP 40/128-bit key or lower shall work.

share|improve this answer
    
I tried but it doesn't run –  SPS Jul 31 '13 at 10:07
    
No other solutions?? –  SPS Aug 8 '13 at 8:08
    
@SPS Sorry, I'm no so familiar with that. My solution descrbes just what I did to solve my problem. –  Fity Aug 9 '13 at 1:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.