<?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>Honza's perspective</title>
	<atom:link href="http://blog.stastnarodina.com/honza-en/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stastnarodina.com/honza-en</link>
	<description></description>
	<lastBuildDate>Mon, 03 May 2010 09:30:45 +0000</lastBuildDate>
	<language>cs</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rational Team Concert Workflow Visualiser</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/rational-team-concert-workflow-visualiser/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/rational-team-concert-workflow-visualiser/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 12:51:06 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Rational Team Concert]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[workflow visualiser]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=114</guid>
		<description><![CDATA[
<p>Overview Workflow Visualiser is a tool that takes the RTC process
configuration XML and exports graphical representation of the workflows included
in the configuration. Motivation The most typical task I'm facing at new RTC
deployments is analysis of their workflow and its implementation in RTC. The
usual procedure is: Meet with the customer to try to […]</p>

<!-- by Texy2! -->]]></description>
			<content:encoded><![CDATA[
<div><img
src="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2010/04/Info-48.png"
alt="" title="Info-48" width="48" height="48"
class="alignleft size-full wp-image-156" /></div>

<h3>Overview</h3>

<p><a
href="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2010/04/cz.ibm_.workflow.releaseRequest.png"><img
src="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2010/04/cz.ibm_.workflow.releaseRequest-164x300.png"
alt="Example workflow diagram" title="Example workflow" width="164" height="300"
class="alignright size-medium wp-image-120" /></a> <strong>Workflow
Visualiser</strong> is a tool that takes the <a
href="http://jazz.net/projects/rational-team-concert/">RTC</a> process
configuration XML and exports graphical representation of the workflows included
in the configuration.</p>

<h3>Motivation</h3>

<p>The most typical task I'm facing at new RTC deployments is analysis of their
workflow and its implementation in RTC. The usual procedure is:</p>

<ol>
	<li>Meet with the customer to try to understand the workflow (states,
	transitions)</li>

	<li>Draw the workflow in Microsoft Visio and discuss the Visio files with
	customer</li>

	<li>Implement the workflow in RTC</li>
</ol>

<p>This would be all great it there wasn't number 4 – implement the changes
the customer finds after the implementation in RTC, which usually repeats
several times. In this moment the Visio diagrams and the RTC implementation get
out of sync and it is not easy to keep them synchronized. <em>Workflow
Visualiser</em> helps in this step as I can export the <em>real</em> diagram
and either send it to the customer for review or redraw it in Visio.</p>

<p>Another case in which this tool comes handy are big workflows (with 10&lt;
states). Although the transition table in RTC workflow designer is
straightforward, checking such a workflow is not an easy task. Seeing a
graphical representation of the workflow makes it clear.</p>

<div><img
src="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2010/04/Help-48.png"
alt="" title="Help-48" width="48" height="48"
class="alignleft size-full wp-image-157" /></div>

<h3>Running the program</h3>

<p>The program has to be invoked from command line and the command line
arguments are:</p>

<pre><code>Usage: java -jar visualiser.jar [options] source-xml-file
 Options:
  -h|--help Print help and exit
  --version Print help and exit
  -d|--dot Location of dot executable (defaults to /usr/bin/dot)
  -o|--out Output directory (defaults to /tmp/)
  -f|--format Output format (see the output formats of dot) (defaults to pdf)
  -s|--source Save the DOT source file in the output directory</code></pre>

<h4>Examples</h4>

<h5>Windows example PDF</h5>

<ul>
	<li>JAR stored in C:\visualiser.jar</li>

	<li>Process XML configuration file saved in process.xml</li>

	<li>Graphviz installed in standard location</li>

	<li>Export diagrams in PDF format to „C:\temp“</li>
</ul>

<pre><code>java -jar "C:\visualiser.jar" -o "C:\temp" -d "C:\Program Files\Graphviz2.26.3\bin\dot.exe" process.xml</code></pre>

<hr />

<h5>Windows example PNG</h5>

<ul>
	<li>JAR stored in C:\visualiser.jar</li>

	<li>Process XML configuration file saved in process.xml</li>

	<li>Graphviz installed in standard location</li>

	<li>Export diagrams in PNG format to „C:\temp“</li>
</ul>

<pre><code>java -jar "C:\visualiser.jar" -o "C:\temp" -d "C:\Program Files\Graphviz2.26.3\bin\dot.exe" -f png process.xml</code></pre>

<hr />

<h5>Linux example</h5>

<ul>
	<li>JAR stored in ~/visualiser.jar</li>

	<li>Process XML configuration file saved in process.xml</li>

	<li>Graphviz installed in standard location (/usr/bin/dot)</li>

	<li>Export diagrams in PDF format to ~/diagrams</li>
</ul>

<pre><code>java -jar ~/visualiser.jar -o ~/diagrams process.xml</code></pre>

<div><img
src="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2010/04/Box-download-48.png"
alt="Download" title="Box-download-48" width="48" height="48"
class="alignleft size-full wp-image-154" /></div>

<h3>Download</h3>

<h4>Prerequisites</h4>

<p>The program uses <a href="http://www.graphviz.org/">Graphviz</a> for diagram
drawing. You must have <a href="http://www.graphviz.org/">Graphviz</a> installed
on your computer to be able to run the program. It can be freely downloaded
from <a
href="http://www.graphviz.org/Download.php">http://www.graphviz.org/Download.php</a></p>

<h4>Binary</h4>

<p><a
href="http://storage.stastnarodina.com/workflow-visualiser/visualiser.jar">Download
Runnable JAR</a></p>

<h4>Source code</h4>

<p><a
href="http://storage.stastnarodina.com/workflow-visualiser/source/visualiser.zip">ZIP
with sources</a> includes pom.xml including the Maven project dependencies.</p>

<h4>License</h4>

<p>Pro program is distributed under <a
href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version
2.0</a>. For the license agreement of the used libraries see the appropriate
license agreement included in the distribution.</p>

<div><img
src="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2010/04/Clipboard-2-48.png"
alt="" title="Clipboard-2-48" width="48" height="48"
class="alignleft size-full wp-image-159" /></div>

<h3>Version history</h3>

<ul>
	<li><strong>2010–04–09</strong> Initial version</li>

	<li><strong>2010–04–09.2</strong> Resolution edges corrected</li>
</ul>

<div><img
src="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2010/04/Comment-48.png"
alt="" title="Comment-48" width="48" height="48"
class="alignleft size-full wp-image-158" /></div>

<h3>Comments, bug reports</h3>

<p>Any comments or bug reports are welcome. Send them either in the comments
under this article or via email to <a
href="mailto:honza&#64;stastnarodina.com">honza&#64;<!---->stastnarodina.com</a></p>

<!-- by Texy2! -->]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/rational-team-concert-workflow-visualiser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RQM on 64bit Ubuntu</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/rqm-on-64bit-ubuntu/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/rqm-on-64bit-ubuntu/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 02:32:03 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rational Team Concert]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jazz]]></category>
		<category><![CDATA[rqm]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=103</guid>
		<description><![CDATA[
<p>I installed IBM Rational Quality Manager 2.0.0.1 on the same machine as
I installed Rational Requirements Composer before. Some steps from installation
tips may be needed. The official product documentation does not give the exact
DB2 command line command. If you use the command from RTC manual, the table
creation will fail. This is caused by the pagesize […]</p>
]]></description>
			<content:encoded><![CDATA[
<p>I installed IBM Rational Quality Manager 2.0.0.1 on the same machine as
I installed Rational Requirements Composer before. Some steps from <a
href="http://blog.stastnarodina.com/honza-en/spot/rrc-on-64bit-ubuntu/">installation
tips</a> may be needed.</p>

<p>The <a
href="http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/index.jsp">official
product documentation</a> does not give the exact DB2 command line command. If
you use the command from RTC manual, the table creation will fail. This is
caused by the pagesize being too small. Use this command to create the database
instead:</p>

<blockquote>
	<p>db2 create database RQM using codeset UTF-8 territory en PAGESIZE 16384</p>
</blockquote>

<!-- by Texy2! -->]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/rqm-on-64bit-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RRC on 64bit Ubuntu</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/rrc-on-64bit-ubuntu/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/rrc-on-64bit-ubuntu/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 17:30:43 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rational Team Concert]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jazz]]></category>
		<category><![CDATA[rrc]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=88</guid>
		<description><![CDATA[
<p>Another post, where the main audience is me :) Installation To install IBM
Rational Requirements Composer 2.0.0.1 on 64bit Linux, you need 32bit libraries
installed. Strange error message is displayed otherwise when trying to run the
installer: root@rtc:/opt/rrc-install/RRCS_SE­TUP/InstallerI­mage_linux#
./install bash: ./install: No such file or directory To install the needed
libraries run: apt-get install ia32-libs The […]</p>
]]></description>
			<content:encoded><![CDATA[
<p>Another post, where the main audience is me :)</p>

<h3>Installation</h3>

<p>To install IBM Rational Requirements Composer 2.0.0.1 on 64bit Linux, you
need 32bit libraries installed. Strange error message is displayed otherwise
when trying to run the installer:</p>

<pre>root@rtc:/opt/rrc-install/RRCS_SETUP/InstallerImage_linux# ./install
bash: ./install: No such file or directory</pre>

<p>To install the needed libraries run:</p>

<blockquote>
	<p>apt-get install ia32-libs</p>
</blockquote>

<p>The installation should run successfully after this.</p>

<h3>Startup</h3>

<p>RRC needs swt-gtk to run. Install it by:</p>

<blockquote>
	<p>apt-get install libswt-gtk-3.4-jni</p>
</blockquote>

<p>In addition, RRC needs a X screen to start. There is an <a
href="http://www-01.ibm.com/support/docview.wss?uid=swg21410023">IBM
Technote</a> with solution for RHEL and Suse. To install Xvfb on Ubuntu do:</p>

<blockquote>
	<p>apt-get install xvfb</p>
</blockquote>

<p>The rest of the procedure (starting the server) is the same as on RHEL or
SLES (see the <a
href="http://www-01.ibm.com/support/docview.wss?uid=swg21410023">technote</a>).</p>

<p>The server is started by server.startup. This script has to be called from
its directory – you need to cd first. The init script can look for example
like this:</p>

<pre>#!/bin/bash
#
# rrc        Startup script for the RRC
#
# chkconfig: - 90 16
# description: Rational Requirements composer  \
# processname: java
# pidfile: /var/run/rrc.pid
#

prog=rrc
pidfile=${PIDFILE-/var/run/rrc.pid}
lockfile=${LOCKFILE-/var/lock/rrc}
rrchome=/opt/rrc/server
RETVAL=0

start() {
        echo -n $"Starting $prog: "
        # export GTK_PATH=/usr/lib32/gtk-2.0
        Xvfb :1 -screen 0 800x600x24&amp;
        cd ${rrchome}
        DISPLAY=localhost:1.0 ./server.startup
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] &amp;&amp; touch ${lockfile}
        return $RETVAL
}

