2

The instalation of void linux , without desktop manager, it's come without Network-Manager package,

  • so i can't use nmtui and iwctl as arch linux.
  • also void linix it's not support system.d , it's runit system
  • what's the better why to connect to wifi in first time:
nextloop
  • 136
  • 1
  • 3
  • 14

3 Answers3

6
  • First, you must create the correct configuration using wpa_passphrase (do not confused wpa_passphrase and wpa_supplicant):
$ wpa_passphrase "wifi-name" "password" >> /etc/wpa_supplicant/wpa_supplicant.conf
  • Then, find your device name (like wlan0), by executing
$ ip link
  • Start wpa-supplicant, but change wlan0 to your device name
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
  • Finally, link service to runit by
# ln -s /etc/sv/wpa_supplicant /var/service

To test your connection, you can try

$ ping wikipedia.org

When you reboot your machine, the connection configuration will be lost. You would have to run wpa-supplicant again. Alternatively, you can add the following line to your ~/.profile or ~/.bash_profile or ~/.bashrc (for zsh add to ~/.zprofile or ~/.zshrc; for ~/.xnitrc, add with & at the end):

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
bp99
  • 272
  • 3
  • 13
0

To connect to WPA/WPA2, you need to install the wpa_supplicant or iwd.

Here is how to connect to wifi from cli (Answers on U&L):

To use nmcli or nmtui, you need to install the NetworkManager package.

GAD3R
  • 63,407
  • 31
  • 131
  • 192
0

Like if you want to use network manager and just chroot into ur void after installation and install network manager and when you log in you can use nmtui. I personally use connman and iwd

Pragmatic
  • 41
  • 4