Previous: Mount the partitions
References:
We will describe how to connect to the network using ip, iwctl and dhcpcd.
To avoid errors, first check for software blocks:
rfkill list
Look for “Soft blocked: yes” or “Hard blocked: yes” next to your wireless device. Unblock the device (actually, all the devices):
rfkill unblock all
Run rfkill list again to confirm that the block is gone.
Check the network connection with ip:
ip addr
Turn on network device (replace wlan0 accordingly):
ip link
ip link set wlan0 up
ip link show wlan0
(Wireless only) In the live environment, the iwd service is enabled by default. Check the status with
systemclt status iwd.service
(Wireless only) Connect to wi-fi using iwctl (replace wlan0 and network_name accordingly):
iwctl
device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect network_name
station wlan0 show
quit
Note: To connect to a network with spaces in the SSID, the network name should be double quoted (for example, “my network”).
Get a dynamic IP address with dhcpcd (replace wlan0 accordingly):
dhcpcd wlan0
Alternatively, get a static IP address (replace eth0 accordingly):
dhcpcd -S ip_address=123.123.25.123/24 -S routers=123.123.25.123 -S domain_name_servers=8.8.8.8 eth0
Test the internet connection:
ping -c 3 www.google.com
Next: Update the system clock