Skip to content

Ubuntu Dev VM Build Steps

Andrew Best edited this page May 9, 2017 · 5 revisions

Goals

Produce a stable and contemporary development environment for my day to day use.

Expected Benefits

  • Reduced complexity and dependancy issues
  • A more robust and flexible development environment
  • A portable development environment
  • Good support for AWS and Azure

Desired Outcomes

I want to be able to boot strap the whole environment into a new fresh VM quickly and easily I want to be able to share my github repos between my VM and my Mac. I want my Atom environment config to be kept in Github.

Requirements

Build scripts and configs must be stored in my personal Github bucket


Hostbuild script

Use the script below to do all the following things automagically. https://github.com/andrew-best-diaxion/andrews-configs/blob/master/hostbuild/ubuntu-desktop-build.sh

Base OS

  • Create new VM in Fusion/VMware Workstation
    • Install with defaults
  • Perform base OS update 'sudo apt-get update && sudo apt-get dist-upgrade`
  • After first boot, install 'open-vm-tools-desktop'
  • Reboot
  • Disable guest access http://tipsonubuntu.com/2016/10/14/remove-guest-ubuntu-16-10-login-screen/ sudo vim /etc/lightdm/lightdm.conf.d/50-no-guest.conf and add the following line:
[SeatDefaults]
allow-guest=false

Apps

  • Chrome
https://www.ubuntuupdates.org/ppa/google_chrome?dist=stable (runs like a dog though)
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update 
sudo apt-get install google-chrome-stable
  • Atom
https://github.com/atom/atom/releases/latest (unofficial PPA: http://tipsonubuntu.com/2016/08/05/install-atom-text-editor-ubuntu-16-04/)
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
  • git (I think the atom installer installed this anyway)
  • Install and config your python environment which AWS CLI needs.
    • check if python is already installed python -V or python3 -V
    • Its probably already there, if no do a sudo apt-get install python
    • now install pip using Ubuntu packages. sudo apt-get install python-pip
    • now install latest pip updates pip install --upgrade pip
  • AWS CLI pip install awscli
  • AWS bash completion is handled by bashrc. See https://github.com/andrew-best-diaxion/andrews-configs
  • AWS Shell sudo pip install aws-shell See https://github.com/awslabs/aws-shell
  • Azure CLI
  • PowerShell for Linux https://github.com/PowerShell/PowerShell (Get started with PowerShell)

Customisations

Some Day

Items here will be included in the future.