<?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>/home/\/\ick &#187; Ubuntu</title>
	<atom:link href="http://timony.com/mickzblog/category/linux/ubuntu-linux-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://timony.com/mickzblog</link>
	<description>Things that interest me.</description>
	<lastBuildDate>Sat, 21 Apr 2012 17:58:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel="next" href="http://timony.com/mickzblog/category/linux/ubuntu-linux-2/feed/?page=2" />

		<item>
		<title>Build &amp; Install Osra 1.3.8 on Ubuntu 11.10</title>
		<link>http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/</link>
		<comments>http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 23:32:03 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Cplusplus]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chemistry]]></category>
		<category><![CDATA[gocr]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Igor Filippov]]></category>
		<category><![CDATA[NCI]]></category>
		<category><![CDATA[NIH]]></category>
		<category><![CDATA[ocra]]></category>
		<category><![CDATA[ocrad]]></category>
		<category><![CDATA[openbabel]]></category>
		<category><![CDATA[potrace]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=775</guid>
		<description><![CDATA[Summary Osra is a a utility designed to convert graphical representations of chemical structures create by Igor Filippov at the National Cancer Institute. This page documents how to compile and install Osra on Ubuntu Linux 11.10. These instructions may work on other versions of Ubuntu Linux and on Debian Linux.  Please leave a comment if [...]]]></description>
			<content:encoded><![CDATA[<h2>Summary</h2>
<p>Osra is a a utility designed to convert graphical representations of chemical structures create by Igor Filippov at the National Cancer Institute. This page documents how to compile and install Osra on Ubuntu Linux 11.10. These instructions may work on other versions of Ubuntu Linux and on Debian Linux.  Please leave a comment if you have compiled Osra using these instructions on a different version of Ubuntu, or on other Linux distributions.</p>
<h2>Overview</h2>
<p>At the time of writing this doc, March 2012, the Osra version is 1.3.8 and is available at:</p>
<ul>
<li><a title="Osra Docs" href="http://cactus.nci.nih.gov/osra/#6" target="_blank"> http://cactus.nci.nih.gov/osra/#6</a></li>
</ul>
<p>I copied all the source to a directory in /tmp. If you need the source code at some later point in time, don&#8217;t use /tmp as files in /tmp are deleted upon reboot (if they&#8217;re older than 14 days). Also, at the time of writing Osra requires a patched version of Gocr for Osra to work. You need to install Gocr before you try to compile and install Osra, you also need to install other packages required for Osra to compile. Most are listed below, but see the <a title="Osra Dependencies " href="http://cactus.nci.nih.gov/osra/#2" target="_blank">Osra Homepage</a> for more details.</p>
<p>An overview of the steps are:</p>
<ol>
<li>Install required Ubuntu packages</li>
<li>Compile and Install Gocr</li>
<li>Compile and Install Osra</li>
</ol>
<p>I&#8217;ve also written instructions on how to install Osra 1.2.1 on <a title="Compiling Osra in Ubuntu Jaunty" href="http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/" target="_blank">Ubuntu 9.04</a>, however that was written in 2009.<span id="more-775"></span></p>
<h2>Install Ubuntu Packages</h2>
<p>These packages are required to build Osta. Install the following (you will also need some gaphicsmagick packages also, libgraphicsmagick1-dev libgraphicsmagick++3 and maybe some others).</p>
<p style="padding-left: 30px;">sudo apt-get install libtclap-dev libpotrace0  libpotrace-dev  libocrad-dev openbabel libopenbabel-dev  libgraphicsmagick++1-dev libgraphicsmagick++1-dev libgraphicsmagick++3 libgraphicsmagick1-dev libgraphicsmagick3 libnetpbm10-dev</p>
<h2>Quick Install</h2>
<p>Copy and paste the following line to make a directory in /tmp called OSRA, download the source, extract the packages, and build and install both:</p>
<blockquote><p>cd /tmp; mkdir OSRA; cd OSRA; wget http://cactus.nci.nih.gov/osra/osra-1.3.8.tgz ; wget http://cactus.nci.nih.gov/osra/gocr-0.50pre-patched.tgz ; tar xzvf osra-1.3.8.tgz; tar xzvf gocr-0.50pre-patched.tgz; cd /tmp/OSRA/gocr-0.50pre-patched; ./configure; make libs; sudo make all install; cd /tmp/OSRA/osra-1.3.8/; ./configure; make all; sudo make install</p></blockquote>
<p>Osra should be  installed in /usr/local/bin .</p>
<p>Below are the same steps, but with more detail so that you know what your doing:</p>
<h2>Create Directory to Build the Packages</h2>
<p style="padding-left: 30px;">mkdir /tmp/OSRA</p>
<h2>Download the Source</h2>
<p>If you have wget install you can download the source via the command line:</p>
<p style="padding-left: 30px;">cd /tmp/OSRA;</p>
<p style="padding-left: 30px;">wget http://cactus.nci.nih.gov/osra/osra-1.3.8.tgz ;</p>
<p style="padding-left: 30px;">wget http://cactus.nci.nih.gov/osra/gocr-0.50pre-patched.tgz</p>
<p>Otherwise go to the <a title="Download Osra" href="http://cactus.nci.nih.gov/osra/#6" target="_blank">Osar home page</a> and download the source code pacakge for both Osra and Gocr and save it in the directory you created.</p>
<h2>Extract both packages</h2>
<p style="padding-left: 30px;">tar xzvf osra-1.3.8.tgz<br />
tar xzvf gocr-0.50pre-patched.tgz</p>
<h2>Compile &amp; Install Gocr</h2>
<p>You need to make and install the patched Gocr before you try to build Osra:</p>
<p style="padding-left: 30px;">cd /tmp/OSRA/gocr-0.50pre-patched<br />
./configure;<br />
make libs;<br />
sudo make all install;</p>
<p>This will install the patched gocr into /usr/local and copy Gocr header files to /usr/local/include/gocr. This may cause conflicts if you&#8217;ve installed gocr using another methods for instance using apt-get or aptitude. The gocr binary will be in /usr/local . If you have any problems, remove any other version of Gocr you may have build.</p>
<p>Before you continue to the next step, make sure the Gocr header files are installed:</p>
<blockquote><p>$ ls /usr/local/include/gocr/<br />
config.h*  gocr.h*  list.h*  output.h*    pgm2asc.h*  pnm.h*  unicode.h*</p></blockquote>
<p>If you don&#8217;t see the header files, make sure you followed all the steps above.</p>
<h2>Compile &amp; Install Osra</h2>
<p>Next compile Osra:</p>
<p style="padding-left: 30px;">cd /tmp/OSRA/gocr-0.50pre-patched<br />
./configure<br />
make all</p>
<p>To install Osra on your system, run the following using sudo:</p>
<p style="padding-left: 30px;">sudo make install</p>
<p>Look for it in /usr/local/bin:</p>
<p style="padding-left: 30px;">/usr/local/bin/osra</p>
<p><em><strong>Note</strong>: If you break your system while following these instructions, it&#8217;s not my fault. These are give in good faith, but if I&#8217;ve typed something wrong, too bad, I am not responsible! <img src='http://timony.com/mickzblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p>/usr/local/bin/osra &#8211;version</p>
<p>/usr/local/bin/osra  version: 1.3.8</p>
<p>Updated April 12th 2012: Added libnetpbm10-dev to the list of required packaged to pre-install.<br />
Updated April 16th 2012: Added missing build steps to Gocr section. Was missing ./configure step<br />
Updated April 17th 2012: Added &#8220;make libs&#8221; to the Gocr build steps, and fixed typo in the quickie install section.<br />
Updated April 20th 2012: Added libocrad-dev to list of packages to add. Note: This package is not available for Lucid!<br />
Updated April 21st: Updated dependencies and cleaned up the document.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Cogs games on Linux not working?</title>
		<link>http://timony.com/mickzblog/2011/07/29/cogs-games-on-linux-not-working/</link>
		<comments>http://timony.com/mickzblog/2011/07/29/cogs-games-on-linux-not-working/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 04:08:35 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[game]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Cogs]]></category>
		<category><![CDATA[humble bundle]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=772</guid>
		<description><![CDATA[See this forum posting for a potential fix, if your using an ATI graphics card: http://forum.lazy8studios.com/index.php?PHPSESSID=h1d37r13a2d2ccnk5c5j6b2c94&#38;topic=475.msg837#msg837 This is a fix for the bug where Cogs launches with the following output: Shader compile log for data/effects/TextureBumpCubemap.fsh: Fragment shader failed to compile with the following errors: ERROR: 0:41: error(#132) Syntax error: &#8216;smooth&#8217; parse error ERROR: error(#273) 1 [...]]]></description>
			<content:encoded><![CDATA[<p>See this forum posting for a potential fix, if your using an ATI graphics card:</p>
<p><a title="Lazy8Studio Forums" href="http://forum.lazy8studios.com/index.php?PHPSESSID=h1d37r13a2d2ccnk5c5j6b2c94&amp;topic=475.msg837#msg837" target="_blank">http://forum.lazy8studios.com/index.php?PHPSESSID=h1d37r13a2d2ccnk5c5j6b2c94&amp;topic=475.msg837#msg837</a></p>
<blockquote><p>This is a fix for the bug where Cogs launches with the following output:</p>
<p>Shader compile log for data/effects/TextureBumpCubemap.fsh:<br />
Fragment shader failed to compile with the following errors:<br />
ERROR: 0:41: error(#132) Syntax error: &#8216;smooth&#8217; parse error<br />
ERROR: error(#273) 1 compilation errors.  No code generated</p>
<p>Apparently the word &#8220;smooth&#8221; is reserved, but only on ATI cards in Linux.  The fix is to modify the following file.</p>
<p>~/games/cogs/data/effects/TextureBumpCubemap.fsh</p>
<p>Just do a global replace of the word &#8220;smooth&#8221; with &#8220;Smooth&#8221;.</p>
<p>A huge thanks to Renee Marie Jones, who figured this one out <img title="Smiley" src="http://forum.lazy8studios.com/Smileys/default/smiley.gif" alt=":)" /></p></blockquote>
<p>I wasn&#8217;t seeing that particular output on the console, and the screen was just blank/black and I could hear the music. But, this fix did work for me on Ubuntu Linux 10.10 (Maverick).</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2011/07/29/cogs-games-on-linux-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Oracle SQL Developer on Ubuntu Karmic &amp; Lucid</title>
		<link>http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/</link>
		<comments>http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 20:40:48 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql developer]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=708</guid>
		<description><![CDATA[If you want to install Oracle&#8217;s SQL Developer on Ubuntu (or another DEB based system such as Debian) you can do one of the following: Download the RPM package and install using rpm (not advisable). Download the RPM package and convert to a DEB package using alien Download the ZIP file titled &#8220;Oracle SQL Developer [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to install Oracle&#8217;s <a title="Oracle's SQL Developer" href="http://www.oracle.com/technology/software/products/sql/index.html">SQL Developer</a> on Ubuntu (or another DEB based system such as Debian) you can do one of the following:</p>
<ol>
<li>Download the RPM package and install using rpm (not advisable).</li>
<li>Download the RPM package and convert to a DEB package using alien</li>
<li>Download the ZIP file titled &#8220;Oracle SQL Developer for other platforms&#8221; and manually install</li>
<li>Use the make-sqldeveloper-package to convert the ZIP file into a DEB package</li>
</ol>
<p>I used the make-sqldeveloper-package, which is available for Debian and Ubuntu and it&#8217;s derivatives. However, the man page and the instructions are little unclear on how to use it. You need to download the zip file available at <a href="http://www.oracle.com/technology/software/products/sql/index.html">Oracle&#8217;s</a> (and not the RPM file nor any of the other packages) and then use the make-sqldeveloper-package to convert it to a DEB which you can then install using the dpkg command.</p>
<p>This is preferable to using rpm or alien as you can more easily manage the package using Debian&#8217;s and Ubuntu package management tools, plus it will integrate SQL Developer into Gnome&#8217;s Menu System . Plus, when Oracle updates their version you can use make-sqldeveloper-package to create an updated DEB package and easily update the version you have installed. The procedure outlined below works on Ubuntu Karmic and should also work on any Debian version that has the make-sqldeveloper-package.</p>
<p>As the man page states:</p>
<blockquote><p>This utility will require you to download the &#8220;Oracle  SQL  Developer  for  other  platforms&#8221;  archive  from  &lt;<a href="http://otn.oracle.com/software/prod‐ucts/sql/">http://otn.oracle.com/software/prod‐ucts/sql/</a>&gt; to create the Debian package from.</p></blockquote>
<h4>1. Download the ZIP file from Oracle&#8217;s site</h4>
<p>You will need to accept Oracle&#8217;s license agreement and download the ZIP file, titled &#8220;Oracle SQL Developer for other platforms&#8221;, from:</p>
<p><a href="http://www.oracle.com/technology/software/products/sql/index.html">http://www.oracle.com/technology/software/products/sql/index.html</a></p>
<h4>2. Install the make-sqldeveloper-package package</h4>
<pre style="padding-left: 30px;">sudo apt-get install sqldeveloper-package</pre>
<p>You will need Ubuntu&#8217;s <a title="Ubuntu software repositorys" href="http://www.ubuntu.com/community/ubuntustory/components">multiverse</a> software repository. See the <a href="https://help.ubuntu.com/community/Repositories/Ubuntu">instructions</a> on how to do so.</p>
<h4>2.a. Install the tofrodos package</h4>
<pre style="padding-left: 30px;">sudo apt-get install tofrodos</pre>
<p>Create symbolic links to the tofrodos commands to allow the sqldeveloper-package to work:</p>
<pre style="padding-left: 30px;">sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix</pre>
<pre style="padding-left: 30px;">sudo ln -s /usr/bin/todos /usr/bin/unix2dos</pre>
<p>Thanks to <a href="#comment-5906">Miles</a> for the tofrodos tip.</p>
<h4>3. Convert the ZIP file to .DEB package</h4>
<p>The format of the command is:</p>
<pre style="padding-left: 30px;">make-sqldeveloper-package -b BUILD_LOCATION LOCATION_OF_ZIP_FILE</pre>
<p>In my example, I&#8217;m going to use /tmp/ORA as the build location and the ZIP file has been download to my Desktop (~Desktop).</p>
<pre style="padding-left: 30px;">make-sqldeveloper-package -b /tmp/ORA/ ~/Desktop/sqldeveloper-2.1.0.63.73-no-jre.zip</pre>
<p>The command will create the build directory and remove it when the command finishes. If the command completes successfully you&#8217;ll see the following output after a minute or two:</p>
<pre style="padding-left: 30px;">make-sqldeveloper-package: Building sqldeveloper package in "/tmp".</pre>
<p>The DEB file will be created in the current directory. In my example I had changed directories to /tmp and that&#8217;s where the DEB file will be:</p>
<pre style="padding-left: 30px;">/tmp/sqldeveloper_2.1.0.63.73+0.2.3-1_all.deb</pre>
<p>See the man page for more information about the tool:</p>
<pre style="padding-left: 30px;">man make-sqldeveloper-package</pre>
<h4>4. Install the package</h4>
<pre style="padding-left: 30px;">sudo dpkg -i sqldeveloper_2.1.0.63.73+0.2.3-1_all.deb</pre>
<h4>5. Run SQL Developer</h4>
<p>After installing there should he an entry in Gnome&#8217;s menu to start the SQL Developer. It&#8217;s located under:</p>
<p style="padding-left: 30px;"><strong>Applications-&gt;Programming-&gt;SQL Developer</strong></p>
<p><em>Note</em>: You will need a JVM installed for the tool to run.</p>
<p>Obligatory Screen Shot:</p>
<div id="attachment_719" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-719" href="http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/sqldeveloper_screenshot-2/"><img class="size-medium wp-image-719" title="Oracle SQL Developer on Ubuntu" src="http://timony.com/mickzblog/wp-content/uploads/2010/01/sqldeveloper_screenshot1-300x248.jpg" alt="" width="300" height="248" /></a><p class="wp-caption-text">Oracle SQL Developer</p></div>
<p><em>Updated September 27th 2010</em>. Added instructions from <a href="http://milespomeroy.com/">Miles</a> on installing dos2unix alternative for Ubuntu Lucid. The dos2unix command is not available in Ubuntu Lucid.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Problems installing MySQL on Ubuntu Intrepid?</title>
		<link>http://timony.com/mickzblog/2009/12/10/problems-install-mysql-on-ubuntu-intrepid/</link>
		<comments>http://timony.com/mickzblog/2009/12/10/problems-install-mysql-on-ubuntu-intrepid/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 04:23:27 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=607</guid>
		<description><![CDATA[Remove mysql-common .]]></description>
			<content:encoded><![CDATA[<p>Remove mysql-common .</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/12/10/problems-install-mysql-on-ubuntu-intrepid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling EIGENSOFT on Ubuntu Januty</title>
		<link>http://timony.com/mickzblog/2009/07/08/compiling-eigensoft-on-ubuntu-januty/</link>
		<comments>http://timony.com/mickzblog/2009/07/08/compiling-eigensoft-on-ubuntu-januty/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 05:34:18 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chemical computing]]></category>
		<category><![CDATA[EIGENSOFT]]></category>
		<category><![CDATA[EIGENSTRAT]]></category>
		<category><![CDATA[example.perl]]></category>
		<category><![CDATA[make]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=665</guid>
		<description><![CDATA[These are rough notes on how to compile Eigensoft 3 on Ubuntu Jaunty. Update, Eigensoft 4 is available and should compile on more recent versions of Ubuntu: http://www.hsph.harvard.edu/faculty/alkes-price/software/ Create a location to build the code: Warning: /tmp is for temporary files, and any files &#38; directories you create there will be remove upon some subsequent [...]]]></description>
			<content:encoded><![CDATA[<p>These are rough notes on how to compile <a href="http://genepath.med.harvard.edu/~reich/Software.htm">Eigensoft 3</a> on Ubuntu Jaunty.</p>
<p><strong>Update</strong>, <em>Eigensoft 4 is available and should compile on more recent versions of Ubuntu:</em><br />
<a href="http://www.hsph.harvard.edu/faculty/alkes-price/software/">http://www.hsph.harvard.edu/faculty/alkes-price/software/</a></p>
<p><strong>Create a location to build the code:</strong></p>
<p><em>Warning:</em> /tmp is for temporary files, and any files &amp; directories you create there will be remove upon some subsequent reboot.</p>
<pre>cd /tmp;</pre>
<pre>mkdir EIGEN;</pre>
<pre>cd  EIGEN;</pre>
<p><strong>Get the Eigensoft source code:</strong></p>
<pre>wget  http://www.hsph.harvard.edu/faculty/alkes-price/files/EIG3.0.tar.gz;</pre>
<pre>tar xzvf EIG3.0.tar.gz;</pre>
<p><strong>Install required dependences:<span id="more-665"></span></strong></p>
<pre>sudo apt-get install f2c libg2c0 libatlas-base-dev liblapack-dev;</pre>
<p>This symbolic link is needed as the Makefile links looks for the static version of the library and not the shared version (correct me if I&#8217;m wrong, it&#8217;s late at night and I could be mistaken):</p>
<pre>sudo ln -s /usr/lib/libg2c.so.0 /usr/lib/libg2c.so;</pre>
<p><strong>Build the code:</strong></p>
<pre>cd /tmp/EIGEN;</pre>
<pre>cd src;</pre>
<p><strong>Create a backup copy of the Makefile:</strong></p>
<pre>cp Makefile  Makefile.org;</pre>
<p><strong>Edit the Makefile:</strong></p>
<pre>emacs -nw Makefile;</pre>
<p><em>Change this line (line 24):</em></p>
<p>FF=g77</p>
<p>To read as:</p>
<p>FF=&#8221;gfortran -std-legacy&#8221;</p>
<p>This is needed as the g77 fortran compiler is not longer included with Ubuntu, but you can use the gfortan compiler instead, but you must run it in legacy mode.</p>
<p><strong>Run make:</strong></p>
<pre>make eigenstrat;</pre>
<p>This next step is essential, because binaries are included in the bin directory that appear to have been build against a 64-bit kernel and are probably artefact&#8217;s left over from when the author was testing his code. Also, running &#8220;make clean&#8221; does not remove the binaries in the bin directory, but does remove those build in the src directory.</p>
<pre>make install;</pre>
<p>And that should be it run the example.perl in the EIGENSTRAT directory and you should see output like this:</p>
<p style="padding-left: 30px;"><em>./example.perl<br />
smartpca.perl -i example.geno  -a example.snp  -b example.ind  -k 2  -o example.pca  -p example.plot  -e example.eval  -l example.log  -m 5  -t 2  -s 6.0<br />
smartpca -p example.pca.par &gt;example.log<br />
ploteig -i example.pca.evec -c 1:2  -p Case:Control  -x  -y  -o example.plot.xtxt<br />
evec2pca.perl 2 example.pca.evec example.ind example.pca<br />
smarteigenstrat.perl  -i example.geno  -a example.snp  -b example.ind  -p example.pca  -k 1  -o example.chisq  -l example.log<br />
smarteigenstrat -p example.chisq.par &gt;example.loggc.perl example.chisq example.chisq.GC</em></p>
<p>If you run into problems running and compiling the code, the README suggests running the following:</p>
<pre>make pcatoy;</pre>
<p>And, as per the README, contact your sys admin if it doesn&#8217;t work. <img src='http://timony.com/mickzblog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/07/08/compiling-eigensoft-on-ubuntu-januty/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Compiling Osra on Ubuntu Jaunty</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/</link>
		<comments>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 14:30:06 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Cplusplus]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gocr]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[ocrad]]></category>
		<category><![CDATA[openbabel]]></category>
		<category><![CDATA[osra]]></category>
		<category><![CDATA[potrace]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646</guid>
		<description><![CDATA[This is a brief HOWTO on compiling OSRA, (Optical Structure Recognition) on Ubuntu Jaunty. To quote the OSRA home page, OSRA is &#8230; is a utility designed to convert graphical representations of chemical structures, as they appear in journal articles, patent documents, textbooks, trade magazines etc., into SMILES (Simplified Molecular Input Line Entry Specification &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>This is a brief HOWTO on compiling <a title="OSRA Home Page" href="http://cactus.nci.nih.gov/osra/">OSRA</a>, (Optical Structure Recognition) on Ubuntu Jaunty. To quote the OSRA home page, OSRA is</p>
<blockquote><p>&#8230; is a utility designed to convert graphical representations of chemical structures, as they appear in journal articles, patent documents, textbooks, trade magazines etc., into SMILES (Simplified Molecular Input Line Entry Specification &#8211; see <a href="http://en.wikipedia.org/wiki/SMILES"> http://en.wikipedia.org/wiki/SMILES</a>) or SD file &#8211; a computer recognizable molecular structure format. OSRA can read a document in any of the over 90 graphical formats parseable by ImageMagick &#8211; including GIF, JPEG, PNG, TIFF, PDF, PS etc., and generate the SMILES or SDF representation of the molecular structure images encountered within that document &#8230;</p></blockquote>
<p><em>Update</em>: I&#8217;ve a newer document that shows how to install Osra on Ubuntu 11.10 (Oneiric):</p>
<ul>
<li><a title="Build &amp; Install Osra 1.3.8 on Ubuntu 11.10" href="http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/" target="_blank">http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/</a></li>
</ul>
<p><strong>Make a directory to compile the source:</strong></p>
<p><em>mkdir /tmp/OSRA; cd /tmp/OSRA;</em></p>
<p>Be careful doing this in /tmp is cleaned upon reboot the directory may be removed.</p>
<p><strong>Install dependencies needed by the OS:</strong></p>
<p><em>sudo apt-get install libgraphicsmagick1-dev libmagick++-dev libgraphicsmagick++1-dev potrace gocr  libtclap-dev libopenbabel-dev libopenbabel3 openbabel libnetpbm10 libnetpbm10-dev</em></p>
<p>Don&#8217;t install ocrad and remove it if it&#8217;s on your system (you can probably reinstall if you need to after you get Osra to compile):<br />
<em> sudo apt-get remove &#8211;purge ocrad;</em></p>
<p><strong>Source Code:</strong></p>
<p>Instead of manually getting the source packages download the sources used to build the packages for Ubuntu if available.  Make sure the src lines are commented in, in your /etc/apt/sources.list . This will automatically download and extract the code into the current directory:</p>
<p><em>cd /tmp/OSRA; apt-get source gocr ocrad potrace;</em></p>
<p>This downloads Gocr 0.46 which the OSRA docs say may not work:</p>
<blockquote><p>- GOCR/JOCR, optical character recognition library, version 0.43 or later (version 0.45 recommended, do not use 0.46! See special instructions for 0.47 compilation below)<span id="more-646"></span></p></blockquote>
<p><strong>Get the Osra Source and extract it</strong></p>
<p><em>cd /tmp/OSRA;</em></p>
<p><em>wget http://cactus.nci.nih.gov/osra/osra-1.2.1.tgz;</em></p>
<p><em>tar xzvf osra-1.2.1.tgz</em></p>
<p><em>cd /tmp/OSRA2/osra-1.2.1;</em></p>
<p><strong>Make a backup copy of the OSRA Makefile:</strong></p>
<p><em>cp Makefile Makefile.bak;</em></p>
<p><strong>Edit the Makefile<br />
</strong></p>
<p>Change the following lines:</p>
<p><em>GOCR=../gocr-0.45/</em><br />
to<br />
<em> GOCR=../gocr-0.46/</em></p>
<p><em>OPENBABEL=/usr/local/</em><br />
to<br />
<em>OPENBABEL=/usr/</em></p>
<p><em>TCLAPINC=-I/usr/local/include/tclap/</em><br />
to<br />
<em>TCLAPINC=-I/usr/include/tclap/</em></p>
<p><span style="text-decoration: line-through;"><em>GOCR=../gocr-0.46/</em><br />
to<br />
<em>GOCR=../gocr-0.45/</em></span></p>
<p><strong>Compiling</strong></p>
<p>Compile, but don&#8217;t install the potrace source:<br />
<em>cd /tmp/OSRA/potrace-1.8;<br />
./configure;<br />
make;</em></p>
<p>Compile the OSRA source:<br />
<em>cd /tmp/OSRA/osra-1.2.1;<br />
make;</em></p>
<p>This produces a working OSRA binary:</p>
<p><em>./osra<br />
./osra  [-f &lt;can/smi/sdf&gt;] [-g] [-p] [-s &lt;dimensions, 300x400&gt;] [-n] [-r<br />
&lt;default: auto&gt;] [-o &lt;filename prefix&gt;] [-t &lt;0.2..0.8&gt;] [--]<br />
[--version] [-h] &lt;filename&gt;</em></p>
<p>Now I just need a file to test it against to see if it will run correctly.</p>
<p>If you want to build with Gocr 0.47 this step is required:<br />
<em>cd /tmp/OSRA/gocr-0.47;<br />
./configure CPPFLAGS=-fPIC LDFLAGS=-fPIC;<br />
make libs;<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Skype Sound Config on T400 running Ubuntu</title>
		<link>http://timony.com/mickzblog/2009/07/03/skype-sound-config-on-t400-running-ubuntu/</link>
		<comments>http://timony.com/mickzblog/2009/07/03/skype-sound-config-on-t400-running-ubuntu/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:57:53 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[lenovo]]></category>
		<category><![CDATA[pulse]]></category>
		<category><![CDATA[pulse audio]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[t400]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VOIP]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=612</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-613" href="http://timony.com/mickzblog/2009/07/03/skype-sound-config-on-t400-running-ubuntu/skype_sound_config_micks_t400/"><img class="aligncenter size-medium wp-image-613" title="Skype Sound Config" src="http://timony.com/mickzblog/wp-content/uploads/2009/06/skype_sound_config_micks_t400-300x199.jpg" alt="Skype Sound Config" width="300" height="199" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/07/03/skype-sound-config-on-t400-running-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Killing X</title>
		<link>http://timony.com/mickzblog/2009/04/12/killing-x/</link>
		<comments>http://timony.com/mickzblog/2009/04/12/killing-x/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 01:14:31 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Ireland]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[travel]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dontzap linux ubuntu X11 x debian killX]]></category>
		<category><![CDATA[gui]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/2009/04/12/killing-x/</guid>
		<description><![CDATA[On Ubuntu it used to be that ctrl-alt-backspace would kill X (the backend of the various graphical user interfaces on Linux). In an aim to be user friendly this is now disabled by default. This can be a real pain if X locks up, you can&#8217;t kill it nor change to a console. On Debian [...]]]></description>
			<content:encoded><![CDATA[<p>On Ubuntu it used to be that ctrl-alt-backspace would kill X (the backend of the various graphical user interfaces on Linux). In an aim to be user friendly this is now disabled by default. This can be a real pain if X locks up, you can&#8217;t kill it nor change to a console.</p>
<p>On Debian and Ubuntu you can install the dontzap command which will allow you to kill X:</p>
<pre style="padding-left: 30px;">sudo apt-get install dontzap</pre>
<p>Then run dontzap:</p>
<pre style="padding-left: 30px;">sudo dontzap -d</pre>
<p>Or you can the following section to your /etc/X11/xorg.conf file (which is what the dontxzap command does):</p>
<pre style="padding-left: 30px;">Section "ServerFlags"
        Option  "DontZap"       "False"
EndSection</pre>
<p>See <a href="http://albertomilone.com">Alberto Milone&#8217;s</a> blog for more info:<br />
<a href="http://albertomilone.com/wordpress/?p=335">http://albertomilone.com/wordpress/?p=335</a></p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/04/12/killing-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(2.0.0.16 &gt; 3.0.8) == true ?</title>
		<link>http://timony.com/mickzblog/2009/04/11/20016-308/</link>
		<comments>http://timony.com/mickzblog/2009/04/11/20016-308/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 18:21:58 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[3.0.8 2.0.0.16]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[kayak.com]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=591</guid>
		<description><![CDATA[I use Kayak.com whenever I&#8217;m planning a trip any where, it&#8217;s a good source to determine who flies to what destination and whose got the lowest price. Today, there&#8217;s a wee bug on their website where they tell me I should upgrade to Firefox 2.0.0.16, this would be sound advise except for the fact that [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a title="Kayak" href="http://www.kayak.com">Kayak.com</a> whenever I&#8217;m planning a trip any where, it&#8217;s a good source to determine who flies to what destination and whose got the lowest price. Today, there&#8217;s a wee bug on their website where they tell me I should upgrade to <a title="Get Firefox" href="http://www.mozilla.com/en-US/firefox/upgrade.html">Firefox</a> 2.0.0.16, this would be sound advise except for the fact that I&#8217;m using a newer version of Firefox:</p>
<p style="text-align: center;"><a rel="attachment wp-att-592" href="http://timony.com/mickzblog/2009/04/11/20016-308/kayak_firefox_bug/"><img class="size-full wp-image-592 aligncenter" title="About Firefox" src="http://timony.com/mickzblog/wp-content/uploads/2009/04/kayak_firefox_bug.jpg" alt="Kayak.com Firefox versioning bug" width="475" height="382" /></a></p>
<p style="text-align: center;">
<p>So I think someone needs to look at the math used here, because 3.0.8 is greater than 2.0.0.16. This is using Firefox on Ubuntu Linux.</p>
<p><em>Update:</em> This may not be a Kayak.com problem and may be a problem with how Ubuntu build Firefox. In the Firefox &#8220;about:&#8221; page (type about: in the URL bar). It reports the following:</p>
<p style="text-align: center;"><a rel="attachment wp-att-677" href="http://timony.com/mickzblog/2009/04/11/20016-308/ff_about/"><img class="size-medium wp-image-677 aligncenter" title="Firefox &quot;about:&quot; page." src="http://timony.com/mickzblog/wp-content/uploads/2009/04/ff_about-300x282.png" alt="Firefox &quot;about:&quot; page." width="300" height="282" /></a></p>
<p>There is a Ubuntu <a title="Ubuntu Firefox &quot;About&quot; bug." href="https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/194894/+login?comments=all">bug </a>that may be related to this, and I&#8217;ve added a comment and the screen-shot that&#8217;s immediately above.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/04/11/20016-308/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Red Hat 9</title>
		<link>http://timony.com/mickzblog/2009/04/06/red-hat-9/</link>
		<comments>http://timony.com/mickzblog/2009/04/06/red-hat-9/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 22:38:10 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[BU Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[old]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[red hat 9]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/2009/04/06/red-hat-9/</guid>
		<description><![CDATA[I have a Red Hat 9 server that I have to support for a wee while longer. I needed to install some packages and I didn&#8217;t have the original install CD&#8217;s nor access to Red Hat&#8217;s repositories. After lot&#8217;s and lot&#8217;s of searching I found the ISO images at: ftp://archive.download.redhat.com/pub/redhat/linux/9/en/iso/i386/ But, there&#8217;s too many users [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Red Hat 9 server that I have to support for a wee while longer. I needed to install some packages and I didn&#8217;t have the original install CD&#8217;s nor access to Red Hat&#8217;s repositories.</p>
<p>After lot&#8217;s and lot&#8217;s of searching I found the ISO images at:<br />
<a title="Red Hat's FTP server" href="ftp://archive.download.redhat.com/pub/redhat/linux/9/en/iso/i386/"> ftp://archive.download.redhat.com/pub/redhat/linux/9/en/iso/i386/</a></p>
<p>But, there&#8217;s too many users on Red Hat&#8217;s FTP server and I can&#8217;t get access &#8230; thankfully rpmfind.net have a mirror:<br />
<a title="Red hat Mirror at RPMFind. net" href="http://fr.rpmfind.net/linux/redhat/9/en/iso/i386/a"> http://fr.rpmfind.net/linux/redhat/9/en/iso/i386/</a></p>
<p>So now I can download the ISO images, and mount them on the Linux box using the loop-back interface and install the packages I need.</p>
<p>I expect to have new hardware within a month or so, and I&#8217;ll probably be using <a title="BU Linux" href="http://linux.bu.edu/">BU Linux</a> or <a href="http://releases.ubuntu.com/8.04/">Ubuntu 8.04</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/04/06/red-hat-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

