ubuntu server17.10无线网络连接

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/ xenial-updates main restricted universe multiverse
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/ xenial main restricted universe multiverse
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 http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 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 #查看网络状态

你可能感兴趣的:(linux)