Skip to content

Instantly share code, notes, and snippets.

@instaBOT
Last active October 8, 2015 12:11
Show Gist options
  • Save instaBOT/e173626c068fb5447080 to your computer and use it in GitHub Desktop.
Save instaBOT/e173626c068fb5447080 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
cd
set -e
###############################################################################
# updates and locale
###############################################################################
sudo apt-get update
# generate locale for our usual local computer locale to avoid annoyings issues and warnings
sudo locale-gen es_CL.UTF-8
sudo apt-get upgrade --yes
# note: escaping characters reliably in bash (cross-platform) is a PITA
echo 'select "install the package maintainer'"'"'s version"'
sudo apt-get dist-upgrade --yes
###############################################################################
# basic packages
###############################################################################
# downloads and archives
sudo apt-get install --yes curl wget zip unzip
# 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
###############################################################################
# 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
###############################################################################
printf "\n************************************\n\n"
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment