Size: 1117
Comment:
|
← Revision 26 as of 2023-05-26 13:46:09 ⇥
Size: 5655
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
== 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 }}} |
|
Line 10: | Line 17: |
* 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 |
{{{#!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 }}} |
Line 18: | Line 27: |
* wget http://mirrors.nfsi.pt/CentOS/6.5/isos/i386/CentOS-6.5-i386-minimal.iso | {{{#!highlight sh wget http://mirrors.nfsi.pt/CentOS/6.5/isos/i386/CentOS-6.5-i386-minimal.iso }}} |
Line 22: | Line 33: |
== CentOS 5.10 == * wget https://vagrantcloud.com/box-cutter/centos510-i386/version/1/provider/virtualbox.box # centos510-i386-nocm.box * wget http://ftp.up.pt/CentOS/5.10/isos/i386/CentOS-5.10-i386-bin-1of8.iso |
== 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 }}} |
Line 26: | Line 49: |
== Vagrant box == | === 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 {{{ <role rolename="admin"/> <role rolename="manager"/> <role rolename="manager-gui"/> <user username="admin" password="12345678" roles="admin,manager,manager-gui"/> }}} === 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 == |
Line 30: | Line 150: |
{{{#!highlight sh cd ~/Downloads/vagrantBoxes/ wget http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20131103.box }}} |
|
Line 31: | Line 155: |
* 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 }}} |
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
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
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.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
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