ubuntu server无图形界面连接同济大学校园网TJ-WIFI
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