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?
-
Did you try forgetting the network on your smartphone, and then connecting again?– sandypCommented Jun 19, 2013 at 20:47
-
Here link of simpe steps tutorial http://unixsquad.blogspot.com/2015/04/create-hotspot-on-linux-and-share.html Hope can help you.– Tiwo SatriatamaCommented Apr 14, 2015 at 21:24
3 Answers
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
-
On
aptitude update
, terminal gets stuck with the messageSomething wicked happened resolving 'packages.medibuntu.org:http'
I had to remove all medibuntu related stuff from my /etc/apt/sources.list.d/ just to getaptitude update
to work again. But I still can't install ap-hotspot because of unmet dependencies. What should I do next? Commented Jun 3, 2014 at 22:21 -
on mobile device/ or other window pc, it says authentication problem Commented Jan 4, 2016 at 12:40
Follow the steps to create detectable hotspot in Ubuntu:
To install hostapd just type this command on the terminal:
sudo apt-get install hostapd
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
Please don’t forget to fill in the name of your network after
ssid=
, as well as the password afterwpa_passphrase=
.After all these, save the file as
hostapd.conf
in your home folder.Then create a normal ad-hoc network from the wireless menu from the top bar click on “Create New Wireless Network“
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!
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:
Then specify your wireless security settings similar to the following screenshot:
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.
-
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...– SPSCommented Jun 22, 2013 at 10:21
-
@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 ♦Commented Jul 4, 2013 at 22:47
-