Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 724  / 3 Years ago, sat, may 8, 2021, 10:11:19

I am on ubuntu 12.04 and I want to create a wifi hotspot to be used with my android device. Now I know there are so many tutorials available every where and that I have all options in network tab to use but I couldn't get it to work.



Android does not work with an adhoc connection and whatever wifi network I created, my android device could not connect to it (I could connect a phone using bada to it and other computers can also be connected) I know the work around to get android on a adhoc connection but can't I have some thing as simple as connectify for windows?



PS : I am not looking for workarounds involving android.


More From » 12.04

 Answers
0

Ubuntu allows you to create an ad hoc wireless network though most android and windows devices may not be able to connect to it. The alternative is the script mentioned in the link and I am summarizing the steps for using the script here so that the answer remains useful even if the link is gone.



Run the following commands in the terminal:



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


For 14.04, you need to downgrade hostapd and use apt to hold the package so that it is not updated.



Commands for 14.04



64bit:



cd /tmp
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd


32bit



cd /tmp
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd


Usage



To start AP-Hotspot:



sudo ap-hotspot start


To run the configuration again:



sudo ap-hotspot configure


To stop the wireless hotspot:



sudo ap-hotspot stop


To restart the wireless hotspot:



sudo ap-hotspot restart


To see all the supported commands



ap-hotspot


The default SSID is "myhotspot" and the default password is "qwerty0987".


[#34228] Sunday, May 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
termetalli

Total Points: 326
Total Questions: 127
Total Answers: 110

Location: Sao Tome and Principe
Member since Sat, Sep 12, 2020
4 Years ago
termetalli questions
Sat, Apr 30, 22, 17:54, 2 Years ago
Mon, Dec 6, 21, 05:24, 2 Years ago
Thu, Jun 30, 22, 00:32, 2 Years ago
Mon, Dec 19, 22, 00:15, 1 Year ago
;