ubuntu server17.10無線網路連線
阿新 • • 發佈:2019-02-07
1.採用UEFI模式安裝,否則pcie網絡卡無法識別。
2.安裝採用英文,介面中文支援不好,還沒有解決。
3.安裝軟體有錯誤,sources.list沒有內容,需後期新增。
/etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##測試版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 原始碼
deb-src http://mirrors.aliyun.com/ubuntu/
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##測試版源
deb-src
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main
4.無線網路設定
a)連線有線網,安裝wpa_supplicant
sudo apt-get update
sudo apt-get install wpasupplicant
b)設定wpa_supplicant
1)sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid=”XXXX”
psk=”**”
}
2)sudo vi /etc/network/interfaces
auto wlp2s0
iface wlp2s0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
c)無線網路連線
1)sudo ifconfig wlp2s0 up #開啟無線網絡卡
2)sudo iw wlp2s0 scan |grep SSID #檢視無線熱點
3)sudo iw wlp2s0 connect XXXX #連續熱點
4)wpa_supplicant -Dnl80211 -iwlp2s0 -c/etc/wpa_supplicant/wpa_supplicant.conf #啟動wpa_supplicant
5)sudo iw wlp2s0 link #檢視連線狀態
6)sudo dhclient wlp2s0 #獲取ip
7)networkctl #檢視網路狀態