Mon 06 of Sep, 2010 [23:56 UTC]

SpaceWalk

print

yum upgrade yum

yum --nogpgcheck install libaio oraclexe/oracle-xe-client-10.2.0.1-1.0.i386.rpm oraclexe/oracle-xe-univ-10.2.0.1-1.0.i386.rpm oracleclient10/oracle-instantclient-basic-10.2.0.4-1.i386.rpm oracleclient10/oracle-instantclient-devel-10.2.0.4-1.i386.rpm oracleclient10/oracle-instantclient-jdbc-10.2.0.4-1.i386.rpm oracleclient10/oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm


/etc/init.d/oracle-xe configure

cd /etc/profile.d
ln -s /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh

  • note this file is formatting sentitive
cat > /etc/tnsnames.ora << EOF
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = xe)
)
)
EOF



echo "alter system set processes = 400 scope=spfile"| sqlplus spacewalk/spacewalk@xe

/etc/init.d/oracle-xe restart

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm

sed -ie 's/enabled=1/enabled=0/' /etc/yum.repos.d/epel.repo

yum install java-devel --enablerepo=epel

rpm -e specspo

cat > /etc/yum.repos.d/spacewalk.repo << EOF
[spacewalk]
name=Spacewalk
baseurl=http://spacewalk.redhat.com/yum/rhel/5Server/$basearch/
gpgkey=http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk
enabled=1
gpgcheck=1
EOF


wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release http://www.redhat.com/security/37017186.txt

yum install spacewalk

mkdir /var/satellite
chown apache.apache /var/satellite


Created by: admin last modification: Monday 30 of June, 2008 [14:55:46 UTC] by admin