Created
September 17, 2016 23:42
-
-
Save shinshin86/a59bcafa514dbe70404bb157e839c39e to your computer and use it in GitHub Desktop.
Setup for development environment(Ubuntu 16.04)
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
# setup_for_ubuntu_devmachine | |
#==================================================================== | |
# Basic setting | |
#==================================================================== | |
sudo apt-get update -y && sudo apt-get upgrade -y && | |
env LANGUAGE=C LC_MESSAGES=C xdg-user-dirs-gtk-update | |
sudo apt-get install -y vim curl git python-software-properties build-essential libssl-dev bison openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev && sudo apt-get install -y zsh && curl -L http://install.ohmyz.sh | sh | |
#==================================================================== | |
# Ruby Setting | |
#==================================================================== | |
cd | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
### After task ### | |
# rbenv install --list | |
# rbenv install "Ruby version" | |
# rbenv rehash | |
# rbenv global "Ruby version" | |
#==================================================================== | |
# Python Setting | |
#==================================================================== | |
cd | |
git clone git://github.com/yyuu/pyenv.git ~/.pyenv | |
git clone https://github.com/yyuu/pyenv-pip-rehash.git ~/.pyenv/plugins/pyenv-pip-rehash | |
printf '#----- pyenv\n | |
export PYENV_ROOT="${HOME}/.pyenv"\n | |
if [ -d "${PYENV_ROOT}" ]; then\n | |
export PATH=${PYENV_ROOT}/bin:$PATH\n | |
eval "$(pyenv init -)"\n | |
fi\n | |
' >> ~/.zshrc | |
# pyenv install -l | |
# pyenv install "Python Version" | |
# pyenv global "Python Version" | |
#==================================================================== | |
# Node Setting | |
#==================================================================== | |
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags` | |
echo 'source ~/.nvm/nvm.sh' >> ~/.zshrc | |
# nvm install "Node.js Version" | |
#==================================================================== | |
# Java8 Setting | |
#==================================================================== | |
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get install -y oracle-java8-installer && sudo apt-get -y install oracle-java8-set-default | |
#==================================================================== | |
# Postgrec Setting | |
#==================================================================== | |
sudo apt-get install -y postgresql libpq-dev | |
# sudo -u postgres psql | |
# password postgres | |
# q | |
#==================================================================== | |
# Mysql Setting | |
#==================================================================== | |
sudo apt-get -y install mysql-server | |
# cd /etc/mysql | |
# cp my.cnf my.cnf.org | |
# sudo vi my.cnf | |
# Add this | |
# ---------------------- | |
# [client] | |
# default-character-set = utf8 | |
# [mysqld] | |
# skip-character-set-client-handshake | |
# character-set-server = utf8 | |
# collation-server = utf8_general_ci | |
# init-connect = SET NAMES utf8 | |
# ---------------------- | |
# Reboot | |
# sudo service mysql restart | |
# Login | |
# mysql -u root -p | |
echo "After command (handmade) !!" | |
#==================================================================== | |
# zsh & oh-my-zsh Setting | |
#==================================================================== | |
chsh -s $(which zsh) && cat .oh-my-zsh/templates/zshrc.zsh-template >> .zshrc | |
#==================================================================== | |
# Other Setting | |
#==================================================================== | |
sudo apt-get install -y tree source-highlight | |
echo 'export LESS="-R"' >> .zshrc | |
echo 'export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"' >> .zshrc | |
#==================================================================== | |
# Vim Setting - TODO | |
#==================================================================== | |
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > install.sh && sh ./install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment