<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Exception: null - Linux</title>
    <link>http://exceptionnull.net/</link>
    <description>The blog of Robert Berg</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.1-beta6 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Music player daemon</title>
    <link>http://exceptionnull.net/index.php?/archives/17.Music-player-daemon.html</link>
            <category>Linux</category>
    
    <comments>http://exceptionnull.net/index.php?/archives/17.Music-player-daemon.html#comments</comments>
    <wfw:comment>http://exceptionnull.net/wfwcomment.php?cid=17</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://exceptionnull.net/rss.php?version=2.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    

    <author>nospam@example.com (Robert Berg)</author>
    <content:encoded>
    I wanted to play audio on my home computer using a daemon. The best things about that are that you don&#039;t need a graphical interface and you can easily control it remotely. I was a bit struggeling with the &lt;a href=&quot;http://wiki.xmms2.xmms.se/index.php/Design_of_XMMS2&quot;&gt;xmms2d&lt;/a&gt; to make this all work, when I discovered that the &lt;a href=&quot;http://www.musicpd.org/&quot;&gt;mpd&lt;/a&gt; project was way ahead of xmms2. I also have a Nokia 770, and I looking around a bit I found &lt;a href=&quot;http://maemo.org/maemowiki/HowToAudioRemoteWithMpd&quot;&gt;this description&lt;/a&gt; on how to setup the whole thing.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu there is the mpd package, which you just have to apt-get. But I couldn&#039;t find &lt;a href=&quot;http://www.musicpd.org/phpMp.shtml&quot;&gt;phpMp&lt;/a&gt; in the repository. I always have apache2 running with php, and &lt;a href=&quot;http://www.musicpd.org/phpMp.shtml&quot;&gt;downloading, installing and configuring phpMp&lt;/a&gt; was really easy. In &lt;code&gt;/etc/mpd.conf&lt;/code&gt; you can change the location of where your mp3 files are (mpd doesn&#039;t play wma but I don&#039;t keep them around anyway). If you go there with your browser, you&#039;re ready to run the update of your music database, which will be filled with the files in your music directory. Then all you music will appear in your browser. With a Nokia 770 go to the webapp and play your music.&lt;br /&gt;
&lt;br /&gt;
To control mpd from you desktop or laptop, there is the gnome client gmpc, also in Ubuntu&#039;s repository. It&#039;s a very basic player which doesn&#039;t have a lot of features. But enough for my needs.&lt;br /&gt;
&lt;br /&gt;
The Ubuntu repository also contains the command line client &lt;code&gt;mpc&lt;/code&gt;. I installed that one to run a crontab to wake me up every morning on weekdays. Just make it run &lt;code&gt;mpc play&lt;/code&gt;. Unfortunately I haven&#039;t found a way to do a fade in with the volume. The alarm plugin of xmms made me wake up a lot more friendly. 
    </content:encoded>

    <pubDate>Sun, 11 Feb 2007 14:33:30 +0100</pubDate>
    <guid isPermaLink="false">http://exceptionnull.net/index.php?/archives/17.guid.html</guid>
    
</item>
<item>
    <title>Renaming files to lower case</title>
    <link>http://exceptionnull.net/index.php?/archives/15.Renaming-files-to-lower-case.html</link>
            <category>Linux</category>
    
    <comments>http://exceptionnull.net/index.php?/archives/15.Renaming-files-to-lower-case.html#comments</comments>
    <wfw:comment>http://exceptionnull.net/wfwcomment.php?cid=15</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://exceptionnull.net/rss.php?version=2.0&amp;type=comments&amp;cid=15</wfw:commentRss>
    

    <author>nospam@example.com (Robert Berg)</author>
    <content:encoded>
    &lt;p&gt;Perl is not something I am good at, but shell scripts are even worse in my case. I needed to have a list of files renamed to lower case and it took me more than half an hour to come up with this:&lt;/p&gt;

&lt;br clear=&quot;all&quot; /&gt;
&lt;code&gt;find . | perl -n -e &#039;chomp; $a=$_;
$_ =~ tr/[A-Z]/[a-z]/; 
rename($a,$_);&#039;&lt;/code&gt;

