<?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>Angus Thinks... &#187; Linux</title>
	<atom:link href="http://www.malcolmhardie.com/weblogs/angus/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.malcolmhardie.com/weblogs/angus</link>
	<description>SQLEditor for Mac OS X, Life and general thoughts</description>
	<lastBuildDate>Fri, 30 Jul 2010 00:32:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Disable &#8220;You have new mail&#8221; terminal message</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 02:13:01 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/</guid>
		<description><![CDATA[By default in linux you get a message saying something like You have new mail in when you log into a linux machine. Sometimes this gets annoying because you always have new mail, or because there seems to be a &#8230; <a href="http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>By default in linux you get a message saying something like</p>
<p><tt>You have new mail in</tt></p>
<p>when you log into a linux machine.</p>
<p>Sometimes this gets annoying because you always have new mail, or because there seems to be a delay while checking the mail or because the mail is actually stored on some kind of remote disk.</p>
<p>Disabling this setting is easy. Simply include</p>
<p><tt>unset MAILCHECK</tt></p>
<p>in your .bashrc file (for login shell) or .bash_profile (for non-login shells, i.e. ssh) and the message shouldn&#8217;t appear.</p>
<p>For me it speeds up login for my linux server and removes clutter.<br />
I got this from:</p>
<p><a href="http://www.savarese.org/patches/bash.html">http://www.savarese.org/patches/bash.html</a></p>
<p>There is also a more detailed explanation that I found here:</p>
<p><a href="http://www.cygwin.com/ml/cygwin/1998-08/msg00365.html">http://www.cygwin.com/ml/cygwin/1998-08/msg00365.html</a></p>
<p>This page explans the difference between .bashrc and .bash_profile:</p>
<p><a href="http://joshstaiger.org/archives/2005/07/bash_profile_vs.html"> http://joshstaiger.org/archives/2005/07/bash_profile_vs.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2007/07/19/disable-you-have-new-mail-terminal-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux autologin</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2007/02/21/linux-autologin/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2007/02/21/linux-autologin/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 16:51:45 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Writing Software]]></category>

		<guid isPermaLink="false">http://www.malcolmhardie.com/weblogs/angus/2007/02/21/linux-autologin/</guid>
		<description><![CDATA[I use a collection of virtual machines in parallels for a number of things, like testing SQLEditor and running web apps that would otherwise require lots of software dependencies. However I&#8217;ve been getting tired of logging in to my linux &#8230; <a href="http://www.malcolmhardie.com/weblogs/angus/2007/02/21/linux-autologin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I use a collection of virtual machines in parallels for a number of things, like testing SQLEditor and running web apps that would otherwise require lots of software dependencies. However I&#8217;ve been getting tired of logging in to my linux virtual machines all the time. If it were just a case of ssh then obviously I could set up ssh key pairs and do auto-login, but I also need direct terminal access too, in this case in the main parallels window.</p>
<p>With a physical machine to get autologin in this situation would mean that the machine would boot and immediately log the user in without interaction.</p>
<div style="border: 1px solid #333333; padding: 0.25em 1em 1em; background-color: #eeeeee">
<h3 style="font-weight: bold; color: #992222">Important Warning</h3>
<p>This represents some security risk. You need to consider your circumstances carefully first to ensure that this will not open your machine to malicious use.</p></div>
<p>(Of course there is always the point that if someone has physical access to your machine then there&#8217;s not much hope anyway. But still &#8230;)</p>
<p>Fortunately this is possible and actually quite easy if you don&#8217;t mind editing a configuration file.</p>
<p>The file you need is <code>/etc/inittab</code></p>
<div style="border: 1px solid #333333; padding: 0.25em 1em 1em; background-color: #eeeeee">
<h3 style="font-weight: bold; color: #992222">Important Warning (2)</h3>
<p><code>/etc/inittab</code> is vital to the operation of your machine. Incorrect editing will cause a number of problems.</p>
<p>If you are making these changes to a virtual machine simply make another. Alternatively try logging in via ssh to undo the changes.</p></div>
<p>The change you need to make is to find the line that looks like:</p>
<p><font size="-1"><code>1:2345:respawn:/sbin/mingetty tty1</code></font></p>
<p>and change it to look like this (where username is the user that you want to autologin as)</p>
<p><font size="-1"><code>1:2345:respawn:/sbin/mingetty --autologin username tty1</code></font></p>
<p><font size="-1">The original source of this is <a href="http://easymamecab.mameworld.net/html/autologin.htm">EasyMameCab</a>; which looks like a clever idea in itself. They are using linux as the base system for building a video game cabinet, so obviously they don&#8217;t want logins appearing. </font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2007/02/21/linux-autologin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Running Oracle &#8211; The Solution</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2006/05/10/running-oracle-the-solution/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2006/05/10/running-oracle-the-solution/#comments</comments>
		<pubDate>Wed, 10 May 2006 06:57:15 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Parallels-workstation]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLEditor]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.malcolmhardie.com/weblogs/angus/?p=177</guid>
		<description><![CDATA[This follows on from my previous posting. Searching for an Oracle This is kind of old news now, because it&#8217;s been in use since SQLEditor 1.2 was released. However I though I would explain how I solved the problem that &#8230; <a href="http://www.malcolmhardie.com/weblogs/angus/2006/05/10/running-oracle-the-solution/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This follows on from my previous posting. <a href="http://www.malcolmhardie.com/weblogs/angus/?p=170">Searching for an Oracle</a></p>
<p>This is kind of old news now, because it&#8217;s been in use since SQLEditor 1.2 was released. However I though I would explain how I solved the problem that I was having with installing Oracle.</p>
<p>The problem was that I didn&#8217;t have a linux machine with enough memory and at the time, qemu wasn&#8217;t really fast enough to run Oracle in a virtual machine.</p>
<p>The first strategy I used was to upgrade the memory in my linux box (Cetaganda) to 512 MB. This solved the memory problem and meant that the testing could continue.</p>
<p>Then <a href="http://www.parallels.com">Parallels Workstation</a> was released, which was able to run Oracle XE in a virtual machine fast enough for regular use. It also uses a different IP address than the host machine, which is useful in itself for testing.</p>
<p>Parallels is definitely the answer to this problem, I don&#8217;t need to switch on another machine, there is no additional noise and the performance is excellent for my purposes. I&#8217;m even considering adding the loading of the VM to the unit test setup so it will load automatically before the test cycle starts.</p>
<p>I&#8217;ve also got MySQL and Postgres running inside virtual machines.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2006/05/10/running-oracle-the-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change console keyboard layout in debian</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2006/05/02/change-console-keyboard-layout-in-debian/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2006/05/02/change-console-keyboard-layout-in-debian/#comments</comments>
		<pubDate>Tue, 02 May 2006 17:11:48 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Macintosh]]></category>

		<guid isPermaLink="false">http://www.malcolmhardie.com/weblogs/angus/?p=176</guid>
		<description><![CDATA[I&#8217;ve been using Parallels Workstation virtualization a lot recently for testing databases and it works amazingly well. However I did come across a weird problem. I&#8217;d installed Debian linux and the console keyboard layout wasn&#8217;t correct for my Apple USB &#8230; <a href="http://www.malcolmhardie.com/weblogs/angus/2006/05/02/change-console-keyboard-layout-in-debian/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.parallels.com/">Parallels Workstation</a> virtualization a lot recently for testing databases and it works amazingly well.</p>
<p>However I did come across a weird problem. I&#8217;d installed <a href="http://www.debian.org">Debian linux</a> and the console keyboard layout wasn&#8217;t correct for my Apple USB keyboard.<br />
The solution was to use this command</p>
<p><code>dpkg-reconfigure console-data</code></p>
<p>Which walked me through selecting the right keyboard layout.</p>
<p>[<a href="http://lists.debian.org/debian-user/2003/10/msg05790.html">link</a>]</p>
<p>[Edited to correct a typo]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2006/05/02/change-console-keyboard-layout-in-debian/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Searching for an Oracle</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2006/02/22/searching-for-an-oracle/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2006/02/22/searching-for-an-oracle/#comments</comments>
		<pubDate>Tue, 21 Feb 2006 23:56:03 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[SQLEditor]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.malcolmhardie.com/weblogs/angus/?p=170</guid>
		<description><![CDATA[Recently I&#8217;ve been trying to set up a box to run Oracle again. There are enough SQLEditor users that Oracle support is important. Fortunately Oracle have several downloads that can be used, there is a developer license for 10g and &#8230; <a href="http://www.malcolmhardie.com/weblogs/angus/2006/02/22/searching-for-an-oracle/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been trying to set up a box to run Oracle again. There are enough <a href="http://www.malcolmhardie.com">SQLEditor</a> users that Oracle support is important.</p>
<p>Fortunately Oracle have several downloads that can be used, there is a developer license for 10g and various chargeable options. However the option that is most interesting is Oracle Express. This is a cut down version of Oracle that has some limitations in maximum performance, but otherwise works the same as the regular version. For my purposes it&#8217;s perfect, since I&#8217;m not actually doing any data processing at all, maximum performance is irrelevant.</p>
<p>So the next step was to download and install a copy.</p>
<p>First I had to select windows or linux. Obviously a difficult choice, so I avoided it and downloaded both just in case. </p>
<p>Next I looked around for a suitable machine to run this database on. Oracle 10g does run on macs, but no word of Intel mac support, so my Imac is out (directly at least).</p>
<p>My next thought was a virtual machine on my Intel Imac &#8216;aslund&#8217;. <a href="http://www.kberg.ch/q">Qemu</a> runs windows really quite well and it runs linux perfectly well too. Unfortunately despite several hours playing around with settings I couldn&#8217;t get anything that would run fast enough and I couldn&#8217;t seem to get Oracle to run properly at all. I suspect that either I didn&#8217;t get one of the settings right, or there is some other problem somewhere.</p>
<p>Next I thought about &#8216;cetaganda&#8217;, which is my windows box. This meets the minimum requirements of 256MB ram, and has both windows and linux. No worries there.</p>
<p>Unfortunately it was debian linux and this requires Red Hat Enterprise Linux. After some thought I realized that <a href="http://www.centos.org">Centos</a> is a clone of Red Hat and so should work just as well. Which is probably would, if only my machine had enough memory. Unfortunately this machine was built to a (small) budget and has integrated graphics. The integrated graphics use memory from the main system for graphics, which reduces it from a nominal 256MB to only about 218 MB. 218MB isn&#8217;t enough for Oracle apparently and it complained. </p>
<p>Next step, the windows download (lucky I got them both before).</p>
<p>Windows XP sees the installer, unfortunately the same problem: not enough memory. (Although oddly the release notes mention this being a problem that has been fixed). </p>
<p>Next I may consider my iBook &#8216;Komarr&#8217;, however that will be annoying, because when I tried it before, it was slow.</p>
<p>The best plan may be to add more memory to cetaganda and run it that way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2006/02/22/searching-for-an-oracle/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PSpell in debian with PHP</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2005/12/01/pspell-in-debian-with-php/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2005/12/01/pspell-in-debian-with-php/#comments</comments>
		<pubDate>Thu, 01 Dec 2005 05:25:12 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.malcolmhardie.com/weblogs/angus/?p=165</guid>
		<description><![CDATA[The default debian stable packages for php4 don&#8217;t seem to include pspell. I&#8217;ve been looking at using the AJAX spell checker in something, but then I realized that it wouldn&#8217;t work, at least not with my current server setup. http://lists.debian.org/debian-devel/2005/09/msg00064.html]]></description>
			<content:encoded><![CDATA[<p>The default debian stable packages for php4 don&#8217;t seem to include pspell. I&#8217;ve been looking at using the <a href="http://me.eae.net/archive/2005/07/26/litespellchecker">AJAX spell checker</a> in something, but then I realized that it wouldn&#8217;t work, at least not with my current server setup.</p>
<p>http://lists.debian.org/debian-devel/2005/09/msg00064.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2005/12/01/pspell-in-debian-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Sarge</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2005/07/07/debian-sarge/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2005/07/07/debian-sarge/#comments</comments>
		<pubDate>Thu, 07 Jul 2005 05:10:22 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">/?p=151</guid>
		<description><![CDATA[I realized that I&#8217;d managed to update to Sarge (v 3.1) mostly without noticing. I should have pinned my packages to woody (3.0) but didn&#8217;t realize, which meant that I went through the update process without actually noticing. This led &#8230; <a href="http://www.malcolmhardie.com/weblogs/angus/2005/07/07/debian-sarge/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I realized that I&#8217;d managed to update to Sarge (v 3.1) mostly without noticing. I should have pinned my packages to woody (3.0) but didn&#8217;t realize, which meant that I went through the update process without actually noticing. This led to a number of odd problems. In particular I hadn&#8217;t disabled a number of backports, which led to difficulties with apache, php, mysql and postgresql. This happened because the ports were set up to target woody (3.0) rather than Sarge (3.1). </p>
<p>However I have now properly upgraded to Sarge on marilac. Hopefully this will be a suitably satisfactory release and will provide many hours of happy uptime. <img src='http://www.malcolmhardie.com/weblogs/angus/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2005/07/07/debian-sarge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
