You are not logged in.

#1 2015-01-30 15:56:12

nstgc
Member
Registered: 2014-03-17
Posts: 393

[gave-up] Connecting with username and password with nmcli

I'm trying to connect to my university's network via nmcli. They give instructions on how to connect using the gui'ed version of Network Manager, however this is neither desired, nor at the time available to me. I've read through the wiki as well as man nmcli, however cannot figure this out. I can connect to my network at my appartment, so I know that the wireless works. That isn't the issue. The issue is just translating one to the other.

http://opensource.marshall.edu/muwirelesspeap.html

Last edited by nstgc (2015-02-24 17:55:10)

Offline

#2 2015-01-30 20:41:22

gdon
Member
Registered: 2015-01-26
Posts: 15

Re: [gave-up] Connecting with username and password with nmcli

Could you at least tell us what you tried exactly? Having a copy of your configuration (do not post your real credentials) would also be great.

Offline

#3 2015-02-01 15:10:01

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [gave-up] Connecting with username and password with nmcli

I'm sorry for the late reply. My laptop is turning out to be more trouble setting up than I had expected and I needed to step away from it.

What I've tried was reading the wiki, the man pages, as well as the entry in /etc/NetworkManager which has the information about my existing connection for my own wi-fi. From this I couldn't gleam any thing that could help me. My best guess would be nmcli dev wifi connect {SSID} password {my user password}, but I need to specify my user name as well.

Offline

#4 2015-02-01 16:02:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [gave-up] Connecting with username and password with nmcli

Have you tried:

nmcli dev wifi connect <SSID> username <username> password <password>

Jin, Jîyan, Azadî

Offline

#5 2015-02-02 02:15:15

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [gave-up] Connecting with username and password with nmcli

Head_on_a_Stick wrote:

Have you tried:

nmcli dev wifi connect <SSID> username <username> password <password>

No I have not. Somehow I missed that when reading though the manual. Thank you. I'll try this sometime next week.

[edit] I will report back one way or another, marking this as solved if it works, however I spent over 25 hours last week trying to get the thing set up and simply can't spend any more time.

Last edited by nstgc (2015-02-02 02:16:12)

Offline

#6 2015-02-03 14:31:50

gdon
Member
Registered: 2015-01-26
Posts: 15

Re: [gave-up] Connecting with username and password with nmcli

You need to create a configuration file for this to work OR to use the GUI.

For the GUI, the configuration is pretty straight forward.

For the CLI, have a look at sample eduroam configuration files: the configuration is nearly the same.

Offline

#7 2015-02-03 15:14:17

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: [gave-up] Connecting with username and password with nmcli

I've read through the wiki

https://wiki.archlinux.org/index.php/WPA2_Enterprise

NetworkManager can generate WPA2 Enterprise profiles with graphical front ends. nmcli and nmtui do not support this.

I'd suggest connman, the format is fairly straightforward unlike other clients.

(or you can generate the profile with the NM GUI on a different system, or install it temporarily)

Last edited by Alad (2015-02-03 15:17:57)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#8 2015-02-03 23:03:51

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [gave-up] Connecting with username and password with nmcli

Alad wrote:

I've read through the wiki

https://wiki.archlinux.org/index.php/WPA2_Enterprise

NetworkManager can generate WPA2 Enterprise profiles with graphical front ends. nmcli and nmtui do not support this.

I'd suggest connman, the format is fairly straightforward unlike other clients.

(or you can generate the profile with the NM GUI on a different system, or install it temporarily)

I swear I read the wiki. In any case, I'm probably going to almost completely deviate from the Arch way due to a lack of time needed to do things right the first time. Chances are I'll go with Antergos (still using Arch on my desktop). The only real difference, from my 2.5 months of using it, is that it doesn't start out fitting the user like a glove which is something you really only get by building your system up from next to nothing.

Offline

#9 2015-02-06 18:05:46

gdon
Member
Registered: 2015-01-26
Posts: 15

Re: [gave-up] Connecting with username and password with nmcli

Alad wrote:

NetworkManager can generate WPA2 Enterprise profiles with graphical front ends. nmcli and nmtui do not support this.

For the records: they cannot create such a configuration from scratch however both can use an existing NM config file.

Offline

#10 2015-02-06 18:13:40

gdon
Member
Registered: 2015-01-26
Posts: 15

Re: [gave-up] Connecting with username and password with nmcli

nstgc wrote:

how to connect using the gui'ed version of Network Manager, however this is neither desired, nor at the time available to me.

Is there any reason why you are not using the GUI version?

Offline

#11 2015-02-06 19:05:30

progandy
Member
Registered: 2012-05-17
Posts: 5,284

Re: [gave-up] Connecting with username and password with nmcli

If you can write lua/lgi, ruby or python code, then it is possible to create connections from the commandline. There are some examples in the git tree:
http://cgit.freedesktop.org/NetworkMana … e/examples
http://cgit.freedesktop.org/NetworkMana … nection.py
Edit: You can either create a connection editor or a script for your specific connection. Such a specific script only makes sense if you want to create the connection without root privileges which are required to create the settings file manually.

Last edited by progandy (2015-02-06 19:10:53)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 2015-02-24 17:54:51

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [gave-up] Connecting with username and password with nmcli

I ended up just using the GUI. I prefer being able to do things with command line. I'm sure one of these suggestions will work, but I don't have time to make them work.

On a side note, I didn't have to resort to something non-Arch for my laptop.

Offline

Board footer

Powered by FluxBB