-
-
Save cyio/93bbba984d4ff41ca63de7977a8e5a91 to your computer and use it in GitHub Desktop.
Provision scripts for workstations
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
# Ubuntu | |
# OSX |
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
cd ~/ | |
xcode-select --install | |
# Install homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap caskroom/cask | |
brew install brew-cask | |
# Install utilities | |
brew install wget | |
brew install zsh zsh-completions | |
brew install tmux | |
brew install reattach-to-user-namespace | |
# Install the `teamocil` Ruby gem | |
gem install teamocil | |
mkdir ~/.teamocil | |
# Run your newly-created sample layout | |
$ teamocil sample | |
# Install iTerm | |
wget https://iterm2.com/downloads/stable/iTerm2-2_1_4.zip | |
tar -zxvf iTerm2-2_1_4.zip | |
rm -rf iTerm2-2_1_4.zip | |
mv iTerm.app /Applications | |
# Install atom.io | |
wget https://atom.io/download/mac -O atom.zip | |
tar -zxvf atom.zip | |
rm -rf atom.zip | |
mv Atom.app /Applications | |
apm install sync-settings | |
# Install Chrome | |
brew cask install google-chrome | |
# Install Slack | |
wget https://slack.com/ssb/download-osx -O slack.zip | |
tar -zxvf slack.zip | |
mv Slack.app /Applications | |
rm -rf slack.zip | |
# setup python | |
brew install python | |
pip install virtualenv | |
sudo pip install paramiko PyYAML Jinja2 httplib2 six | |
# Setup Vagrant | |
brew cask install virtualbox | |
brew cask install vagrant | |
brew cask install vagrant-manager | |
vagrant plugin install vagrant-hostsupdater | |
# Setup Ansible | |
mkdir ~/sandbox | cd sandbox | |
git clone git://github.com/ansible/ansible.git --recursive | |
cd ./ansible | sudo make install | cd ~ | |
ssh-key -t rsa -b 4096 -C "[email protected]" -f id_wslmoe | |
# Todo | |
# - Provide atom credentials |
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
sudo apt-get install ruby-full -y | |
# Install Google Chrome | |
if [[ $(getconf LONG_BIT) = "64" ]] | |
then | |
echo "64bit Detected" && | |
echo "Installing Google Chrome" && | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && | |
sudo dpkg -i google-chrome-stable_current_amd64.deb && | |
rm -f google-chrome-stable_current_amd64.deb | |
else | |
echo "32bit Detected" && | |
echo "Installing Google Chrome" && | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb && | |
sudo dpkg -i google-chrome-stable_current_i386.deb && | |
rm -f google-chrome-stable_current_i386.deb | |
fi | |
# Atom.io | |
sudo add-apt-repository ppa:webupd8team/atom | |
sudo apt-get update | |
sudo apt-get install atom | |
# Atom packages | |
apm install sync-settings | |
# AMD Graphic Cards | |
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
sudo apt-get install linux-headers-generic | |
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo | |
sudo amdconfig --adapter=all --initial | |
# Utilities | |
sudo apt-get install xclip | |
# Pip | |
sudo apt-get install python-pip python-dev build-essential | |
sudo pip install --upgrade pip | |
sudo pip install --upgrade virtualenv | |
# Install Vagrant & VirtualBox | |
sudo apt-get install virtualbox | |
sudo apt-get install vagrant | |
sudo apt-get install virtualbox-dkms | |
# Install Ansible | |
sudo apt-get install software-properties-common | |
sudo apt-add-repository ppa:ansible/ansible | |
sudo apt-get update | |
sudo apt-get install ansible | |
# tmux | |
sudo apt-get install autotools-dev | |
sudo apt-get install automake | |
sudo apt-get install libevent-dev libncurses-dev pkg-config | |
git clone https://github.com/tmux/tmux.git | |
cd tmux | |
sh autogen.sh | |
./configure && make | |
sudo make install | |
sudo gem install teamocil | |
mkdir -p ~/.teamocil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment