Created
January 23, 2014 09:31
-
-
Save simlegate/8575611 to your computer and use it in GitHub Desktop.
安装Linux后自动安装常用的软件
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
#!/bin/bash | |
PKG_MANGER="sudo apt-get install" | |
HOME="/home/simlegate" | |
echo $PKG_MANGER | |
echo "正在安装Git......." | |
nohup $PKG_MANGER git | |
echo "正在安装ssh......." | |
nohup $PKG_MANGER openssh-server | |
sudo service ssh start | |
rm -r ~/.ssh | |
mkdir ~/.ssh | |
echo "正在安装Gvim......" | |
nohup $PKG_MANGER vim-gnome | |
rm .vimrc | |
echo "正在安装vim配置文件....." | |
nohup wget https://gist.github.com/simlegate/5403670/raw/b9b5a30208054d71ce036009ca9175c596e26f0b/vimrc && cp vimrc .vimrc && rm vimrc | |
echo "正在安装vim插件....." | |
sudo rm -r ~/.vim | |
mkdir -p ~/.vim/bundle | |
nohup git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim | |
cd "$HOME"/.vim/bundle/neobundle.vim/bin && ./neoinstall | |
echo "正在安装zsh........" | |
sudo $PKG_MANGER zsh | |
echo "正在安装oh-my-zsh........" | |
nohup git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
cp ~/.zshrc ~/.zshrc.orig | |
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc | |
sudo chsh -s /bin/zsh | |
echo "正在安装tmux........" | |
nohup $PKG_MANGER tmux | |
echo "正在配置tmux........" | |
nohup wget https://gist.github.com/simlegate/5721392/raw/7467ef03002be7f6570c5266de46b0eb840edc38/.tmux.conf | |
echo "正在安装CURL........" | |
nohup $PKG_MANGER curl | |
echo "正在安装RVM........" | |
curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
# which rvm > /dev/null 2>&1 | |
# if [ $? -eq 0 ]; then | |
# curl -sSL https://get.rvm.io | bash -s stable | |
# source ~/.rvm/scripts/rvm | |
# else | |
# echo "RVM已经安装" | |
# fi | |
echo "正在安装Ruby1.9.3....." | |
rvm install 1.9.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment