Skip to content

Instantly share code, notes, and snippets.

@bradfordpythian
Last active August 9, 2017 18:48
Show Gist options
  • Save bradfordpythian/0fcf1f03feadb2b766d20a947fc8c98f to your computer and use it in GitHub Desktop.
Save bradfordpythian/0fcf1f03feadb2b766d20a947fc8c98f to your computer and use it in GitHub Desktop.
Ubuntu 16.04 Default Installation
#
# Instructions for Ubuntu 16.04 (Xenial) Desktop
#
# The following primary packages will be installed
# - VirtualBox 5.1
# - Vagrant 1.9.x
# - Ansible 2.x
# - Docker
#
# Update base install to current package version
#
sudo apt-get update
sudo apt-get upgrade -y
#
# VirtualBox 5.1 Installation via Download
#
# SEE: https://help.ubuntu.com/community/VirtualBox/Installation
# NOTE: Default Ubuntu packaging installs 5.0
#
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib non-free"
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y virtualbox-5.1 dkms
vboxmanage --version
# 5.1.10r11202
#
# Vagrant 1.9.1. Installation
#
# NOTE: Default ubuntu packaging installs 1.8.1
cd /tmp
PKG_VERSION="1.9.1"
PKG="vagrant_${PKG_VERSION}_$(uname -m).deb"
wget -qO ${PKG} https://releases.hashicorp.com/vagrant/${PKG_VERSION}/${PKG}
sudo dpkg -i ${PKG}
rm -f ${PKG}
vagrant --version
# Vagrant 1.9.1
#
# Install Ansible (via pip)
#
# NOTE: Default ubuntu packaging installs 2.0.0.x
sudo apt-get install -y python-pip
sudo pip install --upgrade pip
# Necessary pre-requisite for compiling ansible
sudo apt-get install -y libssl-dev
sudo pip install ansible
ansible --version
# ansible 2.2.0.0
#
# Install docker
#
# SEE: https://docs.docker.com/engine/installation/linux/ubuntulinux/
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo add-apt-repository "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main"
sudo apt-get update
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
docker --version
# Docker version 1.12.4, build 1564f02
# Add local user to docker group to enable commands without sudo
sudo usermod -aG docker $USER
#
# Install utilities used in daily work
# git-core - for any git commands
# ntp - Network Time
# ssh - sshd for external connections to machine
# pssh - parallel-ssh for multi VM/host commands
# terminator - GUI enhanced terminal program
#
sudo apt-get install -y git-core ntp ssh pssh terminator
sudo apt-get -y auto-remove
@almeida-pythian
Copy link

I have ran the script on a brand new laptop with Ubuntu 16.04 without any issues. All packages were installed as expected:

$ vboxmanage --version
5.1.26r117224

$ vagrant --version
Vagrant 1.9.1

$ ansible --version
ansible 2.3.2.0
config file =
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

$ docker --version
Docker version 17.05.0-ce, build 89658be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment