教你如何用ubuntu创建无线热点(AP)供android手机上网.

笔记本/便携移动设备,手机平板等软硬件
回复
sunpuhua
帖子: 10
注册时间: 2010-08-14 10:46

教你如何用ubuntu创建无线热点(AP)供android手机上网.

#1

帖子 sunpuhua » 2014-06-08 0:22

其实这个很简单,ubuntu系统自带的网络配置程序只支持ad-hoc(然而android不支持这种),但是kubuntu系统自带的网络配置软件不仅支持ad-hoc 还支持access point(AP),后一种正是android系统需要的,所以只要将kubutun系统的网络配置程序装在ubuntu系统里就好了。

打开软件中心——输入kde-找到kde-nm-connection-editor安装

在终端输入kde-nm-connection-editor打开图形配置界面,而后自己研究吧。

注:参考了一篇网文,不过忘记地址了。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 教你如何用ubuntu创建无线热点(AP)供android手机上网.

#2

帖子 poloshiao » 2014-06-08 7:31

参考了一篇网文,不过忘记地址了。
忘了 沒關係
viewtopic.php?f=48&t=458615
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 教你如何用ubuntu创建无线热点(AP)供android手机上网.

#3

帖子 vickycq » 2014-06-08 19:07

建ap热点,可以用ap-hotspot,很好用!
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
TeliuTe
论坛版主
帖子: 7675
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 教你如何用ubuntu创建无线热点(AP)供android手机上网.

#4

帖子 TeliuTe » 2014-06-08 20:20

折腾一上午无果,放弃等下回想折腾再试 :em06
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 教你如何用ubuntu创建无线热点(AP)供android手机上网.

#5

帖子 vickycq » 2015-10-13 23:55

vickycq 写了:建ap热点,可以用ap-hotspot,很好用!
ap-hotspot 废弃了,建议换用 https://github.com/oblique/create_ap
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
plasma2006
帖子: 466
注册时间: 2006-10-19 9:17

Re: 教你如何用ubuntu创建无线热点(AP)供android手机上网.

#6

帖子 plasma2006 » 2015-10-26 15:36

Features

Create an AP (Access Point) at any channel.
Choose one of the following encryptions: WPA, WPA2, WPA/WPA2, Open (no encryption).
Hide your SSID.
Disable communication between clients (client isolation).
IEEE 802.11n support
Internet sharing methods: NATed or Bridged or None (no Internet sharing).
Choose the AP Gateway IP (only for 'NATed' and 'None' Internet sharing methods).
You can create an AP with the same interface you are getting your Internet connection.
You can pass your SSID and password through pipe or through arguments (see examples).

Dependencies
General

bash (to run this script)
util-linux (for getopt)
procps or procps-ng
hostapd
iproute2
iw
iwconfig (you only need this if 'iw' can not recognize your adapter)
haveged (optional)

For 'NATed' or 'None' Internet sharing method

dnsmasq
iptables

Installation
Generic

git clone https://github.com/oblique/create_ap
cd create_ap
make install

ArchLinux (AUR)

yaourt -S create_ap

Gentoo

emerge layman
layman -f -a jorgicio
emerge net-wireless/create_ap

Examples
No passphrase (open network):

create_ap wlan0 eth0 MyAccessPoint

WPA + WPA2 passphrase:

create_ap wlan0 eth0 MyAccessPoint MyPassPhrase

AP without Internet sharing:

create_ap -n wlan0 MyAccessPoint MyPassPhrase

Bridged Internet sharing:

create_ap -m bridge wlan0 eth0 MyAccessPoint MyPassPhrase

Bridged Internet sharing (pre-configured bridge interface):

create_ap -m bridge wlan0 br0 MyAccessPoint MyPassPhrase

Internet sharing from the same WiFi interface:

create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase

Choose a different WiFi adapter driver

create_ap --driver rtl871xdrv wlan0 eth0 MyAccessPoint MyPassPhrase

No passphrase (open network) using pipe:

echo -e "MyAccessPoint" | create_ap wlan0 eth0

WPA + WPA2 passphrase using pipe:

echo -e "MyAccessPoint\nMyPassPhrase" | create_ap wlan0 eth0

Enable IEEE 802.11n

create_ap --ieee80211n --ht_capab '[HT40+]' wlan0 eth0 MyAccessPoint MyPassPhrase

Client Isolation:

create_ap --isolate-clients wlan0 eth0 MyAccessPoint MyPassPhrase

Systemd service

Using the persistent systemd service
Start service immediately:

systemctl start create_ap

Start on boot:

systemctl enable create_ap

License

FreeBSD
回复