<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>ludo's blog</title>
	<atom:link href="http://ludoa.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ludoa.wordpress.com</link>
	<description></description>
	<pubDate>Mon, 31 Mar 2008 08:32:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>A Microsoft Office horror story (or, how &#8220;powerpnt.msp&#8221; broke everything)</title>
		<link>http://ludoa.wordpress.com/2008/03/21/a-microsoft-office-horror-story-or-how-powerpntmsp-screwed-up-everything/</link>
		<comments>http://ludoa.wordpress.com/2008/03/21/a-microsoft-office-horror-story-or-how-powerpntmsp-screwed-up-everything/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 23:34:58 +0000</pubDate>
		<dc:creator>ludoa</dc:creator>
		
		<category><![CDATA[microsoft]]></category>

		<category><![CDATA[office]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://ludoa.wordpress.com/?p=11</guid>
		<description><![CDATA[Having heard (and seen) much about Microsoft Office 2007&#8217;s new UI,  when I had the opportunity to have a look at Office 2007, I popped in the cd to check it out. That turned out to be a small nightmare.Here&#8217;s the background: the system was my g/f&#8217;s, it ran Windows XP Pro and had [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Having heard (and seen) much about Microsoft Office 2007&#8217;s new UI,  when I had the opportunity to have a look at Office 2007, I popped in the cd to check it out. That turned out to be a small nightmare.<span id="more-11"></span>Here&#8217;s the background: the system was my g/f&#8217;s, it ran Windows XP Pro and had Office 2003 Pro installed. It&#8217;s the laptop she got with her job. Wanting to have a quick, vague look at Microsoft Office 2007, I started the setup, not wanting to go any further then the setup, as this wasn&#8217;t a system I wanted to install anything on.</p>
<p>The setup took a long time to load. A very, very long time. Normally, I&#8217;d worry about it, or kill it. But over the years, I, like many others, had learned that long delays were not unusual for MS&#8217;s software. So I let it run. It didn&#8217;t say much, just &#8220;loading&#8221; or something like that, no explanation of what it was doing, nothing. All I had done was start the setup, it didn&#8217;t ever ask me anything. I considered killing the process, but I didn&#8217;t want to take the risk of it leaving unpacked crap on the system, as <a href="http://www.ccleaner.com/" title="CrapCleaner homepage">CCleaner</a> wasn&#8217;t installed.</p>
<p>Apparently, Office 2007 had detected that a previous version of office was already installed, so it&#8217;d just upgrade it. My g/f not being a technical person, this was definitely not what I wanted, as the new UI would confuse her (even more so because the new UI isn&#8217;t as intuitive as the old one, IMHO).</p>
<p>No problem, I thought: I&#8217;ll just use system restore. That did vaguely restore it and removed Office 2007, but every Office 2003 application I&#8217;d try to start would give me an error message saying that it couldn&#8217;t find &#8220;powerpnt.msp&#8221;, and if I wanted to locate it. I searched the drive, but as there was no powerpnt.msp to be found, I closed the dialog. After that, the application closed as well.</p>
<p>You&#8217;d think that &#8220;powerpnt.msp&#8221; would only apply to powerpoint. Nope, it broke excel, word, powerpoint, etc., etc. Even Internet Explorer &amp; Windows Explorer would give the messages, but they&#8217;d at least still start after I closed the error message. Yet another reason why everything being so tightly integrated into Windows is detrimental.<br />
So I reinstalled Office 2007 temporarily, so that documents could at least still be modified, albeit with another interface. Office 2007 applications also gave messages about powerpnt.msp, but it&#8217;d still start, luckily.</p>
<p>After that, I went hunting for powerpnt.msp. I found many different versions of it, apparently depending on the service pack level. All versions were refused. Searching the &#8216;net didn&#8217;t turn up anything relevant, either. Posting in some forums didn&#8217;t help: the end conclusion seemed to be I had to reformat.</p>
<p>Reformat the operating system! For a malfunctioning office application! Besides that not being an option because of the system being a corporate one, that was a ridiculous thought.</p>
<p>After many fruitless attempts, I finally figured out a solution:</p>
<ol>
<li>Install  &#8220;<a href="http://support.microsoft.com/kb/290301" target="_blank">Windows Install Clean up</a>&#8220;. That didn&#8217;t go as planned - it kept complaining about not being able to access startMsi.vbs. Luckily, <a href="http://www.7-zip.org/" target="_blank">7-zip</a> was able to extract the archive, so I could start the installation manually.</li>
<li>Remove office 2003.</li>
<li>Install a &#8220;<a href="http://adranix.co.uk/" target="_blank">Product key recovery</a>&#8221; demo. This only shows the first part of the key (as it&#8217;s a demo), but it shows the user &amp; company name associated with Microsoft Office 2003 (I wanted it to completely identical).</li>
<li>Use  &#8220;<a href="http://www.magicaljellybean.com/keyfinder.shtml" target="_blank">Magical Jelly Bean Keyfinder</a>&#8221; (a free tool) to view the complete key.</li>
<li>Download Microsoft Office 2003 Professional (this being  a corporate system, I didn&#8217;t have installation cd&#8217;s) and install it using the information retrieved in steps 3 -4.</li>
<li>Install the &#8220;<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=941b3470-3ae9-4aee-8f43-c6bb74cd1466&amp;displaylang=en">Office Compatibility Pack</a>&#8220;, so Office 2007 file formats are supported (should be installed automatically through &#8220;Microsoft update&#8221;, IMHO).</li>
</ol>
<p>This was a problem that never should have happened. First, Office 2007 failed (installed itself automatically). Then, Windows System Restore failed (didn&#8217;t restore powerpnt.msp correctly). After that, Office 2003 failed (none of the applications could start because of some powerpoint file missing). And if that wasn&#8217;t enough, Internet/Windows Explorer failed as well, as it didn&#8217;t gracefully handle a file missing from an optional package.</p>
<p>Anyway, I hope this blog post can help someone who&#8217;s experiencing the same problems out.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ludoa.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ludoa.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ludoa.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ludoa.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ludoa.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ludoa.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ludoa.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ludoa.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ludoa.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ludoa.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ludoa.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ludoa.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ludoa.wordpress.com&blog=513872&post=11&subd=ludoa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ludoa.wordpress.com/2008/03/21/a-microsoft-office-horror-story-or-how-powerpntmsp-screwed-up-everything/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Moving from MD5 to Blowfish on Debian/Ubuntu</title>
		<link>http://ludoa.wordpress.com/2007/04/02/moving-from-md5-to-blowfish-on-debianubuntu/</link>
		<comments>http://ludoa.wordpress.com/2007/04/02/moving-from-md5-to-blowfish-on-debianubuntu/#comments</comments>
		<pubDate>Mon, 02 Apr 2007 21:20:18 +0000</pubDate>
		<dc:creator>ludoa</dc:creator>
		
		<category><![CDATA[debian]]></category>

		<category><![CDATA[gnu/linux]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ludoa.wordpress.com/2007/04/02/moving-from-md5-to-blowfish-on-debianubuntu/</guid>
		<description><![CDATA[By default, Debian &#38; Ubuntu use MD5 to hash your passwords. While this is relatively secure, using Blowfish instead is (much?) better.
As I&#8217;m not a cryptographer, I have no idea how much better it is. But switching is incredibly easy, and there are no downsides, AFAIK. Follow along&#8230;
First, you need to install libpam-unix2, the pam [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>By default, Debian &amp; Ubuntu use MD5 to hash your passwords. While this is relatively secure, using Blowfish instead is (much?) better.</p>
<p>As I&#8217;m not a cryptographer, I have no idea how much better it is. But switching is incredibly easy, and there are no downsides, AFAIK. Follow along&#8230;<span id="more-10"></span></p>
<p>First, you need to install libpam-unix2, the pam module which uses Blowfish. This is only an apt-get away&#8230;</p>
<p>Next, replace &#8216;pam_unix.so&#8217; by &#8216;pam_unix2.so&#8217; in /etc/pam.d/common-auth, /etc/pam.d/common-account, /etc/pam.d/common-session &amp; /etc/pam.d/common-password.</p>
<p>In /etc/pam.d/common-password, you also need to change &#8216;md5&#8242; to &#8216;blowfish&#8217;.</p>
<p>And while you&#8217;re at it, change &#8216;max=8&#8242; (still in /etc/pam.d/common-password) to something higher, like &#8216;max=20&#8242;. It is my understanding that this limits the max size of your password. While you can still use a password longer than 8 chars, it&#8217;ll just ignore everything after the 8th char.</p>
<p>Those are all the changes you need to make your system start using Blowfish. You will need to create Blowfish hashes though (obviously), so the changes only apply to newly created accounts or when you change (or re-set) your password (using &#8216;passwd&#8217;).</p>
<p>I have only basic knowledge of pam, so some of these modifications may be redundant. Or there might be an even easier way to change it - I don&#8217;t know, but these changes will most certainly make it work.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ludoa.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ludoa.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ludoa.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ludoa.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ludoa.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ludoa.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ludoa.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ludoa.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ludoa.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ludoa.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ludoa.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ludoa.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ludoa.wordpress.com&blog=513872&post=10&subd=ludoa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ludoa.wordpress.com/2007/04/02/moving-from-md5-to-blowfish-on-debianubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>upgrade only vulnerable packages with apt</title>
		<link>http://ludoa.wordpress.com/2006/12/29/upgrade-only-vulnerable-packages-with-apt/</link>
		<comments>http://ludoa.wordpress.com/2006/12/29/upgrade-only-vulnerable-packages-with-apt/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 20:30:19 +0000</pubDate>
		<dc:creator>ludoa</dc:creator>
		
		<category><![CDATA[debian]]></category>

		<category><![CDATA[gnu/linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ludoa.wordpress.com/2006/12/29/upgrade-only-vulnerable-packages-with-apt/</guid>
		<description><![CDATA[Since I&#8217;m using Debian Sid (unstable), every now and then, some stuff gets broken. I have no problem with that &#8212; using Sid, it&#8217;s expected behaviour. However, sometimes I *really* don&#8217;t have time for a broken setup, so I quit upgrading for a week or so.
The problem will be clear already to most: what with [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Since I&#8217;m using Debian Sid (unstable), every now and then, some stuff gets broken. I have no problem with that &#8212; using Sid, it&#8217;s expected behaviour. However, sometimes I *really* don&#8217;t have time for a broken setup, so I quit upgrading for a week or so.</p>
<p>The problem will be clear already to most: what with security-wise vulnerabe packages? What if that SSH version I&#8217;m not installing in fact contains a fix for a remote root exploit I&#8217;m not aware of?</p>
<p><span id="more-9"></span></p>
<p>So I went looking for a solution, and thought I&#8217;d found one in the <a href="http://www.enyo.de/fw/software/debsecan/" target="_blank">debsecan</a> package. Here&#8217;s debsecan&#8217;s description, from <a href="http://packages.debian.org/unstable/admin/debsecan" target="_blank">Debian&#8217;s page of the package</a>:</p>
<blockquote><p>&#8220;<em>debsecan is a tool to generate a list of vulnerabilities which affect a particular Debian installation.  debsecan runs on the host which is to be checked, and downloads vulnerability information over the Internet.  It can send mail to interested parties when new vulnerabilities are discovered or when security updates become available.</em>&#8220;</p></blockquote>
<p>However, that&#8217;s really all it does: it just reports the package. It doesn&#8217;t upgrade them. It doesn&#8217;t even only show packages for which updates are available. It also duplicates packages a lot in the list as multiple vulnerabilities apply to them, so without using cut/awk in combination with uniq, it&#8217;s not really easy to get a clear overview of what needs upgrading.</p>
<p>So I set out to write a small bash script which, with the help of debsecan, would simply upgrade what packages it can. Also, it won&#8217;t upgrade packages which are marked as &#8220;on hold&#8221;. For instance, I have an old version of ettercap installed, since I&#8217;m not used to the total functionality overhaul which happened somewhere post 0.6.b. I thought it&#8217;d interest other Debian/Ubuntu users, so here it is:</p>
<p><code>#!/usr/bin/env bash</code><br />
<code></code><br />
<code># BASH script created by Ludo &lt;ludo dot aelbrecht at gmail dot com&gt;</code><br />
<code># released under the GNU General Public License version 2.</code><br />
<code></code><br />
<code>#set -x #for debugging output</code><br />
<code></code><br />
<code>function checkfile()</code><br />
<code>{</code><br />
<code>        for i in "$@"; do</code><br />
<code>                which $i &amp;&gt; /dev/null</code><br />
<code></code><br />
<code>                if [ ! "$?" -eq 0 ]; then</code><br />
<code>                        echo "error: missing $i. please install it, or check its permissions."</code><br />
<code>                        exit 1</code><br />
<code>                fi</code><br />
<code>        done</code><br />
<code>}</code><br />
<code></code><br />
<code>checkfile debsecan apt-get #our dependencies</code><br />
<code></code><br />
<code>#we need a list of all the packages which security vulnerabilities:</code><br />
<code>pkgs=$(debsecan --format packages | uniq)</code><br />
<code>pkgs=$(for i in $pkgs; do echo -n "$i "; done)</code><br />
<code></code><br />
<code>#we need a list of packages which are marked 'hold' - i.e. not allowed to upgrade</code><br />
<code>hold_list=$(dpkg --get-selections|grep hold | awk '{print $1}')</code><br />
<code></code><br />
<code>#we remove the held back packages from the list of vulnerable packages:</code><br />
<code>for i in $hold_list; do</code><br />
<code>        pkgs=$(echo $pkgs | sed -e "s/$i //")</code><br />
<code>done</code><br />
<code></code><br />
<code>apt-get install $pkgs</code><br />
<code></code><br />
<code>exit 0</code></p>
<p>Hope someone can use this. (For those who don&#8217;t know, just save this in a file, chmod +x it, and place it somewhere in your $PATH, e.g. /usr/bin.)</p>
<p>Edit: aww great, wordpress doesn&#8217;t even preserve the indentation when I use &lt;code&gt; tags. AFAIK this shouldn&#8217;t matter for bash script, though. I&#8217;ve gotta say I&#8217;m very, very dissapointed by WP (not just for this reason). Makes me wonder if Blogspot wouldn&#8217;t have been the way to go.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ludoa.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ludoa.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ludoa.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ludoa.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ludoa.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ludoa.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ludoa.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ludoa.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ludoa.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ludoa.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ludoa.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ludoa.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ludoa.wordpress.com&blog=513872&post=9&subd=ludoa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ludoa.wordpress.com/2006/12/29/upgrade-only-vulnerable-packages-with-apt/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alky project dead?</title>
		<link>http://ludoa.wordpress.com/2006/11/28/alky-project-dead/</link>
		<comments>http://ludoa.wordpress.com/2006/11/28/alky-project-dead/#comments</comments>
		<pubDate>Tue, 28 Nov 2006 13:37:13 +0000</pubDate>
		<dc:creator>ludoa</dc:creator>
		
		<category><![CDATA[gnu/linux]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://ludoa.wordpress.com/2006/11/28/alky-project-dead/</guid>
		<description><![CDATA[A few months back, the Alky Project was announced. It got quite some attention in the media, blogs, etc., like this digg thread for example. The idea was the following: convert Windows binaries, so they would run on Mac and, in a later stage, on GNU/Linux. It was claimed that those converters were mostly working [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A few months back, the Alky Project was announced. It got quite some attention in the media, blogs, etc., like this <a href="http://digg.com/programming/Converting_Windows_executables_to_Mac_OS_X_or_Linux_binaries" target="_blank">digg thread</a> for example. The idea was the following: convert Windows binaries, so they would run on Mac and, in a later stage, on GNU/Linux. It was claimed that those converters were mostly working already, the only thing left was implement the libraries. This, of course, is an enormous work. But looking in its forum, the progress seemed there - the coders were actively working on it. The promises from <a href="http://daeken.blogspot.com">the project&#8217;s founder</a> were great:</p>
<p><span id="more-8"></span></p>
<blockquote><p><em><a href="http://daeken.blogspot.com/2006/05/my-vision.html">My goal for the next 5 years is simple: Any piece of software, any platform you choose.</a></em></p></blockquote>
<p>Now, however, the <a href="http://www.alkyproject.com/" target="_blank">Alky website</a> is dead. Since at least a week, until yesterday, it redirected to an apache &#8220;It works!&#8221; message. I was hoping the website was just temporarily offline, but now I&#8217;m more and more convinced the project&#8217;s dead. Which is a shame, really. Of course, there was never much hope this would work, but imagine if it did&#8230;</p>
<p>(If anyone has information about the project, if it just changed names or why it died or whatever, feel free to share.)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ludoa.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ludoa.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ludoa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ludoa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ludoa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ludoa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ludoa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ludoa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ludoa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ludoa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ludoa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ludoa.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ludoa.wordpress.com&blog=513872&post=8&subd=ludoa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ludoa.wordpress.com/2006/11/28/alky-project-dead/feed/</wfw:commentRss>
		</item>
		<item>
		<title>tora with oracle on debian/ubuntu &#8212; prebuilt package</title>
		<link>http://ludoa.wordpress.com/2006/11/08/tora-with-oracle-on-debianubuntu-prebuilt-package/</link>
		<comments>http://ludoa.wordpress.com/2006/11/08/tora-with-oracle-on-debianubuntu-prebuilt-package/#comments</comments>
		<pubDate>Wed, 08 Nov 2006 13:06:53 +0000</pubDate>
		<dc:creator>ludoa</dc:creator>
		
		<category><![CDATA[debian]]></category>

		<category><![CDATA[gnu/linux]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[sql]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ludoa.wordpress.com/2006/11/08/tora-with-oracle-on-debianubuntu-prebuilt-package/</guid>
		<description><![CDATA[I&#8217;ve received much more requests for the prebuilt package than I originally thought &#8212; apparently this problem affects many people. As such, I&#8217;ve put the .deb package online: you can get it here.
This does raise the question however whether a tora-oracle package shouldn&#8217;t be available in Debian&#8217;s non-free section, like seems to have been done [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve received much more requests for the prebuilt package than I originally thought &#8212; apparently this problem affects many people. As such, I&#8217;ve put the .deb package online: you can <a href="http://rootshell.be/~ludoa/tora-with-oracle_1.3.21-3_i386.deb" target="_blank">get it here</a>.</p>
<p><span id="more-5"></span>This does raise the question however whether a tora-oracle package shouldn&#8217;t be available in Debian&#8217;s non-free section, like seems to have been done with RPMs. I would think it doesn&#8217;t pose any <a href="http://www.debian.org/social_contract" target="_blank">licensing</a> issues. Unless of course such a package includes some of Oracle&#8217;s library files, but doesn&#8217;t it only link against them? I could be way off here though.<br />
Should the package give you any troubles, I&#8217;d be interested to know (<em>see my &#8216;<a href="http://ludoa.wordpress.com/about/" target="_blank">about</a>&#8216; page for my e-mail address, or leave a comment</em>). If it works, I&#8217;m also interested. Especially whether it works on  <a href="http://www.ubuntu.com/" title="Ubuntu homepage" target="_blank">Ubuntu</a> as well would be interesting to know &#8212; although I don&#8217;t see a reason why not.</p>
<p>(For those who haven&#8217;t read my <a href="http://ludoa.wordpress.com/2006/11/01/tora-with-oracle-on-debian/" target="_blank">previous entry</a>: it contains instructions to build the package yourself, if that&#8217;s more your thing.)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ludoa.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ludoa.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ludoa.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ludoa.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ludoa.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ludoa.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ludoa.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ludoa.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ludoa.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ludoa.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ludoa.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ludoa.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ludoa.wordpress.com&blog=513872&post=5&subd=ludoa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ludoa.wordpress.com/2006/11/08/tora-with-oracle-on-debianubuntu-prebuilt-package/feed/</wfw:commentRss>
		</item>
		<item>
		<title>tora with oracle on debian</title>
		<link>http://ludoa.wordpress.com/2006/11/01/tora-with-oracle-on-debian/</link>
		<comments>http://ludoa.wordpress.com/2006/11/01/tora-with-oracle-on-debian/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 02:21:58 +0000</pubDate>
		<dc:creator>ludoa</dc:creator>
		
		<category><![CDATA[debian]]></category>

		<category><![CDATA[gnu/linux]]></category>

		<category><![CDATA[oracle]]></category>

		<category><![CDATA[sql]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ludoa.wordpress.com/2006/11/01/tora-with-oracle-on-debian/</guid>
		<description><![CDATA[Update: I&#8217;ve posted a new blog entry which contains the prebuilt package I mentioned.
Doing this is a mess. Oracle is non-free (as in freedom, not as in beer) so it can&#8217;t be included decently into Debian. It took me a few weeks to do is (not non-stop, of course, but I had to try it [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Update: </strong><em>I&#8217;ve posted a <a href="http://ludoa.wordpress.com/2006/11/08/tora-with-oracle-on-debianubuntu-prebuilt-package/" title="tora with oracle on debian/ubuntu — prebuilt package" target="_blank">new blog entry</a> which contains the prebuilt package I mentioned.</em></p>
<p>Doing this is a mess. Oracle is <a href="http://www.fsf.org/licensing/essays/free-sw.html" target="_blank">non-free</a> <em>(as in freedom, not as in beer)</em> so it can&#8217;t be included decently into <a href="http://www.debian.org" target="_blank">Debian</a>. It took me a few weeks to do is (not non-stop, of course, but I had to try it a couple of times). It&#8217;s a very a frustrating process &#8212; at least it was in my experience.</p>
<p><span id="more-3"></span></p>
<p><strong>Why</strong> you would want this: because Oracle&#8217;s SQLplus is ridiculous on GNU/Linux, and <a href="http://www.oracle.com/technology/products/database/sql_developer/index.html" target="_blank">SQL Developer</a> (the only decent alternative I&#8217;m aware of, besides TOra) uses Java, which makes it &#8220;sluggish&#8221; on my system to say the least. There&#8217;s also Andi Albrecht&#8217;s <a href="http://cf.andialbrecht.de/" target="_blank">CrunchyFrog</a> which looked *extremely* promising, but Oracle currently isn&#8217;t supported in the latest version (because of a rewrite). I hope the developer&#8217;s still working on it, because it seemed really cool. The site is down for the moment though. I still have the older version lying around somewhere which did support Oracle, but IIRC I couldn&#8217;t get it working. Didn&#8217;t spend a lot of time on it though. So: TOra.</p>
<p><strong>The problem</strong>: while Debian provides a package for TOra, it doesn&#8217;t include support for Oracle (because of the aforementioned licensing issues). You can compile it from scratch, but chances are the compilation won&#8217;t work right away. Here, I&#8217;ll describe how to modify the Debian package so that it does support TOra. These steps can be applied to standard compilation as well.</p>
<p><strong>The solution:</strong></p>
<p>First of all, there&#8217;s also an <strong>easy way</strong>: you can e-mail (<em>ludo dot aelbrecht at gmail dot com</em>)<em> </em>me, I&#8217;ll send you my tora-with-oracle_1.3.21-3_i386.deb. Or if you have an AMD Athlon XP CPU, I even have an optimized deb file.</p>
<p><strong>And here&#8217;s the hard way&#8230;</strong></p>
<p>First: add Oracle&#8217;s Debian repository to your /etc/apt/sources.list:<br />
<code>#oracle oss repository, contains Oracle XE<br />
deb http://oss.oracle.com/debian unstable main non-free</code></p>
<p>Next, install these: oracle-xe and oracle-xe-client. See also <a href="http://www.togaware.com/linux/survivor/Oracle_Database.html" target="_blank">http://www.togaware.com/linux/survivor/Oracle_Database.html</a> - you need to install libaio. I mention this because it seems to have been a cause of trouble for some people. It didn&#8217;t pose a problem on my box though.<br />
To clarify: oracle-xe-client is *only* the client, oracle-xe is *only* the server. For tora, you only need the client, obviously. Unless you have a remote Oracle server at your disposure, you won&#8217;t get far without the server though.</p>
<p>apt-get build-dep tora #get the dependencies to build it from source<br />
cd /some/dir/to/put/sources<br />
apt-get source tora #this will drop the source into your current dir<br />
cd tora-&lt;version&gt;/</p>
<p>vim debian/rules #or whatever you favorite editor is<br />
Edit the ./configure line: add &#8220;&#8211;with-instant-client&#8221; to specify you want oracle. Make sure it also reads &#8220;&#8211;without-kde&#8221;, or it won&#8217;t work. Don&#8217;t remember the exact cause, but I believe you can find it in TOra&#8217;s <a href="http://sourceforge.net/forum/?group_id=16636" target="_blank">forums</a> or its <a href="http://sourceforge.net/mailarchive/forum.php?forum=tora-develop" target="_blank">mailing list archives</a>. Though I&#8217;ve seen someone reporting a working TOra with KDE + Oracle, so this might just be an old bug or whatever. Feel free to find out yourself.<br />
debian/rules binary #this command builds it, but it probably won&#8217;t work.</p>
<p>(Optionally see these 3 URLs about building it:<br />
<a href="http://gudangberas.wordpress.com/2006/08/08/rebuilding-tora-with-oracle-support/" target="_blank">http://www.benpinter.net/article.php?story=20051208034638928<br />
http://gudangberas.wordpress.com/2006/08/08/rebuilding-tora-with-oracle-support/</a><br />
<a href="http://ubuntuforums.org/showthread.php?t=189381&amp;page=2" target="_blank">http://ubuntuforums.org/showthread.php?t=189381&amp;page=2</a>)</p>
<p>The ubuntu URL has the clue: we need to specify &#8211;with-oracle-includes &amp; -with-oracle-libraries.</p>
<p>Go to <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html" target="_blank">Oracle&#8217;s instantclient download page for GNU/Linux</a>.<br />
Get these:<br />
*Instant Client Package - SQL*Plus (instantclient-sqlplus-linux32-10.2.0.2-20060331.zip)<br />
*Instant Client Package - Basic (instantclient-basic-linux32-10.2.0.2-20060331.zip)<br />
*Instant Client Package - SDK (instantclient-sdk-linux32-10.2.0.2-20060331.zip)<br />
Unzip them in some dir (all in the same dir). They will overwrite some files - it&#8217;s okay, we just want the extra files they provide.<br />
Say you unzipped them in /usr/src/oracle, then now you have a dir called /usr/src/oracle/instantclient_10_2/ with all the files in.</p>
<p>Go back to modifying debian/rules&#8217;s ./configure line.<br />
The line should look like this:<br />
<code>./configure --prefix=/usr --with-instant-client --without-rpath --disable-new-check --without-kde --with-oracle-includes=/usr/src/oracle/instantclient_10_2/sdk/include/ --with-oracle-libraries=/usr/src/oracle/instantclient_10_2 --enable-libsuffix=</code></p>
<p><em>We&#8217;re almost there.</em></p>
<p>You need an &#8220;/etc/oracle/tnsnames.ora&#8221;.<br />
Mine looks like this for Oracle XE (express edition), which is the one you get for free (if you have another version, I suppose you know how that file works):</p>
<p><code># tnsnames.ora Network Configuration File:<br />
#!!!IMPORTANT: dax is my hostname, change it to yours.</code></p>
<p>XE =<br />
(DESCRIPTION =<br />
(ADDRESS = (PROTOCOL = TCP)(HOST = dax)(PORT = 1521))<br />
(CONNECT_DATA =<br />
(SERVER = DEDICATED)<br />
(SERVICE_NAME = XE)<br />
)<br />
)</p>
<p>EXTPROC_CONNECTION_DATA =<br />
(DESCRIPTION =<br />
(ADDRESS_LIST =<br />
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))<br />
)<br />
(CONNECT_DATA =<br />
(SID = PLSExtProc)<br />
(PRESENTATION = RO)<br />
)<br />
)</p>
<p>You also need to set $ORACLE_HOME correctly. For compiling, you need to set it to the client&#8217;s dir, not the server.<br />
Two options:<br />
(1) Find the directory to set it to. Mine is /usr/lib/oracle/xe/app/oracle/product/10.2.0/client, so I just run: export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client<br />
(2) Run this script: /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/oracle_env.sh (or do a &#8220;locate oracle_env.sh&#8221; if it&#8217;s not there for you, and make sure you select the script from the client dir, not from the server dir).<br />
Last (I promise!), you need LD_LIBRARY set correctly:<br />
<code>export LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/:/usr/src/oracle/instantclient_10_2/:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/:$LD_LIBRARY_PATH</code><br />
Then run ldconfig. (Yes, I know that that LD path is probably overkill, chances are only the first directory is needed, but after all I&#8217;ve been through to get here, I really don&#8217;t want to find out which dirs are optional. I frankly couldn&#8217;t care less. (Well actually I could - I&#8217;m a geek after all. I just don&#8217;t want to go through all the crap once more to find out. So if anyone knows, feel free to e-mail me.))</p>
<p>Now you can do a &#8220;debian/rules binary&#8221; to compile it. This should produce a .deb file.</p>
<p>It&#8217;s possible the compilation fails on producing an occi. Check config.log for the error. If it&#8217;s about clntsh: you need to symbolically link libclntsh.so to libclntsh.so.xx.x. Do a &#8220;locate clntsh&#8221;, and create the links everywhere the file appears. See also <a href="http://www.redhat.com/archives/rhl-list/2004-December/msg07767.html" target="_blank">http://www.redhat.com/archives/rhl-list/2004-December/msg07767.html</a>.</p>
<p>After fixing that, do another &#8220;debian/rules binary&#8221;. Everything should work now. If you still encounter problems, feel free to contact me.</p>
<p>Install the .deb and start TOra. Select Oracle as the type (obviously), and as the database name pick XE (unless you used something else in tnsnames.ora, I guess). Of course the Oracle daemon should be running by now, so if it isn&#8217;t yet, you should run /etc/init.d/oracle-xe to start it. Use &#8220;sysv-rc-conf&#8221; to make it load at boottime (or to disable it from starting at boottime).</p>
<p>Other stuff you can consult if it doesn&#8217;t work out, or for general information (there&#8217;s no logic in the order below, I&#8217;m just adding everything from my oracle / tora browsing session):</p>
<p><a href="http://www.rittman.net/2004/02/24/has-anyone-got-tora-124-on-linux-working-against-oracle-database-10g/" target="_blank">http://www.rittman.net/2004/02/24/has-anyone-got-tora-124-on-linux-working-against-oracle-database-10g/</a><br />
<a href="http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm" target="_blank"> http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm</a><br />
<a href="http://www.puschitz.com/" target="_blank"> http://www.puschitz.com/</a><br />
<a href="http://bits-and-bytes.blogspot.com/2005/10/frustrating-toraqt-bug.html" target="_blank"> http://bits-and-bytes.blogspot.com/2005/10/frustrating-toraqt-bug.html</a><br />
<a href="http://sourceforge.net/forum/forum.php?max_rows=25&amp;style=ultimate&amp;offset=25&amp;forum_id=52737" target="_blank"> http://sourceforge.net/forum/forum.php?max_rows=25&amp;style=ultimate&amp;offset=25&amp;forum_id=52737</a><br />
<a href="http://sourceforge.net/mailarchive/forum.php?forum_id=2595" target="_blank"> http://sourceforge.net/mailarchive/forum.php?forum_id=2595</a><br />
<a href="http://tldp.org/HOWTO/archived/Oracle-8-HOWTO/" target="_blank"> http://www.sage.org/pubs/13_oracle/<br />
http://tldp.org/HOWTO/archived/Oracle-8-HOWTO/</a><a href="http://www.sage.org/pubs/13_oracle/" target="_blank"></a><br />
<a href="http://rpmseek.com/rpm-pl/tora-oracle.html?hl=com&amp;cx=2201:T:0" target="_blank">http://rpmseek.com/rpm-pl/tora-oracle.html?hl=com&amp;cx=2201:T:0</a> (Here you can find TOra RPMs with Oracle support - you can try converting them using alien, but I didn&#8217;t have much luck at that.)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ludoa.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ludoa.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ludoa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ludoa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ludoa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ludoa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ludoa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ludoa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ludoa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ludoa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ludoa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ludoa.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ludoa.wordpress.com&blog=513872&post=3&subd=ludoa&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ludoa.wordpress.com/2006/11/01/tora-with-oracle-on-debian/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>