<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brucalipto.org &#187; RHEL5</title>
	<atom:link href="http://www.brucalipto.org/tag/rhel5/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brucalipto.org</link>
	<description>Tenete la porta aperta...</description>
	<lastBuildDate>Thu, 24 Nov 2011 08:59:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to install GOsa on RHEL/CentOS 5</title>
		<link>http://www.brucalipto.org/linux/how-to-install-gosa-on-rhelcentos-5</link>
		<comments>http://www.brucalipto.org/linux/how-to-install-gosa-on-rhelcentos-5#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:30:43 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=210</guid>
		<description><![CDATA[As you can read on GOsa website: &#8220;GOsa² provides a powerful GPL&#8217;ed framework for managing accounts and systems in LDAP databases. Using GOsa² allows system administrators to easily manage users and groups&#8230;&#8221;. The installation on Red Hat Enterprise Linux/CentOS is a bit tricky and here you will find how to install it. First you need [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-220" style="border: 0pt none;" title="gosa-logo2" src="http://www.brucalipto.org/wp-content/uploads/2010/02/gosa-logo2.png" alt="gosa logo2 How to install GOsa on RHEL/CentOS 5" width="290" height="88" />As you can read on <a href="https://oss.gonicus.de/labs/gosa/" target="_blank">GOsa website</a>: &#8220;GOsa² provides a powerful GPL&#8217;ed framework for managing accounts and systems in LDAP databases. Using GOsa² allows system administrators to easily manage users and groups&#8230;&#8221;. The installation on Red Hat Enterprise Linux/CentOS is a bit tricky and here you will find how to install it.</p>
<p><span id="more-210"></span>First you need to set SELinux in permissive mode (if you have enabled it) and configure the firewall to let other systems to connect to port 80/443 (HTTP and HTTPs) and 389 (LDAP server port) using the commandline tool</p>
<p class="quoteCode"><strong># system-config-securitylevel-tui</strong></p>
<p><a href="http://www.brucalipto.org/wp-content/uploads/2010/02/opaplnx44_security_1.png"><img class="alignnone size-full wp-image-211" title="opaplnx44_security_1" src="http://www.brucalipto.org/wp-content/uploads/2010/02/opaplnx44_security_1.png" alt="opaplnx44 security 1 How to install GOsa on RHEL/CentOS 5" width="560" height="370" /></a></p>
<p><a href="http://www.brucalipto.org/wp-content/uploads/2010/02/opaplnx44_security_2.png"><img class="alignnone size-full wp-image-212" title="opaplnx44_security_2" src="http://www.brucalipto.org/wp-content/uploads/2010/02/opaplnx44_security_2.png" alt="opaplnx44 security 2 How to install GOsa on RHEL/CentOS 5" width="562" height="367" /></a></p>
<p>Now we need to get some more RPM repos to work:</p>
<p class="quoteCode"><strong>//First the CentOS testing repo<br />
# cd /etc/yum.repos.d/<br />
# wget http://dev.centos.org/centos/5/CentOS-Testing.repo<br />
//Then the RPMForge repo<br />
# rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm<br />
//And last the GOsa RPM repo<br />
# cat &gt;&gt; GOsa.repo &lt;&lt; EOF<br />
&gt; [GOsa-Repository]<br />
&gt; name=GOsa Repository<br />
&gt; baseurl=ftp://oss.gonicus.de/pub/gosa/redhat<br />
&gt; enabled=0<br />
&gt; gpgcheck=0<br />
&gt; EOF</strong></p>
<p>As we want the system as stable as possible without many packages from externarl repositories please verify that the files CentOS-Testing.repo and rpmforge.repo both contain the line &#8216;<strong>enabled=0</strong>&#8216;. Now let&#8217;s check the new repositories for new packages to install and install them:</p>
<p class="quoteCode"><strong># yum &#8211;enablerepo=rpmforge,GOsa-Repository,c5-testing check-update<br />
//Install LDAP<br />
# yum install openldap openldap-servers<br />
//Install PHP 5.2 from CentOS Testing<br />
# yum &#8211;enablerepo=c5-testing install php-common php-imap php-snmp php-mysql php-mbstring php-pdo<br />
//Install perl-Crypt-SmbHash from RPMForge<br />
# yum &#8211;enablerepo=rpmforge install perl-Crypt-SmbHash<br />
//Install GOsa RPMs<br />
# yum &#8211;enablerepo=GOsa-Repository install gosa-help-en.noarch gosa-plugin-addressbook.noarch gosa-plugin-ldapmanager.noarch gosa-plugin-mail.noarch gosa-plugin-rolemanagement.noarch gosa-plugin-systems.noarch gosa-schema.noarch gosa-plugin-goto</strong></p>
<p>Now we need to be sure that Apache HTTPD and LDAP servers start at boot:</p>
<p class="quoteCode"><strong># chkconfig httpd on<br />
# chkconfig ldap on</strong></p>
<p>At this point, before configuring GOsa, you need to add specific GOsa schemas to your ldap using as reference a part of the beginning of my own /etc/openldap/slapd.conf</p>
<p class="quoteCode"><strong>include         /etc/openldap/schema/core.schema<br />
include         /etc/openldap/schema/cosine.schema<br />
include         /etc/openldap/schema/inetorgperson.schema<br />
include         /etc/openldap/schema/gosa/rfc2307bis.schema<br />
include         /etc/openldap/schema/gosa/gofax.schema<br />
include         /etc/openldap/schema/gosa/gofon.schema<br />
include         /etc/openldap/schema/gosa/samba.schema<br />
include         /etc/openldap/schema/gosa/gosystem.schema<br />
include         /etc/openldap/schema/gosa/goto.schema<br />
include         /etc/openldap/schema/gosa/samba3.schema<br />
include         /etc/openldap/schema/gosa/gosa-samba3.schema<br />
include         /etc/openldap/schema/gosa/goserver.schema<br />
include         /etc/openldap/schema/gosa/goto-mime.schema<br />
include         /etc/openldap/schema/gosa/trust.schema</strong></p>
<p>Restart your openldap and finally we can connect to GOsa web interface and configure it pointing your browser at</p>
<p class="quoteCode"><strong>http://&lt;hostname&gt;/gosa/</strong></p>
<p>Now you should have a fully functional GOsa install on your CentOS5: please let me know if you found error in this tutorial or even if you found it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-install-gosa-on-rhelcentos-5/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to clone a schema in MySQL</title>
		<link>http://www.brucalipto.org/linux/how-to-clone-a-schema-in-mysql</link>
		<comments>http://www.brucalipto.org/linux/how-to-clone-a-schema-in-mysql#comments</comments>
		<pubDate>Tue, 11 Aug 2009 14:10:09 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=192</guid>
		<description><![CDATA[Today I needed to clone a schema in MySQL: simply I upgraded my monitoring software Zabbix and thus I needed to &#8220;upgrade&#8221; also the DB schema where Zabbix saves data. As this is a destructive operation I wanted to have the zabbix schema cloned. But how do you clone a schema in MySQL? The first [...]]]></description>
			<content:encoded><![CDATA[<p><!-- Schema for Wordpress --><div itemscope itemtype="http://schema.org/BlogPosting">  <!-- Schema for Wordpress --><span itemprop="image"><img class="alignleft size-full wp-image-111" title="logo mysql" src="http://www.brucalipto.org/wp-content/uploads/2008/10/logo_mysql_sun.gif" alt="logo mysql sun How to clone a schema in MySQL" width="205" height="68" /> </span><!-- Schema for Wordpress --> <!-- Schema for Wordpress --><span itemprop="description">Today I needed to clone a schema in MySQL: simply I upgraded my monitoring software Zabbix and thus I needed to &#8220;upgrade&#8221; also the DB schema where Zabbix saves data. As this is a destructive operation I wanted to have the zabbix schema cloned. But how do you clone a schema in MySQL?</span><!-- Schema for Wordpress --></p>
<p><span id="more-192"></span>The first thing to do is to create the new schema (or database in MySQL world) and grant all privileges to a user (even an existing one):</p>
<p class="quoteCode">create database zabbix16;<br />
grant all privileges on zabbix16.* to zabbix@&#8221;%&#8221;;</p>
<p>At this point we can use the mysqldump program to dump data directly in the mysql program:</p>
<p class="quoteCode">mysqldump &#8211;add-drop-table &#8211;complete-insert -uzabbix -pPWD zabbix | mysql -uzabbix -pPWD zabbix16</p>
<p>After some time, when mysqldump finishes, you will see the zabbix16 schema as an exact copy of the original one! </div><!-- Schema for Wordpress --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-clone-a-schema-in-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Oracle Client 10g on Red Hat Enterprise Linux 5 64bit</title>
		<link>http://www.brucalipto.org/linux/how-to-install-oracle-client-10g-on-red-hat-enterprise-linux-5-64bit</link>
		<comments>http://www.brucalipto.org/linux/how-to-install-oracle-client-10g-on-red-hat-enterprise-linux-5-64bit#comments</comments>
		<pubDate>Fri, 19 Sep 2008 09:08:35 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=93</guid>
		<description><![CDATA[Today I needed to install the Oracle Client 10g on a Red Hat Enterprise Linux 5 64bit: all around the net you can find many useful tutorial on how to install the Oracle DB Server but I cannot find how to install only the client. As you may guess the client installation is easier than [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="Red Hat logo" src="http://www.brucalipto.org/wp-content/uploads/2008/03/redhat.jpg" alt="redhat How to install Oracle Client 10g on Red Hat Enterprise Linux 5 64bit" width="55" height="55" />Today I needed to install the Oracle Client 10g on a Red Hat Enterprise Linux 5 64bit: all around the net you can find many useful tutorial on how to install the Oracle DB Server but I cannot find how to install only the client. As you may guess the client installation is easier than the Oracle DB Server one.</p>
<p><span id="more-93"></span></p>
<p>On the linux machine, as root, you have to run the following commands:</p>
<p class="quoteCode"><strong>//create user and groups<br />
# groupadd oinstall<br />
# groupadd dba<br />
# useradd -g oinstall -G dba oracle<br />
# passwd oracle</strong></p>
<p class="quoteCode"><strong>//prepare the filesystem<br />
# mkdir /opt/oracle<br />
# chown -R oracle:oinstall /opt/oracle</strong></p>
<p class="quoteCode"><strong>//install some needed packages<br />
# yum install libXp gcc make setarch libaio glibc-devel<br />
</strong></p>
<p class="quoteCode"><strong>//change /etc/redhat-release as RHEL5 is not a supported platform<br />
# cp /etc/redhat-release /etc/redhat-release.5<br />
# echo redhat-4 &gt; /etc/redhat-release</strong></p>
<p>OK&#8230; as root we have now finished!</p>
<p>Now log in with the oracle user and <a class="download" href="http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linx8664soft.html" target="_blank">download the Oracle Client 10g 64bit from Oracle website</a>: once there get the file called <a class="download" href="http://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux_x86_64.cpio.gz">10201_client_linux_x86_64.cpio.gz</a>. Open the cpio oracle client archive and run the client installation program:</p>
<p class="quoteCode"><strong># gunzip 10201_client_linux_x86_64.cpio.gz<br />
# cpio -idmv &lt; 10201_client_linux_x86_64.cpio<br />
# cd client<br />
# ./runInstaller</strong></p>
<p>I pointed the oraInventory directory to /opt/oracle in the first screen; in the second one I choose to install the Oracle 10g Client in /opt/oracle/product/10.2.0/client_1/. Just before the installation finishes it prompts to you to execute two more commands as root: in my own installation I run</p>
<p class="quoteCode"><strong>//execute the following commands as root<br />
# /opt/oracle/orainstRoot.sh<br />
# /opt/oracle/product/10.2.0/client_1/root.sh</strong></p>
<p>but, as you may guess, your path may be different from mine.</p>
<p>Now the final step: we have to restore the /etc/redhat-release file we changed before:</p>
<p class="quoteCode"><strong># mv /etc/redhat-release.5 /etc/redhat-release</strong></p>
<p>I hope this tutorial can help you&#8230; if you find errors please report them to me and I will correct as soon as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-install-oracle-client-10g-on-red-hat-enterprise-linux-5-64bit/feed</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>How to install Oracle Client 10g on Red Hat Enterprise Linux 5</title>
		<link>http://www.brucalipto.org/linux/how-to-install-oracle-client-10g-on-red-hat-enterprise-linux-5</link>
		<comments>http://www.brucalipto.org/linux/how-to-install-oracle-client-10g-on-red-hat-enterprise-linux-5#comments</comments>
		<pubDate>Fri, 25 Jul 2008 12:56:18 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=69</guid>
		<description><![CDATA[Today I needed to install the Oracle Client 10g on a Red Hat Enterprise Linux 5 32bit: all around the net you can find many useful tutorial on how to install the Oracle DB Server but I cannot find how to install only the client. As you may guess the client installation is easier than [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="Red Hat logo" src="http://www.brucalipto.org/wp-content/uploads/2008/03/redhat.jpg" alt="redhat How to install Oracle Client 10g on Red Hat Enterprise Linux 5" width="55" height="55" />Today I needed to install the Oracle Client 10g on a Red Hat Enterprise Linux 5 32bit: all around the net you can find many useful tutorial on how to install the Oracle DB Server but I cannot find how to install only the client. As you may guess the client installation is easier than the Oracle DB Server one.</p>
<p><span id="more-69"></span></p>
<p>On the linux machine, as root, you have to run the following commands:</p>
<p class="quoteCode"><strong>//create user and groups<br />
# groupadd oinstall<br />
# groupadd dba<br />
# useradd -g oinstall -G dba oracle<br />
# passwd oracle</strong></p>
<p class="quoteCode"><strong>//prepare the filesystem<br />
# mkdir /opt/oracle<br />
# chown -R oracle:oinstall /opt/oracle</strong></p>
<p class="quoteCode"><strong>//install some needed packages<br />
# yum install libXp gcc make setarch libaio glibc-devel<br />
</strong></p>
<p class="quoteCode"><strong>//change /etc/redhat-release as RHEL5 is not a supported platform<br />
# cp /etc/redhat-release /etc/redhat-release.5<br />
# echo redhat-4 &gt; /etc/redhat-release</strong></p>
<p>OK&#8230; as root we have now finished!</p>
<p>Now log in with the oracle user and <a class="download" href="http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html" target="_blank">download the Oracle Client 10g from Oracle website</a>: once there get the file called <a class="download" href="http://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux32.zip">10201_client_linux32.zip</a>. Unzip and run the client:</p>
<p class="quoteCode"><strong># unzip 10201_client_linux32.zip<br />
# cd client<br />
# ./runInstaller</strong></p>
<p>I pointed the oraInventory directory to /opt/oracle in the first screen; in the second one I choose to install the Oracle 10g Client in /opt/oracle/product/10.2.0/client_1/. Just before the installation finishes it prompts to you to execute two more commands as root: in my own installation I run</p>
<p class="quoteCode"><strong>//execute the following commands as root<br />
# /opt/oracle/orainstRoot.sh<br />
# /opt/oracle/product/10.2.0/client_1/root.sh</strong></p>
<p>but, as you may guess, your path may be different from mine.</p>
<p>Now the final step: we have to restore the /etc/redhat-release file we changed before:</p>
<p class="quoteCode"><strong># mv /etc/redhat-release.5 /etc/redhat-release</strong></p>
<p>I hope this tutorial can help you&#8230; if you find errors please report them to me and I will correct as soon as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-install-oracle-client-10g-on-red-hat-enterprise-linux-5/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to install Data Protector 6.0 on Red Hat Enterprise Linux 5</title>
		<link>http://www.brucalipto.org/linux/how-to-install-data-protector-60-on-red-hat-enterprise-linux-5</link>
		<comments>http://www.brucalipto.org/linux/how-to-install-data-protector-60-on-red-hat-enterprise-linux-5#comments</comments>
		<pubDate>Fri, 28 Mar 2008 13:38:57 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/linux/how-to-install-data-protector-60-on-red-hat-enterprise-linux-5</guid>
		<description><![CDATA[Yesterday I finished the installation of a new Red Hat Enterprise Linux 5 (RHEL5) and I needed to install the Data Protector Disk Agent to backup its files. I have a Windows 2003 cell manager and a HP-UX install server that should help with the installation of the Data Protector software on UNIX/Linux/Solaris hosts&#8230; I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://www.brucalipto.org/wp-content/uploads/2008/03/redhat.jpg" alt="redhat How to install Data Protector 6.0 on Red Hat Enterprise Linux 5"  title="How to install Data Protector 6.0 on Red Hat Enterprise Linux 5" />Yesterday I finished the installation of a new Red Hat Enterprise Linux 5 (RHEL5) and I needed to install the Data Protector Disk Agent to backup its files. I have a Windows 2003 cell manager and a HP-UX install server that should help with the installation of the Data Protector software on UNIX/Linux/Solaris hosts&#8230; I&#8217;m quite a newbye on the topic but I was unable to install the disk agent using the HP-UX install server so here you will find instructions for the &#8220;always working&#8221; manual installation.</p>
<p><span id="more-64"></span>The  first thing is to get the HP-UX PA-RISC install server CDs from HP website:if you do not have the original CDs you can get them as trial from <a href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=DP60SWD1" target="_blank">here</a>.</p>
<p>Now its time to install the Disk Agent on the server you need to backup; you need to install two packages that are not installed by default on the Red Hat Enterprise Linux 5: ncompress and xinetd. So, as root, execute the command:</p>
<p class="quoteCode"><strong># yum install ncompress xinetd</strong></p>
<p>to get the needed packages installed.</p>
<p>Insert the first CD of the HP-UX PA-RISC install server on the optical drive of the server and mount it:</p>
<p class="quoteCode"><strong># mount /dev/hda /mnt</strong></p>
<p>Now it is install time:</p>
<p class="quoteCode"><strong># cd /mnt/LOCAL_INSTALL<br />
# ./omnisetup.sh</strong></p>
<p>Answer all the questions the installer asks to you and finish the installation. In my installation the Data Protector agent was not correctly added to the xinetd configuration&#8230; look if you find the omni file in /etc/xinetd.d&#8230; if you do not find it create it with the following content:</p>
<p class="quoteCode"><strong>service omni<br />
{<br />
socket_type = stream<br />
protocol = tcp<br />
wait = no<br />
user = root<br />
server = /opt/omni/lbin/inet<br />
server_args = inet -log /var/opt/omni/log/inet.log<br />
disable = no<br />
}<br />
</strong></p>
<p>and verify it is owned by root and with 644 permissions.</p>
<p>OK&#8230; we are at the end&#8230;</p>
<p class="quoteCode"><strong># /etc/init.d/xinetd restart</strong></p>
<p>As suggested by fluffy on comment #1 now you have to check if the firewall (iptables) is actually active: if the firewall is switched on you have to permit the traffic from and to port 5555 to flow regularly.</p>
<p class="quoteCode"><strong># chkconfig &#8211;list | grep iptables<br />
iptables        0:off   1:off   2:off   3:off   4:off   5:off   6:off</strong></p>
<p>If you any <code>on</code> you need to modify the file <code>/etc/sysconfig/iptables</code> adding:</p>
<p class="quoteCode"><strong>-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 5555 -j ACCEPT</strong></p>
<p>Now everything should be ok&#8230; let&#8217;s try if the Data Protector agent answers to port 5555:</p>
<p class="quoteCode"><strong># telnet localhost 5555</strong></p>
<p>That&#8217;s all&#8230; if you encounter any problem leave a comment here&#8230; I&#8217;ll try to help you.</p>
<p>Leave a comment even if you have a smarter method&#8230; I am very glad to learn.</p>
<p><a href="mailto:ottuzzi@gmail.com"><img src="http://www.brucalipto.org/wp-content/uploads/2008/02/ottuzzigoogle.png" alt="ottuzzigoogle How to install Data Protector 6.0 on Red Hat Enterprise Linux 5" align="right" title="How to install Data Protector 6.0 on Red Hat Enterprise Linux 5" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-install-data-protector-60-on-red-hat-enterprise-linux-5/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

