Skip to content

Instantly share code, notes, and snippets.

@BollaBerg
Last active April 22, 2026 11:11
Show Gist options
  • Select an option

  • Save BollaBerg/7a3fc9744d5bf6eb16f8aab5928df755 to your computer and use it in GitHub Desktop.

Select an option

Save BollaBerg/7a3fc9744d5bf6eb16f8aab5928df755 to your computer and use it in GitHub Desktop.
Configure Eduroam for NMCLI
# Heavily inspired by https://haluk.github.io/posts-output/2020-10-19-linux/
# Replace <IFNAME> with wifi device name
# Replace <IDENTITY> with student identity (i.e. <USERNAME>@ntnu.no)
# Replace <PASSWORD> with user password
nmcli con add \
type wifi \
ifname <IFNAME> \
con-name eduroam \
ssid eduroam \
ipv4.method auto \
802-1x.eap peap \
802-1x.phase2-auth mschapv2 \
802-1x.identity <IDENTITY> \
802-1x.password <PASSWORD> \
wifi-sec.key-mgmt wpa-eap
@MichaelTennant

Copy link
Copy Markdown

wifi-sec.key-mgmt's value of wap-eap is a typo, should be wpa-eap instead

@BollaBerg

BollaBerg commented Jun 20, 2023

Copy link
Copy Markdown
Author

wifi-sec.key-mgmt's value of wap-eap is a typo, should be wpa-eap instead

You are absolutely right, @MichaelTennant , thanks for the heads up! I don't even listen to Cardi B... Fixed in revision 2 🐱

@sai-sy

sai-sy commented Oct 21, 2025

Copy link
Copy Markdown

this was super helpful. Thank you! This needs to be way higher on google search result and get on some archlinux forum threads!

@jhermanowski

Copy link
Copy Markdown

Worked for me. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment