Linux Mint 架設 Wifi AP [Mint 18 (Ubuntu 16.04)] [論壇 - LinuxMint]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊



Linux Mint 架設 Wifi AP [Mint 18 (Ubuntu 16.04)]
會員四級
註冊日期:
2015/9/29 21:19
所屬群組:
已註冊使用者
等級: 16
HP : 0 / 380
MP : 100 / 8548
EXP: 22
離線
Linux Mint 18 (Ubuntu xenial) / LMDE (Debian sid)


依賴原始碼套件
bash
util-linux
procps
hostapd
iproute2
iw
wireless-tools
haveged (可選)
dnsmasq (可選)
iptables (可選)

下載工具
$ sudo apt-get install git

製作 create_ap 套件
$ git clone https://github.com/oblique/create_ap
$ cd create_ap
$ wget https://raw.githubusercontent.com/Mint-Fans/linux-package/master/makesap
$ chmod +x makesap
$ sudo ./makesap
$ sudo leafpad fakeroot/DEBIAN/control


Package: create-ap
Version: 0.2-2
Architecture: all
Maintainer: vlad (Xiaoxiao)
Installed-Size: 56
Depends: bash, util-linux, procps, hostapd, iproute2, iw, wireless-tools, haveged, dnsmasq, iptables
Section: net
Priority: extra
Homepage: https://github.com/oblique/create_ap
Description: Create Software Access Point
.
a shell script to create a NATed/Bridged Software Access Point.


$ sudo dpkg -b fakeroot create-ap_0.2-2_all.deb
$ sudo dpkg -i create-ap_*.deb
$ sudo apt-get -f install

使用方法:

查看網路卡介面

$ sudo iwconfig
enp1s0f1 no wireless extensions.

wlp2s0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off

lo no wireless extensions.


enp1s0f1 有線網路
wlp2s0 無線網路


使用有線網路上網 無線網卡當AP
$ sudo create_ap wlp2s0 enp1s0f1 wifi名稱 wifi密碼
範例 sudo create_ap wlp2s0 enp1s0f1 SAP 00000000

使用無線網卡上網 無線網卡當AP
$ sudo create_ap wlp2s0 wlp2s0 wifi名稱 wifi密碼
範例 sudo create_ap wlp2s0 wlp2s0 SAP 00000000

建立沒有密碼的AP
$ sudo create_ap wlp2s0 enp1s0f1 wifi名稱
範例 sudo create_ap wlp2s0 enp1s0f1 SAP

===================================
現成套件修正版
===================================
$ wget https://github.com/Mint-Fans/linux-package/raw/debian/create-ap_0.2-3_all.deb
$ sudo dpkg -i create-ap_*.deb
$ sudo apt-get -f install

添加自訂腳本 create-ap-applet 在選單就可以找到

2016/4/21 21:51
應用擴展 工具箱


 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.