<?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; Tutorial</title>
	<atom:link href="http://www.brucalipto.org/tag/tutorial/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>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 Windows port forwarding" 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="icon wink Windows port forwarding" 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>1</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 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 [...]]]></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>5</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="cluster components 1 How to install a MySQL cluster on a single UNIX/Linux server " 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>26</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 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="ubuntulogo How to install Data Protector 6.0 on Ubuntu Linux 7.04" 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="ottuzzigoogle How to install Data Protector 6.0 on Ubuntu Linux 7.04" 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>3</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>
		<item>
		<title>How to install Truecrypt on Ubuntu Edgy 6.10</title>
		<link>http://www.brucalipto.org/linux/how-to-install-truecrypt-on-ubuntu-edgy-610</link>
		<comments>http://www.brucalipto.org/linux/how-to-install-truecrypt-on-ubuntu-edgy-610#comments</comments>
		<pubDate>Tue, 30 Oct 2007 11:43:34 +0000</pubDate>
		<dc:creator>apiero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/linux/how-to-install-truecrypt-on-ubuntu-edgy-610</guid>
		<description><![CDATA[This is a mini-tutorial on how to install, and use, Truecrypt 4.3a on the now venerable Ubuntu Edgy 6.10. What is truecrypt? As you can read in Truecrypt homepage: Free open-source disk encryption software for Windows Vista/XP/2000 and Linux So with Truecrypt you can encrypt you private files on a disk (on a real disk [...]]]></description>
			<content:encoded><![CDATA[<p>This is a mini-tutorial on how to install, and use, Truecrypt 4.3a on the now venerable Ubuntu Edgy 6.10.<span id="more-28"></span></p>
<h2>What is truecrypt?</h2>
<p>As you can read in <a href="http://www.truecrypt.org/" >Truecrypt homepage</a>:</p>
<p class="quoteText">Free open-source disk encryption software for Windows Vista/XP/2000 and Linux</p>
<p>So with Truecrypt you can encrypt you private files on a disk (on a real disk or on an encrypted file). This tutorial is needed because neither Truecrypt nor Scramdisk (the very useful GUI to use Truecrypt) were not already debianized in Ubuntu Edgy 6.10.</p>
<h2>Prerequisites</h2>
<p>The first thing you need is the Linux kernel source you are running:</p>
<p class="quoteCode">&gt; sudo su #we are going to work as root<br />
&gt; cd /usr/src #change to the appropriate directory<br />
&gt; apt-get source linux-image-`uname -r` #get linux sources<br />
&gt; CTRL-D #We want to leave the root user as fast as possible <img src='http://www.brucalipto.org/wp-includes/images/smilies/icon_wink.gif' alt="icon wink How to install Truecrypt on Ubuntu Edgy 6.10" class='wp-smiley' title="How to install Truecrypt on Ubuntu Edgy 6.10" /> </p>
<p>Now you&#8217;ll get you Linux sources in /usr/src.<br />
Last dependency is dmsetup:</p>
<p class="quoteCode">&gt; sudo apt-get install dmsetup #get dmsetup package from Ubuntu archives</p>
<h2>Truecrypt</h2>
<p>Now that we have all dependencies we can get, compile and install Truecrypt:</p>
<p class="quoteCode">&gt; cd /tmp #move in a working directory<br />
#download the sources<br />
&gt; wget http://www.truecrypt.org/downloads/truecrypt-4.3a-source-code.tar.gz<br />
#decompress the sources<br />
&gt; tar zxvf truecrypt-4.3a-source-code.tar.gz<br />
#move in the Linux directory<br />
&gt; cd truecrypt-4.3a-source-code/Linux/<br />
&gt; sudo su #now we need to be root<br />
&gt; ./build.sh #answer the questions and compile<br />
&gt; ./install.sh #install everything<br />
#We want to leave the root user as fast as possible <img src='http://www.brucalipto.org/wp-includes/images/smilies/icon_wink.gif' alt="icon wink How to install Truecrypt on Ubuntu Edgy 6.10" class='wp-smiley' title="How to install Truecrypt on Ubuntu Edgy 6.10" /><br />
&gt; CTRL-D</p>
<p>OK&#8230; we are almost arrived <img src='http://www.brucalipto.org/wp-includes/images/smilies/icon_smile.gif' alt="icon smile How to install Truecrypt on Ubuntu Edgy 6.10" class='wp-smiley' title="How to install Truecrypt on Ubuntu Edgy 6.10" />  Truecrypt now should be compiled and installed&#8230; let me know if something is not going as expected and I&#8217;ll try to help you out.</p>
<h2>What is scramdisk?</h2>
<p>As you can read in <a href="http://sd4l.sourceforge.net/" id="arc90_link17" class="linkthumb arc90_linkpicLNK">Scramdisk homepage</a>:</p>
<p class="quoteText"> SD4L is a suite of Linux tools and a graphical user interface (GUI) which allow the creation of, and access to ScramDisk encrypted container files. In particular, SD4L provides a Linux driver which enables mounting ScramDisk containers. ScramDisk for Linux also encrypts partitions on a hard disk or storage media such as USB sticks or floppy disks entirely as devices. Version 1.0 and later versions, moreover, support TrueCrypt containers.</p>
<p> Installing scramdisk is easy as using it: it is not packaged by Ubuntu but scramdisk developers debianized it even for the ancient Ubuntu Edgy 6.10:</p>
<p class="quoteCode">&gt; cd /tmp #move in a working directory<br />
# for 32bit systems<br />
&gt; wget http://ovh.dl.sourceforge.net/sourceforge/sd4l/ScramDisk_1.2-0_Ubuntu-6.10_2.6.17_i386.deb<br />
# for 64bit systems<br />
&gt; wget http://switch.dl.sourceforge.net/sourceforge/sd4l/ScramDisk_1.2-0_Ubuntu-6.10_2.6.17_x86_64.deb<br />
&gt; sudo dpkg -i ScramDisk_1.2-0_Ubuntu-6.10_2.6.17_*.deb #install it<br />
&gt; scramdisk #use it</p>
<h2>The end</h2>
<p>OK&#8230; hopefully everything should have worked and know you have the latest Truecrypt and the latest scramdisk installed on you PC: put them at good use <img src='http://www.brucalipto.org/wp-includes/images/smilies/icon_smile.gif' alt="icon smile How to install Truecrypt on Ubuntu Edgy 6.10" class='wp-smiley' title="How to install Truecrypt on Ubuntu Edgy 6.10" /> </p>
<p>Let me know if you encountered a problem&#8230; I&#8217;ll try to help you. Please leave a note even if you find this tutorial vaguely useful and help me to improve it.</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 Truecrypt on Ubuntu Edgy 6.10" align="right" title="How to install Truecrypt on Ubuntu Edgy 6.10" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brucalipto.org/linux/how-to-install-truecrypt-on-ubuntu-edgy-610/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

