diff options
| author | Craig Jennings <craigmartinjennings@gmail.com> | 2023-10-20 15:02:20 -0500 |
|---|---|---|
| committer | Craig Jennings <craigmartinjennings@gmail.com> | 2023-10-20 15:02:20 -0500 |
| commit | c11418997c35c4bf4fee82b3d8f7daa82daae25f (patch) | |
| tree | a564cecaf6c05dc6c35b5d88fa56983b3a1998d5 /archsetup | |
| parent | 2b5fdb3bc94b3a0e09c04684169fb5e85b676ea1 (diff) | |
adding figlet
Diffstat (limited to 'archsetup')
| -rwxr-xr-x | archsetup | 90 |
1 files changed, 46 insertions, 44 deletions
@@ -637,7 +637,7 @@ developer_workstation () { pacman_install mg pacman_install neovim - action="Emacs and Dependencies" && display "subtitle" "$action" + action="Emacs and Dependencies" && display "subtitle" "$action" pacman_install emacs # supporting utilities used by my emacs configuration @@ -662,7 +662,7 @@ developer_workstation () { (sudo -u "$username" git clone $dotemacs_repo /home/$username/.emacs.d >> "$logfile" 2>&1) || \ error "error" "$action" "$?" - # DevOps Utilities + action="DevOps Utilities" && display "subtitle" "$action" action="installing devops virtualization and automation tools" && display "task" "$action" # ensure headers exist first @@ -682,7 +682,6 @@ developer_workstation () { systemctl enable docker.service >> "$logfile" 2>&1 || error "error" "$action" "$?" pacman_install vagrant >> "$logfile" 2>&1 || error "error" "$action" "$?" pacman_install ansible >> "$logfile" 2>&1 || error "error" "$action" "$?" - } ### Supplemental Software @@ -695,13 +694,14 @@ supplemental_software() { pacman_install arandr # xrandr gui for monitor settings pacman_install arch-install-scripts # for making arch installers pacman_install archinstall # the archinstall python program - pacman_install aria2 # fast downloader - pacman_install dash # posix compliant /bin/sh - pacman_install docx2txt # recovers text from docx files - pacman_install entr # run arbitrary commands when files change - pacman_install faac # open source mpeg 3 and aac encoder - pacman_install faad2 # processes an aac stream - pacman_install filezilla # ftp gui + pacman_install aria2 # fast downloader + pacman_install dash # posix compliant /bin/sh + pacman_install docx2txt # recovers text from docx files + pacman_install entr # run arbitrary commands when files change + pacman_install faac # open source mpeg 3 and aac encoder + pacman_install faad2 # processes an aac stream + pacman_install filezilla # ftp gui + pacman_install figlet # words into ascii art pacman_install gparted # disk partition utility pacman_install gst-plugin-pipewire # gstreamer audio plugin for pipewire pacman_install gst-plugins-base # gstreamer base audio plugins @@ -770,7 +770,9 @@ supplemental_software() { } -### Silent Boot +### Boot-Related + + silent_boot() { @@ -783,46 +785,46 @@ silent_boot() { (echo "kernel.printk = 3 3 3 3" >/etc/sysctl.d/20-quiet-printk.conf) || \ error "error" "$action" "$?" - # action="delegating fsck messages from udev to systemd" && display "task" "$action" - # sed -i "s/.*HOOKS=(base udev autodetect keyboard keymap modconf block filesystems fsck).*/HOOKS=(base systemd autodetect keyboard keymap modconf block filesystems fsck)/" /etc/mkinitcpio.conf || error "error" "running sed on mkinitcpio.conf to hide fsck messages" "$?" - # mkinitcpio -P >> "$logfile" 2>&1 || error "error" "running mkinitcpio -P to silence fsck messages" "$?" + action="delegating fsck messages from udev to systemd" && display "task" "$action" + sed -i "s/.*HOOKS=(base udev autodetect keyboard keymap modconf block filesystems fsck).*/HOOKS=(base systemd autodetect keyboard keymap modconf block filesystems fsck)/" /etc/mkinitcpio.conf || error "error" "running sed on mkinitcpio.conf to hide fsck messages" "$?" + mkinitcpio -P >> "$logfile" 2>&1 || error "error" "running mkinitcpio -P to silence fsck messages" "$?" - # action="instructing systemd to check filesystems" && display "task" "$action" - # servicefile=/usr/lib/systemd/system/systemd-fsck-root.service - # [ -f $servicefile ] && echo "StandardOutput=null" >>$servicefile && \ - # echo "StandardError=journal+console" >>$servicefile + action="instructing systemd to check filesystems" && display "task" "$action" + servicefile=/usr/lib/systemd/system/systemd-fsck-root.service + [ -f $servicefile ] && echo "StandardOutput=null" >>$servicefile && \ + echo "StandardError=journal+console" >>$servicefile - # servicefile=/usr/lib/systemd/system/systemd-fsck@.service - # [ -f $servicefile ] && echo "StandardOutput=null" >>$servicefile && \ - # echo "StandardError=journal+console" >>$servicefile + servicefile=/usr/lib/systemd/system/systemd-fsck@.service + [ -f $servicefile ] && echo "StandardOutput=null" >>$servicefile && \ + echo "StandardError=journal+console" >>$servicefile - # action="removing hostname from login prompt" && display "task" "$action" - # sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/getty@.service \ - # || error "error" "$action" "$?" + action="removing hostname from login prompt" && display "task" "$action" + sed -i "s/--noclear/--nohostname --noclear/g" /usr/lib/systemd/system/getty@.service \ + || error "error" "$action" "$?" 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 - # 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 - - # # the file in this location was named based on the time of the install, so we must use find to identify it. - # kernelfile=$(find /boot/loader/entries/ -name "*.conf") - # # hush boot output via kernel parameters - # 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 - # 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=2/g" /etc/default/grub - # sed -i "s/.*GRUB_DEFAULT=.*/GRUB_DEFAULT=0/g" /etc/default/grub - # sed -i "s/.*GRUB_RECORDFAIL_TIMEOUT=.*/GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT/g" /etc/default/grub - # sed -i "s/.*GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"rw quiet loglevel=2 rd.systemd.show_status=auto rd.udev.log_level=2 nvme.noacpi=1 mem_sleep_default=deep nowatchdog\"/g" /etc/default/grub - # grub-mkconfig -o /boot/grub/grub.cfg >> "$logfile" 2>&1 || error "error" "" "$?" - # fi + # on 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 + + # the file in this location was named based on the time of the install, so we must use find to identify it. + kernelfile=$(find /boot/loader/entries/ -name "*.conf") + # hush boot output via kernel parameters + 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 + 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=2/g" /etc/default/grub + sed -i "s/.*GRUB_DEFAULT=.*/GRUB_DEFAULT=0/g" /etc/default/grub + sed -i "s/.*GRUB_RECORDFAIL_TIMEOUT=.*/GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT/g" /etc/default/grub + sed -i "s/.*GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"rw quiet loglevel=2 rd.systemd.show_status=auto rd.udev.log_level=2 nvme.noacpi=1 mem_sleep_default=deep nowatchdog\"/g" /etc/default/grub + grub-mkconfig -o /boot/grub/grub.cfg >> "$logfile" 2>&1 || error "error" "" "$?" + fi } ### Outro |
