#Networkmanager help

131 messages · Page 1 of 1 (latest)

ember gust
#

nmcli device wifi connect GenericSSID password "thisismypassword"
this is the syntax I use but it says Error: Connection activation failed: Secrets were required, but not provided

#

if I put my password in without the quotes it says
bash: !backofpassword: event not found

inland socket
#

Does your password have characters that might need to be escaped like ? or "?

ember gust
#

yes

#

!

#

how do I escape them

inland socket
#

using \

#

you can also use single quotes

#

with that you don't need to escape anything

#

(and you can't)

#

so you are safe if you don't have any single quote (')

ember gust
#

doesnt work

inland socket
#

sadge

ember gust
#

i changed my password to password just to see what would happen and i get the same error

fervent badger
#

if you wont just use networkmanager for nmtui, then you might as well switch to iwctl/directly using wpa_supplicant

#

for wpa_supplicant, the entire process is just wpa_passphrase ssid password >> /etc/wpa_supplicant/wpa_supplicant.conf

#

once you enable the service

ember gust
#

Does it matter that I'm doing it in a terminal on hyprland?

inland socket
#

prob not

#

but you could try doing it in the tty to be certain

viral inlet
ember gust
#

You are probably right since iwd is what I wanted to use originally but I forgot what it was called

#

I will have to try when I get home

ember gust
#

turns out its not on my device

fervent badger
#

also are you using a de

ember gust
#

just hyprland

fervent badger
#

oh

ember gust
#

i have plasma installed as well

fervent badger
#

yeah maybe switch to wpa_gui

ember gust
#

but im trying to switch

fervent badger
#

or iwctl

ember gust
#

i installed iwctl and when I try to use it it says waiting for iwd to start

#

and just sits there

fervent badger
#

also disable nm

#

systemctl disable --now networkmanager

#

ohhhhh

#

wait

#

you probably never enabled it

#

ok before doing anything else

#

can you show the output of systemctl status NetworkManager

ember gust
#

yeah i just tried to disable network manager and it said there was no instance

fervent badger
#

might as well use iwd though imo

#

if you're on arch it should be easy enough

#

highly likely it's just iwctl station wlan0 connect <ssid> and then you're done forever

ember gust
#

still waiting for it to start

#

nvm

#

im dumb

#

had to start the service

#

how do I see if has connected? I tried to pin 1.1.1.1 and it didnt go through

fervent badger
#

oh yeah you need one more thing

#

i forgor about that

ember gust
#

i dont understand

#

it says its enabled and active yet I cant use it

fervent badger
ember gust
#

Ye

#

What's the param to do shutdown instantly?

fervent badger
#

sudo or systemctl or loginctl

#

last 2 only work with polkit installed

ember gust
#

i did shutdown -r

fervent badger
#

oh to reboot its just reboot

#

shutdown works too but i dont use it cause theres really no point

ember gust
#

same thing

fervent badger
#

hibernation would be systemctl hibernate

ember gust
#

i mean I get the same error

fervent badger
#

@ember gust idk what that means tbh

#

should i show how to use wpa_supplicant instead

ember gust
#

sure

fervent badger
#

you were using that anyway when you were on plasma tbf

fervent badger
#

@ember gust do you know the name of your network interface

#

if not, can you show output of ip a

#

it should be there

ember gust
#

wlan0

fervent badger
ember gust
#

ye

fervent badger
#

oh ok

ember gust
#

lo and wlan0

fervent badger
#
systemctl enable --now [email protected]
config=/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
echo ctrl_interface=/run/wpa_supplicant > $config
wpa_passphrase <ssid> <password> >> $config```
ember gust
#

is wpa installed already?

fervent badger
#

yea

#

again you were already using it when on plasma

ember gust
#

oh

#

ok

fervent badger
#

and theres no way you uninstalled it since you still have nm

#

btw is this a laptop

proven lantern
#

Can you not connect using iwctl?

fervent badger
ember gust
#

tis a laptop

fervent badger
#

oh

proven lantern
#

Um does ethernet connection work

ember gust
#

i have an adapter but i dont want to use it

#

when i do the systemctl enable wpa it hangs after it created the symlink

proven lantern
#

Try enable --now

fervent badger
#

huh

fervent badger
ember gust
#

yeah

#

it says created symlink and then the path and then the next line it hangs

fervent badger
#

ctrl c

#

then keep going

ember gust
#

ok

fervent badger
#

you can add a network with no password like this

   ssid="MYSSID"
   key_mgmt=NONE
}```
#

otherwise just use that last command i mentioned, but replace $config with that file from earlier

ember gust
#

permission denied on the scho command

#

i tried sudo but still the same thing

fervent badger
#

i just use wpa_passphrase <ssid> <password> |doas tee /etc/wpa_supplicant/whatever.conf

fervent badger
ember gust
#

ok

#

i cant mess with this anymore I have to go to bed

#

thank you for your help

fervent badger
#

ok yw

#

... close

shell wingBOT
#

#11251 📣 if you don't need help with this anymore, add [SOLVED] to the start of the post's title (for example, the title could say [SOLVED] pacman not working)
if you're on a laptop or desktop computer, see the note on archiving by sending a message that says ... archive.

ember gust
#

ill be back tomorrow

fervent badger
#

k

ember gust
#

should I make a new thread?

#

or keep this one

midnight kayak
#

you can keep this one

#

I actually had the same issue

#

you have to delete the connection and then reconnect

#

the thing is that networkmanager keeps track of the passwords you passed in earlier in the background, so even if you use a new password, if it was given before, it will use that one, even if its wrong

#

or if u accidentally tried to connect without a password, it will just try without a password over and over again no matter if you pass in a password now