-
Notifications
You must be signed in to change notification settings - Fork 0
Ubuntu Dev VM Build Steps
Andrew Best edited this page May 9, 2017
·
5 revisions
Produce a stable and contemporary development environment for my day to day use.
- Reduced complexity and dependancy issues
- A more robust and flexible development environment
- A portable development environment
- Good support for AWS and Azure
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.
Build scripts and configs must be stored in my personal Github bucket
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
- 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
- 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
orpython3 -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
- check if python is already installed
- 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)
- AWS CLI profile switcher https://blog.jayway.com/2015/09/25/aws-cli-profile-management-made-easy/
- Tune Window Manager
- Customise grub to boot more pretty http://askubuntu.com/questions/18444/how-do-i-increase-console-mode-resolution
- Install https://github.com/Diaxion/andrews-configs
- Checkinto git-credentials-cache https://git-scm.com/docs/git-credential-store
Items here will be included in the future.
- Workout how to get cloud-init working in VMware Fusion.
- Make sure the display driver is setup correctly for VMware SVGA driver. https://www.mesa3d.org/vmware-guest.html