Table of Contents

Arch Workstation Setup

Boot into archiso

Partitions

Need MBR partition scheme

mkfs.ext4 /dev/sdxy
mount /dev/sdxy /mnt

UIUC mirror

/etc/pacman.d/mirrorlist

## UIUC
Server = http://mozart.acm.cs/mirror/archlinux/$repo/os/$arch

Time

timedatectl set-ntp true

Install arch

pacstrap /mnt base base-devel

Swap

fallocate -l 6G /mnt/swapfile
chmod 600 /mnt/swapfile
mkswap /mnt/swapfile
swapon /mnt/swapfile

Generate fstab

genfstab -U /mnt >> /mnt/etc/fstab

replace /mnt/swapfile with /swapfile in /etc/fstab

/swapfile     none      swap    ........

Chroot

arch-chroot /mnt

Timezone

ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Set clock to localtime for Windows dualboot

hwclock --systohc --localtime

Locale

uncomment en_US.UTF-8 in /etc/locale.gen create /etc/locale.conf

/etc/locale.conf

LANG=en_US.UTF-8

Genereate Locale

locale-gen

Hostname from DHCP

append to /etc/dhcpcd.conf

env force_hostname=YES

Auto DHCP on boot

create /etc/netctl/lan

/etc/netctl/lan

Interface=enp6s0
Connection=ethernet
IP=dhcp
enable lan

netctl enable lan

Hosts file

/etc/hosts

127.0.0.1      localhost
::1            localhost

Create acmadmin

useradd -d /opt/acmadmin -m -G wheel acmadmin
passwd acmadmin

Sudo access to wheel

/etc/sudoers uncomment this line

%wheel ALL=(ALL) ALL

Pacman conf

/etc/pacman.conf uncomment the lines

[multilib]
Include = /etc/pacman.d/mirrorlist

add acm repo

[uicacm]
SigLevel = Optional TrustAll
Server = http://mozart.acm.cs/acm-packages/archlinux/
pacman -Sy

Install bootloader

mkinitcpio -p linux
pacman -S grub ntfs-3g os-prober intel-ucode
grub-install /dev/sdx
grub-mkconfig -o /boot/grub/grub.cfg

Reboot

exit
umount -R /mnt
reboot

Install openssh

sudo pacman -S openssh
sudo systemctl enable sshd

Create acmguest user

sudo useradd -m -d /opt/acmguest acmguest
sudo passwd acmguest

/etc/sudoers.d/acmguset-sudo

acmguest ALL=(root) NOPASSWD: /usr/bin/guestd

LDAP Setup

arch_ad_backend

mount home dir

Install nfs-utils

sudo pacman -S nfs-utils

/etc/fstab

.
.
172.29.0.6:/acm-home /home nfs  noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,x-systemd.idle-timeout=1min 0 0
172.29.0.7:/pkgs-64 /var/cache/pacman/pkg nfs  noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,x-systemd.idle-timeout=1min 0 0