CentOS
Linux distro RedHat clone.
http://mirrors.nfsi.pt/CentOS/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso
EPEL repositories
Install PHP 5.4 on CentOS 6.5
https://webtatic.com/packages/php54/
Steps:
Minimal CentOS 6.5
https://docs.vagrantup.com/v2/boxes/base.html
Vagrant CentOS 5.10 box
Runs well on Toshiba NB200
   1 wget http://ftp.up.pt/CentOS/5.10/isos/i386/CentOS-5.10-i386-bin-1of8.iso
   2 cd /tmp
   3 mkdir centos5_10
   4 cd centos5_10
   5 wget https://vagrantcloud.com/box-cutter/centos510-i386/version/1/provider/virtualbox.box # centos510-i386-nocm.box
   6 mv virtualbox.box centos510-i386-nocm.box
   7 vagrant box add CentOS5_10 centos510-i386-nocm.box
   8 vagrant init CentOS5_10
   9 vagrant up # may take many minutes. In case of problem/taking too long start the VM directly with VirtualBox
  10 yum install  java-1.6.0.openjdk
  11 yum install unzip
JBoss 5.1.0
Tomcat 7.0.53
In VirtualBox add port forwarding from host tcp port 8080 to guest port 8080
- Change tomcat-user.xml to allow admin login
 
<role rolename="admin"/> <role rolename="manager"/> <role rolename="manager-gui"/> <user username="admin" password="12345678" roles="admin,manager,manager-gui"/>
JBoss 7.1.1
   1 scp -P2222 jboss-as-7.1.1.Final.tar.gz vagrant@127.0.0.1:/home/vagrant
   2 mv jboss-as-7.1.1.Final.tar.gz  /usr/local
   3 tar xvzf jboss-as-7.1.1.Final.tar.gz
   4 cd jboss-as-7.1.1.Final
   5 cd standalone/configuration
   6 sed -i 's/127.0.0.1/0.0.0.0/g' standalone.xml # change listen IP address
   7 bin/standalone.sh # Start jboss 7.1.1
   8 
Yii
   1 yum install httpd
   2 # Add port forward from 8888 to 80 in VirtualBox
   3 /sbin/service httpd start
   4 scp -P2222 yii-1.1.15.022a51.tar.gz vagrant@127.0.0.1:/home/vagrant
   5 mv yii-1.1.15.022a51.tar.gz /var/www/html
   6 cd /var/www/html
   7 tar xvzf yii-1.1.15.022a51.tar.gz
   8 mv yii-1.1.15.022a51 yii
   9 rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
  10 yum install php54w
  11 yum install php54w-pdo
  12 yum install php54w-dom
  13 yum install php54w-mysql
  14 yum install php54w-pgsql
  15 yum install php54w-mcrypt
  16 yum install php54w-pecl-apc
  17 /sbin/service httpd restart
- Edit /etc/php.ini and add after [Date]
 
date.timezone = "Europe/Lisbon"
- Edit .htaccess
 
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteBase /yii/demos/blog
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.phpEdit /etc/httpd/conf/httpd.conf and change AllowOverride from None to All for Directory /var/www/html
Access the URL http://localhost:8888/yii/demos/blog to check if it is is all OK
Python 2.6
Package the box for centos510VB.box
- VBoxManage list vms # look for the one with CentOS5_10*
 - vagrant package --base CentOS5_10_1406408335 --output /tmp/centos510VB.box
 
Vagrant box CentOS 6.5
CentOS 6.4 i386 Minimal (VirtualBox Guest Additions 4.3.2, Chef 11.8.0, Puppet 3.3.1)
http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20131103.box
List RPM installed packages
   1 rpm -qa
Install htop 64 bit
CentOS 7 packages for docker java 8 and maven
   1 # install centos minimal with 64gb disk and 1GB mem 1 processor 
   2 ping –c 1 www.google.com
   3 yum -y update # as root
   4 yum -y install vim nano java-1.8.0-openjdk maven java-1.8.0-openjdk-devel wget unzip git
   5 curl –fSSL https://get.docker.com/ | sh
   6 systemctl start docker
   7 systemctl enable docker
   8 systemctl status docker
   9 usermod -aG docker centos
  10 # Add port forwarding to port 2222
  11 