&lt;p&gt;Why would you need Java when you can do it this easily in Perl?&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 02 Feb 2007 17:25:21 +0100</pubDate>
    <guid isPermaLink="false">http://exceptionnull.net/index.php?/archives/15.guid.html</guid>
    
</item>
<item>
    <title>WebSphere Portal 6 on Ubuntu (continued)</title>
    <link>http://exceptionnull.net/index.php?/archives/2.WebSphere-Portal-6-on-Ubuntu-continued.html</link>
            <category>Linux</category>
            <category>WebSphere Portal</category>
    
    <comments>http://exceptionnull.net/index.php?/archives/2.WebSphere-Portal-6-on-Ubuntu-continued.html#comments</comments>
    <wfw:comment>http://exceptionnull.net/wfwcomment.php?cid=2</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://exceptionnull.net/rss.php?version=2.0&amp;type=comments&amp;cid=2</wfw:commentRss>
    

    <author>nospam@example.com (Robert Berg)</author>
    <content:encoded>
    &lt;a href=&quot;index.php?/archives/1.WebSphere-Portal-6-on-Ubuntu.html&quot;  title=&quot;WebSphere Portal 6 on Ubuntu&quot;&gt;Yesterday&lt;/a&gt; I learned that it&#039;s not possible to install WebSphere Portal 6 on a Ubuntu Edgy 6.10 box. But today I managed to get around it! I found out that the failure with the creation of the profile was due to a malfunctioning &lt;code&gt;wsadmin.sh&lt;/code&gt;. In the logs it said that it gave a syntax error, and that&#039;s really strange, because that would mean somebody at IBM has been writing bad code.&lt;br /&gt;
