Skip to content

Instantly share code, notes, and snippets.

@peteyoung
Last active February 13, 2017 10:32
Show Gist options
  • Save peteyoung/7780167 to your computer and use it in GitHub Desktop.
Save peteyoung/7780167 to your computer and use it in GitHub Desktop.
Arch Linux VM Setup

Arch Linux VM Setup

Beginner's Guide

Following the steps found on the Arch wiki: https://wiki.archlinux.org/index.php/Beginners%27_Guide

  • set font

    setfont Lat2-Terminus16
  • set up locale

    vi /etc/locale.gen
    • un comment line with "en_US.UTF-8 UTF-8"
  • test network

    ping -c 3 www.google.com
  • check interface

    ip link
    • copy down name of interface (enp0s3)
  • partition drive

    cgdisk /dev/sda
  • format partition

    mkfs.ext4 /dev/sda1
  • mount partiton

    mount /dev/sda1 /mnt
  • install the base

    pacstrap -i /mnt base
  • Generate an fstab

    genfstab -U -p /mnt >> /mnt/etc/fstab 
    vi /mnt/etc/fstab
  • Chroot and configure the base system

    arch-chroot /mnt /bin/bash
    vi /etc/locale.gen

    un comment line with "en_US.UTF-8 UTF-8"

    echo LANG=en_US.UTF-8 > /etc/locale.conf
    export LANG=en_US.UTF-8
    vi /etc/vconsole.conf

    Add FONT=Lat2-Terminus16

    ln -s /usr/share/zoneinfo/CST6CDT /etc/localtime
    hwclock --systohc --utc
  • Hostname

    echo arch-vm > /etc/hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment