-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path00_init.sh
29 lines (20 loc) · 910 Bytes
/
00_init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -e
echo "Setting locale..."
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
sudo kill -9 $(lsof -t /var/lib/dpkg/lock) || true
sudo apt-get update
sudo apt-get install -y git
echo "Installing required packages..."
sudo apt-get install -y -q python-software-properties build-essential autotools-dev automake pkg-config ant zsh expect
echo "Configuring ZSH..."
sudo apt-get install -y zsh
if [ ! -d ~vagrant/.oh-my-zsh ]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git ~vagrant/.oh-my-zsh
fi
chsh -s /bin/zsh vagrant
echo "Updating apt-get repos..."
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# This will also call apt-get update
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -