antelio
1/10/2016 - 1:37 AM

system update (apt-get)

system update (apt-get)



sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade  -y && sudo apt-get clean


sudo apt-get install curl build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev libgmp-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion


curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm


rvm requirements

rvm install 


gem install rails

sudo vi /etc/bash.bashrc

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8


sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

sudo apt-get install postgresql postgresql-contrib postgresql-server-dev-9.3

sudo su postgres
createuser -P -s -e vagrant


 sudo vim /etc/postgresql/9.3/main/pg_hba.conf



 # "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust


sudo apt-get install redis-server libhiredis-dev

sudo apt-get install memcached libmemcached-dev

sudo apt-get install imagemagick libmagickwand-dev


sudo apt-get install git git-svn gitk ssh libssh-dev


sudo apt-get install libcurl4-openssl-dev
gem install passenger
sudo chown -R `whoami` /opt
passenger-install-nginx-module --auto-download --auto


sudo vi  /opt/nginx/conf/nginx.conf