Skip to content

Instantly share code, notes, and snippets.

@instaBOT
Created October 13, 2016 14:59
Show Gist options
  • Save instaBOT/934f9b4e1e666624a3607c8a51379013 to your computer and use it in GitHub Desktop.
Save instaBOT/934f9b4e1e666624a3607c8a51379013 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
cd
set -eu
###############################################################################
# updates and locale
###############################################################################
sudo apt-get update
# generate locales for some of our usual local computer locales to avoid
# annoyings issues and warnings.
sudo locale-gen es_CL.UTF-8
sudo locale-gen es_ES.UTF-8
sudo apt-get upgrade --yes
# note: escaping characters reliably in bash (cross-platform) is a PITA
printf '\nIf prompted, select "install the package maintainer'"'"'s version"\n\n'
sudo apt-get dist-upgrade --yes
###############################################################################
# clean
###############################################################################
# remove packages no longer required (usually old kernels, which require a reboot afterwards)
# This way we also avoid the possible message "The following packages were
# automatically installed and are no longer required".
sudo apt-get autoremove --yes
###############################################################################
# install packages
###############################################################################
# downloads and archives
sudo apt-get install --yes curl wget zip unzip
# APT tools
# - software-properties-common: for command 'add-apt-repository'
sudo apt-get install --yes software-properties-common
# repos
sudo apt-get install --yes git
# optional, but quite useful
sudo apt-get install --yes byobu htop tree
###############################################################################
# config
###############################################################################
# make Byobu start at each login
# note: do not use 'byoby-enable' because it is unnecessarily interactive
byobu-launcher-install
###############################################################################
printf "\n************************************\n\n"
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment