how to connect wifi?
Archlinux use iwd to connect wifi.
$ systemctl start iwd$ iwctl$ station wlan0 scan$ station wlan0 get-networks$ station wlan0 connect everxyz$ station wlan0 show
However, you’re unable to surf the internet right now. Restart your computer and enter liveUSB:
$ mount /dev/sda2 /mnt$ arch-chroot /mnt# connect wifi
And install these packages
$ pacman -S dhcpcd
Edit the file in /etc/dhcpcd.conf:
interface wlan0static ip_address=192.168.31.117/24static routers=192.168.31.1static domain_name_servers=192.168.31.1 8.8.8.8
Then run dhcpcd:
$ dhcpcd
That’s it!
使用内置 dhcp
iwd:
Since version 0.19, iwd can assign IP address(es) and set up routes using a built-in DHCP client or with static configuration. It is a good alternative to standalone DHCP clients. To activate iwd’s network configuration feature, create/edit /etc/iwd/main.conf and add the following section to it:
编辑 /etc/iwd/main.conf:
[General]EnableNetworkConfiguration=true[Network]EnableIPv6=true
