<?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</title>
	<atom:link href="http://www.brucalipto.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brucalipto.org</link>
	<description>Tenete la porta aperta...</description>
	<lastBuildDate>Thu, 18 Feb 2010 11:41:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 to [...]]]></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>1</slash:comments>
		</item>
		<item>
		<title>Windows port forwarding</title>
		<link>http://www.brucalipto.org/windows/windows-port-forwarding</link>
		<comments>http://www.brucalipto.org/windows/windows-port-forwarding#comments</comments>
		<pubDate>Wed, 02 Sep 2009 15:19:38 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=197</guid>
		<description><![CDATA[Port forwarding in windows using the opensource stunnel software.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-208" style="border: 0pt none;" title="Windows_XP_Logo_small" src="http://www.brucalipto.org/wp-content/uploads/2009/09/Windows_XP_Logo_small.jpg" alt="Windows XP Logo small Windows port forwarding" width="100" height="93" />In Linux world port forwarding is a common feature: if you need to forward traffic from port XX to port YY you simply use the integrated Linux firewall called iptables. In Microsoft Windows the integrated firewall is not so sophisticated as the Linux one and I needed to found a solution. A friend of mine was asked about this question and answered: &#8220;You cannot find anything working&#8230; if you find something let me know!&#8221;.</p>
<p><span id="more-197"></span></p>
<p>The smartest solution I found was to use <a href="http://www.stunnel.org/" target="_blank">stunnel</a>: maybe an overkill software for this simple task but it is</p>
<ol>
<li>well known and opensource;</li>
<li>stable;</li>
<li>works as a windows service.</li>
</ol>
<p>My own problem was to forward SMTP traffic from port 65025 to the well known port 25: this way if I telnet to port 65025 I can speak directly with the SMTP server listening on port 25.</p>
<p>The first thing was to download <a href="http://www.stunnel.org/download/stunnel/win32/stunnel-4.27-installer.exe">stunnel for windows</a> and install it.</p>
<p>Now all the magic is to write the appropriate stunnel.conf file that, in my case, was something like this:</p>
<p class="quoteCode">; Certificate/key is needed in server mode and optional in client mode<br />
; The default certificate is provided only for testing and should not<br />
; be used in a production environment<br />
cert = stunnel.pem<br />
; Some performance tunings<br />
socket = l:TCP_NODELAY=1<br />
socket = r:TCP_NODELAY=1<br />
[in65025smtp]<br />
accept = 10.145.2.88:65025<br />
connect = 10.145.2.88:65024<br />
protocol = smtp<br />
client = yes<br />
[out25smtp]<br />
accept = 10.145.2.88:65024<br />
connect = 10.145.2.88:25<br />
protocol = smtp</p>
<p>Looking at the stunnel.conf file provided you can see the trick: stunnel accept SMTP connections on port 65025 and encrypts them forwarding the traffic to port 65024; then it gets encrypted SMTP traffic from port 65024 and forwards it decrypted to port 25.</p>
<p>Last but not least is to register stunnel as service: in Windows this is as easy as 1, 2, 3</p>
<p><img class="size-full wp-image-198 alignnone" title="stunnel_as_service" src="http://www.brucalipto.org/wp-content/uploads/2009/09/stunnel_as_service.png" alt="Stunnel as Service" width="467" height="465" /></p>
<p>Please remember also to start the service <img src='http://www.brucalipto.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Windows port forwarding" /> </p>
<p>I hope this is clear&#8230; if you find something wrong here please let me know and I will correct it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/windows/windows-port-forwarding/feed</wfw:commentRss>
		<slash:comments>0</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 thing [...]]]></description>
			<content:encoded><![CDATA[<p><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" width="205" height="68" />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?</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 &#45;&#45;add-drop-table &#45;&#45;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!</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>Zabbix agents for Solaris 10</title>
		<link>http://www.brucalipto.org/solaris/zabbix-agents-for-solaris-10</link>
		<comments>http://www.brucalipto.org/solaris/zabbix-agents-for-solaris-10#comments</comments>
		<pubDate>Thu, 07 May 2009 10:38:46 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=181</guid>
		<description><![CDATA[ZABBIX is an enterprise-class open source distributed monitoring solution. I use it at work and I like it very much. Today I needed the Zabbix Agent for Solaris10 for Intel and, as I still use version 1.4, I downloaded the precompiled agents binaries from Zabbix site. I&#8217;m writing this post because I found a problem!

The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brucalipto.org/wp-content/uploads/2009/05/zabbix.png"><img class="alignleft size-full wp-image-184" style="border: 0pt none;" title="zabbix" src="http://www.brucalipto.org/wp-content/uploads/2009/05/zabbix.png" alt="zabbix Zabbix agents for Solaris 10" width="118" height="31" /></a>ZABBIX is an enterprise-class open source distributed monitoring solution. I use it at work and I like it very much. Today I needed the Zabbix Agent for Solaris10 for Intel and, as I still use version 1.4, I downloaded the precompiled agents binaries from <a href="http://www.zabbix.com/download.php" target="_blank">Zabbix site</a>. I&#8217;m writing this post because I found a problem!</p>
<p><span id="more-181"></span></p>
<p>The precompiled binaries fails to run with the following message:</p>
<p class="quoteCode">ld.so.1: zabbix_agentd: fatal: libresolv.so.2: version `SUNW_2.3&#8242; not found (required by file zabbix_agentd)<br />
ld.so.1: zabbix_agentd: fatal: libresolv.so.2: open failed: No such file or directory<br />
Killed</p>
<p>Running the ldd on the zabbix_agentd will reveal the problem:</p>
<p class="quoteCode">ldd /export/home/zabbix/bin/zabbix_agentd<br />
libkvm.so.1 =&gt;   /usr/lib/libkvm.so.1<br />
libm.so.2 =&gt;     /lib/libm.so.2<br />
libresolv.so.2 =&gt;        /lib/libresolv.so.2<br />
<strong>libresolv.so.2 (SUNW_2.3) =&gt;     (version not found)</strong><br />
libnsl.so.1 =&gt;   /lib/libnsl.so.1<br />
libkstat.so.1 =&gt;         /lib/libkstat.so.1<br />
libsocket.so.1 =&gt;        /lib/libsocket.so.1<br />
libc.so.1 =&gt;     /lib/libc.so.1<br />
libelf.so.1 =&gt;   /lib/libelf.so.1<br />
libmp.so.2 =&gt;    /lib/libmp.so.2<br />
libmd.so.1 =&gt;    /lib/libmd.so.1<br />
libscf.so.1 =&gt;   /lib/libscf.so.1<br />
libdoor.so.1 =&gt;  /lib/libdoor.so.1<br />
libuutil.so.1 =&gt;         /lib/libuutil.so.1<br />
libgen.so.1 =&gt;   /lib/libgen.so.1</p>
<p>libresolv.so.2 (SUNW_2.3) is not bundled in Solaris10 but in Nevada (aka Solaris11): so the precompiled binaries were not built on Solaris10 but on Opensolaris. To overcome this problem I downloaded the Zabbix 1.4.6 sources and I compiled the agents with Sun Studio 12.</p>
<p>Here are my own binaries:</p>
<ul>
<li><a href="http://www.brucalipto.org/wp-content/uploads/2009/05/zabbix_agents_146solaris10i386tar.bz2">Zabbix 1.4.6 Agents for Solaris 10 i386 (32bit version)<br />
</a></li>
<li><a href="http://www.brucalipto.org/wp-content/uploads/2009/05/zabbix_agents_146solaris10x64tar.bz2">Zabbix 1.4.6 Agents for Solaris 10 x64 (64bit version)<br />
</a></li>
</ul>
<p>Use at your own risk and&#8230; enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/solaris/zabbix-agents-for-solaris-10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Oracle Client 10g on Solaris10</title>
		<link>http://www.brucalipto.org/solaris/how-to-install-oracle-client-10g-on-solaris10</link>
		<comments>http://www.brucalipto.org/solaris/how-to-install-oracle-client-10g-on-solaris10#comments</comments>
		<pubDate>Mon, 26 Jan 2009 16:03:07 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=164</guid>
		<description><![CDATA[Today I needed to install an Oracle Client on a new Solaris10 (x86 64bit) installation: I found a useful tutorial here but it helps you to install the whole database and not only the client. As you may guess the client installation is easier than the Oracle DB Server one.

The first thing to do is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brucalipto.org/wp-content/uploads/2009/01/solaris.gif"><img class="alignleft size-full wp-image-165" style="border: 0pt none;" title="solaris" src="http://www.brucalipto.org/wp-content/uploads/2009/01/solaris.gif" alt="solaris How to install Oracle Client 10g on Solaris10" width="185" height="105" /></a>Today I needed to install an Oracle Client on a new Solaris10 (x86 64bit) installation: I found a useful tutorial <a href="http://ivan.kartik.sk/oracle/install_ora10gR2_solaris.html" target="_blank">here</a> but it helps you to install the whole database and not only the client. As you may guess the client installation is easier than the Oracle DB Server one.</p>
<p><span id="more-164"></span></p>
<p>The first thing to do is to check if you have installed the prerequisites packages:</p>
<p class="quoteCode"><strong># pkginfo -i SUNWbtool SUNWarc SUNWhea SUNWlibmr \<br />
SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of \<br />
SUNWi1cs SUNWi15cs SUNWxwfnt SUNWpoolr SUNWpool \<br />
SUNWuiu8</strong></p>
<p>If you see any error here you must install the missing packages: if you did the &#8220;full installation&#8221; you should have all packages already installed.</p>
<p>Now its time to create user, groups, directories and project: as root type</p>
<p class="quoteCode"><strong>//create user and groups<br />
# groupadd oinstall<br />
# groupadd dba<br />
# useradd -g oinstall -G dba -m -d /export/home/oracle -s /usr/bin/bash oracle<br />
//create the project (this is optional)<br />
# projadd -U oracle oracle<br />
//create the installation dir and give the right permissions<br />
# mkdir /opt/oracle<br />
# chown -R oracle:oinstall /opt/oracle</strong></p>
<p>OK&#8230; as root we have temporarily finished!</p>
<p>Now log in with the oracle user and <a href="http://www.oracle.com/technology/software/products/database/index.html" target="_blank">download the Oracle Client 10g for Solaris10 from Oracle website</a>: once there you need to select the right architecture (Solaris exists for SPARC and x86 both 32 and 64 bit) and get the right archive for the Oracle client installation. In my own situation (Solaris10 on a x86 64bit) I downloaded the file called <a href="http://download.oracle.com/otn/solaris/oracle10g/10201/x8664/10201_client_solx86_64.zip" target="_blank">10201_client_solx86_64.zip</a> and I typed:</p>
<p class="quoteCode"><strong># unzip 10201_client_solx86_64.zip<br />
# cd client/<br />
# ./runInstaller</strong></p>
<p><a href="http://www.brucalipto.org/wp-content/uploads/2009/01/01.png"><img class="size-thumbnail wp-image-166 alignnone" title="01" src="http://www.brucalipto.org/wp-content/uploads/2009/01/01-150x150.png" alt="01 150x150 How to install Oracle Client 10g on Solaris10" width="150" height="150" /></a> As you can see (click on the image to see a bigger picture) I used /opt/oracle/oraInventory and I leaved the group oinstall as the default group.</p>
<p><a href="http://www.brucalipto.org/wp-content/uploads/2009/01/03.png"><img class="size-thumbnail wp-image-167 alignnone" title="03" src="http://www.brucalipto.org/wp-content/uploads/2009/01/03-150x150.png" alt="03 150x150 How to install Oracle Client 10g on Solaris10" width="150" height="150" /></a> As ORACLE_HOME I used /opt/oracle/product/10.2.0/client_1.</p>
<p><a href="http://www.brucalipto.org/wp-content/uploads/2009/01/04.png"><img class="size-thumbnail wp-image-168 alignnone" title="04" src="http://www.brucalipto.org/wp-content/uploads/2009/01/04-150x150.png" alt="04 150x150 How to install Oracle Client 10g on Solaris10" width="150" height="150" /></a>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/oraInventory/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, if you want to use the just installed oracle binaries, you need to change the .profile of the user adding at the end:</p>
<p class="quoteCode"><strong>ORACLE_BASE=/opt/oracle<br />
ORACLE_HOME=/opt/oracle/product/10.2.0/client_1<br />
PATH=$PATH:/opt/oracle/product/10.2.0/client_1/bin/<br />
export ORACLE_BASE<br />
export ORACLE_HOME<br />
export PATH<br />
</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/solaris/how-to-install-oracle-client-10g-on-solaris10/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install a MySQL cluster on a single UNIX/Linux server</title>
		<link>http://www.brucalipto.org/linux/how-to-install-a-mysql-cluster</link>
		<comments>http://www.brucalipto.org/linux/how-to-install-a-mysql-cluster#comments</comments>
		<pubDate>Fri, 03 Oct 2008 13:29:15 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=99</guid>
		<description><![CDATA[In this tutorial I will show you how to install a MySQL cluster on a single node: obviously you will not gain any hardware redundancy with this setup but it is useful if you need to create a test installation as it was for me. You can find many tutorials about this topic but they [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brucalipto.org/wp-content/uploads/2008/10/logo_mysql_sun.gif"><img class="alignleft size-medium wp-image-111" style="border: 0pt none;" title="logo mysql" src="http://www.brucalipto.org/wp-content/uploads/2008/10/logo_mysql_sun.gif" alt="logo mysql sun How to install a MySQL cluster on a single UNIX/Linux server " width="205" height="68" /></a>In this tutorial I will show you how to install a MySQL cluster on a single node: obviously you will not gain any hardware redundancy with this setup but it is useful if you need to create a test installation as it was for me. You can find many tutorials about this topic but they are quite old and MySQL Cluster changed a lot in last years.</p>
<p><span id="more-99"></span></p>
<p><strong>What is a MySQL cluster?</strong></p>
<p>Let&#8217;s start explaining the architecture of a MySQL cluster with an image taken from <a href="http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-overview.html" target="_blank">dev.mysql.com</a>:</p>
<p style="text-align: center;"><a href="http://www.brucalipto.org/wp-content/uploads/2008/10/cluster-components-1.png"><img class="size-full wp-image-100 aligncenter" style="border: 0pt none;" title="cluster-components-1" src="http://www.brucalipto.org/wp-content/uploads/2008/10/cluster-components-1.png" alt="MySQL cluster architecture" width="470" height="300" /></a></p>
<p>As you may see the MySQL cluster is an aggregation of many components:</p>
<ul>
<li>one management server;</li>
<li>many MySQL daemons that acts as &#8220;frontend&#8221;;</li>
<li>many data nodes that store the real data.</li>
</ul>
<p>This tutorial will guide you in the creation of a cluster with:</p>
<ul>
<li>one management node;</li>
<li>two MySQL daemons;</li>
<li>two data nodes.</li>
</ul>
<p>Obviously you can expand this configuration simply adding the components you need. As stated at the beginning of this tutorial you can create all this setup on a single server (well you need 3 IPs on the server) or, and that would be very easy, you can split the MySQL cluster components on many servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-install-a-mysql-cluster/feed</wfw:commentRss>
		<slash:comments>11</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>15</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>6</slash:comments>
		</item>
		<item>
		<title>Gomorra</title>
		<link>http://www.brucalipto.org/cultura/gomorra</link>
		<comments>http://www.brucalipto.org/cultura/gomorra#comments</comments>
		<pubDate>Sun, 22 Jun 2008 17:12:10 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Cultura]]></category>
		<category><![CDATA[Libri]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/?p=67</guid>
		<description><![CDATA[Gomorra è il primo libro di Roberto Saviano, un giornalista nato nel 1979 a Napoli che ha collaborato con Repubblica e l&#8217;Espresso.
Per capire il libro non si può prescindere dai natali e dalla professione di Saviano: non siamo di fronte ad un romanzo, un racconto di fantasia, ma siamo di fronte alla dura e sentita [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brucalipto.org/wp-content/uploads/2008/06/gomorra.jpg"><img class="alignleft size-thumbnail wp-image-68" style="float: left;" title="gomorra" src="http://www.brucalipto.org/wp-content/uploads/2008/06/gomorra-150x150.jpg" alt="gomorra 150x150 Gomorra" width="55" height="78" /></a>Gomorra è il primo libro di Roberto Saviano, un giornalista nato nel 1979 a Napoli che ha collaborato con Repubblica e l&#8217;Espresso.<br />
Per capire il libro non si può prescindere dai natali e dalla professione di Saviano: non siamo di fronte ad un romanzo, un racconto di fantasia, ma siamo di fronte alla dura e sentita cronaca della situazione attualmente in essere in Campania.<br />
<span id="more-67"></span><br />
Come ormai noto il libro parla della camorra ormai comunemente chiamata &#8220;il Sistema&#8221;, visto che le varie &#8220;famiglie&#8221; regolano la vita e l&#8217;economia di tutta la Campania: &#8220;il Sistema&#8221; è il motore economico della Campania che non si occupa esclusivamente dei traffici illegali ma che dipana tutta la sua forza e virulenza anche nelle attività lecite. Attraverso una base di illegalità è possibile per &#8220;il Sistema&#8221; fornire servizi e attività legali in tutto il paese (e in tutto il mondo) a prezzi assolutamente concorrenziali.</p>
<p>Quando si parla di camorra l&#8217;immagine principale che se ne ha comunemente è quella della violenza (siano omicidi, rapimenti o estorsioni): Saviano invece stravolge questo luogo comune e svela che il vero potere del &#8220;Sistema&#8221; è quello economico prima ancora di quello militare.</p>
<p>Partendo esclusivamente da atti di cronaca e da indagini della magistratura (che talvolta divengono elenchi lunghissimi di nomi, luoghi e date) Saviano divide &#8220;il Sistema&#8221; in parti per poterlo esaminare in modo più analitico: si va da una divisione territoriale (Napoli, periferia di Napoli, Caserta) ad una divisione basata sulle varie specializzazione delle famiglie camorristiche (droga, rifiuti, edilizia, etc.). In questo modo l&#8217;autore riesce a mostrare l&#8217;infinita complessità e le numerose ramificazioni che &#8220;il Sistema&#8221; ha sviluppato nel corso degli anni: fa spesso impressione leggere che la tal famiglia ha interessi in Veneto o in Lombardia, che la tal altra smaltisce rifiuti pericolosi in Molise e non più solo nella martoriata Campania.</p>
<p>Ovviamente, anche per Saviano, la camorra non si riduce ad un semplice impero economico: &#8220;il Sistema&#8221; ha una sua base nella violenza e nella potenza militare. Un intero capitolo è dedicato alla guerra di Secondigliano: tra il 2004 e il 2005 ci furono diverse decine di morti ammazzati a causa di una lotta di potere tra il clan Di Lauro e &#8220;gli Scissionisti&#8221;. In un sistema dove l&#8217;ordine delle cose è dettato dalla ricchezza economica e dal potere militare sono all&#8217;ordine del giorno che i tentativi di scalata al potere: &#8220;gli Scissionisti&#8221;, che erano persone affiliate al clan Di Lauro, cercarono di staccarsi e di poter gestire in autonomia i traffici che gestivano originariamente per i Di Lauro. Tutti ricordiamo le notizie da Napoli di quel periodo e Saviano riporta tutte le morti causate da questa guerra intestina al clan Di Lauro: da giornalista come è, in stretto ordine cronologico, Saviano fa la cronaca di tutti gli avvenimenti di quel periodo a partire dai motivi della &#8220;scissione&#8221;, passando per le decine di morti, per arrivare alla fine alla pace imposta dalle altre componenti del &#8220;Sistema&#8221; ormai stufe delle luci della ribalta che avevano illuminato la periferia di Napoli in quel periodo.</p>
<p>&#8220;Il Sistema&#8221; vive e prolifica nel silenzio, senza riflettori puntati addosso: è questo il punto fondamentale del libro di Saviano. Solo parlando della camorra, solo rendendo pubblico quello che avviene in quelle zone (e ormai in tutta Italia) si riesce a fare il danno maggiore al &#8220;Sistema&#8221;: la pubblicità è quello che il sistema cerca sempre ed in ogni modo di evitare. Parlare del &#8220;Sistema&#8221; è il primo tassello, il più &#8220;semplice&#8221; ma anche efficace, per intaccare questi poteri distorti e contorti che avvelenano la vita della Campania e dell&#8217;Italia tutta.</p>
<p>Voto: 8/10</p>
<p>P.S.: Gomorra non è un romanzo. E&#8217; la cruda realtà di una situazione orribile che stiamo vivendo. Non è un libro da leggere per piacere: se io fossi un insegnante di una scuola superiore obbligherei i miei studenti a leggerlo. Sapere è il primo modo per capire e cercare di cambiare le cose.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/cultura/gomorra/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install Data Protector 6.0 on Ubuntu Linux 7.04</title>
		<link>http://www.brucalipto.org/linux/how-to-install-data-protector-60-on-ubuntu-linux-704</link>
		<comments>http://www.brucalipto.org/linux/how-to-install-data-protector-60-on-ubuntu-linux-704#comments</comments>
		<pubDate>Fri, 02 May 2008 10:53:00 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.brucalipto.org/unclassified/how-to-install-data-protector-60-on-ubuntu-linux-704</guid>
		<description><![CDATA[Yesterday I finished the installation of a new Ubuntu Linux 7.04 Feisty Fawn 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 [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.brucalipto.org/wp-content/uploads/2008/02/ubuntulogo.png" alt="Logo Ubuntu" class="alignleft" title="How to install Data Protector 6.0 on Ubuntu Linux 7.04" />Yesterday I finished the installation of a new Ubuntu Linux 7.04 Feisty Fawn 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-66"></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" class="download">here</a>.</p>
<p>Now its time to install the Disk Agent on the server you need to backup; you need to install a package that is not installed by default on the Ubuntu Linux 7.04: inetd. So, as &#8220;administrator&#8221;, execute the command:</p>
<p class="quoteCode"><strong>&gt; sudo apt-get install netkit-inetd</strong></p>
<p>to get the needed package 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>&gt; mount /dev/hda /mnt</strong></p>
<p>Now it is install time:</p>
<p class="quoteCode"><strong>&gt; cd /mnt/LOCAL_INSTALL<br />
&gt; ./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 correctly added to the inetd configuration:</p>
<p class="quoteCode"><strong>&gt; cat /etc/inetd.conf<br />
omni stream tcp nowait root /opt/omni/lbin/inet inet -log /var/opt/omni/log/inet.log</strong></p>
<p>OK&#8230; we are at the end&#8230;</p>
<p class="quoteCode"><strong>&gt; /etc/init.d/inetd restart</strong></p>
<p>and now try if the Data Protector agent answers to port 5555:</p>
<p class="quoteCode"><strong>&gt; 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="EmailOttuzziGoogle" align="right" title="How to install Data Protector 6.0 on Ubuntu Linux 7.04" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-install-data-protector-60-on-ubuntu-linux-704/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
