From 75a31b6912c3f4ab78883042bd032997de97be79 Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Mon, 27 Sep 2021 08:56:05 -0400 Subject: [PATCH] Initial migration to Debian 11 --- firstboot.sh | 16 ++++------------ input.cfg | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/firstboot.sh b/firstboot.sh index 0841cf8..97febce 100644 --- a/firstboot.sh +++ b/firstboot.sh @@ -16,10 +16,6 @@ apt autoremove -y echo "Installing base applications." -#install google chrome -wget -O chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -apt install -y ./google-chrome-stable_current_amd64.deb - #install zoom wget -O zoom.deb https://zoom.us/client/latest/zoom_amd64.deb apt install -y ./zoom.deb @@ -42,7 +38,7 @@ doasuser 'gsettings set org.gnome.shell favorite-apps '"'"'["firefox-esr.desktop doasuser 'gsettings set org.gnome.desktop.wm.preferences button-layout "appbar:minimize,maximize,close"' echo "Cleaning up." -rm chrome.deb zoom.deb gnome-shell-extension-installer +rm zoom.deb gnome-shell-extension-installer echo "Adding user for ansible" @@ -52,6 +48,9 @@ apt install openssh-server echo -e "ansible\nansible" | passwd ansible #changed later after first ansible login /usr/sbin/usermod -a -G sudo ansible +#Masking sleep targets +systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target + #update hostnames OLDHOSTNAME=$(cat /etc/hostname) echo -n "Enter new hostname for system: " @@ -59,12 +58,5 @@ read NEWHOSTNAME echo $NEWHOSTNAME > /etc/hostname sed -i "s/$OLDHOSTNAME/$NEWHOSTNAME/g" /etc/hosts -#updating to backports kernel -echo "deb http://deb.debian.org/debian buster-backports main" | tee -a /etc/apt/sources.list - -echo "Updating to backports kernel." -apt update -apt -t buster-backports upgrade -y - echo "Rebooting..." systemctl reboot diff --git a/input.cfg b/input.cfg index 95ab95e..23ae582 100644 --- a/input.cfg +++ b/input.cfg @@ -140,4 +140,4 @@ d-i finish-install/reboot_in_progress note # packages and run commands in the target system. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh -d-i preseed/late_command string in-target wget https://git.thomaspcole.com/thomascole/clc-debian/raw/branch/master/firstboot.sh \ No newline at end of file +d-i preseed/late_command string in-target wget https://git.thomaspcole.com/thomascole/clc-debian/raw/branch/next/firstboot.sh \ No newline at end of file