User Tools

Site Tools


linux:arch_workstation_setup

This is an old revision of the document!




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://cosmos.cites.illinois.edu/pub/archlinux/$repo/os/$arch

Time

timedatectl set-ntp true

Install arch

pacstrap /mnt base base-devel

Swap

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

Generate fstab

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

replace /mnt/swapfile with /swapfile in 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 env force_hostname=YES to /etc/dhcpcd.conf

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

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
linux/arch_workstation_setup.1528738169.txt.gz · Last modified: 2021/05/02 21:36 (external edit)