deepin系统下如何设置wifi热点(亲测有效)
deepin系统下如何设置wifi热点(亲测有效)
deepin
wifi
ap
linux
热点
首先必须吐槽一下linux下设置wifi太累了。。。。来来回回折腾了我好久的说。心累...
好了废话不多说直接上教程,经历过的坑感兴趣的可以看文章结尾,让我们抬起头一起迎接初升的太阳~~~
1. 我的系统环境
- 操作系统: deepin os 15.3
- ifconfig:
1 enp2s0f1: flags=... 2 inet ... 3 inet6 ... 4 inet6 ... 5 ether ... 6 7 lo: flags=... 8 inet ... 9 inet6 ... 10 loop ... 11 12 wlp3s0: flags=... 13 ether ...
上面是我的ifconfig信息,不用管具体内容(反正我已经打了马赛克),你只需要知道的是平常所说的wlan0对应的就是wlp3s0,eth0对应enp2s0f1。
之前就是因为不知道这个对应关系才折腾了那么久5555555~~~
2. create_ap神器
贴上github地址:create_ap
- 下载源代码
git clone https://github.com/oblique/create_ap
- 安装create_ap
cd create_ap make install
- 设置wifi
sudo create_ap wlp3s0 enp2s0f1 your_ap_name your_ap_password your_ap_name:你要设置的热点名称 your_ap_password:密码
建议将上面的命令保存成文件,这样就不需要每次都敲这么多文字了。
- 设置后输出正常的结果
你得到的输出应该是这个样子:
Config dir: /tmp/create_ap.wlp3s0.conf.ggodz80K PID: 6682 Creating a virtual WiFi interface... ap0 created. Network Manager found, set ap0 as unmanaged device... DONE dnsmasq: Symbol `nettle_hashes' has different size in shared object, consider re-linking Sharing Internet using method: nat dnsmasq: Symbol `nettle_hashes' has different size in shared object, consider re-linking hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp3s0.conf.ggodz80K/hostapd_ctrl Configuration file: /tmp/create_ap.wlp3s0.conf.ggodz80K/hostapd.conf Using interface ap0 with hwaddr ... and ssid "your_ap_name" WARN: Low entropy detected. We recommend you to install `haveged' ap0: interface state UNINITIALIZED->ENABLED ap0: AP-ENABLED ap0: STA ... IEEE 802.11: authenticated ap0: STA ... IEEE 802.11: associated (aid 1) ap0: AP-STA-CONNECTED a4:44:d1:39:8b:1d ap0: STA... RADIUS: starting accounting session 58CA7D65-00000000 ap0: STA... WPA: pairwise key handshake completed (RSN) ap0: STA... WPA: group key handshake completed (RSN)
写在最后:
有用的话麻烦点个赞,想转载就转载,给个文章原地址就行了。