sudo apt install qemu-system-x86
sudo apt install libsdl2-dev
qemu-img create -f qcow2 test.qcow2 16G
qemu-system-x86_64 -enable-kvm -m 2048 -boot d
-nic user,model=virtio
-drive file=test.qcow2,media=disk,if=virtio
-cdrom archlinux-2019.05.02-x86_64.iso
-
select "boot arch linux" to boot from the cd.
-
verify the network is online. ping will not work from inside the VM. it's really complex to setup so don't worry about it. just make sure you can ssh somewhere.
-
turn on ntp
timedatectl set-ntp true
- partition and format the qcow2 disk
fdisk /dev/vda
(n, enter a few times, w)
mkfs.ext4 /dev/vda1
mount /dev/vda1 /mnt
- instal the base image
pacstrap /mnt base
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
hwclock --systohc
vi /etc/locale.gen
-- uncomment "en_US.UTF-8" line
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "greyworm" > /etc/hostname
passwd
-- set it to "root"
pacman -S grub
grub-install /dev/vda
grub-mkconfig -o /boot/grub/grub.cfg
- reboot into your new system
- copy /etc/netctl/examples/ethernet-dhcp to /etc/netctl/dhcp
- edit the network interface to "ens3"
netctl start dhcp
netctl enable dhcp
pacman -S openssh fish git sudo
useradd -m robey
passwd robey
vi /etc/sudoers
-- robey ALL=(ALL) NOPASSWD: ALL
chsh robey
-- /usr/bin/fish
- login as robey and get a copy of dotfiles
scp -r batou.local:projects/dotfiles .
cd dotfiles
./install.sh
- reboot to get coder-dvorak