Sunday, May 3, 2015

Install Shibboleth from RPM in opensuse 13.2

#!/bin/bash

zypper ar http://download.opensuse.org/repositories/security://shibboleth/openSUSE_13.2/ Shibboleth

zypper in -y shibboleth

Install Shibboleth on CentOS 7 from RPM:

Install Shibboleth on CentOS 7 from RPM:

yum install -y wget

wget http://download.opensuse.org/repositories/security://shibboleth/CentOS_7/security:shibboleth.repo -P /etc/yum.repos.d

yum install -y shibboleth


Saturday, April 25, 2015

Install Shibboleth from source on OpenSUSE 13

#!/bin/bash

# This script will download, compile and install all software needed for Shibboleth on openSUSE(puke) 64-bit
sudo zypper install -y --type pattern devel_basis
# Create working directory
rm -vRf ~/Development
rm -vRf /opt/shibboleth-sp
mkdir ~/Development
mkdir ~/Development/shibsrc
cd ~/Development/shibsrc

# Download packages
wget http://shibboleth.net/downloads/log4shib/latest/log4shib-1.0.9.tar.gz
wget http://apache.osuosl.org//xerces/c/3/sources/xerces-c-3.1.2.tar.gz
wget http://apache.claz.org/santuario/c-library/xml-security-c-1.7.3.tar.gz
wget http://shibboleth.net/downloads/c++-opensaml/latest/xmltooling-1.5.4.tar.gz
wget http://shibboleth.net/downloads/c++-opensaml/latest/opensaml-2.5.4.tar.gz
wget http://shibboleth.net/downloads/service-provider/latest/shibboleth-sp-2.5.4.tar.gz
# wget http://curl.haxx.se/download/curl-7.41.0.tar.gz
zypper in -y libopenssl-devel
#cp -vf ~/bin/base.h ~/Development/shibsrc/xmltooling*/xmltooling
wget http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/base.h
cp -vf base.h ~/Development/shibsrc/xmltooling-1.5.4/xmltooling

# log4shib:
tar -zxvf log4shib*
cd log4shib*
./configure --disable-static --disable-doxygen --prefix=/opt/shibboleth-sp
make && make install
cd ..

# Xerces-C:
tar -zxvf xerces-c*
cd xerces-c*
./configure --prefix=/opt/shibboleth-sp
make && make install
cd ..

# XML-Security-C:
tar -zxvf xml-security-c*
cd xml-security-c*
./configure --without-xalan --disable-static --prefix=/opt/shibboleth-sp --with-xerces=/opt/shibboleth-sp/
make && make install
cd ..

# Install boost-devel:
zypper in -y boost-devel

# Install libcurl:
#tar -xvzf curl*
#cd curl*
#./configure --disable-static --without-ca-bundle --enable-thread --prefix=/opt/shibboleth-sp
#make && make install
#cd ..

# XMLTooling-C:
tar -zxvf xmltooling*
cd xmltooling*
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp -C
make && make install
cd ..

# OpenSAML-C:
tar -zxvf opensaml*
cd opensaml*
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp -C
make && make install
cd ..

# Install apache devel:
zypper in -y apache2-devel

# Finally, Shibboleth:
tar -zxvf shibboleth-sp*
cd shibboleth-sp*
./configure --with-log4shib=/opt/shibboleth-sp --with-apxs=/usr/bin/apxs --with-apxs2=/usr/bin/apxs --with-apr=/usr/bin/apr-1-config --with-apu=/usr/bin/apu-1-config --prefix=/opt/shibboleth-sp
make && make install
cd ..

echo "Shibboleth can now be found in /opt/shibboleth-sp"

Wednesday, April 8, 2015

Here's a quick and dirty for creating a Tomcat 6 server stack on CentOS 6

Here's a quick and dirty for creating a Tomcat 6 server stack on CentOS 6

#!/bin/bash
echo "Installing Tomcat 6 Server Stack for CentOS 6.2, run as ROOT"
yum -y install perl
rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
rpm -Uvh http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/jpackage-utils-5.0.0-7.jpp6.noarch.rpm
yum -y install yum-priorities vim sudo mlocate lsof ntp iptables java cups-libs tomcat6 tomcat6-webapps tomcat6-admin-webapps
iptables -F
service iptables save
service tomcat6 start
chkconfig tomcat6 on
yum -y update
reboot

Install Shibboleth from source on CentOS 7 64-bit. (4/7/2015)

#!/bin/bash

# This script will download, compile and install all software needed for Shibboleth on CentOS 7 64-bit
#sudo zypper install --type pattern devel_basis
# Create working directory
yum groupinstall -y "Development Tools"
yum install -y openssl-devel
yum install -y wget
rm -vRf ~/Dev*
rm -vRf /opt/*
mkdir ~/Development
mkdir ~/Development/shibsrc
cd ~/Development/shibsrc

# Download packages
wget http://shibboleth.net/downloads/log4shib/latest/log4shib-1.0.9.tar.gz
wget http://apache.osuosl.org//xerces/c/3/sources/xerces-c-3.1.2.tar.gz
wget http://apache.claz.org/santuario/c-library/xml-security-c-1.7.3.tar.gz
wget http://shibboleth.net/downloads/c++-opensaml/latest/xmltooling-1.5.4.tar.gz
wget http://shibboleth.net/downloads/c++-opensaml/latest/opensaml-2.5.4.tar.gz
wget http://shibboleth.net/downloads/service-provider/latest/shibboleth-sp-2.5.4.tar.gz
wget http://curl.haxx.se/download/curl-7.41.0.tar.gz

# log4shib:
tar -zxvf log4shib*
cd log4shib*
./configure --disable-static --disable-doxygen --prefix=/opt/shibboleth-sp
make && make install
cd ..

# Xerces-C:
tar -zxvf xerces-c*
cd xerces-c*
./configure --prefix=/opt/shibboleth-sp
make && make install
cd ..

# XML-Security-C:
tar -zxvf xml-security-c*
cd xml-security-c*
./configure --without-xalan --disable-static --prefix=/opt/shibboleth-sp --with-xerces=/opt/shibboleth-sp/
make && make install
cd ..

# Install boost-devel:
yum -y install boost-devel

# Install libcurl:
tar -xvzf curl*
cd curl*
./configure --disable-static --without-ca-bundle --enable-thread --prefix=/opt/shibboleth-sp
make && make install
cd ..

# XMLTooling-C:
tar -zxvf xmltooling*
cd xmltooling*
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp -C
make && make install
cd ..

# OpenSAML-C:
tar -zxvf opensaml*
cd opensaml*
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp -C
make && make install
cd ..

# Install apache devel:
yum -y install httpd-devel

# Finally, Shibboleth:
tar -zxvf shibboleth-sp*
cd shibboleth-sp*
./configure --with-log4shib=/opt/shibboleth-sp --with-apxs=/usr/bin/apxs --with-apxs2=/usr/bin/apxs --with-apr=/usr/bin/apr-1-config --with-apu=/usr/bin/apu-1-config --prefix=/opt/shibboleth-sp
make && make install
cd ..

echo "Shibboleth can now be found in /opt/shibboleth-sp"