-
-
Save kujhawk94/6040572 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -- Set up environment variables for unattended installation of packages | |
export DEBIAN_FRONTEND=noninteractive | |
export DEBIAN_PRIORITY=critical | |
# -- Update to a newer debian-archive-keyring | |
aptitude update | |
aptitude -q -y install debian-archive-keyring | |
# -- Change the APT repositories | |
cat > /etc/apt/sources.list <<EOF | |
deb http://ftp.us.debian.org/debian/ testing main | |
deb-src http://ftp.us.debian.org/debian/ testing main | |
EOF | |
# -- Update the package cache and do a full upgrade | |
aptitude update | |
aptitude -q -y -o DPKG::Options::=--force-confnew safe-upgrade | |
aptitude -q -y -o DPKG::Options::=--force-confnew full-upgrade | |
# -- Set up locales | |
debconf-set-selections <<EOF | |
locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8 | |
locales locales/default_environment_locale select en_US.UTF-8 | |
EOF | |
aptitude -q -y install locales | |
# -- Reboot | |
shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment