Ruby Server 001

# http://mirrors.163.com/ubuntu-releases/12.04.4/

# => ubuntu-12.04.4-desktop-amd64.iso

 

sudo apt-get install -y vim ifstat firefox

 

# Install dependencies

sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python-docutils libexpat1-dev gettext libz-dev libssl-dev nodejs

 

# Install ruby in RVM

\curl -sSL https://get.rvm.io | bash -s stable

source ~/.rvm/scripts/rvm

rvm -v

# https://rvm.io/binaries/ubuntu/12.04/x86_64/

rvm install 2.1.2

ruby -v

#ruby -v ? rvm list >> bash --login >> ruby -v

 

# Install git 2.0.0

cd /tmp

curl --progress https://www.kernel.org/pub/software/scm/git/git-2.0.0.tar.gz | tar xz

cd git-2.0.0/

make prefix=/usr/local all

sudo make prefix=/usr/local install

git --version

 

# Install mysql

sudo apt-get install -y mysql-server mysql-client libmysql-ruby libmysqlclient-dev

mysql -uroot -p

 

# Install sublime-text

sudo add-apt-repository ppa:webupd8team/sublime-text-2

sudo apt-get update

sudo apt-get install sublime-text

 

# Install mongo 2.4

 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-10gen=2.4.4

mongo

 

REF

ruby-china.org

rvm.io

http://docs.mongodb.org/v2.4/tutorial/install-mongodb-on-ubuntu/

你可能感兴趣的:(server)