summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup52
1 files changed, 22 insertions, 30 deletions
diff --git a/archsetup b/archsetup
index 7d71708..58a8c76 100755
--- a/archsetup
+++ b/archsetup
@@ -38,7 +38,6 @@ packages_after="/var/log/archsetup-post-install-package-list.txt"
archsetup_packages="/var/log/archsetup-installed-packages.txt"
### Intro
-
intro() {
printf "\n\nArchSetup launched @ %s\n" "$(date +'%D %T')"| tee -a "$logfile"
STARTTIME=$(date +%s)
@@ -104,7 +103,6 @@ display () {
}
# Pacman Install
-
pacman_install() {
action="installing $1 via pacman" && display "task" "$action"
if ! (pacman --noconfirm --needed -S "$1" >> "$logfile" 2>&1); then
@@ -156,7 +154,6 @@ pip_install() {
}
### Prerequisites
-
prerequisites() {
# why these software packages are 'required'
# base_devel - required tools to compile
@@ -282,7 +279,6 @@ create_user () {
}
### User Customizations
-
user_customizations() {
action="User Customizations" && display "title" "$action"
@@ -429,7 +425,6 @@ essential_services() {
}
### Xorg Display Manager
-
xorg() {
action="Xorg Display Server Dependencies" && display "subtitle" "$action"
pacman_install libglvnd
@@ -444,7 +439,6 @@ xorg() {
}
### DWM Window Manager
-
dwm() {
action="DWM Window Manager Dependencies" && display "subtitle" "$action"
@@ -633,8 +627,8 @@ developer_workstation () {
pacman_install valgrind # memory management utility
# java
- pacman_install jdk-openjdk # java development kit
- pacman_install openjdk-doc #
+ pacman_install jdk-openjdk # Java Development Kit
+ pacman_install openjdk-doc # ...and the documentation
# Lisps
pacman_install guile # GNU Scheme
@@ -676,8 +670,9 @@ developer_workstation () {
pacman_install mg
pacman_install neovim
- action="Emacs and Dependencies" && display "subtitle" "$action"
- pacman_install emacs
+ action="Emacs Dependencies" && display "subtitle" "$action"
+ # pacman_install emacs
+ # ignoring; build from source instead
# supporting utilities used by my emacs configuration
aur_install exercism-bin # command line tool for exercism.io
@@ -797,7 +792,6 @@ supplemental_software() {
pacman_install zlib # compression library
# aur installs
- aur_install authy # two-factor authenticator
aur_install dtrx # extraction tool
aur_install figlet-fonts # fonts for figlet
aur_install hfsprogs # file system tools for Mac OS
@@ -856,7 +850,7 @@ silent_boot() {
action="silencing the unneeded and chatty watchdog module" && display "task" "$action"
echo "blacklist iTCO_wdt" >/etc/modprobe.d/nowatchdog.conf || error "error" "$action" "$?"
- # on systemd boot, eliminate timeout and silence boot text
+ # SYSTEMD BOOT: eliminate timeout and silence boot text
if [ -f /boot/loader/loader.conf ]; then
action="eliminating timeout and silencing boot test on systemd boot" && display "task" "$action"
echo "timeout=0" >/boot/loader/loader.conf
@@ -867,7 +861,7 @@ silent_boot() {
sed -i "/.*options root=PARTUUID.*/ s/$/quiet rd.systemd.show_status=auto rd.udev.log_level=2 nvme.noacpi=1 mem_sleep_default=deep nowatchdog/" "$kernelfile"
fi
- # if grub, reset timeouts and adjust log levels
+ # GRUB: reset timeouts and adjust log levels
if [ -f /etc/default/grub ]; then
action="resetting timeouts and adjusting log levels on grub boot" && display "task" "$action"
sed -i "s/.*GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/g" /etc/default/grub
@@ -879,7 +873,6 @@ silent_boot() {
}
### Outro
-
outro() {
action="Cleanup" && display "title" "$action"
@@ -911,21 +904,20 @@ outro() {
}
### Installation Steps
-
-intro # take start stats
-
-prerequisites # install software required to install software
-create_user # create user in wheel with :nopasswd sudo
-user_customizations # dotfiles
-aur_installer # install yay (comment out if using zfsarch install first)
-essential_services
-xorg
-dwm
-desktop_environment
-developer_workstation
-supplemental_software
-silent_boot # make booting a bit less noisy
-
-outro # take end stats; show summary
+intro # take start stats
+
+prerequisites # install software required to install software
+create_user # create user in wheel with :nopasswd sudo
+user_customizations # dotfiles
+aur_installer # install yay (comment out if using zfsarch install first)
+essential_services # ssh, firewall, printing, etc
+xorg # display manager
+dwm # window manager
+desktop_environment # commonly used applications
+developer_workstation # development tools and utilities
+supplemental_software # everything else
+silent_boot # make booting a bit less noisy
+
+outro # take end stats; show summary
exit 0