Must be run as root.
This script is to install desired packages automatically to Debian based linux desktop systems, usually after a new install. A logfile is created in the root home directory.
Use the premade package lists and add your desired packages to them, or create you own lists:
standard_packages=(curl ufw gufw chkrootkit vlc gdebi timeshift git)
Use your list as a function parameter within the script like this :
my_installer_function "${standard_packages[@]}"
The block of code here is specific to adding architecture, in this case to support installing Android Studio later. Comment this out if not required:
if dpkg --add-architecture i386; then
log "added i386 architecture."
apt-get update -y
my_installer_function "${android_studio_dependancies[@]}"
log "added android_studio_dependancies"
else
log "ERROR: could not add architecture i386."
fi
Check the logfile in root home directory called "my_new_install.log" after run to see success or any errors.