= 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 == {{{#!highlight sh wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm }}} == Install PHP 5.4 on CentOS 6.5 == https://webtatic.com/packages/php54/ Steps: {{{#!highlight sh lsb_release -a rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm yum install php54w yum install yum-plugin-replace yum replace php-common --replace-with=php54w-common service httpd restart }}} == Minimal CentOS 6.5 == {{{#!highlight sh wget http://mirrors.nfsi.pt/CentOS/6.5/isos/i386/CentOS-6.5-i386-minimal.iso }}} https://docs.vagrantup.com/v2/boxes/base.html == Vagrant CentOS 5.10 box == Runs well on Toshiba NB200 {{{#!highlight sh wget http://ftp.up.pt/CentOS/5.10/isos/i386/CentOS-5.10-i386-bin-1of8.iso cd /tmp mkdir centos5_10 cd centos5_10 wget https://vagrantcloud.com/box-cutter/centos510-i386/version/1/provider/virtualbox.box # centos510-i386-nocm.box mv virtualbox.box centos510-i386-nocm.box vagrant box add CentOS5_10 centos510-i386-nocm.box vagrant init CentOS5_10 vagrant up # may take many minutes. In case of problem/taking too long start the VM directly with VirtualBox yum install java-1.6.0.openjdk yum install unzip }}} === JBoss 5.1.0 === {{{#!highlight sh scp -P2222 jboss-5.1.0.GA.zip vagrant@127.0.0.1:/home/vagrant # JBoss 5.1.0 mv jboss-5.1.0.GA.zip /usr/local cd /usr/local unzip jboss-5.1.0.GA.zip ln -s jboss-5.1.0.GA jboss /usr/local/jboss/bin/run.sh #start jboss 5.1.0 }}} === Tomcat 7.0.53 === {{{#!highlight sh scp -P2222 apache-tomcat-7.0.53.tar.gz vagrant@127.0.0.1:/home/vagrant mv apache-tomcat-7.0.53.tar.gz /usr/local cd /usr/local tar xvzf apache-tomcat-7.0.53.tar.gz ln -s apache-tomcat-7.0.53 tomcat cd tomcat bin/startup.sh tail -f log/catalina.out # check Tomcat startup }}} * In VirtualBox add port forwarding from host tcp port 8080 to guest port 8080 * Change tomcat-user.xml to allow admin login {{{ }}} === JBoss 7.1.1 === {{{#!highlight sh scp -P2222 jboss-as-7.1.1.Final.tar.gz vagrant@127.0.0.1:/home/vagrant mv jboss-as-7.1.1.Final.tar.gz /usr/local tar xvzf jboss-as-7.1.1.Final.tar.gz cd jboss-as-7.1.1.Final cd standalone/configuration sed -i 's/127.0.0.1/0.0.0.0/g' standalone.xml # change listen IP address bin/standalone.sh # Start jboss 7.1.1 }}} === Yii === {{{#!highlight sh yum install httpd # Add port forward from 8888 to 80 in VirtualBox /sbin/service httpd start scp -P2222 yii-1.1.15.022a51.tar.gz vagrant@127.0.0.1:/home/vagrant mv yii-1.1.15.022a51.tar.gz /var/www/html cd /var/www/html tar xvzf yii-1.1.15.022a51.tar.gz mv yii-1.1.15.022a51 yii rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm yum install php54w yum install php54w-pdo yum install php54w-dom yum install php54w-mysql yum install php54w-pgsql yum install php54w-mcrypt yum install php54w-pecl-apc /sbin/service httpd restart }}} * Edit /etc/php.ini and add after [Date] {{{ date.timezone = "Europe/Lisbon" }}} {{{#!highlight sh cd /var/www/html/yii chown apache * -R cd /var/www/html/yii/demos/blog }}} * 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.php }}} * Edit /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 === {{{#!highlight sh wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm yum install python26 }}} === 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 {{{#!highlight sh cd ~/Downloads/vagrantBoxes/ wget http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20131103.box }}} == List RPM installed packages == {{{#!highlight sh rpm -qa }}} == Install htop 64 bit == {{{#!highlight sh wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm rpm -Uhv rpmforge-release*.rf.x86_64.rpm yum install htop }}} == CentOS 7 packages for docker java 8 and maven == {{{#!highlight sh https://app.vagrantup.com/centos/boxes/7 vagrant init centos/7 vagrant up }}} {{{#!highlight bash # install centos minimal with 64gb disk and 1GB mem 1 processor ping –c 1 www.google.com yum -y update # as root yum -y install vim nano java-1.8.0-openjdk maven java-1.8.0-openjdk-devel wget unzip git curl –fSSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker systemctl status docker usermod -aG docker centos # Add port forwarding to port 2222 }}}