Linux – Instalace Java + Torquebox + JRuby

Nainstalovat Javu

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update
apt-get install oracle-java7-installer

Nainstalovat Torquebox

adduser myuser --home /opt/myuser --disabled-password
wget http://torquebox.org/release/org/torquebox/torquebox-dist/2.3.0/torquebox-dist-2.3.0-bin.zip
unzip -q torquebox-dist-2.3.0-bin.zip -d /opt/myuser/

Nainstalovat PostgreSQL

apt-get install postgresql postgresql-contrib postresql-client
/etc/init.d/postgresql start

Záloha dat z PostgreSQL do dumpu

pg_dump -h 127.0.0.1 -d mydatabase -U myusername > /tmp/mydatabase.sql

Obnova dat z dumpu do PostgreSQL

psql -h 127.0.0.1 -d mydatabase -U myusername -f /tmp/mydatabase.sql -L /tmp/mydatabase.log

 

Gem nokogiri

gem install nokogiri
sudo apt-get install build-essential patch
sudo apt-get install ruby-dev zlib1g-dev liblzma-dev