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)
寫在最后:
有用的話麻煩點個贊,想轉載就轉載,給個文章原地址就行了。