linux下创建热点命令,Linux 下创建热点

最近在使用linux,电脑连接wifi。向用电脑哦开热点供手机使用。

工具 create_ap

目录

安装方法

使用方法

实战

安装方法

一般来说linux下用户直接使用Generic方式即可安装。

Generic

git clone https://github.com/oblique/create_ap

cd create_ap

make install

ArchLinux

pacman -S create_ap

Gentoo

emerge layman

layman -f -a jorgicio

emerge net-wireless/create_ap

使用方法

一般模式: create_ap 网卡名 网卡名 wifi名称 wifi密码

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

实战

下载create_ap

git clone https://github.com/oblique/create_ap

cd create_ap

make install

查看相关网卡信息,找到正在连接wifi的网卡,这里找到的是wlp3s0

iwconfig

84bc8126532dd1bacb911f7fe7a4dd54.png

添加热点(网卡填写为上一步找到的网卡)

root create_ap wlp3s0 wlp3s0 wifiname password

至此结束

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值