<?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>Tork Wrench &#187; ubuntu</title>
	<atom:link href="http://www.torkwrench.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.torkwrench.com</link>
	<description>Things I learnt today, working on IBM Lotus Web Content Management.</description>
	<lastBuildDate>Tue, 17 Aug 2010 06:50:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>5 Steps to installing Portal 6.1.5 on Ubuntu 9.10</title>
		<link>http://www.torkwrench.com/2009/12/07/5-steps-to-installing-portal-6-1-5-on-ubuntu-9-10/</link>
		<comments>http://www.torkwrench.com/2009/12/07/5-steps-to-installing-portal-6-1-5-on-ubuntu-9-10/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 04:06:20 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[WebSphere Application Server]]></category>
		<category><![CDATA[WebSphere Portal]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=163</guid>
		<description><![CDATA[Here's how to install Portal 6.1.5 on Ubuntu 9.10  <a href="http://www.torkwrench.com/2009/12/07/5-steps-to-installing-portal-6-1-5-on-ubuntu-9-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Another new version of Portal, another new version of Ubuntu . Here&#8217;s how to get them to play nicely together. Most of these steps are needed for any recent version of Ubuntu. Obligatory disclaimer, Ubuntu is a non supported platform, so don&#8217;t run anything important on this it. IBM support won&#8217;t help you!</p>
<p>1. Install libstdc++5 from <a href="http://packages.ubuntu.com/jaunty/libstdc++5">here</a>. Apparently this has been dropped from karmic (9.10) but you can use 9.04 packages instead and it will work.</p>
<p>2. Make sure you can ping yourself on the fully qualified hostname that you will be using in the install. This is a good general tip for installing Portal. If the machine doesn&#8217;t respond, add an alias in your /etc/hosts file, like this:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">127.0.0.1 &nbsp; localhost yourhostname yourhostname.fullyqualified.com</div></div>
<p>Also think about disabling any firewalls . The install process needs to be able to connect to certain ports running on your machine.<br />
If you let the install run all the way through, and then re enable your firewall after, debugging and adding new firewall exceptions should be way easier. </p>
<p>3. <a href="http://www.torkwrench.com/wp-content/uploads/2009/12/redhat-release">Drop this file in /etc .</a> It will make AppServer think that you are running RHEL<br />
5,  which is a supported OS.</p>
<p>4. Unlink /bin/sh and link it to /bin/bash, like this:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /bin<br />
unlink sh<br />
ln -s /bin/bash sh</div></div>
<p><a href="http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu"><br />
Here&#8217;s a more detailed post about why you need to do this, if you are interested.</a></p>
<p>5. Don&#8217;t use sudo ./install.sh, but rather execute sudo su and then run ./install.sh . The installer executes a ConfigEngine.sh task late in the install, and if you use sudo to execute install.sh, the installer will attempt to run the ConfigEngine task as your logged in user, not as root, and the task will fail. </p>
<p>I think you should also be able to run the install as a non root user, I just haven&#8217;t tried it yet, I will post back when I have.</p>
<p>These steps also work with 6101. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/12/07/5-steps-to-installing-portal-6-1-5-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating a Virtualbox guest machine from a physical machine</title>
		<link>http://www.torkwrench.com/2009/09/16/creating-a-virtualbox-guest-machine-from-a-physical-machine/</link>
		<comments>http://www.torkwrench.com/2009/09/16/creating-a-virtualbox-guest-machine-from-a-physical-machine/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 23:49:40 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=144</guid>
		<description><![CDATA[How to create a virtual machine from a physical machine using a Linux live CD and VirtualBox. <a href="http://www.torkwrench.com/2009/09/16/creating-a-virtualbox-guest-machine-from-a-physical-machine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a  Lenovo T60 , which I run Notes and Sametime on. It&#8217;s a nice machine but a pain to have to carry home every day if I want to work at home. </p>
<p><a href="http://www.troyastle.com/">Another guy in the office </a>mentioned that he had converted his work laptop into a VM, so he could work at home on his nice quick desktop machine. I run Ubuntu 9.04 on the laptop and Windows 7 at home.</p>
<p>The T60 has a pretty hectic partitioning scheme, LVM, ext4, encrypted partitions, the whole works. This procedure handled it all. It makes a &#8216;bit for bit&#8217; copy of the drive, and I knew it should work, but am happy it did anyway.</p>
<p>Here&#8217;s how to do it:</p>
<p>1. Boot up using a live cd. I used an Ubuntu 9.04 disk.<br />
2. Grab a external drive bigger that the entire internal drive. The T60 hard drive is only 100GB, so this wasn&#8217;t hard.<br />
3. Use fdisk -l to figure out which drive is which. My internal drive was /dev/sda and the external was /dev/sdb<br />
4. Mount the external drive, if it isn&#8217;t mounted. Let&#8217;s say it&#8217;s mounted at /media/external<br />
5. Run</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;dd if=/dev/sda of=/media/external/drive.img bs=4096</div></div>
<p>If you don&#8217;t have an external drive, <a href="http://www.zdnetasia.com/techguide/disasterrecovery/0,39044895,61955438,00.htm">you could use netcat or scp or something</a>, and send the drive image over the wire instead. It&#8217;ll just be much slower. </p>
<p>6. Reboot the laptop, you don&#8217;t need it anymore.<br />
7. Copy drive.img to the host machine. I&#8217;m running Virtual Box 3.06 on Windows 7.<br />
8. Run this command to convert the raw disk image to a Virtual Box drive image file.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">C:\Program Files\Sun\VirtualBox&gt;VBoxManage.exe convertfromraw \<br />
&nbsp;c:\drive.img c:\users\&lt;username&gt;\.VirtualBox\Machines\laptop\drive.vdi</div></div>
<p>9. Create a new Virtual Box Guest in the usual way, and point it to the vdi file. I used a SATA controller since my laptop has one, but not sure if this matters or not.<br />
10. Boot up your new guest machine. </p>
<p>Hey presto, it&#8217;s the same! Now I don&#8217;t have to carry my laptop home anymore. It seems to run a bit slower than the native machine, but that&#8217;s to be expected.</p>
<p>This would probably work for a Windows physical machine too, although I think you&#8217;d want to add an extra step at the beginning. On the Windows laptop, set the IDE controller to use the Microsoft driver, rather than your default driver before you take the image. That way, when the guest OS boots up, it will have access to a &#8216;lowest common denominator&#8217; disk driver.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/09/16/creating-a-virtualbox-guest-machine-from-a-physical-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERRORCODE=-4214, SQLSTATE=28000 from DB2 on Ubuntu</title>
		<link>http://www.torkwrench.com/2009/05/04/errorcode-4214-sqlstate28000-from-db2-on-ubuntu/</link>
		<comments>http://www.torkwrench.com/2009/05/04/errorcode-4214-sqlstate28000-from-db2-on-ubuntu/#comments</comments>
		<pubDate>Mon, 04 May 2009 06:36:46 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=59</guid>
		<description><![CDATA[Connection authorization failure occurred.  Reason: Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000 is a common error when using DB2 on newer versions of Ubuntu. This post describes how to fix this problem. <a href="http://www.torkwrench.com/2009/05/04/errorcode-4214-sqlstate28000-from-db2-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Two posts in one day, wow. It&#8217;s all part of our special series: how to install and configure WebSphere Portal 6.1 on Ubuntu. This isn&#8217;t a Portal only issue, rather it&#8217;s a DB2+Ubuntu issue.</p>
<p>After getting Portal installed on this Ubuntu machine, you&#8217;re probably going to want to transfer the default Derby database to something more robust like DB2. So you edit wkplc_comp.properties and wkplc_dbtype.properties, and start to run:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">./ConfigEngine.sh create-database</div></div>
<p>And you get this in the ConfigTrace.log</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; [sqlproc] action: execute-sql-scripts<br />
&nbsp; [sqlproc] _________________________________________________________<br />
&nbsp; [sqlproc] Database autocommit parameter true<br />
&nbsp; [sqlproc] No delimiter has been specified, using [;] to separate the SQL statements.<br />
&nbsp; [sqlproc] Reading file /opt/WebSphere/wp_profile/ConfigEngine/config/database/work/db2/createBufferpools.run<br />
&nbsp; [sqlproc] Could not connect to database<br />
&nbsp; [sqlproc] com.ibm.db2.jcc.b.ao: [jcc][t4][2010][11246][3.53.70] Connection authorization failure occurred. &nbsp;Reason: Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000<br />
BUILD FAILED</div></div>
<p>Hmm, ok, I thought db2 was working. A good habit when debugging these things is to take the piece that ConfigEngine is trying run and run it independently. So right now I want ConfigEngine to create an empty db2 database that I can run database-transfer against. Try this:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">su - db2inst1<br />
db2 create db WP610 using codeset UTF8 territory au pagesize 8192</div></div>
<p>And that comes back successfully. However, that command sequence is not an accurate representation of what ConfigEngine is actually doing. We&#8217;re running ConfigEngine as root. But the ConfigEngine script is using the &#8220;user db2inst1 using
<password>&#8221; modifiers on the end of the database create command. So how about this?</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">db2 create db WP610 using codeset UTF8 territory au pagesize 8192 user db2inst1 using password<br />
SQL30082N &nbsp;Security processing failed with reason &quot;15&quot; (&quot;PROCESSING FAILURE&quot;). <br />
SQLSTATE=08001</div></div>
<p>Ah ha, a failure. In the first example, DB2 already trusts the user that we&#8217;re logged is as (db2inst1), so it doesn&#8217;t need to go back to the operating system and authenticate it. In the second example, we are logged in as root, so db2 needs to go to the operating system and authenticate the user. Ubuntu uses the tried and true passwd + shadow file combo to store usernames and their associated passwords. The trouble is since Ubuntu 8.10, it uses the newer and more secure SHA512 hashing function to store the passwords, and DB2 doesn&#8217;t understand SHA512. So the workaround is to change the hashing function in use on the machine, reset the password and then we should be able to use the &#8220;user db2inst1 using
<password>&#8221; type commands again.</p>
<p>Open /etc/pam.d/common-password in a text editor and change this line:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">password &nbsp; &nbsp; &nbsp; &nbsp;[success=1 default=ignore] &nbsp; &nbsp; &nbsp;pam_unix.so obscure&lt;strong&gt; sha512&lt;/strong&gt;</div></div>
<p>to</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">password &nbsp; &nbsp; &nbsp; &nbsp;[success=1 default=ignore] &nbsp; &nbsp; &nbsp;pam_unix.so obscure &lt;strong&gt;md5&lt;/strong&gt;</div></div>
<p>Then run passwd db2inst1 and put the same or a new password. If you look at the shadow file , the hash will change from something like this:<br />
SHA512</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">db2inst1:$6$IKe6x6Zq$bSajPzHNIy7jQrPXbI8CrPRlpDYUVm8.A2BhNCxes5cY6LWoh7hQr14XW4agBWbW1ywKkSSDSLFV.NXCr2/1z0:14368:0:99999:7:::</div></div>
<p>MD5</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">db2inst1:$1$FF0YDtZn$gemqCKt4Ml375mhiBXk2U/:14368:0:99999:7:::</div></div>
<p>(The unencrypted password here is &#8216;password&#8217; &#8211; don&#8217;t get too excited!) .</p>
<p>Now try running <strong>ConfigEngine.sh create-database</strong> again. It should work. Make sure you change the system /etc/pam.d/common-password back to sha512, as you want the rest of your users to use this hashing function as it is more secure than md5sum . Hopefully DB2 should address this in a fixpack.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/05/04/errorcode-4214-sqlstate28000-from-db2-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting WebSphere Portal to install on Ubuntu</title>
		<link>http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/</link>
		<comments>http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/#comments</comments>
		<pubDate>Mon, 04 May 2009 04:32:20 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[6.0]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[Portal 6.1]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[WebSphere Application Server]]></category>
		<category><![CDATA[WebSphere Portal]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=52</guid>
		<description><![CDATA[Portal 6.1 will not install on Ubuntu out of the box. Here's how to fix it. <a href="http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, ok, I know Ubuntu isn&#8217;t supported by IBM, but if you&#8217;re a developer, and you run Ubuntu on your laptop and would like to run Portal on there too, here&#8217;s how you do it. This should work for Debian too . I guess this isn&#8217;t really a Portal only problem, rather it&#8217;s a general Application Server + Ubuntu issue.  I&#8217;ve only tried this with 6.1, but it is probably an issue with 6.0 as well, since it uses similar profile creation code.</p>
<p>For some reason Ubuntu, ships a shell called &#8216;dash&#8217; as their default, rather than good old bash. <a href="https://wiki.ubuntu.com/DashAsBinSh">(Well, they have their reasons.) </a> This presents a problem for App Server, as all the scripts in AppServer/bin use #!/bin/sh (the Bourne shell) as their command interpreter, which on a Redhat machine is symlinked to /bin/bash . The reason why AppServer uses the Bourne shell is that it needs to work on AIX and Solaris too, and you can&#8217;t be sure that you have bash on one of those machines.</p>
<p>If you try to call wsadmin.sh on an Ubuntu system you get this error :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/opt/WebSphere/AppServer/bin/wsadmin.sh: 116: Bad substitution</div></div>
<p>Now, when you&#8217;re installing Portal, it installs AppServer, and then calls the manageprofile.sh script to create the default profile for Portal  &#8220;wp_profile&#8221; . Manageprofile.sh calls a bunch of ant scripts that needs to use wsadmin.sh (you can see where I&#8217;m going here&#8230;.) .  You might notice in AppServer/log/wp_profile_create.log messages like this :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;message&gt;Checking for wsadmin listener initialization&lt;/message&gt;<br />
&lt;message&gt;Is wsadmin listener available? ? false&lt;/message&gt;<br />
&lt;message&gt;Returning with returnCode=-1&lt;/message&gt;<br />
&lt;message&gt;Failure detected in fatal config action.&lt;/message&gt;<br />
&lt;message&gt;wsadmin failed with exception = wsadmin task failed with return code :-1&lt;/message&gt;</div></div>
<p>It actually hangs for 20 minutes waiting for wsadmin to start! </p>
<p>So how do you fix it? Simply, before you install it, unlink /bin/sh -> /bin/dash , and relink so it reads /bin/sh -> /bin/bash</p>
<p>Carefully:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /bin<br />
unlink sh<br />
ln -s /bin/bash sh</div></div>
<p>Now the install should run properly. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
