Created
February 17, 2016 08:33
-
-
Save aaronmyatt/97e4c73876a3d20207ee to your computer and use it in GitHub Desktop.
Fleshing out some (personally) desirable dev machine setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Initialize a new OS with my preferred defaults | |
command_exists() { | |
type "$1" &> /dev/null ; | |
} | |
# Anything we download can be dropped and installed from here without fear | |
cd /tmp | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install curl | |
sudo apt-get install git | |
sudo apt-get install emacs | |
# TODO Grab my config from github and place it in ~/.emacs.d | |
# setup a prettier terminal | |
# Not as straight forward as I hoped... | |
# if command -v zsh; | |
# then | |
# echo OhMyZsh is installed. | |
# else | |
# sudo apt-get install zsh | |
# chsh -s $(which zsh) | |
# sudo curl -L http://install.ohmyz.sh | sh | |
# fi | |
# setup python | |
# e.g. ipython, notebooks, anaconda | |
if command -v conda; | |
then | |
echo Anaconda is installed.; | |
else | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
cp Miniconda3-latest-Linux-x86_64.sh ~/miniconda.sh | |
bash ~/miniconda.sh | |
rm -rf ~/miniconda.sh | |
fi | |
conda update --prefix /home/dubuntu/miniconda3 anaconda | |
conda install ipython jupyter | |
# vagrant/docker | |
if command -v vagrant; | |
then | |
echo Vagrant is installed; | |
else | |
sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list" && wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install virtualbox-5.0 | |
wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb | |
sudo dpkg -i vagrant_1.8.1_x86_64.deb | |
fi | |
if command -v docker; | |
then | |
echo Docker is installed. | |
else | |
sudo curl -fsSL https://get.docker.com/ | sh | |
sudo curl -fsSL https://get.docker.com/gpg | sudo apt-key add - | |
fi | |
# Ansible | |
if commnad -v ansible; | |
then | |
echo Ansible is installed; | |
else | |
sudo apt-get install ansible # should consider doing this via pip? | |
fi | |
# Grab the ansible playbooks I am likely to use | |
sudo ansible-galaxy install martinmicunda.common \ | |
martinmicunda.nodejs \ | |
martinmicunda.ionic \ | |
laggyluke.direnv \ | |
Stouts.mongodb \ | |
DavidWittman.redis \ | |
williamyeh.oracle-java \ | |
nickp666.android-sdk \ | |
geerlingguy.nginx \ | |
geerlingguy.firewall \ | |
geerlingguy.memcached \ | |
geerlingguy.varnish \ | |
geerlingguy.security \ | |
arknoll.selenium \ | |
geerlingguy.ruby \ | |
ANXS.postgresql \ | |
cmprescott.chrome \ | |
geerlingguy.repo-epel \ | |
--force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment