2017年8月25日 星期五

Create Wi-Fi Hotspot in Lubuntu

ASUS 筆電 PU301LA 安裝 Lubuntu 更新到 16.04 LTS (xenial)
執行「iw list」查看 Supported interface modes: 有 AP
已安裝 dnsmasq

點選右下角網路圖示 → 點選「Edit Connections...」 → 按「Add」鍵 → Choose a Connection Type 的選單選「Wi-Fi」 → 按「Create...」鍵 → Connection name 是設定檔名稱,可沿用自動產生的或另取,例如「hotspot」

Wi-Fi 標籤
  • SSID:設成想要的 Wi-Fi 網路名稱
  • Mode:選 Hotspot
  • Device:選使用的無線網卡
Wi-Fi Security 標籤
  • Security 選 WPA & WPA2 Personal
  • Password 設定
點選右下角網路圖示 → 點選「Create New Wi-Fi Network...」 → Connection: 選擇剛剛建立的 Connection name → 按「Create」鍵

註:設定檔 /etc/NetworkManager/system-connections/`Connection name`
註:不需要安裝 hostapd
註:似乎無法隱藏 SSID [參考 https://askubuntu.com/questions/554307/is-there-any-way-to-create-a-hidden-hotspot-from-ubuntu]

2017/08/29 後記:系統更新為 Lubuntu 17.04,「Create Net Wi-Fi Network...」沒有出現 「Connection:」供選擇的解法
sudo vi /etc/NetworkManager/NetworkManager.conf
在最後加上
[device]
wifi.scan-rand-mac-address=no
sudo service network-manager restart

參考:
  1. 3 Ways to Create Wifi Hotspot in Ubuntu 14.04 (採用內容主要描述的第三種方法)
  2. 把電腦的無線網卡當無線 AP 讓行動裝置連線上網 (iw list 等硬體查看參考)
  3. Create Wi-Fi hotspot in Lubuntu 15.04 (不是採用內容所敘述的方法,作為將來參考用)
  4. https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/

沒有留言:

張貼留言

SIP header Via

所有 SIP 訊息 都要有 Via,縮寫 v。一開始的 UAC 和後續途經的每個 proxy 都會疊加一個 Via 放傳送的位址,依序作為回應的路徑。 格式 sent-protocol sent-by [ ;branch= branch ][ ; 參數 ...] s...