Skip to content
Set up an arch instance with cable insternet, but without local DNS available
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md

README.md

arch-setup

Set up an arch instance with cable insternet, but without local DNS available

Set the network & time

  1. nano /etc/systemd/network/20-wired.network
    [Match]
    Name=eno1
    
    [Network]
    Address=46.166.187.3/24
    Gateway=46.166.187.254
    DNS=1.1.1.1
    
  2. systemctl restart systemd-networkd
  3. systemctl start systemd-resolved
  4. ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Set the time

  1. timedatectl set-ntp true

Disk setup

  1. mkfs.ext4 /dev/sda2
  2. mount /dev/sda2 /mnt

Install Arch

  1. pacstrap /mnt base base-devel
  2. genfstab -U /mnt >> /mnt/etc/fstab
  3. arch-chroot /mnt

Tip: at this point it is possible to install packages to the new system with pacman

Set the time

  1. ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
  2. hwclock --systohc

Set the locale

  1. echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
  2. locale-gen
  3. echo "LANG=en_US.UTF-8" >> /etc/locale.conf

Set the network

  1. echo imare >> /etc/hostname
  2. nano /etc/hosts
    127.0.0.1       localhost
    ::1             localhost
    46.166.187.3    ima.re      imare
    
  3. nano /etc/systemd/network/20-wired.network
    [Match]
    Name=eno1
    
    [Network]
    Address=46.166.187.3/24
    Gateway=46.166.187.254
    DNS=1.1.1.1
    
  4. systemctl enable systemd-networkd
  5. systemctl enable systemd-resolved

Set the root password

  1. passwd

Install the bootloader (BIOS)

  1. pacman -S grub intel-ucode
  2. grub-install /dev/sda
  3. grub-mkconfig -o /boot/grub/grub.cfg

Boot into installed system

  1. exit
  2. umount -R /mnt
  3. reboot and remove installation media
You can’t perform that action at this time.