stop() {
        echo -n $"Stopping $prog: "
        ${rrchome}/server.shutdown
        RETVAL=$?
        killall Xvfb
        echo
        [ $RETVAL = 0 ] &amp;&amp; rm -f ${lockfile} ${pidfile}
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        status $prog
        RETVAL=$?
        ;;
  restart)
        stop
        start
        ;;
  *)
        echo $"Usage: $prog {start|stop|restart}"
        RETVAL=3
esac

exit $RETVAL</pre>

<hr />

<p>OS details: Ubuntu 9.04, Server edition, 64bit</p>

<!-- by Texy2! -->]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/rrc-on-64bit-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IBM Installation Manager RHEL 4 64bit</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/ibm-installation-manager-rhel-4-64bit/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/ibm-installation-manager-rhel-4-64bit/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 20:48:32 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=83</guid>
		<description><![CDATA[
<p>I'm currently installing Jazz CALM solution on CentOS 4 64bit (equivalent to
RHEL 4 64bit). I got stuck when installing both Rational Quality Manager (RQM)
and Rational Requirements Composer (RRC). Both need to be installed via IBM
Installation Manager. RRC installation package includes IBM Installation
Manager, whereas RQM doesn't. To install IBM Installation manager on
64bit […]</p>
]]></description>
			<content:encoded><![CDATA[
<p>I'm currently installing Jazz CALM solution on CentOS 4 64bit (equivalent to
RHEL 4 64bit). I got stuck when installing both Rational Quality Manager (RQM)
and Rational Requirements Composer (RRC). Both need to be installed via IBM
Installation Manager. RRC installation package includes IBM Installation
Manager, whereas RQM doesn't.</p>

<p>To install IBM Installation manager on 64bit RHEL 4 you first need to
install these:</p>

<pre><code>yum install gtk2.i386 libgcc.i386</code></pre>

<p>I first installed libgcc.i386 only to get rid of the error message</p>

<blockquote>
	<p>libgcc_s.so.1 must be installed for pthread_cancel to work</p>
</blockquote>

<p>After this, there was no error message, but the installer returned exit code
13 (which I haven't found documented anywhere). Installing 32bit gtk library
solved the problem.</p>

<p>The IBM Installation Manager itself can be downloaded from <a
href="ftp://public.dhe.ibm.com/software/rationalsdp/v7/im/">ftp://public.dhe.ibm.com/…alsdp/v7/im/</a></p>

<p>I hope this helps somebody save some time of desperate googling for
solution…</p>

<!-- by Texy2! -->]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/ibm-installation-manager-rhel-4-64bit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RTC 2.0 on Ubuntu</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/rtc-2-0-on-ubuntu/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/rtc-2-0-on-ubuntu/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 15:22:31 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rational Team Concert]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=70</guid>
		<description><![CDATA[
<p>Environment RTC Server version: 2.0.0.1 OS: Ubuntu 9.04, 64bit. Server
edition HW: VMWare guest, 64bit, 1GB RAM Problem Installation of Rational Team
Concert is in general as easy as unzipping the downloaded archive. I did this
recently on Ubuntu 9.04 64bit, server edition. Later I have encountered errors
when generating any report (for example Floating License Report). […]</p>
]]></description>
			<content:encoded><![CDATA[
<h3>Environment</h3>

<ul>
	<li><strong>RTC Server version:</strong> 2.0.0.1</li>

	<li><strong>OS:</strong> Ubuntu 9.04, 64bit. Server edition</li>

	<li><strong>HW:</strong> VMWare guest, 64bit, 1GB RAM</li>
</ul>

<h3>Problem</h3>

<p>Installation of Rational Team Concert is in general as easy as unzipping the
downloaded archive. I did this recently on Ubuntu 9.04 64bit, server edition.
Later I have encountered errors when generating any report (for example
Floating License Report). I got this message:</p>

<pre><code>CREATE_EXTENSION_FAIL ( 1 time(s) )
 detail : org.eclipse.birt.report.engine.api.EngineException: CREATE_EXTENSION_FAIL
 at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1121)
 ....</code></pre>

<p>The <a href="http://jazz.net/forums/viewtopic.php?p=18754#18754">post at
jazz.net forums</a> suggested, that there are missing libraries required by file
<code>*/jazz/server/jre/bin/­libfontmanager­.so</code> You can find out which
libraries are missing by running</p>

<blockquote>
	<p>ldd jazz/server/jre/bin/­libfontmanager­.so</p>
</blockquote>

<p>My output was:</p>

<pre><code>linux-vdso.so.1 =&gt;  (0x00007fff5efad000)
libdl.so.2 =&gt; /lib/libdl.so.2 (0x00007fc04eed9000)
libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x00007fc04ecbd000)
libwrappers.so =&gt; not found
libawt.so =&gt; not found
libstdc++.so.5 =&gt; not found
libm.so.6 =&gt; /lib/libm.so.6 (0x00007fc04ea36000)
libX11.so.6 =&gt; /usr/lib/libX11.so.6 (0x00007fc04e72f000)
libc.so.6 =&gt; /lib/libc.so.6 (0x00007fc04e3bd000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc04f26f000)
libxcb.so.1 =&gt; /usr/lib/libxcb.so.1 (0x00007fc04e1a0000)
libXau.so.6 =&gt; /usr/lib/libXau.so.6 (0x00007fc04df9d000)
libXdmcp.so.6 =&gt; /usr/lib/libXdmcp.so.6 (0x00007fc04dd98000)</code></pre>

