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

   1 wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
   2 wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
   3 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:

   1 lsb_release -a
   2 rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
   3 yum install php54w
   4 yum install yum-plugin-replace
   5 yum replace php-common --replace-with=php54w-common
   6 service httpd restart

Minimal CentOS 6.5

   1 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

   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

   1 scp -P2222 jboss-5.1.0.GA.zip vagrant@127.0.0.1:/home/vagrant # JBoss 5.1.0
   2 mv jboss-5.1.0.GA.zip /usr/local
   3 cd /usr/local
   4 unzip jboss-5.1.0.GA.zip
   5 ln -s jboss-5.1.0.GA jboss
   6 /usr/local/jboss/bin/run.sh #start jboss 5.1.0
   7 

Tomcat 7.0.53

   1 scp -P2222 apache-tomcat-7.0.53.tar.gz vagrant@127.0.0.1:/home/vagrant
   2 mv apache-tomcat-7.0.53.tar.gz /usr/local
   3 cd /usr/local
   4 tar xvzf apache-tomcat-7.0.53.tar.gz
   5 ln -s apache-tomcat-7.0.53 tomcat
   6 cd tomcat
   7 bin/startup.sh
   8 tail -f log/catalina.out # check Tomcat startup
   9 

<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

date.timezone = "Europe/Lisbon" 

   1 cd /var/www/html/yii
   2 chown apache * -R
   3 cd /var/www/html/yii/demos/blog

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

Python 2.6

   1 wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
   2 wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
   3 sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
   4 yum install python26

Package the box for 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

   1 cd ~/Downloads/vagrantBoxes/
   2 wget http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20131103.box

List RPM installed packages

   1 rpm -qa

Install htop 64 bit

   1 wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
   2 rpm -Uhv rpmforge-release*.rf.x86_64.rpm
   3 yum install htop

CentOS 7 packages for docker java 8 and maven

   1 https://app.vagrantup.com/centos/boxes/7
   2 vagrant init centos/7
   3 vagrant up

   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 

CentOS (last edited 2023-05-26 13:46:09 by 127)