You are not logged in.
To activate Wi-Fi in order to run archinstall, the user has to run a couple of commands one after the other:
iwctl
station wlan0 connect WIFI_NAME
WIFI_PASSWORD
exit
archinstall
I've noticed that unlike terminals, I can't run all of them at once:
iwctl ; station wlan0 connect WIFI_NAME ; WIFI_PASSWORD ; exit ; archinstall
Is the fact that this doesn't work intentional? If so, what is the reason for it?
Last edited by Fernando M. Muniz (2025-01-08 20:36:43)
Offline
The iwctl man page shows how to use the command in the EXAMPLES section.
Para todos todo, para nosotros nada
Offline
So there I can see the explanation to why it doesn't do that?
Offline
Running `iwctl` with no arguments enters interactive mode, which will not exit until you pass `exit` at the command line. Until interactive mode is exited the rest of the commands in the line will not be run. This should be obvious.
Para todos todo, para nosotros nada
Offline
It's always obvious when you know and not obvious when you don't.
Offline
There is console output that might tell you something. You haven't mentioned any of the error messages. You just thought "it doesn't work", but that doesn't mean anything. What does "it doesn't work" mean? It does work. It does what it is supposed to, throw an error message. It doesn't do what you wanted. Pay attention to the error messages, they tell you what happens. Ponder on those and things will become very obvious to you very quickly.
Offline
If I asked, then it wasn't obvious to me. What difference does obviosity makes here anyway?
Offline
It's to get you to read the actual output and don't take intellectual shortcuts in the future.
Offline
Unless users are obligated to reply to all posts, it's not happening. But on the good side; I rarely enter this forum.
Offline
long story short if you want scripted use you just run the commands directly, i.e. the literal example from the manpage HoaS urged you to read:
iwctl --passphrase=PASSPHRASE station DEVICE connect SSID
People don't tell you to read man pages or error messages to annoy you, they want to give pointers as to how you could solve questions like these yourself in the future.
Offline
Thanks. It won't be as useful as I thought because my keyboard doesn't match the US default, which would then require more commands.
Offline
? What does that have to do with the original question? That you'd have to do more prep work before invoking archinstall anyway aside from just invoking iwctl?
In any case, if you consider the original question [SOLVED] please mark it as such by editing the title in your first post.
Offline