Skip to content

Instantly share code, notes, and snippets.

@baoshan
Created June 25, 2012 08:18
Show Gist options
  • Save baoshan/2987337 to your computer and use it in GitHub Desktop.
Save baoshan/2987337 to your computer and use it in GitHub Desktop.
For Jin Si
sudo apt-get update
sudo apt-get -y install vim curl git build-essential
# sudo dpkg --configure -a --force-all
# sudo apt-get clean
# sudo apt-get update
# Depolyment Server Only
# ssh-keygen -t rsa -C "[email protected]"
# cat ~/.ssh/id_rsa.pub
# Build & Install Node.js
sudo apt-get install -y python-software-properties
sudo apt-add-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs npm
sudo npm install -g coffee-script
node --version
npm --version
# Install MongoDB
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
sudo sh -c "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/10gen.list"
sudo apt-get update
sudo apt-get install mongodb-10gen
# Install Redis
wget http://download.redis.io/redis-stable.tar.gz
tar xvf redis-stable.tar.gz
cd redis-stable
make
sudo make install
# Configure Redis
sudo mkdir /etc/redis
sudo mkdir /var/redis
sudo cp utils/redis_init_script /etc/init.d/redis_6379
sudo cp redis.conf /etc/redis/6379.conf
sudo mkdir /var/redis/6379
cd /etc/redis
sudo sed -i 's/daemonize no/daemonize yes/g' 6379.conf
sudo sed -i 's/logfile stdout/logfile \/var\/log\/redis_6379.log/g' 6379.conf
sudo sed -i 's/dir \.\//dir \/var\/redis\/6379/g' 6379.conf
sudo update-rc.d redis_6379 defaults
sudo /etc/init.d/redis_6379 start
# VPN
# ssh -i vpn.pem [email protected]
# VIM
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -so ~/.vim/autoload/pathogen.vim \
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
mkdir ~/.vim/bundle
cd ~/.vim/bundle
git clone https://github.com/kchmck/vim-coffee-script.git
curl https://raw.github.com/gist/20087520f5ba45b5ad24/ca91a3094c500629fc3a8f6350ff45b8961e9a3f/gistfile1.txt > ~/.vimrc
git clone [email protected]:healskare/checkup.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment