ubuntu server无图形界面连接TJ-WIFI
安装network-manager
sudo apt install network-manager
systemctl start NetworkManager.service
systemctl enable NetworkManager.service
配置tj-wifi
首先创建tj-wifi的配置文件:
sudo touch /etc/NetworkManager/system-connections/TJ-WIFI.nmconnection
sudo chmod 0600 /etc/NetworkManager/system-connections/TJ-WIFI.nmconnection
sudo vim /etc/NetworkManager/system-connections/TJ-WIFI.nmconnection
根据注释修改后复制到TJ-WIFI.nmconnection中:
[connection]
id=TJ-WIFI
uuid=441499a1-62cb-4caa-9bea-db68a6b7226c
type=wifi
interface-name=#填写无线网卡名称,例如wlp4s0,可以通过ip a 查看
timestamp=1669628502
[wifi]
mode=infrastructure
ssid=TJ-WIFI
[wifi-security]
key-mgmt=wpa-eap
[802-1x]
eap=peap;
identity=#学号
password=#密码
phase2-auth=mschapv2
[ipv4]
method=auto
[ipv6]
addr-gen-mode=stable-privacy
method=auto
[proxy]
重启network-manager服务:
systemctl restart NetworkManager
查看所有配置:
sudo nmcli con show
启用TJ-WIFI
:
sudo nmcli con up TJ-WIFI
标签:sudo,wifi,图形界面,WIFI,server,TJ,NetworkManager,nmconnection
From: https://www.cnblogs.com/kalicener/p/16933408.html