Last active
August 23, 2020 17:24
-
-
Save gscoppino/dd2ffd1408de7f3db6c681bb4dfe4872 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e # fail on error | |
set -u # fail on access to unset variable | |
set -x # write commands (post-expansion) to STDERR as they are executed | |
# bootstrap system | |
pacman -S iwd vi tmux lynx man-db man-pages | |
pacman -S mesa wayland xorg-server-xwayland | |
pacman -S sway dmenu alacritty | |
pacman -S pulseaudio pulseaudio-alsa pulsemixer | |
pacman -S ffmpeg | |
pacman -S firefox | |
read TIMEZONE | |
ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime | |
hwclock --systohc | |
echo "[MANUAL] Specify locale(s) to be utilized by uncommenting lines in /etc/locale.gen:" | |
sleep 3 | |
vi /etc/locale.gen | |
locale-gen | |
read LANG | |
echo "LANG=$LANG" > /etc/locale.conf | |
read HOSTNAME | |
echo "$HOSTNAME" > /etc/hostname | |
echo "127.0.0.1 localhost" >> /etc/hosts | |
echo "::1 localhost" >> /etc/hosts | |
echo "127.0.1.1 $HOSTNAME.localdomain $HOSTNAME" >> /etc/hosts | |
passwd | |
read CPU | |
pacman -S syslinux "$CPU-ucode" | |
syslinux-install_update -i -a -m | |
echo "[MANUAL] Specify correct root filesystem on kernel command line and add CPU firmware microcode image '$CPU-ucode.img' to initrd configuration:" | |
sleep 3 | |
vi /boot/syslinux/syslinux.cfg | |
# all good! | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment