Last active
August 29, 2015 14:04
-
-
Save wusuopu/63282f13baa127cd7c87 to your computer and use it in GitHub Desktop.
install-sys.sh
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 | |
# 数据库 | |
echo "install database......" | |
sudo apt-get install mysql-workbench mysql-common mysql-client mysql-server mongodb redis-server sqliteman | |
# 输入法 | |
echo "install inputmethod...." | |
sudo apt-get install fcitx-mozc fcitx-table-wbpy fcitx-table-wubi fcitx-ui-classic | |
# web server | |
echo "install webserver......." | |
sudo apt-get install uwsgi uwsgi-core uwsgi-plugin-python nginx nginx-full nginx-common nginx-doc | |
# tools | |
sudo apt-get install skype terminator zsh tmux putty putty-tools ack-grep gwenview openssh-server vnc4server gvncviewer | |
sudo apt-get install fonts-adobe-sourcehansans fonts-ubuntu-font-family-console fonts-wqy-zenhei | |
sudo apt-get install filezilla-common filezilla htop pavucontrol arandr proxychains xchat meld retext shutter screenruler | |
sudo apt-get install umbrello dia dia2code sysv-rc-conf | |
# 浏览器 | |
sudo apt-get install firefox firefox-locale-zh-hans luakit dwb w3m w3m-img | |
# i3 | |
sudo apt-get install i3 i3-wm i3status suckless-tools pcmanfm lxde-common | |
# 开发工具 | |
sudo apt-get install apt-file exuberant-ctags g++ pkg-config rlwrap | |
sudo apt-get install d-feet dconf-tools dconf-editor cmake autoconf automake autotools-dev | |
sudo apt-get install virtualbox virtualbox-guest-utils virtualbox-guest-x11 | |
sudo apt-get install ipython ipython3 python-pip python3-pip python-setuptools python3-setuptools python-virtualenv libpython2.7-dev libpython3-dev scons | |
sudo apt-get install lua5.2 liblua5.2-dev libperl-dev libgtk2.0-dev libgtk-3-dev erlang | |
sudo apt-get install wireshark wireshark-doc | |
sudo apt-get build-dep php5 | |
sudo apt-get install libxml2-dev libssl-dev libcurl4-openssl-dev libbz2-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libmcrypt-dev libgif-dev libgdbm-dev | |
sudo apt-get install git git-review subversion mercurial | |
echo "======================================" | |
echo "install python-flake8" | |
sudo pip install flake8 pyflakes | |
echo "use zsh...." | |
chsh --shell /bin/zsh | |
# 安装rvm | |
rvm_install() | |
{ | |
if [[ -e $HOME/.rvm ]]; then | |
echo "rvm has installed." | |
else | |
echo "install rvm...." | |
curl -sSL https://get.rvm.io | bash -s stable | |
sed -i -e 's/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g' ~/.rvm/config/db | |
fi | |
} | |
# 安装nvm | |
nvm_install() | |
{ | |
if [[ -e $HOME/.nvm ]]; then | |
echo "nvm has installed." | |
else | |
echo "install nvm...." | |
git clone https://github.com/creationix/nvm.git ~/.nvm | |
fi | |
} | |
# 配置zsh | |
zsh_config() | |
{ | |
if [[ -e $HOME/.oh-my-zsh ]]; then | |
echo "oh-my-zsh has installed." | |
else | |
echo "install oh-my-zsh...." | |
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
fi | |
} | |
# 下载配置文件 | |
download_config_files() | |
{ | |
if [[ -e $HOME/my-config-files ]]; then | |
echo "config files has downloaded." | |
else | |
echo "download config files..." | |
git clone [email protected]:wusuopu/my-config-files.git ~/my-config-files | |
fi | |
if [[ -e $HOME/my-i3-config ]]; then | |
echo "i3 config files has downloaded." | |
else | |
echo "config i3..." | |
git clone [email protected]:wusuopu/my-i3-config.git ~/my-i3-config | |
pushd ~/my-i3-config | |
bash install.sh | |
popd | |
fi | |
} | |
# 配置vim | |
vim_config() | |
{ | |
if [[ -e $HOME/.vimrc_git ]]; then | |
echo "vim has config." | |
else | |
echo "config vim..." | |
git clone https://github.com/wusuopu/my-vimrc.git ~/.vimrc_git | |
pushd ~/.vimrc_git | |
bash install.sh | |
popd | |
fi | |
} | |
rvm_install | |
nvm_install | |
zsh_config | |
vim_config | |
download_config_files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment