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.

  1. Set hostname: echo arch > /etc/hostname
  2. Open and edit /etc/hosts using either nvim or nano:
  127.0.0.1  localhost
  ::1        localhost
  127.0.1.1  arch.localdomain arch
  1. Enable NetworkManager: systemctl enable NetworkManager.service

Additional steps for wifi

  1. Connect to wifi using iwctl (refer to the wifi steps)
  2. Enable dhcpcd: systemctl enable dhcpcd.service
  3. Run dhcpcd: dhcpcd
  4. Test your connection: ping archlinux.org