<?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>hocuspokus &#187; linux</title>
	<atom:link href="http://hocuspokus.net/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://hocuspokus.net</link>
	<description>the life and times of a code monkey</description>
	<lastBuildDate>Fri, 12 Mar 2010 15:57:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating Users on a Linux&#160;System</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F01%2Fcreating-users-on-a-linux-system&amp;seed_title=Creating+Users+on+a+Linux%26%23160%3BSystem</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F01%2Fcreating-users-on-a-linux-system&amp;seed_title=Creating+Users+on+a+Linux%26%23160%3BSystem#comments</comments>
		<pubDate>Sat, 09 Jan 2010 11:13:42 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[user-management]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=399</guid>
		<description><![CDATA[It&#8217;s been a while since I&#8217;ve had to do any basic sysadmin stuff on a Linux box&#8230; seeing as I had to google the answers to this I thought I&#8217;d better write them down!

useradd syntax


useradd &#91;options&#93; &#123;username&#125;


Useful options are:


    -d
    declare the users home directory
    -m
 [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I&#8217;ve had to do any basic sysadmin stuff on a Linux box&#8230; seeing as I had to google the answers to this I thought I&#8217;d better write them down!</p>

<p><strong>useradd syntax</strong></p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">useradd <span style="color: #7a0874; font-weight: bold;">&#91;</span>options<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>username<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>


<p>Useful options are:</p>

<dl>
    <dt>-d</dt>
    <dd>declare the users home directory</dd>
    <dt>-m</dt>
    <dd>force &#8216;useradd&#8217; to create the home directory</dd>
    <dt>-D</dt>
    <dd>accept the system defaults for account settings</dd>
</dl>

<p>An alternative for &#8216;useradd&#8217; though is &#8216;adduser&#8217;:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser <span style="color: #7a0874; font-weight: bold;">&#123;</span>username<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>


<p>This will then prompt you for all the information needed to set up the account.</p>

<p><strong>making the user an administrator (with sudo)</strong></p>

<p>As the root user&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">visudo</pre></div></div>


<p>Then underneath the entry for &#8216;root&#8217; just add in an entry with the desired user name:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>username<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #007800;">ALL</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>ALL<span style="color: #7a0874; font-weight: bold;">&#41;</span> ALL</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F01%2Fcreating-users-on-a-linux-system&amp;seed_title=Creating+Users+on+a+Linux%26%23160%3BSystem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Git and SVN Branch to Bash&#160;Prompt</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt#comments</comments>
		<pubDate>Thu, 09 Jul 2009 19:58:06 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=352</guid>
		<description><![CDATA[EDIT: (12-Mar-2010) slight update to the svn prompt code to give a better / more useful output&#8230;

I&#8217;ve seen things like this posted on the net before but never really had a chance to play with the idea.  But as I&#8217;m now using git and svn a lot more these days (fingers crossed i&#8217;ll be [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EDIT:</strong> (12-Mar-2010) slight update to the svn prompt code to give a better / more useful output&#8230;</p>

<p>I&#8217;ve seen things like this posted on the net before but never really had a chance to play with the idea.  But as I&#8217;m now using git and svn a lot more these days (fingers crossed i&#8217;ll be totally free of cvs soon!) I thought it was about time I pulled my finger out.</p>

<p>So here&#8217;s the end goal, in a normal directory, we just get a normal bash promt, but in a directory controlled by git or svn, we also get an addition telling us the source control tool in use and the current branch:</p>

<p><img src="http://hocuspokus.net/wp-content/uploads/2009/07/git_svn_bash_terminal.png" alt="git_svn_bash_terminal" title="git_svn_bash_terminal" width="500" height="305" class="aligncenter size-full wp-image-358" /></p>

<p>So, fire up yer terminal and add the following to your <code>.profile</code>, <code>.bash_profile</code> or <code>.bashrc</code> (whichever one you use):</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">parse_git_branch <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	git name-rev HEAD <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s#HEAD\ \(.*\)# (git::\1)#'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_branch<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	parse_svn_url <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s#^'</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$(parse_svn_repository_root)</span>&quot;</span><span style="color: #ff0000;">'##g'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print &quot; (svn::&quot;$1&quot;)&quot; }'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_url<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #c20cb9; font-weight: bold;">svn</span> info <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">'s#^URL: ##p'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_repository_root<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #c20cb9; font-weight: bold;">svn</span> info <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">'s#^Repository Root: ##p'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #007800;">BLACK</span>=<span style="color: #ff0000;">&quot;\[\033[0;38m\]&quot;</span>
<span style="color: #007800;">RED</span>=<span style="color: #ff0000;">&quot;\[\033[0;31m\]&quot;</span>
<span style="color: #007800;">RED_BOLD</span>=<span style="color: #ff0000;">&quot;\[\033[01;31m\]&quot;</span>
<span style="color: #007800;">BLUE</span>=<span style="color: #ff0000;">&quot;\[\033[01;34m\]&quot;</span>
<span style="color: #007800;">GREEN</span>=<span style="color: #ff0000;">&quot;\[\033[0;32m\]&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$BLACK</span>[ \u@<span style="color: #007800;">$RED</span>\h <span style="color: #007800;">$GREEN</span>\w<span style="color: #007800;">$RED_BOLD</span><span style="color: #000099; font-weight: bold;">\$</span>(parse_git_branch)<span style="color: #000099; font-weight: bold;">\$</span>(parse_svn_branch)<span style="color: #007800;">$BLACK</span> ] &quot;</span></pre></div></div>


<p>Simples.  Now just open up a new terminal and move into a project directory using svn or git. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>QGtkStyle Now Part of&#160;Qt</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F09%2Fqgtkstyle-now-part-of-qt&amp;seed_title=QGtkStyle+Now+Part+of%26%23160%3BQt</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F09%2Fqgtkstyle-now-part-of-qt&amp;seed_title=QGtkStyle+Now+Part+of%26%23160%3BQt#comments</comments>
		<pubDate>Wed, 10 Sep 2008 08:26:10 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=164</guid>
		<description><![CDATA[Looks like KDE apps just got a whole lot more appealing to Gnome users.  I like a lot of KDE apps (Kate being a particularly cool editor when I&#8217;m on the Linux box), but I just never used to use them much as they looked too out of place with the rest of my [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like KDE apps just got a whole lot more appealing to Gnome users.  I like a lot of KDE apps (Kate being a particularly cool editor when I&#8217;m on the Linux box), but I just never used to use them much as they looked too out of place with the rest of my Gnome desktop (yeah, I guess I&#8217;m a GUI snob&#8230;) - this will most likely change that!</p>

<blockquote>
  <p>QGtkStyle made itâ€™s way into the Qt snapshots this week, meaning it will become part of the Qt 4.5 release. Technical users can already compile and use it on their own desktop, but once Qt 4.5 is out it will simply replace Cleanlooks as the default application style Qt uses on GNOME desktops.</p>
</blockquote>

<p><a href="http://labs.trolltech.com/blogs/2008/09/05/qgtkstyle-now-part-of-qt/" class="via">via</a></p>
<a href="http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F09%2Fqgtkstyle-now-part-of-qt&amp;seed_title=QGtkStyle+Now+Part+of%26%23160%3BQt" rel="bookmark" class="asides-permalink" title="Permanent Link to QGtkStyle Now Part of&nbsp;Qt">(0)</a>]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F09%2Fqgtkstyle-now-part-of-qt&amp;seed_title=QGtkStyle+Now+Part+of%26%23160%3BQt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install PostgreSQL on Ubuntu&#160;8.04</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstall-postgresql-on-ubuntu-804&amp;seed_title=Install+PostgreSQL+on+Ubuntu%26%23160%3B8.04</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstall-postgresql-on-ubuntu-804&amp;seed_title=Install+PostgreSQL+on+Ubuntu%26%23160%3B8.04#comments</comments>
		<pubDate>Tue, 13 May 2008 16:19:41 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=145</guid>
		<description><![CDATA[Following up from my old guide to installing PostgreSQL (for Ubuntu 7.10), I thought i&#8217;d better do an update for the latest releases&#8230;  

This quick walk-through are my notes for installing the PostgreSQL database server and the PgAdmin administration application on Ubuntu Linux, and also set up the server so it allows access to [...]]]></description>
			<content:encoded><![CDATA[<p>Following up from my old guide to installing PostgreSQL (for Ubuntu 7.10), I thought i&#8217;d better do an update for the latest releases&#8230; <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<p>This quick walk-through are my notes for installing the PostgreSQL database server and the PgAdmin administration application on Ubuntu Linux, and also set up the server so it allows access to other PC&#8217;s on your network.</p>

<p>Before we move on, this guide was tested on the current release of Ubuntu Linux, (8.04 - Hardy Heron) and PostgreSQL 8.3, but it should also be applicable to older versions (of Ubuntu and PostgreSQL) and other Debian based distros.</p>

<p><span id="more-145"></span></p>

<p>Right for the basic installation, at the command-line, enter the following commands (or search for the listed packages in synaptic if you prefer that way of working):</p>

<pre><code>$ sudo apt-get install postgresql postgresql-client postgresql-contrib
$ sudo apt-get install pgadmin3
</code></pre>

<p>This installs the database server/client, some extra utility scripts and the pgAdmin GUI application for working with the database.</p>

<p>Now we need to reset the password for the &#8216;postgres&#8217; admin account for the server, so we can use this for all of the system administration tasks. Type the following at the command-line (substitute in the password you want to use for your administrator account):</p>

<pre><code>$ sudo su postgres -c psql template1
template1=# ALTER USER postgres WITH PASSWORD 'password';
template1=# \q
</code></pre>

<p>That alters the password for within the database, now we need to do the same for the unix user &#8216;postgres&#8217;:</p>

<pre><code>$ sudo passwd -d postgres
$ sudo su postgres -c passwd
</code></pre>

<p>Now enter the same password that you used previously.</p>

<p>Then, from here on in we can use both pgAdmin and command-line access (as the postgres user) to run the database server.  But before you jump into pgAdmin we should set-up the PostgreSQL admin pack that enables better logging and monitoring within pgAdmin.  Run the following at the command-line:</p>

<pre><code>$ sudo su postgres -c psql &lt; /usr/share/postgresql/8.3/contrib/adminpack.sql
</code></pre>

<p>Finally, we need to open up the server so that we can access and use it remotely - unless you only want to access the database on the local machine. To do this, first, we need to edit the postgresql.conf file:</p>

<pre><code>$ sudo gedit /etc/postgresql/8.3/main/postgresql.conf
</code></pre>

<p>Now, to edit a couple of lines in the &#8216;Connections and Authentication&#8217; section&#8230;</p>

<p>Change the line:</p>

<pre><code>#listen_addresses = 'localhost'
</code></pre>

<p>to</p>

<pre><code>listen_addresses = '*'
</code></pre>

<p>and also change the line:</p>

<pre><code>#password_encryption = on
</code></pre>

<p>to</p>

<pre><code>password_encryption = on
</code></pre>

<p>Then save the file and close gedit.</p>

<p>Now for the final step, we must define who can access the server. This is all done using the pg_hba.conf file.<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<pre><code>$ sudo gedit /etc/postgresql/8.3/main/pg_hba.conf
</code></pre>

<p>Comment out, or delete the current contents of the file, then add this text to the bottom of the file:</p>

<p><pre># DO NOT DISABLE!</p>

<h1>If you change this first entry you will need to make sure that the</h1>

<h1>database</h1>

<h1>super user can access the database using some other method.</h1>

<h1>Noninteractive</h1>

<h1>access to all databases is required during automatic maintenance</h1>

<h1>(autovacuum, daily cronjob, replication, and similar tasks).</h1>

<p>#</p>

<h1>Database administrative login by UNIX sockets</h1>

<p>local   all         postgres                          ident sameuser</p>

<h1>TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD</h1>

<h1>"local" is for Unix domain socket connections only</h1>

<p>local   all         all                               md5</p>

<h1>IPv4 local connections:</h1>

<p>host    all         all         127.0.0.1/32          md5</p>

<h1>IPv6 local connections:</h1>

<p>host    all         all         ::1/128               md5</p>

<h1>Connections for all PCs on the subnet</h1>

<p>#</p>

<h1>TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD</h1>

<p>host    all         all         [ip address]          [subnet mask]  md5</pre></p>

<p>and in the last line, add in your subnet mask (i.e. 255.255.255.0) and the IP address of the machine that you would like to access your server (i.e. 138.250.192.115). However, if you would like to enable access to a range of IP addresses, just substitute the last number for a zero and all machines within that range will be allowed access (i.e. 138.250.192.0 would allow all machines with an IP address 138.250.192.x to use the database server).</p>

<p>That&#8217;s it, now all you have to do is restart the server:</p>

<pre><code>$ sudo /etc/init.d/postgresql-8.3 restart
</code></pre>

<p>And all should be working.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>The following advice can also be given to you (plus you don&#8217;t even need to figure out IP addresses and subnet masks) from the latest versions of pgAdmin (1.6.x).  But it doesn&#8217;t hurt to know how things work.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstall-postgresql-on-ubuntu-804&amp;seed_title=Install+PostgreSQL+on+Ubuntu%26%23160%3B8.04/feed</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>Installing R/BioConductor on Ubuntu&#160;8.04</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstalling-r-bioconductor-on-ubuntu-804&amp;seed_title=Installing+R%2FBioConductor+on+Ubuntu%26%23160%3B8.04</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstalling-r-bioconductor-on-ubuntu-804&amp;seed_title=Installing+R%2FBioConductor+on+Ubuntu%26%23160%3B8.04#comments</comments>
		<pubDate>Wed, 07 May 2008 18:41:39 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bioconductor]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[r]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=119</guid>
		<description><![CDATA[The new version of Ubuntu is out, (as if you haven&#8217;t heard that by now), so that means a fresh install to play about with and working just the way I want!  

One of the tools that I currently need (for the thesis work) is R and the BioConductor libraries.  So here&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<p>The new version of Ubuntu is out, (as if you haven&#8217;t heard that by now), so that means a fresh install to play about with and working just the way I want! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt=':D' class='wp-smiley' /> </p>

<p>One of the tools that I currently need (for the thesis work) is <a href="http://www.r-project.org/">R</a> and the <a href="http://www.bioconductor.org/">BioConductor</a> libraries.  So here&#8217;s a quick run down on getting them up and installed on Hardy&#8230;</p>

<p>First up, run these commands in a terminal:</p>

<pre><code>sudo apt-get install build-essential g77 gfortran
sudo apt-get install refblas3 refblas3-dev zlib1g-dev
sudo apt-get install r-base
</code></pre>

<p>This will then install the R base packages and some of the BioConductor packages, along with the gcc and fortran compilers and some other libraries that will be required for the next step.</p>

<pre><code>sudo -s
R
</code></pre>

<p>Now at the R prompt, type the followingâ€¦</p>

<pre><code>source("http://www.bioconductor.org/biocLite.R")
biocLite()
</code></pre>

<p>Now sit back for a few minutes while your system configures BioConductor for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstalling-r-bioconductor-on-ubuntu-804&amp;seed_title=Installing+R%2FBioConductor+on+Ubuntu%26%23160%3B8.04/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing VMware Tools on Ubuntu 8.04&#160;(Hardy)</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstalling-vmware-tools-on-ubuntu-804-hardy&amp;seed_title=Installing+VMware+Tools+on+Ubuntu+8.04%26%23160%3B%28Hardy%29</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstalling-vmware-tools-on-ubuntu-804-hardy&amp;seed_title=Installing+VMware+Tools+on+Ubuntu+8.04%26%23160%3B%28Hardy%29#comments</comments>
		<pubDate>Mon, 05 May 2008 09:11:41 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=140</guid>
		<description><![CDATA[If you&#8217;re a VMware user and want to play around with the latest version of Ubuntu in a VM (like me), you&#8217;ll need to get the vmware-tools installed.  Unfortunately, things are not quite as straight forward as the previous release of Ubuntu yet, but it was a pretty easy thanks to this great guide.

The [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a VMware user and want to play around with the latest version of Ubuntu in a VM (like me), you&#8217;ll need to get the vmware-tools installed.  Unfortunately, things are not quite as <a href="/2007/11/03/installing-vmware-tools-on-ubuntu-gutsy/">straight forward as the previous release</a> of Ubuntu yet, but it was a pretty easy thanks to this <a href="http://peterc.org/2008/62-how-to-install-vmware-tools-on-ubuntu-hardy-804-under-vmware-fusion.html">great guide</a>.</p>

<blockquote>The latest version of Ubuntu (8.04 a.k.a. Ubuntu Hardy - the worldâ€™s most popular Linux distribution) came out yesterday on April 24th. I downloaded it right away to play with on VMware Fusion, my Mac virtualization tool of choice (though Iâ€™ve now been told this works in VMware Workstation and VMware Player on the PC too!). It worked pretty well out of the box, with even seamless mouse support working right away, but I needed, of course, to install VMware Tools too, as any good VMware user would do. From there, things turned sour, and I was bombarded with error messages &#8230;</blockquote>

<p><a href="http://peterc.org/2008/62-how-to-install-vmware-tools-on-ubuntu-hardy-804-under-vmware-fusion.html" class="via">read more</a></p>
<a href="http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstalling-vmware-tools-on-ubuntu-804-hardy&amp;seed_title=Installing+VMware+Tools+on+Ubuntu+8.04%26%23160%3B%28Hardy%29" rel="bookmark" class="asides-permalink" title="Permanent Link to Installing VMware Tools on Ubuntu 8.04&nbsp;(Hardy)">(0)</a>]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Finstalling-vmware-tools-on-ubuntu-804-hardy&amp;seed_title=Installing+VMware+Tools+on+Ubuntu+8.04%26%23160%3B%28Hardy%29/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix&#160;Toolbox</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&amp;seed_title=Unix%26%23160%3BToolbox</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&amp;seed_title=Unix%26%23160%3BToolbox#comments</comments>
		<pubDate>Sun, 23 Mar 2008 11:56:50 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/03/23/unix-toolbox/</guid>
		<description><![CDATA[Found this via a post on Digg.  A very useful read if you want to get some more advanced things done in Unix.


  This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the [...]]]></description>
			<content:encoded><![CDATA[<p>Found this via a <a href="http://digg.com/linux_unix/Biggest_Unix_Cheat_Sheet">post on Digg</a>.  A very useful read if you want to get some more advanced things done in Unix.</p>

<blockquote>
  <p>This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.</p>
</blockquote>

<p><a href="http://cb.vu/unixtoolbox.xhtml" class="via">full article</a></p>
<a href="http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&amp;seed_title=Unix%26%23160%3BToolbox" rel="bookmark" class="asides-permalink" title="Permanent Link to Unix&nbsp;Toolbox">(0)</a>]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&amp;seed_title=Unix%26%23160%3BToolbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bio-Linux - Bioinformatics Tools for&#160;Linux</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Fbio-linux-bioinformatics-tools-for-linux&amp;seed_title=Bio-Linux+-+Bioinformatics+Tools+for%26%23160%3BLinux</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Fbio-linux-bioinformatics-tools-for-linux&amp;seed_title=Bio-Linux+-+Bioinformatics+Tools+for%26%23160%3BLinux#comments</comments>
		<pubDate>Fri, 07 Mar 2008 08:52:03 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/03/07/bio-linux-bioinformatics-tools-for-linux/</guid>
		<description><![CDATA[Bio-Linux is a specialised Linux disro that provides both standard and cutting edge bioinformatics software tools on a Linux base.

I wrote a post on my old blog a little while back now detailing how to use the packages from Bio-Linux in Ubuntu Linux, but it got missed in the migration (sorry to all those who [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://nebc.nox.ac.uk/biolinux.html">Bio-Linux</a> is a specialised Linux disro that provides both standard and cutting edge bioinformatics software tools on a Linux base.</p>

<p>I wrote a post on my old blog a little while back now detailing how to use the packages from Bio-Linux in <a href="http://www.ubuntu.com/">Ubuntu Linux</a>, but it got missed in the migration (sorry to all those who have been searching for it).  Here&#8217;s a repost and update for Ubuntu 7.10&#8230;</p>

<p><span id="more-120"></span></p>

<p>Log into your system and open up a terminal, then follow these stepsâ€¦</p>

<pre><code>sudo gedit /etc/apt/sources.list
</code></pre>

<p>Add the following lines to the end of the file:</p>

<pre><code># Bio-Linux package repository
deb http://envgen.nox.ac.uk/bio-linux/ unstable bio-linux
</code></pre>

<p>Save and close the file, now back at the terminal type the following:<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<pre><code>sudo apt-get update
sudo apt-get install bio-linux-base-directories bio-linux-staden
</code></pre>

<p>Next step is to set-up your environment for Bio-Linux&#8230;</p>

<pre><code>sudo gedit /etc/bash.bashrc
</code></pre>

<p>Add the following lines to the end of the file:</p>

<pre><code># Set up Bio-Linux Environment
source /usr/local/bioinf/config_files/aliasrc
source /usr/local/bioinf/config_files/bioenvrc
</code></pre>

<p>Save and close the file.</p>

<p>That&#8217;s it, now all of the packages available through Bio-Linux are now available to you in Ubuntu.  One final word of warning&#8230;  I&#8217;ve noticed that a few of the packages are a little out of date, (the Bio-Linux version of Taverna is 1.4, but 1.7 is <a href="http://taverna.sourceforge.net/">now available</a>)<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup> so it might be worth checking the version numbers before installing things.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>Note that we need to install the <code>bio-linux-staden</code> package, without this we&#8217;d have to do a bit more hacking in config files to stop getting errors whenever we open up a terminal.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:2">
<p>The other thing to note with the Bio-Linux version of Taverna - it doesn&#8217;t start properly without a little bit of hacking&#8230; <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-sad.png' alt=':(' class='wp-smiley' />  (If you decided to go with the Bio-Linux version, you can launch it by running the following in the terminal: <code>/usr/local/bioinf/taverna/taverna/runme.sh</code>).&#160;<a href="#fnref:2" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Fbio-linux-bioinformatics-tools-for-linux&amp;seed_title=Bio-Linux+-+Bioinformatics+Tools+for%26%23160%3BLinux/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Stephen Fry on the Eee&#160;PC</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F02%2Fstephen-fry-on-the-eee-pc&amp;seed_title=Stephen+Fry+on+the+Eee%26%23160%3BPC</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F02%2Fstephen-fry-on-the-eee-pc&amp;seed_title=Stephen+Fry+on+the+Eee%26%23160%3BPC#comments</comments>
		<pubDate>Mon, 04 Feb 2008 14:00:43 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[eee]]></category>
		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/02/04/stephen-fry-on-the-eee-pc/</guid>
		<description><![CDATA[I really like the Eee PC - some people at work here have them, and if I could get it past the wife, i&#8217;d happily have one!  

Seems like the well spoken geek Stephen Fry is quite a fan too:


  I am writing this article on a kind of mini John the Baptist, [...]]]></description>
			<content:encoded><![CDATA[<p>I really like the Eee PC - some people at work here have them, and if I could get it past the wife, i&#8217;d happily have one! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>

<p>Seems like the well spoken geek Stephen Fry is quite a fan too:</p>

<blockquote>
  <p>I am writing this article on a kind of mini John the Baptist, a system that prepares the way of the software saviour whose coming will deliver the 90% of world computer users who suffer under Windows from the expensive, clumsy, costly, ugly, pricey toils of Microsoft.</p>
  
  <p>The Asus EEE PC perched on my knee combines GNU software with a Linux kernel powered by an Intel Celeron Mobile Processor to produce a very extraordinary little laptop. It weighs less than a kilogram, starts up from cold in about 12 seconds and shuts down in five. It has no internal hard disk and no CD drive. It offers 512MB of RAM, 4GB of storage and a seven-inch display; wireless, dial-out modem and ethernet adaptors are available for networking and internet connections, three USB ports, mini-jack sockets for headphones and microphone, a VGA out, an SD card slot and a built-in webcam. All for about Â£200 - less than the price of a show, dinner and taxi for two in Londonâ€™s West End.</p>
</blockquote>

<p><a href="http://stephenfry.com/blog/?p=39" class="via">read more</a></p>
<a href="http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F02%2Fstephen-fry-on-the-eee-pc&amp;seed_title=Stephen+Fry+on+the+Eee%26%23160%3BPC" rel="bookmark" class="asides-permalink" title="Permanent Link to Stephen Fry on the Eee&nbsp;PC">(0)</a>]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F02%2Fstephen-fry-on-the-eee-pc&amp;seed_title=Stephen+Fry+on+the+Eee%26%23160%3BPC/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Shared-Key Setup - SSH Logins Without&#160;Passwords</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fssh-shared-key-setup-ssh-logins-without-passwords&amp;seed_title=SSH+Shared-Key+Setup+-+SSH+Logins+Without%26%23160%3BPasswords</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fssh-shared-key-setup-ssh-logins-without-passwords&amp;seed_title=SSH+Shared-Key+Setup+-+SSH+Logins+Without%26%23160%3BPasswords#comments</comments>
		<pubDate>Thu, 10 Jan 2008 17:56:59 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/01/10/ssh-shared-key-setup-ssh-logins-without-passwords/</guid>
		<description><![CDATA[SSH is a great tool for remotely accessing another machine, but entering your password every time you log into a remote box can be a pain if you would like to set-up some background scripts to connect to a server and do something (i.e. a backup script running as a cron job).  Here&#8217;s how [...]]]></description>
			<content:encoded><![CDATA[<p>SSH is a great tool for remotely accessing another machine, but entering your password every time you log into a remote box can be a pain if you would like to set-up some background scripts to connect to a server and do something (i.e. a backup script running as a cron job).  Here&#8217;s how I set-up my Mac to be able to log into my server without the need for a password to be entered each time - the instructions should be good for any variant of Unix/Linux, but you need to take into account path names etc. on your machine.</p>

<p><span id="more-97"></span></p>

<p>The first thing we will do is generate a key for the SHH version 1 protocol (just in case you are connecting to an older machine):</p>

<pre><code>ssh-keygen -t rsa1
</code></pre>

<p>SSH-Keygen will respond with something like the following:</p>

<pre><code>Generating public/private rsa1 key pair.
Enter file in which to save the key (/Users/daz/.ssh/identity):
</code></pre>

<p>At this point hit enter then you will be prompted for a passphrase - this is a form of password that will be used to generate your unique keys and can contain any set of characters and spaces - something like <em>&quot;I&#8217;m really liking all of this geeky nonsense!&quot;</em> is a perfectly acceptable passphrase - just whatever you do, don&#8217;t use an empty passphrase.  After entering (and confirming) your passphrase you will get the following output:</p>

<pre><code>Your identification has been saved in /Users/daz/.ssh/identity.
Your public key has been saved in /Users/daz/.ssh/identity.pub.
</code></pre>

<p>This means that our identity keys have been generated.  Now we just need to create a pair of keys for the SSH2 protocol - you can use the same or different passphrases for these keys - it&#8217;s up to you&#8230;</p>

<pre><code>ssh-keygen -t dsa
</code></pre>

<p>Then</p>

<pre><code>ssh-keygen -t rsa
</code></pre>

<p>You should now have three sets of keys in your <code>~/.ssh</code> directory, the ones with the .pub extension are your public keys (what we need to put on your other machines) and the others are your private keys - these must be kept safe!</p>

<p>So, let&#8217;s use <code>scp</code> to copy the files across:</p>

<pre><code>scp ~/.ssh/*.pub daz@MyServer:/home/daz/
</code></pre>

<p>Then log into your server using <code>ssh</code> and issue the following commands:</p>

<pre><code>cat identity.pub &gt;&gt;~/.ssh/authorized_keys
cat id_dsa.pub &gt;&gt;~/.ssh/authorized_keys
cat id_rsa.pub &gt;&gt;~/.ssh/authorized_keys
rm identity.pub id_dsa.pub id_rsa.pub
</code></pre>

<p>This populates the <code>authorized_keys</code> file on our server with the three public keys that we have just transferred and then removes them as they&#8217;re no longer needed here.</p>

<p>That&#8217;s everything done, now all we have to do is log out of our server, and then try and log back in via ssh - a password should no longer be required!<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>This isn&#8217;t strictly true - on OS X it asks you for the <code>id_rsa</code> passphrase that we established before, you will need to enter this, but you can then have it stored in the keychain for hassle free use from here.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fssh-shared-key-setup-ssh-logins-without-passwords&amp;seed_title=SSH+Shared-Key+Setup+-+SSH+Logins+Without%26%23160%3BPasswords/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->