具体方法如下:使用ap-hotspot来创建WIFI热点,而不要用Ad hoc。终端里输入:
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install ap-hotspot
$ sudo ap-hotspot configure //这一步会检查ubuntu的网络和WIFI接口,确定后会提示你配置热点,输入ssid和密码之类的就行了
$ sudo ap-hotspot start
好了,Android手机顺利识别并连接上了。
sudo apt-get remove hostapd
cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd
cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd
问题描述:
This is the message displayed in my terminal screen when I typed
sudo ap-hotspot start
Another process is already running
Which process is running and how do I stop it?
解决方法:
I found this solution
sudo rm /tmp/hotspot.pid
this will delete the process id created temporarily and no more the error is displayed. This worked in my case.
我的具体的安装过程:
1)wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb
2)sudo dpkg -i hostapd_1.0-3ubuntu2.1_i386.deb
3)sudo apt-mark hold hostapd
4)wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/a/ap-hotspot/ap-hotspot_0.2.1-1~webupd8~1_all.deb
5)sudo dpkg -i ap-hotspot_0.2.1-1~webupd8~1_all.deb
6)sudo apt-get -f install
7)sudo ap-hotspot configure
8)sudo ap-hotspot start
备注:我在安装好软件,建立一个wifi热点的时候,还碰到过由于密码过短,导致一直不成功的错误,密码长度好像至少得8位以上
转载自:http://blog.csdn.net/wdjhzw/article/details/39118651