Initial migration to Debian 11

This commit is contained in:
Thomas Cole 2021-09-27 08:56:05 -04:00
parent 83e22bc66e
commit 75a31b6912
2 changed files with 5 additions and 13 deletions

View File

@ -16,10 +16,6 @@ apt autoremove -y
echo "Installing base applications." 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 #install zoom
wget -O zoom.deb https://zoom.us/client/latest/zoom_amd64.deb wget -O zoom.deb https://zoom.us/client/latest/zoom_amd64.deb
apt install -y ./zoom.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"' doasuser 'gsettings set org.gnome.desktop.wm.preferences button-layout "appbar:minimize,maximize,close"'
echo "Cleaning up." echo "Cleaning up."
rm chrome.deb zoom.deb gnome-shell-extension-installer rm zoom.deb gnome-shell-extension-installer
echo "Adding user for ansible" 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 echo -e "ansible\nansible" | passwd ansible #changed later after first ansible login
/usr/sbin/usermod -a -G sudo ansible /usr/sbin/usermod -a -G sudo ansible
#Masking sleep targets
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
#update hostnames #update hostnames
OLDHOSTNAME=$(cat /etc/hostname) OLDHOSTNAME=$(cat /etc/hostname)
echo -n "Enter new hostname for system: " echo -n "Enter new hostname for system: "
@ -59,12 +58,5 @@ read NEWHOSTNAME
echo $NEWHOSTNAME > /etc/hostname echo $NEWHOSTNAME > /etc/hostname
sed -i "s/$OLDHOSTNAME/$NEWHOSTNAME/g" /etc/hosts 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..." echo "Rebooting..."
systemctl reboot systemctl reboot

View File

@ -140,4 +140,4 @@ d-i finish-install/reboot_in_progress note
# packages and run commands in the target system. # 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 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 d-i preseed/late_command string in-target wget https://git.thomaspcole.com/thomascole/clc-debian/raw/branch/next/firstboot.sh