&lt;br /&gt;
It turns out that that is exactly the case. The people at Ubuntu have changed the default link of &lt;code&gt;sh&lt;/code&gt;. &lt;a href=&quot;https://wiki.ubuntu.com/DashAsBinSh&quot;&gt;In Ubuntu Edgy it doesn&#039;t point to &lt;code&gt;bash&lt;/code&gt; anymore&lt;/a&gt;, but it points to &lt;code&gt;dash&lt;/code&gt;. That means that code written specifically for &lt;code&gt;bash&lt;/code&gt; doesn&#039;t run correctly anymore with the &lt;code&gt;#/bin/sh&lt;/code&gt; prefix. IBM assumes that &lt;code&gt;sh&lt;/code&gt; is always &lt;code&gt;bash&lt;/code&gt;, so IBM does not follow the standards.&lt;br /&gt;
&lt;br /&gt;
There are &lt;a href=&quot;http://www.snellspace.com/wp/?p=565&quot;&gt;several ways to solve this&lt;/a&gt;, but the easiest way to do it is to change the &lt;code&gt;sh&lt;/code&gt; link back to &lt;code&gt;bash&lt;/code&gt;:&lt;br /&gt;
&lt;code&gt;rm /bin/sh ; ln -s /bin/sh /bin/bash&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
And then install all the WebSphere stuff you want. After that you can leave it like that (shouldn&#039;t give any problems) or you can make &lt;code&gt;sh&lt;/code&gt; point to &lt;code&gt;dash&lt;/code&gt; again. In that case also run this:&lt;br /&gt;
&lt;code&gt;sudo perl -p -i -e &quot;s/\/sh$/\/bash/&quot; /opt/IBM/WebSphere/AppServer/bin/*&lt;br /&gt;
sudo perl -p -i -e &quot;s/\/sh$/\/bash/&quot; /opt/IBM/WebSphere/PortalServer/bin/*&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
But then keep in mind that every time you install fixes or fixpacks, you have to have &lt;code&gt;sh&lt;/code&gt; point to &lt;code&gt;bash&lt;/code&gt; again during the install. And you have to change the script files again too.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Update:&lt;/b&gt; &lt;a href=&quot;http://exceptionnull.net/index.php?/archives/9.WebSphere-Portal-6-on-Ubuntu-part-3.html&quot;&gt;part 3&lt;/a&gt; 
    </content:encoded>

    <pubDate>Tue, 26 Dec 2006 15:10:00 +0100</pubDate>
    <guid isPermaLink="false">http://exceptionnull.net/index.php?/archives/2.guid.html</guid>
    
</item>
<item>
    <title>WebSphere Portal 6 on Ubuntu</title>
    <link>http://exceptionnull.net/index.php?/archives/1.WebSphere-Portal-6-on-Ubuntu.html</link>
            <category>Linux</category>
            <category>WebSphere Portal</category>
    
    <comments>http://exceptionnull.net/index.php?/archives/1.WebSphere-Portal-6-on-Ubuntu.html#comments</comments>
    <wfw:comment>http://exceptionnull.net/wfwcomment.php?cid=1</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://exceptionnull.net/rss.php?version=2.0&amp;type=comments&amp;cid=1</wfw:commentRss>
    

    <author>nospam@example.com (Robert Berg)</author>
    <content:encoded>
    Yesterday seemed to me the perfect day to install IBM&#039;s new Rational Software Architect 7 on my Kubuntu Edgy laptop. Version 7 had been out for a couple of weeks (I&#039;m not sure when it came out exactly though). The fact that I had nothing to do anyway and the prospect of a boring long christmas made me switch on IBM&#039;s very own download manager to download IBM&#039;s bloated Eclipse variant. The download of RSA 7 was larger than 5GB(!), so I was in for a long wait. It looks like they made a version that contains every single file for every single platform. Nice, I don&#039;t have to download it again when I want to put it on my Windows box.&lt;br /&gt;
&lt;br /&gt;
After the wait the installation went like a breeze. No problems whatsoever. I clicked through it quickly, ran a good old WPS 5.1 server configuration, and everything seemed fine. Oh no.. and christmas hadn&#039;t even started yet! What was I to do?&lt;br /&gt;
&lt;br /&gt;
Well.. Portal 6 was on the shelf too. I already installed the beta without any (installation) problems a few months ago, so I was fairly optimistic about this one. Although WPS 5.1 did give me some problems after the updrage from Dapper to Edgy, there weren&#039;t any problems with the WPS 6 beta. No LinuxThreads are necessary like in WPS 5.1. So with the assumption that everything would go well, I boldly removed portal 6 beta. I wouldn&#039;t be needing that one anymore, now would I?&lt;br /&gt;
&lt;br /&gt;
I started the installation process this morning and got back to my newspaper and coffee. In the background I heard my laptop blowing hot air into the room and a quick look told me that it was busy installing the application server. The installation process of portal isn&#039;t quick, but at least you know what it is doing. You can do a tail on the log file which tells you exactly what it is doing, but I passed on that one. What on earth could possibly go wrong?&lt;br /&gt;
&lt;br /&gt;
After the sudden stop of the hot air flow I quickly got to know that. The thing that goes wrong is the creation of the Portal profile on the application server. The message was this:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
EJPIC0217E: The Portal profile creation step failed with WebSphere Application Server.&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Right.. after trying three times with different settings it still came with that message. Changing the .WASRegistry and the vpd.properties files didn&#039;t work either. I was seriously stuck. And that&#039;s where I am now. I know that Ubuntu is not supported by IBM but that hasn&#039;t stopped me in the past. Today I will install WAS 6 that comes with the RSA installation and I&#039;ll try to put WPS on that one. Maybe that&#039;ll work.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Update:&lt;/b&gt; &lt;a href=&quot;http://exceptionnull.net/index.php?/archives/2.WebSphere-Portal-6-on-Ubuntu-continued.html&quot;&gt;part 2&lt;/a&gt; 
    </content:encoded>

    <pubDate>Mon, 25 Dec 2006 17:49:00 +0100</pubDate>
    <guid isPermaLink="false">http://exceptionnull.net/index.php?/archives/1.guid.html</guid>
    
</item>

</channel>
</rss>