updates for remote user and remove snapd
This commit is contained in:
parent
f5f4e792f4
commit
9f9fb9bda7
29
firstboot.sh
29
firstboot.sh
@ -15,13 +15,15 @@ apt purge -y gnome-games xterm gnome-documents gnome-todo gnome-music gnome-maps
|
|||||||
apt autoremove -y
|
apt autoremove -y
|
||||||
|
|
||||||
echo "Installing base applications."
|
echo "Installing base applications."
|
||||||
apt install -y curl vlc
|
|
||||||
snap install zoom-client
|
|
||||||
|
|
||||||
#install google chrome
|
#install google chrome
|
||||||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
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
|
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
|
||||||
|
|
||||||
echo "Installing extensions."
|
echo "Installing extensions."
|
||||||
wget https://raw.githubusercontent.com/brunelli/gnome-shell-extension-installer/master/gnome-shell-extension-installer
|
wget https://raw.githubusercontent.com/brunelli/gnome-shell-extension-installer/master/gnome-shell-extension-installer
|
||||||
chmod +x gnome-shell-extension-installer
|
chmod +x gnome-shell-extension-installer
|
||||||
@ -34,17 +36,32 @@ doasuser 'gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-do
|
|||||||
doasuser 'gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/ set org.gnome.shell.extensions.dash-to-dock preferred-monitor 0'
|
doasuser 'gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/ set org.gnome.shell.extensions.dash-to-dock preferred-monitor 0'
|
||||||
|
|
||||||
#configure favorites
|
#configure favorites
|
||||||
doasuser 'gsettings set org.gnome.shell favorite-apps '"'"'["firefox-esr.desktop", "google-chrome.desktop", "org.gnome.Nautilus.desktop", "vlc.desktop", "zoom-client_zoom-client.desktop", "libreoffice-impress.desktop"]'"'"''
|
doasuser 'gsettings set org.gnome.shell favorite-apps '"'"'["firefox-esr.desktop", "google-chrome.desktop", "org.gnome.Nautilus.desktop", "vlc.desktop", "Zoom.desktop", "libreoffice-impress.desktop"]'"'"''
|
||||||
|
|
||||||
#add min and max buttons to title bars
|
#add min and max buttons to title bars
|
||||||
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 google-chrome-stable_current_amd64.deb gnome-shell-extension-installer
|
rm chrome.deb zoom.deb gnome-shell-extension-installer
|
||||||
|
|
||||||
echo "Running update."
|
echo "Running update."
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
|
|
||||||
|
echo "Adding user for ansible"
|
||||||
|
|
||||||
|
#add user for ansible remote updates
|
||||||
|
apt install openssh-server
|
||||||
|
/usr/sbin/adduser --gecos "" --disabled-login ansible
|
||||||
|
echo -e "ansible\nansible" | passwd ansible #changed later after first ansible login
|
||||||
|
/usr/sbin/usermod -a -G sudo ansible
|
||||||
|
|
||||||
|
#update hostnames
|
||||||
|
OLDHOSTNAME=$(cat /etc/hostname)
|
||||||
|
echo -n "Enter new hostname for system: "
|
||||||
|
read NEWHOSTNAME
|
||||||
|
echo $NEWHOSTNAME > /etc/hostname
|
||||||
|
sed -i "s/$OLDHOSTNAME/$NEWHOSTNAME/g" /etc/hosts
|
||||||
|
|
||||||
echo "Rebooting..."
|
echo "Rebooting..."
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
|
@ -100,7 +100,7 @@ d-i apt-setup/contrib boolean true
|
|||||||
|
|
||||||
# Individual additional packages to install
|
# Individual additional packages to install
|
||||||
#d-i pkgsel/include string openssh-server build-essential
|
#d-i pkgsel/include string openssh-server build-essential
|
||||||
d-i pkgsel/include string snapd firmware-iwlwifi
|
d-i pkgsel/include string firmware-iwlwifi openssh-server curl vlc
|
||||||
|
|
||||||
# Whether to upgrade packages after debootstrap.
|
# Whether to upgrade packages after debootstrap.
|
||||||
# Allowed values: none, safe-upgrade, full-upgrade
|
# Allowed values: none, safe-upgrade, full-upgrade
|
||||||
|
Loading…
Reference in New Issue
Block a user