deepin 设置wifi热点

2019-10-30  本文已影响0人  forjie

参考 https://wiki.deepin.org/wiki/%E5%88%9B%E5%BB%BAwifi%E7%83%AD%E7%82%B9

根据create_ap创建wifi热点

1.安装,首先需要安装git

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

安装依赖:

sudo apt-get install hostapd iptables dnsmasq

2.创建wifi热点

sudo create_ap wlan0 eth0 myhost 12345678 #开启热点但是依赖终端,和下条命令二选其一
sudo nohup create_ap wlan0 eth0 myhost 12345678 & #开启热点并后台运行,可以关闭终端

PS: 查看网卡名称通过 ifconfig查询

ifconfig
# 执行ifconfig命令后,在:前面的就是网卡名称
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

也可以通过下面的命令查询当前电脑下面的所有网卡名

cat /proc/net/dev | awk '{if(2>0 && NR > 2) print substr(1, 0, index($1, ":") - 1)}'
这条命令会列出你的所有网卡名

卸载: 网上找的(自己没卸载过)

make uninstall

上一篇下一篇

猜你喜欢

热点阅读