<h3>Solution</h3>

<p>The system library that was missing in my system (using default installation
of Ubuntu 9.04 64bit, Server edition) was <strong>libstdc++.so.5</strong>. This
library is included in the package <strong>libstdc++5</strong>. It can be
installed by running:</p>

<blockquote>
	<p>apt-get install libstdc++5</p>
</blockquote>

<p>The RTC server has to be restarted afterwards.</p>

<blockquote>
	<p>jazz/server/ser­ver.shutdown jazz/server/ser­ver.startup</p>
</blockquote>

<!-- by Texy2! -->]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/rtc-2-0-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu: change default encryption algorithm</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/ubuntu-change-default-encryption-algorithm/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/ubuntu-change-default-encryption-algorithm/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 23:58:08 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[sha512]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=63</guid>
		<description><![CDATA[
<p>While fighting with DB2 denying logins I had to change the default hash
algorithm used to store passwords in /etc/shadow. As far as I know (and as grep
-i -r „sha512“ /etc/* tells me ), there are two files that carry this
information. Namely /etc/pam.d/common-password and /etc/login.defs. To change
the algorithm from sha512 (which shifts as the […]</p>
]]></description>
			<content:encoded><![CDATA[
<p>While fighting with <a
href="http://blog.stastnarodina.com/honza-en/spot/db2-sql30082n-security-processing-failed-with-reason-15/">DB2
denying logins</a> I had to change the default hash algorithm used to store
passwords in /etc/shadow.</p>

<p>As far as I know (and as <code>grep -i -r "sha512" /etc/*</code> tells me
<img
src="http://blog.stastnarodina.com/honza-en/wp-includes/images/smilies/icon_smile.gif"
alt=":-)" class="smiley" /> ), there are two files that carry this information.
Namely <code>/etc/pam.d/common-password</code> and
<code>/etc/login.defs</code>.</p>

<p>To change the algorithm from sha512 (which shifts as the default in the new
Ubuntu releases) change this:</p>

<h3>/etc/pam.d/common-password</h3>

<blockquote>
	<p>password [success=1 default=ignore] pam_unix.so obscure sha512</p>
</blockquote>

<p>to</p>

<blockquote>
	<p>password [success=1 default=ignore] pam_unix.so obscure md5</p>
</blockquote>

<h3>/etc/login.defs</h3>

<blockquote>
	<p>ENCRYPT_METHOD SHA512</p>
</blockquote>

<p>to</p>

<blockquote>
	<p>ENCRYPT_METHOD MD5</p>
</blockquote>

<!-- by Texy2! -->]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/ubuntu-change-default-encryption-algorithm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HOWTO: add disk to VMware Ubuntu guest without reboot using LVM</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/howto-add-disk-to-vmware-ubuntu-guest-without-reboot-using-lvm/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/howto-add-disk-to-vmware-ubuntu-guest-without-reboot-using-lvm/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 13:39:03 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=46</guid>
		<description><![CDATA[
<p>This howto is mostly built on the great tutorial available at <a
href="http://www.comnetslash.com/">http://www.comnetslash.com/</a>…hout-reboot/.
My spot tries to be more Ubuntu and LVM specific. This manual was tested on
Ubuntu 9.04 (jaunty) Server edition guest OS. Add Virtual Hard Disk A new hard
disk can be added easily to a running virtual machine in VMWare Infrastructure
Web Access by […]</p>
]]></description>
			<content:encoded><![CDATA[
<p>This howto is mostly built on the great tutorial available at <a
href="http://www.comnetslash.com/2009/06/11/howto-vmware-add-disk-space-to-live-linux-guest-without-reboot/">http://www.comnetslash.com/…hout-reboot/</a>.
My spot tries to be more Ubuntu and LVM specific. This manual was tested on
Ubuntu 9.04 (jaunty) Server edition guest OS.</p>

<h3>Add Virtual Hard Disk</h3>

<p><img
src="http://blog.stastnarodina.com/honza-en/wp-content/uploads/2009/07/add-disk11-150x150.png"
alt="add-disk1" title="add-disk1" width="150" height="150"
class="alignleft size-thumbnail wp-image-48" /> A new hard disk can be added
easily to a running virtual machine in VMWare Infrastructure Web Access by
clicking Add Hardware and following the wizard.</p>

<p>Note: I assume that all of the commands given are run under superuser (root)
rights. To become root type</p>

<pre><code>sudo su root</code></pre>

<h3>Detect new SCSI Disk</h3>

<p>The package <a
href="http://packages.ubuntu.com/jaunty/scsitools">scsitools</a> provides the
script rescan-scsi-bus.sh, which does exacly what we need. Install it and
run it:</p>

<pre><code>apt-get install scsitools
rescan-scsi-bus.sh</code></pre>

<p>This should detect the newly added hard disk and make it available in
<code>/dev/</code> – <code>/dev/sdb</code> in the case you are adding a new
drive for the first time. The output of <code>fdisk -l</code> should include the
newly detected disk.</p>

<h3>Format the new disk</h3>

<p>Format the newly detected drive using fdisk</p>

<pre><code>fdisk /dev/sdb
    n (for new partition)
    p (for primary partition)
    1 (partition number)
    (keep the other values default)
    w (write changes)</code></pre>

<p>Change the type of the partition to LVM Linux:</p>

<pre><code>fdisk /dev/sdb
    t (change the partition type)
    8e (for Linux LVM)
    w (write changes)</code></pre>

<h3>LVM</h3>

<h4>Initialize LVM Physical Volume</h4>

<pre><code>pvcreate /dev/sdb1</code></pre>

<h4>Add Physical Volume to Volume Group</h4>

<p>List the Volume groups available at your machine.</p>

<pre><code>vgdisplay</code></pre>

<p>Replace <em>VolGroupName</em> with what you read from the output of the last
command.</p>

<pre><code>vgextend VolGroupName /dev/sdb1</code></pre>

<p>You should see the newly aquired free space in the output of</p>

<pre><code>vgdisplay</code></pre>

<h4>Resize Logical Volumes</h4>

<p>After adding some free space to your Volume Group, you can distribute it to
the Logical Volumes. The list of Logical Volumes can be obtained by running</p>

<pre><code>lvdisplay</code></pre>

<p>Run the following commands for each Logical Volume you want to resize (add
space to). Again – replace <em>/dev/VolGroupNa­me/Name</em> with the Logical
Volume name you can read from the output of the last command. The <em>+10G</em>
means <em>Add 10 GB</em></p>

<pre><code>lvextend -L +10G /dev/VolGroupName/Name</code></pre>

<p>The last step is to resize the ext3 filesystem (use different tool is you use
different filesystem):</p>

<pre><code>resize2fs /dev/VolGroupName/Name</code></pre>

<!-- by Texy2! -->]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/howto-add-disk-to-vmware-ubuntu-guest-without-reboot-using-lvm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Shibboleth Ubuntu</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/shibboleth-ubuntu/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/shibboleth-ubuntu/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 11:18:38 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shibboleth]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=40</guid>
		<description><![CDATA[
<p>SP2 Installation I switched one server from Fedora Core to Ubuntu yesterday.
Shibboleth 2 SP installation is a bit more tricky under Ubuntu than Fedora
Core. The packages are not available in the Ubuntu repositories, but
Satya's blog serves a working howto. failed to bind to socket Shibboleth seemed
to be working well after installation, but today it […]</p>
]]></description>
			<content:encoded><![CDATA[
<h3>SP2 Installation</h3>

<p>I switched one server from Fedora Core to Ubuntu yesterday. Shibboleth 2 SP
installation is a bit more tricky under Ubuntu than Fedora Core. The packages
are not available in the Ubuntu repositories, but Satya's blog serves <a
href="http://www.thesatya.com/blog/2009/06/shibboleth2.html">a working
howto</a>.</p>

<h3>failed to bind to socket</h3>

<p>Shibboleth seemed to be working well after installation, but today it was
down dumping</p>

<blockquote>
	<p>2009–06–23 12:51:53 ERROR Shibboleth.Listener : socket call resulted in
	error (2): no message 2009–06–23 12:51:53 CRIT Shibboleth.Listener : failed
	to bind to socket.</p>
</blockquote>

<p>into the <code>/var/log/shibboleth/shibd.log</code>. I luckily found a
solution in quite a short time. The problem was that the shibd was trying to
create socket in <code>/var/run/shibboleth</code> directory, which did not
exist. Creating it once does not help because Ubuntu removes content of
<code>/var/run/</code> at every reboot. <strong>To fix it this has to be added
to <code>/etc/init.d/shibd</code></strong></p>

<pre>if [ ! -e /var/run/shibboleth ]
then
   mkdir /var/run/shibboleth
fi</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/shibboleth-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DB2: SQL30082N  Security processing failed with reason &#8220;15&#8243;</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/db2-sql30082n-security-processing-failed-with-reason-15/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/db2-sql30082n-security-processing-failed-with-reason-15/#comments</comments>
		<pubDate>Mon, 11 May 2009 21:51:04 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=18</guid>
		<description><![CDATA[
<p>If you are getting SQL30082N Security processing failed with reason „15“
(„PROCESSING FAILURE“) when connecting to the db2 database using db2 CONNECT
TO dbname USER username or Connection authorization failure occurred. Reason:
Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000 when
connecting remotely (via JDBC driver) read on. I finally found what causes this
error and a solution! […]</p>
]]></description>
			<content:encoded><![CDATA[
<p>If you are getting</p>

<blockquote>
	<p>SQL30082N Security processing failed with reason „15“ („PROCESSING
	FAILURE“)</p>
</blockquote>

<p>when connecting to the db2 database using <code>db2 CONNECT TO dbname USER
username</code> or</p>

<blockquote>
	<p>Connection authorization failure occurred. Reason: Local security service
	non-retryable error. ERRORCODE=-4214, SQLSTATE=28000</p>
</blockquote>

<p>when connecting remotely (via JDBC driver) read on. I finally found what
causes this error and <strong>a solution</strong>!</p>

<p>[ad]</p>

<h3>Environment</h3>

<ul>
	<li><strong>OS:</strong> Fedora Core 10 64bit</li>

	<li><strong>DB2:</strong> version 9.5, Express edition</li>

	<li>See <a href="#ubuntu">lower for the solution for Ubuntu</a></li>
</ul>

<h3>Problem</h3>

<p>Tho whole problem is in the format of the passwords in
<code>/etc/shadow</code>. DB2 doesn't seem to like the passwords generated when
changing password using the standard <code>passwd</code> command. In Fedora Core
10 the password is hashed using sha-512 and the entry for user
<em>username</em> looks like:</p>

<blockquote>
	<p>username:$6$ef­WWOYRY$z5DNL1kLQ­U4AmPkFBqbQh6LOh­0Qjxq654dS9jE46iP­Np8Zces8I4bP8GLZ3G3RWLo/­6o.LYOV5neYSKxXbL­.M1:14375:0:99999:7:::</p>
</blockquote>

<h3>Solution</h3>

<p>DB2 works fine with passwords hashed with standard crypt function. Password
in the desired format can be obtained by calling <code>openssl passwd
desiredPassword</code>. The output of openssl can be passed to <code>usermod
--password</code> The complete command to change user's password then
look like:</p>

<blockquote>usermod --password `openssl passwd <em>desiredPassword</em>`
<em>usename</em></blockquote>

<h3>Bigger image</h3>

<p>I tried to hand-edit /etc/shadow and insert salted MD5 password, which can
be obtained by <code>openssl passwd -1 desiredPassword</code> and the connection
was sucessfuly established. To sum it up, the whole problem in the end seems to
be that DB2 doesn't like SHA-512 hashes in /etc/shadow. On the other hand, it
works fine with hashes generated by <code>crypt</code> and MD5.</p>

<h3>Changing default algorithm in Fedora Core</h3>

<p>Fedora Core contains a nice tool <code>authconfig</code>. To change the
default hashing algorithm to MD5 run</p>

<blockquote>
	<p>authconfig –passalgo md5 –update</p>
</blockquote>

<p>All the passwords inserted in the password database will be stored in MD5
from now on. It will, of course, not change the hashes of the current
passwords.</p>

<h3 id="ubuntu">Ubuntu</h3>

<p>Ubuntu ships with sha512 as default hash algorithm for passwords in
<code>/etc/shadow</code>. The easiest way to change the default algorithm is to
edit the file /etc/pam.d/common-password and change the line that reads</p>

<blockquote>
	<p>password [success=1 default=ignore] pam_unix.so obscure sha512</p>
</blockquote>

<p>to</p>

<blockquote>
	<p>password [success=1 default=ignore] pam_unix.so obscure md5</p>
</blockquote>

<p>The information about the algorith is also included in the file
<code>/etc/login.defs</code>, which is used by <code>chpasswd</code> for
example. Therefore change the line</p>

<blockquote>
	<p>ENCRYPT_METHOD SHA512</p>
</blockquote>

<p>to</p>

<blockquote>
	<p>ENCRYPT_METHOD MD5</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/db2-sql30082n-security-processing-failed-with-reason-15/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to install DB2 Express on Fedora Core 9</title>
		<link>http://blog.stastnarodina.com/honza-en/spot/how-to-install-db2-express-on-fedora-core-9/</link>
		<comments>http://blog.stastnarodina.com/honza-en/spot/how-to-install-db2-express-on-fedora-core-9/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 08:48:20 +0000</pubDate>
		<dc:creator>honza</dc:creator>
				<category><![CDATA[Rational Team Concert]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[jazz]]></category>

		<guid isPermaLink="false">http://blog.stastnarodina.com/honza-en/?p=16</guid>
		<description><![CDATA[
<p>I got 2 errors while installing DB2 Express that comes with Rational Team
Concert. Two libraries were missing: libstdc++.so.5 ER­ROR: The required
library file libstdc++.so.5 is not found on the system. Solution: (thanks <a
href="http://tldp.org/">http://tldp.org/</a>…fedora6.html) yum -y install
compat-libstdc++-33 libaio.so.1 ER­ROR: The required library file
libaio++.so.1 is not found on the system. Solution: yum -y install libaio</p>
]]></description>
			<content:encoded><![CDATA[
<p>I got 2 errors while installing DB2 Express that comes with Rational Team
Concert. Two libraries were missing:</p>

<h3>libstdc++.so.5</h3>

<pre>ERROR:
The required library file libstdc++.so.5 is not found on the system.</pre>

<p><strong>Solution:</strong> (thanks <a
href="http://tldp.org/HOWTO/DB2-HOWTO/fedora6.html">http://tldp.org/…fedora6.html</a>)</p>

<pre>yum -y install compat-libstdc++-33</pre>

<h3>libaio.so.1</h3>

<pre>ERROR:
The required library file libaio++.so.1 is not found on the system.</pre>

<p><strong>Solution:</strong></p>

<pre>yum -y install libaio</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.stastnarodina.com/honza-en/spot/how-to-install-db2-express-on-fedora-core-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
