Network Configuration
Here we will set a hostname and configure /etc/hosts
.
Note: replace all instances of arch
with your preferred hostname in the steps below.
- Set hostname:
echo arch > /etc/hostname
- Open and edit
/etc/hosts
using eithernvim
ornano
:
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
- Enable NetworkManager:
systemctl enable NetworkManager.service
Additional steps for wifi
- Connect to wifi using iwctl (refer to the wifi steps)
- Enable dhcpcd:
systemctl enable dhcpcd.service
- Run dhcpcd:
dhcpcd
- Test your connection:
ping archlinux.org