Last active
August 29, 2015 14:21
-
-
Save jamesbee/6ab2c7f1388d6247d5aa to your computer and use it in GitHub Desktop.
Ubuntu init up
This file contains 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
#! /bin/bash | |
cd ~ | |
su -c "echo 'export LC_ALL=en_US.UTF-8' >> /etc/profile" | |
source /etc/profile | |
sudo apt-get update | |
sudo apt-get install git curl build-essential openssh-server libmysqlclient-dev libpython2.7-dev \ | |
python-pip zsh | |
# sudo pip install ipython | |
curl -L install.ohmyz.sh|bash | |
chsh -s /bin/zsh | |
curl -L get.rvm.io|bash | |
source .rvm/scripts/rvm | |
rvm autolibs enable | |
rvm install 2.2 --diable-binary | |
echo 'source ~/.rvm/scripts/rvm' >> .zshrc | |
#rvm use ruby-2.2.2 --default | |
#gem sources -r https://rubygems.org/ | |
#gem sources -a http://ruby.taobao.org | |
#gem install rails linner therubyracer pry | |
curl -o docker.sh get.docker.com | |
sed -i 's/lsb_dist="$(echo.*/lsb_dist="ubuntu"/' docker.sh | |
sudo bash docker | |
sudo usermod -aG docker james | |
sudo update-rc.d docker enable | |
docker pull mariadb | |
docker pull postgres | |
docker pull cassandra | |
docker pull elasticsearch | |
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
sudo dpkg -i erlang-solutions_1.0_all.deb | |
sudo apt-get update | |
sudo apt-get install esl-erlang rebar | |
mkdir github && cd github | |
git clone https://github.com/elixir-lang/elixir.git | |
cd elixir && make clean test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment