<?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>www.unnionline.com &#187; Ubuntu</title>
	<atom:link href="http://www.unnionline.com/blog/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unnionline.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Nov 2011 11:49:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Installing LibSBML on Ubuntu</title>
		<link>http://www.unnionline.com/blog/2011/11/installing-libsbml-on-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2011/11/installing-libsbml-on-ubuntu/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 11:47:25 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=276</guid>
		<description><![CDATA[- first, install all the]]></description>
			<content:encoded><![CDATA[<p>- first, install all the necessary packages:</p>
<p><code> aptitude install build-essential libxml2 libxml2-dev python-dev </code></p>
<p>- then configure, make and install libsbml:</p>
<p><code>./configure ––with-python </code> (execute from the directory where the downloaded libsbml archive was extracted to)<br />
<code>make</code><br />
<code>make install</code><br />
<code>ldconfig</code></p>
<p>- then check if installation was successful:<br />
<code>python</code><br />
and when the python prompt >>> appears, run from libsbml import * – if there are no warnings/errors, then you are done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2011/11/installing-libsbml-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MoinMoin 1.9 on Ubuntu</title>
		<link>http://www.unnionline.com/blog/2011/04/installing-moinmoin-1-9-on-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2011/04/installing-moinmoin-1-9-on-ubuntu/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 09:58:28 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[MoinMoin]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=136</guid>
		<description><![CDATA[This series about MoinMoin is]]></description>
			<content:encoded><![CDATA[<p>This series about <a href="http://moinmo.in" target="_blank">MoinMoin</a> is something that is long overdue. Everything you need to know about installing and configuring MoinMoin (from here on we call it MM) is well documented at the above link and also on numerous blogs. Why do I write this article then? The following will distinguish my articles on MM with others on the net.</p>
<ul>
<li> The workflow described here is optimised towards backup and security</li>
<li> This workflow reduces administration tasks during future server migrations</li>
</ul>
<p>Note that these articles explain the workflow I follow. There are of course many other ways to approach the same problem. Please do let me know if you have a better method.</p>
<p><strong>Software Required</strong></p>
<p><strong>MoinMoin Version</strong><br />
At the time of writing this, the latest stable version of MM is 1.9.3. However, you can adopt the methods described here on previous versions as well. If you are new to MM, there is less chance of you noticing any differences between the recent versions.<br />
<strong>Platforms</strong><br />
I have been using this appoach on Ubuntu 8.04 LTS (Hardy Heron) onwards. Currently, I have <a href="http://www.ubuntu.com" target="_blank">Ubuntu 10.04 LTS</a> (Lucid Lynx).<br />
<strong>Requirements</strong><br />
Have a look at <a href="http://moinmo.in/MoinMoinDependencies" target="_blank">this</a> link on MM website to have a list of dependencies for different versions.</p>
<p>Articles in this series will be describing MoinMoin 1.9.3 on Ubuntu 10.04 LTS. However, I would like to reiterate the point that you can use it on other combinations as well.</p>
<p><strong>Installation</strong><br />
The actual installation of MM on Ubuntu is as simple as typing the following code:</p>
<p><code>sudo apt-get install python2.4-moinmoin</code></p>
<p>This will install MM at /usr/share/moin/ and the config files will be stored at /etc/moin/. The issue with installing at this location is that most of us dont normally backup /usr/share/. Personally, I prefer to keep all such important applications under /usr/local/applications/ directory. I take particular care to make regular backup of my /usr/local/ directory. This way the only thing I have to do in case of a server crash of some sort is to restore this directory. So, how do we install MM to /usr/local/applications? </p>
<ul>
<li> Download MM from <a href="http://moinmo.in/MoinMoinDownload">here</a></li>
<li> Extract using tar as follows<br />
        <code> tar xvzf moin-x.x.x.tar.gz </code></li>
<li> Navigate to the directory where you extracted MM</li>
<li> Install MM using:<br />
        <code>python setup.py install --force --record=install.log --prefix='/usr/local/applications' --install-data='/usr/local/www/template</code><br />
        where:<br />
        &#8211;force = To overwrite outdated files in the destination (not needed in this case).<br />
        &#8211;record = This is the install log. Keep this safe, just in case.<br />
        &#8211;prefix = Our installation location. This is where our MM installation is now located.<br />
        &#8211;install-data = This where we are going to keep our MoinMoin instance. Read my second post in this series to see what we do with this directory.</li>
</ul>
<p>Great! we have MoinMoin installed on our server. In my next post I will explain how to get our first wiki on the internet. All the above information is explained in much more detail in the MM website and also on  the install.html file that comes with the MM download. But then, you wont be reading this if you have read those documents!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2011/04/installing-moinmoin-1-9-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Fast And Non-resource Hungry Backup Stategy For Ubuntu</title>
		<link>http://www.unnionline.com/blog/2011/04/a-fast-and-non-resource-hungry-backup-stategy-for-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2011/04/a-fast-and-non-resource-hungry-backup-stategy-for-ubuntu/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 15:56:51 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Adobe Lightroom]]></category>
		<category><![CDATA[Adobe Photoshop]]></category>
		<category><![CDATA[Backing up photographs]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[cron and rsync]]></category>
		<category><![CDATA[DNG]]></category>
		<category><![CDATA[luckyBackup]]></category>
		<category><![CDATA[Photography Workflow]]></category>
		<category><![CDATA[RAW]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=236</guid>
		<description><![CDATA[I love command line, and]]></description>
			<content:encoded><![CDATA[<p>I love command line, and I spend most of the day working with a black-and-white terminal.  For this reason, ever since I started with Ubuntu, I have been using rsync and cron for backing up my files (in one of my previous <a href="http://www.unnionline.com/blog/category/subversion/backup/">posts</a>, I have provided a detailed how-to on backing up subversion repositories using rsync). However, not so long ago, I came across a very useful GUI for rsync and cron based backup called &#8216;luckyBackup&#8217;. I liked this software as it allowed me to visualise all my backup cron jobs in a single window. For some reason the experience of using this tool was a bit more reassuring than what I used to do. Some of its features such as multiple profiles, exclude/include files/directories, synchronisation etc were found to be very handy.</p>
<p>Now that I have started working with RAW and DNG photographs, my <a href="http://www.unnionline.com/blog/2011/04/nondestructive-photography-workflow-that-i-follow/">workflow</a> demands an efficient backup solution. I work on these files using Adobe Lighroom and Photoshop (I prefer them more than Gimp) on a VirtualBox WindowsXP. I have configured luckyBackup on my server to make backup of my RAW files every 12 hours to two independent locations &#8211; an internal backup only hard drive and a portable hard drive. luckyBackup emails me when the target directories are 25GB in size, so that I can then write it on to a Blue-Ray disk and lock it up safely. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2011/04/a-fast-and-non-resource-hungry-backup-stategy-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Fonts in Ubuntu</title>
		<link>http://www.unnionline.com/blog/2011/01/installing-fonts-in-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2011/01/installing-fonts-in-ubuntu/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 16:45:31 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=182</guid>
		<description><![CDATA[Copy your fonts into the]]></description>
			<content:encoded><![CDATA[<p>Copy your fonts into the .fonts directory in the home directory and then update the font cache with this command:</p>
<p>sudo fc-cache -fv</p>
<p>To use it with LaTeX fontspec package (it can use open-type fonts directly in your document), you will need is to take note of the exact name of the font family. For that, after having installed the lcdf-typetools Ubuntu package, you can do something like</p>
<p>otfinfo -i /usr/share/fonts/AGaramondPro-Regular.otf | grep Family</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2011/01/installing-fonts-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSHMenu &#8211; A Really Cool Gnome Addon</title>
		<link>http://www.unnionline.com/blog/2011/01/sshmenu-a-really-cool-gnome-addon/</link>
		<comments>http://www.unnionline.com/blog/2011/01/sshmenu-a-really-cool-gnome-addon/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 11:55:47 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=180</guid>
		<description><![CDATA[Checkout out this great tool]]></description>
			<content:encoded><![CDATA[<p>Checkout out this great tool for Gnome at http://sshmenu.sourceforge.net. This tool, in combination with ssh-copy-id, can help you switch between your ssh servers in one click. Type the following to try SSHMenu:</p>
<p>sudo apt-get install sshmenu-gnome</p>
<p>Note that you have to add it to the gnome panel to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2011/01/sshmenu-a-really-cool-gnome-addon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Triggering Commands on File/Directory Changes in Ubuntu</title>
		<link>http://www.unnionline.com/blog/2010/07/triggering-commands-on-filedirectory-changes-in-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2010/07/triggering-commands-on-filedirectory-changes-in-ubuntu/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 14:26:18 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[incron]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=169</guid>
		<description><![CDATA[He we will introduce a]]></description>
			<content:encoded><![CDATA[<p>He we will introduce a new linux tool called Incron. It is similar to cron, but instead of running commands based on time, it can trigger commands when file or directory events occur. First of all, install incron using the command</p>
<p><code>sudo apt-get install incron</code></p>
<p>Before starting to use incrontab, we must give permissions for a user to use the service. To do this do:</p>
<p><code>nano /etc/incron.allow</code></p>
<p>and add the desired username to it.</p>
<p>Using incron is very much like using cron, ie. you can list, edit, and remove incrontab entries by using -l, -e and -r options, respectively. Have a look at the man page (<code>man incrontab</code>) for more options and the directions for usage.</p>
<p><code>man 5 incrontab</code> will show the format of the crontabs we are going to create. Basically it is as follows:</p>
<p><code>path    mask    command</code></p>
<p>where <code>path&gt;</code> can be a directory or a file that is watched.  <code>path&gt;</code> can be one of the following:</p>
<table>
<tbody>
<tr>
<td>IN_ACCESS</td>
<td>File was accessed (read) (*)</td>
</tr>
<tr>
<td>IN_ATTRIB</td>
<td>Metadata changed (permissions, timestamps, extended attributes, etc.) (*)</td>
</tr>
<tr>
<td>IN_CLOSE_WRITE</td>
<td>File opened for writing was closed (*)</td>
</tr>
<tr>
<td>IN_CLOSE_NOWRITE</td>
<td>File not opened for writing was closed (*)</td>
</tr>
<tr>
<td>IN_CREATE</td>
<td>File/directory created in watched directory (*)</td>
</tr>
<tr>
<td>IN_DELETE</td>
<td>File/directory deleted from watched directory (*)</td>
</tr>
<tr>
<td>IN_DELETE_SELF</td>
<td>Watched file/directory was itself deleted</td>
</tr>
<tr>
<td>IN_MODIFY</td>
<td>File was modified (*)</td>
</tr>
<tr>
<td>IN_MOVE_SELF</td>
<td>Watched file/directory was itself moved</td>
</tr>
<tr>
<td>IN_MOVED_FROM</td>
<td>File moved out of watched directory (*)</td>
</tr>
<tr>
<td>IN_MOVED_TO</td>
<td>File moved into watched directory (*)</td>
</tr>
<tr>
<td>IN_OPEN</td>
<td>File was opened (*)</td>
</tr>
</tbody>
</table>
<p>When monitoring a directory, the events marked with an asterisk (*) above can occur for files in the directory, in which case the name field in the returned event data identifies the name of the file within the directory.</p>
<p>Let&#8217;s create our first incron job. We&#8217;d like to monitor the directory /home/Downloads, and whenever a pdf file is downloaded into it, we want incron to activate a script that moves the file to another location. This is how we do it:</p>
<p><code>incrontab -e</code> and put the following text into it.</p>
<p><code>/home/Downloads IN_CREATE /home/xxxx/.mvpdf.sh</code></p>
<p>Once the file is saved, type <code>incrontab -l</code> to see a list of incron jobs. </p>
<p>Test if everything is working as intended.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2010/07/triggering-commands-on-filedirectory-changes-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom .screenrc Configuration File</title>
		<link>http://www.unnionline.com/blog/2010/06/custom-screenrc-configuration-file/</link>
		<comments>http://www.unnionline.com/blog/2010/06/custom-screenrc-configuration-file/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 12:57:35 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[screenrc]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Terminal Commands]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=147</guid>
		<description><![CDATA[Screen may be the most]]></description>
			<content:encoded><![CDATA[<p>Screen may be the most useful Linux applications when it comes to getting things done through the terminal. This custom screenrc configuration file will provide you with a permanent caption line at the bottom of each window. This caption line will enable you to easily keep track of each terminal window and provide other helpful information such as host and current time.</p>
<p>When screen is invoked, it executes initialization commands from the files “/etc/screenrc” and “.screenrc” in the user’s home directory.</p>
<p>Simply create a file in your home directory with vim or some other editor.</p>
<pre>$ vim ~/.screenrc</pre>
<p>And place the following line in the file.</p>
<pre>caption always "%{Wb} %H %{Bk}| %{Ck}%-w%50&gt;%{Cb} %n %t %{-}%+w%&lt;%{- Wk}%{Bk} | %=%{Wb} %C "</pre>
<p>Now launch a new screen session for it to take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2010/06/custom-screenrc-configuration-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Check Bandwidth Usage In Ubuntu</title>
		<link>http://www.unnionline.com/blog/2010/03/check-bandwidth-usage-in-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2010/03/check-bandwidth-usage-in-ubuntu/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 18:02:22 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Bandwidth]]></category>
		<category><![CDATA[internet usage]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=133</guid>
		<description><![CDATA[Install bwm-ng and/or iftop as]]></description>
			<content:encoded><![CDATA[<p>Install bwm-ng and/or iftop as given below:</p>
<p>sudo apt-get install bwm-ng<br />
sudo apt-get install iftop</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2010/03/check-bandwidth-usage-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Simple Script To Get A Terminal Dictionary</title>
		<link>http://www.unnionline.com/blog/2009/06/a-simple-script-to-get-a-terminal-dictionary/</link>
		<comments>http://www.unnionline.com/blog/2009/06/a-simple-script-to-get-a-terminal-dictionary/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 16:50:45 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Command-line]]></category>
		<category><![CDATA[Dictionary]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=115</guid>
		<description><![CDATA[First, make sure that you]]></description>
			<content:encoded><![CDATA[<p>First, make sure that you have the Lynx web browser:</p>
<p><code>sudo apt-get install lynx</code></p>
<p>Now, make the following script:</p>
<p><code>#!/bin/sh</code></p>
<p><code>lynx -dump "http://wordnet.princeton.edu/perl/webwn?s=$1" | grep -B 1000 References | grep -A 1000 relations | less</code></p>
<p>Now you can define any word from the terminal. For example, suppose I want to know the definition of &#8216;psychoanalysis&#8217;, I can simply run:</p>
<p><code>./define psychoanalysis</code></p>
<p>and get the definition printed out.</p>
<p>It&#8217;s nothing fancy; just grabs the output from an online dictionary and spits it out to the terminal, but I find it to be very useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/06/a-simple-script-to-get-a-terminal-dictionary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Up Cache Memory in Ubuntu</title>
		<link>http://www.unnionline.com/blog/2009/05/free-up-cache-memory-in-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2009/05/free-up-cache-memory-in-ubuntu/#comments</comments>
		<pubDate>Sat, 30 May 2009 09:19:09 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Cache memory]]></category>
		<category><![CDATA[Clear cache]]></category>
		<category><![CDATA[Dentries]]></category>
		<category><![CDATA[Inode]]></category>
		<category><![CDATA[Page cache]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=113</guid>
		<description><![CDATA[Ever wondered how to remove]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how to remove the cache memory in Ubuntu? Linux kernels 2.6.16 and newer provide a mechanism to clear the inode, page, and dentry caches on demand. All you have to do is echo a value to the proc filesystem, and you&#8217;re done. Follow the recipe below:</p>
<p>As this is a non-destructive operation and dirty objects are not freeable, run:<br />
<code>sync</code></p>
<p>To free pagecache:<br />
<code>sudo sh -c "echo 1 > /proc/sys/vm/drop_caches" </code></p>
<p>To free dentries and inodes:<br />
<code>sudo sh -c "echo 2 > /proc/sys/vm/drop_caches" </code></p>
<p>To free pagecache, dentries and inodes:<br />
<code>sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" </code></p>
<p>Hope this works for you all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/05/free-up-cache-memory-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

