<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on despatches</title><link>https://icle.es/tags/linux/</link><description>Recent content in Linux on despatches</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 18 Mar 2026 15:13:17 +0000</lastBuildDate><atom:link href="https://icle.es/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Restricting Linux Logins to Specified Group</title><link>https://icle.es/2012/03/21/restricting-linux-logins-to-specified-group/</link><pubDate>Wed, 21 Mar 2012 11:36:45 +0000</pubDate><guid>https://icle.es/2012/03/21/restricting-linux-logins-to-specified-group/</guid><description>&lt;p>If you have linux boxes that authenticate over ldap but want logins for specific
boxes to be restricted to a particular group, there is a simple way to achieve
this.&lt;/p>
&lt;p>Firstly, create a new file called &lt;code>/etc/group.login.allow&lt;/code> (it can be called
anything - you just need to update the line below to reflect the name)&lt;/p>
&lt;p>In this file, pop in all the groups that should be able to login&lt;/p>
```
admin
group1
group2
```
&lt;p>Edit &lt;code>/etc/pam.d/common-auth&lt;/code> (in ubuntu), it might be
called &lt;code>/etc/pam.d/system-auth&lt;/code> or something else very similar. At the top of
the file (or at least above other entries, add the following line:&lt;/p></description><content:encoded><![CDATA[<p>If you have linux boxes that authenticate over ldap but want logins for specific
boxes to be restricted to a particular group, there is a simple way to achieve
this.</p>
<p>Firstly, create a new file called <code>/etc/group.login.allow</code> (it can be called
anything - you just need to update the line below to reflect the name)</p>
<p>In this file, pop in all the groups that should be able to login</p>
```
admin
group1
group2
```
<p>Edit <code>/etc/pam.d/common-auth</code> (in ubuntu), it might be
called <code>/etc/pam.d/system-auth</code> or something else very similar. At the top of
the file (or at least above other entries, add the following line:</p>
```
auth required pam_listfile.so onerr=fail item=group sense=allow file=/etc/group.login.allow
```
<p>For the record, found this little tidbit
<a href="https://www.centos.org/modules/newbb/viewtopic.php?topic_id=25940" title="Allow Only Specific LDAP Group Access (CentOS Forums)">over at the centos forums</a>\</p>
]]></content:encoded></item><item><title>Exporting X11 to Windows [1109]</title><link>https://icle.es/2011/11/24/exporting-x11-to-windows-1109/</link><pubDate>Thu, 24 Nov 2011 21:10:55 +0000</pubDate><guid>https://icle.es/2011/11/24/exporting-x11-to-windows-1109/</guid><description>&lt;p>Playing Skyrim the last week, sometimes I just missed Linux so terribly that I
wanted a piece of it and not just the command line version. I wanted X Windows
on my Windows 7.&lt;/p>
&lt;p>There has been a solution for this for several years and the first time I did
this, I installed &lt;a href="http://www.cygwin.com/" title="cygwin">cygwin&lt;/a> with X11 but there
is a far simpler way to accomplish this.&lt;/p>
&lt;p>Install &lt;a href="http://www.straightrunning.com/XmingNotes/" title="XMing">XMing&lt;/a>. I then used
putty, which has the forward X11 option. Once logged in, running xeyes shows the
window exported onto my Windows 7. Ah.. so much better.&lt;/p></description><content:encoded><![CDATA[<p>Playing Skyrim the last week, sometimes I just missed Linux so terribly that I
wanted a piece of it and not just the command line version. I wanted X Windows
on my Windows 7.</p>
<p>There has been a solution for this for several years and the first time I did
this, I installed <a href="http://www.cygwin.com/" title="cygwin">cygwin</a> with X11 but there
is a far simpler way to accomplish this.</p>
<p>Install <a href="http://www.straightrunning.com/XmingNotes/" title="XMing">XMing</a>. I then used
putty, which has the forward X11 option. Once logged in, running xeyes shows the
window exported onto my Windows 7. Ah.. so much better.</p>
<p>I actually used this to run terminator to connect to a number of servers. Over
local LAN, the windows didn't have any perceptible lag or delay. It was more or
less like running it locally.</p>
<p>It is possible to set up shortcuts to run an application through putty and have
it exported to your desktop. I haven't played with this enough to comment
though.</p>
<p>This of course only worked because I have another box which is running Linux. If
that is not the case for you, then you might want to try
<a href="https://www.virtualbox.org/" title="VirtualBox">VirtualBox</a> but since the linux
kernel developers have described the kernel modules as
<a href="http://www.phoronix.com/scan.php?page=news_item&amp;px=OTk5Mw" title="The VirtualBox Kernel Driver Is Tainted Crap">tainted crap</a>,
you might want to consider <a href="http://www.vmware.com" title="vmware">vmware</a> instead
which is an excellent product.</p>
]]></content:encoded></item><item><title>Saving your workspace window configuration in Linux [1102]</title><link>https://icle.es/2011/11/02/saving-your-workspace-window-configuration-in-linux-1102/</link><pubDate>Wed, 02 Nov 2011 23:57:22 +0000</pubDate><guid>https://icle.es/2011/11/02/saving-your-workspace-window-configuration-in-linux-1102/</guid><description>&lt;p>I am usually working on a good half a dozen things at any given time and this
means that I usually have a good ten or twenty windows open. My chromium
currently has a 134 tabs and this is after I  cleaned up and closed all the tabs
I no longer need.&lt;/p>
&lt;p>Luckily, working in Linux means that I can spread each stream of work into the
various workspaces.&lt;/p>
&lt;p>Now GNOME 3 makes things a little more complicated with the dynamic workspaces
but I&amp;rsquo;m learning to use it to my advantage&lt;/p>
&lt;p>However, with Ubuntu 11.10 Oneiric Ocelot and GNOME 3, I seem to be running into
an issue regularly&amp;hellip;If I leave my computer for a while, it doesn&amp;rsquo;t unlock
correctly. The screen remains black and I can&amp;rsquo;t move the mouse to my second
screen and the unlock screen doesn&amp;rsquo;t show up.&lt;/p></description><content:encoded><![CDATA[<p>I am usually working on a good half a dozen things at any given time and this
means that I usually have a good ten or twenty windows open. My chromium
currently has a 134 tabs and this is after I  cleaned up and closed all the tabs
I no longer need.</p>
<p>Luckily, working in Linux means that I can spread each stream of work into the
various workspaces.</p>
<p>Now GNOME 3 makes things a little more complicated with the dynamic workspaces
but I&rsquo;m learning to use it to my advantage</p>
<p>However, with Ubuntu 11.10 Oneiric Ocelot and GNOME 3, I seem to be running into
an issue regularly&hellip;If I leave my computer for a while, it doesn&rsquo;t unlock
correctly. The screen remains black and I can&rsquo;t move the mouse to my second
screen and the unlock screen doesn&rsquo;t show up.</p>
<p>Thinking about it, it seems like there might be two screen savers being started
but I shall investigate that tomorrow. I have the same issue at both work and
home so it is more likely to be related to Ubuntu + GNOME 3 or something about
the way I set things up.</p>
<p>I  usually resolve this by logging into the console and here a neat trick for
killing all our processes in one fell swoop.</p>
```bash
$ kill -9 -1
```
<p>Another thing I have been doing a bit more of recently is gaming which involves
rebooting in Windows.</p>
<p>Both of the above leaves me with a restarted workspace. Starting up the
applications pops them all into the same workspace. Chrome is especially a
nightmare. I might have 135 open tabs but they are in about 6 windows spread
across four workspaces.</p>
<p>It is annoying to have to distribute these things out each time.</p>
<p>After having done much research, I have not been able to find a clean automated
solution.</p>
<p>There are two half solution that I have found however.</p>
<p>The first one is <a href="http://live.gnome.org/DevilsPie" title="Devil&#39;s Pie">Devil&rsquo;s Pie</a>
and for a graphical interface
<a href="http://code.google.com/p/gdevilspie/" title="gdevilspie">gdevilspie</a>. According the
website for Devil&rsquo;s Pie, it is &ldquo;A totally crack-ridden program for freaks and
weirdos who want precise control over what windows do when they appear. If you
want all XChat windows to be on desktop 3, in the lower-left, at 40%
transparency, you can do it.&rdquo;</p>
<p>Unfortunately, that is exactly what it is. If you pre-determine where you want
your windows to be, you can use this very useful application. However, that is
not quite what I want. I want the current configuration to be remember. Exactly
like how Chromium remembers which tabs are in which order in which windows and
their position on the workspace, but for multiple workspaces.</p>
<p>Unfortunately, I couldn&rsquo;t find any way to save the current state.</p>
<p>There is however, another tool
<a href="http://thialfihar.org/projects/window_position_session/" title="Window Position Session">I found scouring the web.</a></p>
<p><a href="http://thialfihar.org/projects/window_position_session/" title="Window Position Session"></a>libwnck-3-dev
is what I installed on my Ubuntu box. There are two key commands here</p>
```bash
$ wnckprop --list
```
<p>This will list all the windows across all the workspaces. To get more
information on a specific Window,</p>
```bash
wnckprop --xid [XID]
```
<p>The XID is the number returned next to each window from the first command. The
post that I  mentioned above has a nifty tool attached that saves the window
positions and can also restore them using wnckprop.</p>
<p>However, it saves them based on the Window title. This of course doesn&rsquo;t work
for Chromium or such Windows that changes the title each time you change the
tab.</p>
<p>However, if the save is the last command you run and the restore is the first
command you run after opening up the windows, it can restore the windows into
the correct workspaces.</p>
<p>With the idea of the dynamic workspaces in GNOME 3, you might have to initialise
the workspaces first but it is better than spending five minutes after logging
in each time re-arranging windows&hellip;</p>]]></content:encoded></item><item><title>Synergy with Linux Server &amp;amp; Mac Client</title><link>https://icle.es/2010/04/18/synergy-with-linux-server-mac-client/</link><pubDate>Sun, 18 Apr 2010 15:41:03 +0000</pubDate><guid>https://icle.es/2010/04/18/synergy-with-linux-server-mac-client/</guid><description>&lt;p>I  borrowed a mac to try and play
with &lt;a href="http://en.wikipedia.org/wiki/IPhone">iPhone&lt;/a> development. I already have a
linux box (running Ubuntu 9.10). Anyone who has used two computers
simultaneously know how annoying it is to have two keyboards/mice plugged. I
originally anticipated just using X11 forwarding. However, it is
an &lt;a href="http://en.wikipedia.org/wiki/IMac">iMac&lt;/a>{with a big beautiful screen. It
would be an absolute waste to not use it.&lt;/p>
&lt;p>I installed &lt;a href="http://en.wikipedia.org/wiki/Synergy%20%28software%29">synergy&lt;/a> on
both ends, with the linux one as the server&lt;/p></description><content:encoded><![CDATA[<p>I  borrowed a mac to try and play
with <a href="http://en.wikipedia.org/wiki/IPhone">iPhone</a> development. I already have a
linux box (running Ubuntu 9.10). Anyone who has used two computers
simultaneously know how annoying it is to have two keyboards/mice plugged. I
originally anticipated just using X11 forwarding. However, it is
an <a href="http://en.wikipedia.org/wiki/IMac">iMac</a>{with a big beautiful screen. It
would be an absolute waste to not use it.</p>
<p>I installed <a href="http://en.wikipedia.org/wiki/Synergy%20%28software%29">synergy</a> on
both ends, with the linux one as the server</p>
```bash
$ sudo aptitude install synergy
```
<p>and the mac as the client</p>
<p><a href="http://sourceforge.net/projects/synergykm/">http://sourceforge.net/projects/synergykm/</a></p>
<p>and it worked.</p>
<p>There was just one very very annoying problem. The Ctrl key and Cmd keys were
different. This really messed with my muscle memory. After some hunting around,
I just had to update my .synergy.conf file in linux. Here is the relevant
section</p>
```
section: screens
    linux-desktop:
    imac:
    ctrl=alt
    alt=ctrl
    meta=alt
end
```
<p>et voila. It now works a charm. I  have neglected the configuration of the
synergykm and synergys but these can be figured out easily ;-)</p>
]]></content:encoded></item><item><title>Perfect Linux</title><link>https://icle.es/2009/12/15/perfect-linux/</link><pubDate>Tue, 15 Dec 2009 16:03:03 +0000</pubDate><guid>https://icle.es/2009/12/15/perfect-linux/</guid><description>&lt;p>According to &lt;a href="http://lunduke.com/?page_id=2">Brian Lunduke&lt;/a>{
&lt;a href="http://lunduke.com/?p=815" title="Ubuntu 9.10 - almost perfect">Ubuntu 9.10 is almost perfect&lt;/a>{
and I concur.&lt;/p>
&lt;p>Being a bit of a purist, I ran &lt;a href="http://www.debian.org">Debian&lt;/a>{for very many
years but found their stable releases lagging behind far too much. This was
largely due to their perfectly understandable view of it being ready only when
it is right.&lt;/p>
&lt;p>For a while, I ran their unstable distribution
called &lt;a href="http://www.debian.org/releases/unstable/">Sid&lt;/a>{ based on the disturbed,
hyperactive 10 year old boy in the
film &lt;a href="http://en.wikipedia.org/wiki/Toy%20Story">Toy Story&lt;/a>{ The idea being that
Sid breaks things, and it certainly did. While it taught me a heck of a lot
about linux (and the terminal), my computer was broken on a very regular basis.&lt;/p>
&lt;p>I switched down to
the &lt;a href="http://www.debian.org/releases/testing/">testing version&lt;/a> and that helped
ease the pain to a very large extent. I had always thought
that &lt;a href="http://www.debian.org">Debian&lt;/a> with a more regular and shorter release
cycle would make a world of difference.
Clearly, &lt;a href="http://en.wikipedia.org/wiki/Canonical%20Ltd.">Canonical&lt;/a> had the same
idea.&lt;/p></description><content:encoded><![CDATA[<p>According to <a href="http://lunduke.com/?page_id=2">Brian Lunduke</a>{
<a href="http://lunduke.com/?p=815" title="Ubuntu 9.10 - almost perfect">Ubuntu 9.10 is almost perfect</a>{
and I concur.</p>
<p>Being a bit of a purist, I ran <a href="http://www.debian.org">Debian</a>{for very many
years but found their stable releases lagging behind far too much. This was
largely due to their perfectly understandable view of it being ready only when
it is right.</p>
<p>For a while, I ran their unstable distribution
called <a href="http://www.debian.org/releases/unstable/">Sid</a>{ based on the disturbed,
hyperactive 10 year old boy in the
film <a href="http://en.wikipedia.org/wiki/Toy%20Story">Toy Story</a>{ The idea being that
Sid breaks things, and it certainly did. While it taught me a heck of a lot
about linux (and the terminal), my computer was broken on a very regular basis.</p>
<p>I switched down to
the <a href="http://www.debian.org/releases/testing/">testing version</a> and that helped
ease the pain to a very large extent. I had always thought
that <a href="http://www.debian.org">Debian</a> with a more regular and shorter release
cycle would make a world of difference.
Clearly, <a href="http://en.wikipedia.org/wiki/Canonical%20Ltd.">Canonical</a> had the same
idea.</p>
<p>Thus <a href="http://en.wikipedia.org/wiki/Ubuntu%20%28Linux%20distribution%29">Ubuntu</a>
was born and it has grown from strength to strength. Its latest distribution
of <a href="http://www.ubuntu.com/products/whatisubuntu/910features">9.10 codename karmic koala</a>
released October 2009, is a massive step forward.</p>
<p><a href="http://www.linkedin.com/in/stepram">Stephen</a>{ the head
of <a href="http://www.krayatec.co.uk">krayatec</a>{was so impressed by the new release
that he conducted an experiment. He asked three people in the office who are not
tech savvy to install and try out the new release. My view was that it was still
too early for such kind of an adoption. I felt that pushing people to try it out
at this stage would damage the reputation of the user friendliness
of <a href="http://en.wikipedia.org/wiki/Linux">Linux</a> rather than help it.</p>
<p>I must admit that I was proven wrong.  All of the installations went smoothly
and it was possible to log in and do the things that they wanted to do.</p>
<p>Do they now use <a href="http://en.wikipedia.org/wiki/Linux">Linux</a> instead
of <a href="http://en.wikipedia.org/wiki/Microsoft%20Windows">Windows</a> - No! There is
still a learning curve and with tight deadlines and little time for re-learning
how to navigate around a computer, it remains an experiment.</p>
<p>However, it does answer one question. Can a user who is not tech-savvy, pick up
a CD/DVD of the latest version
of <a href="http://en.wikipedia.org/wiki/Ubuntu%20%28Linux%20distribution%29">Ubuntu</a>
and run with it? The answer, from this very tiny experiment is a resounding Yes!</p>
<p>As someone who is technically very demanding, I have very few complaints about
the latest version. The only one is that it still looks largely the same as the
previous version. Then, the release is a collection of tools, so this is
understandable.</p>
<p>My three favourite things about the new release are:</p>
<ul>
<li>substantially faster bootup times</li>
<li><a href="http://en.wikipedia.org/wiki/Empathy%20%28software%29">Empathy</a> (particular
for people-nearby which works great in the office)</li>
<li><a href="http://en.wikipedia.org/wiki/Cloud%20services">Cloud</a> (Client &amp; Server)</li>
</ul>
<p>In my opinion, this is the beginning of the
end. <a href="http://en.wikipedia.org/wiki/Linux">Linux</a>, has finally taken a leap that
shows its potential to change everything&hellip; I would wish it luck, but it looks
like it doesn&rsquo;t need it ;-)</p>
<p>Why not
<a href="http://www.ubuntu.com/getubuntu/download" title="Download Ubuntu Live CD">download a live cd</a>
and try it out?</p>]]></content:encoded></item><item><title>Vista Guest, Linux Host, VirtualBox, Host Networking - Bridge</title><link>https://icle.es/2009/03/23/vista-guest-linux-host-virtualbox-host-networking-bridge/</link><pubDate>Mon, 23 Mar 2009 15:39:41 +0000</pubDate><guid>https://icle.es/2009/03/23/vista-guest-linux-host-virtualbox-host-networking-bridge/</guid><description>&lt;p>One would think that it would be straightforward, work off the bat, or at least
have some reasonable documentation. Unfortunately, no!&lt;/p>
&lt;p>I needed host networking to be able to access network resources (Samba shares
etc.) which does not work if the guest OS is on NAT :-(&lt;/p>
&lt;p>Solving it was easy though&amp;hellip; I assume Vista is installed as a guest with the
guest additions and that your user account is a part of the vboxusers group.&lt;/p></description><content:encoded><![CDATA[<p>One would think that it would be straightforward, work off the bat, or at least
have some reasonable documentation. Unfortunately, no!</p>
<p>I needed host networking to be able to access network resources (Samba shares
etc.) which does not work if the guest OS is on NAT :-(</p>
<p>Solving it was easy though&hellip; I assume Vista is installed as a guest with the
guest additions and that your user account is a part of the vboxusers group.</p>
<p>On the linux host, first install bridge utils. I run Ubuntu, so it was as easy
as:</p>
```bash
$ sudo aptitude install bridge-utils
```
<p>Next, you need to set up the bridge; again, easy on Ubuntu:</p>
<p>add the following section to /etc/network/interfaces</p>
```
auto br0
iface br0 inet dhcp
bridge_ports eth1
```
<p>Add the interfaces to VirtualBox</p>
```bash
$ sudo VBoxAddIF vbox0 'shri' br0
```
<p>Within the VirtualBox Guest settings, choose Host Networking and fo the
interface, choose br0</p>
<p>bring the interface up:</p>
```
$ sudo ifup br0
```
<p>and start your guest os&hellip; et voila, it just works&hellip;</p>
]]></content:encoded></item><item><title>Making Twitter Faster</title><link>https://icle.es/2009/03/04/making-twitter-faster/</link><pubDate>Wed, 04 Mar 2009 17:36:35 +0000</pubDate><guid>https://icle.es/2009/03/04/making-twitter-faster/</guid><description>&lt;p>From my perspective, Twitter has a really really interesting technical problem
to solve. How to store and retrieve a large amount of data really really
quickly.&lt;/p>
&lt;p>I am making some assumptions based on how I see twitter working. I have little
information about how it is architected apart from some posts that suggests that
it is running ruby on rails with MySQL?&lt;/p>
&lt;p>Twitter is in the rare category where there is a very large number of data being
added. There should be no updates (except to user information but there should
be relatively very small amount of that). There is no need for transactionality.
If I guess right, it should be a large amount of inserts and selects.&lt;/p>
&lt;p>While a relational database is probably the only viable choice for the time
being, I think that twitter can scale and perform better if all the extra bits
of a relational database system was removed.&lt;/p>
&lt;p>I love challenges like this. Technical ones are easier ;-)&lt;/p>
&lt;p>If I didn&amp;rsquo;t have a lifetime job, I would prototype this in a bit more depth.
&lt;a href="http://garry.blog.kraya.co.uk" title="Garry&amp;#39;s Blog">Garry&lt;/a> pointed me in the
direction of &lt;a href="//hadoop.apache.org/" title="Hadoop">Hadoop&lt;/a>. Having had a quick look at
it, it can take care of the infrastructure, clustering and massive horizontal
scaling requirements.&lt;/p></description><content:encoded><![CDATA[<p>From my perspective, Twitter has a really really interesting technical problem
to solve. How to store and retrieve a large amount of data really really
quickly.</p>
<p>I am making some assumptions based on how I see twitter working. I have little
information about how it is architected apart from some posts that suggests that
it is running ruby on rails with MySQL?</p>
<p>Twitter is in the rare category where there is a very large number of data being
added. There should be no updates (except to user information but there should
be relatively very small amount of that). There is no need for transactionality.
If I guess right, it should be a large amount of inserts and selects.</p>
<p>While a relational database is probably the only viable choice for the time
being, I think that twitter can scale and perform better if all the extra bits
of a relational database system was removed.</p>
<p>I love challenges like this. Technical ones are easier ;-)</p>
<p>If I didn&rsquo;t have a lifetime job, I would prototype this in a bit more depth.
<a href="http://garry.blog.kraya.co.uk" title="Garry&#39;s Blog">Garry</a> pointed me in the
direction of <a href="//hadoop.apache.org/" title="Hadoop">Hadoop</a>. Having had a quick look at
it, it can take care of the infrastructure, clustering and massive horizontal
scaling requirements.</p>
<p>Now for the data layer on top. How to store and retrieve the data.
<a href="http://hadoop.apache.org/hbase/" title="HBase - a scalable distributed database">HBase</a>
is probably a good option but doing it manually should be fairly straightforward
too.</p>
<p>From my limited understanding of twitter, there are two key pieces of
functionality, the timelines and search.</p>
<p>The timelines can be solved by storing each tweet as a file within a directory
structure. My tweets would go into</p>
<p><code>/w/o/r/d/s/o/n/s/a/n/d/&lt;tweet-filename&gt;</code></p>
<p>The filename would be <code>&lt;username&gt;-&lt;timestamp&gt;</code></p>
<p>For the public timeline, you just have a similar folder structure, but with the
timestamp, for example, the timestamp 1236158897 would go into the following
structure as a symlink</p>
<p><code>/1/2/3/6/1/5/8/8/9/7/&lt;username&gt;</code></p>
<p>For search, pick up each word in the tweet and pop the tweet as a symlink into
that folder. You could have a folder per word or follow the structure above.</p>
<p><code>/t/w/i/t/t/e/r/&lt;username&gt;-&lt;timestamp&gt;</code> OR</p>
<p><code>twitter/&lt;username&gt;-&lt;timestamp&gt;</code></p>
<p>You would then have an application running on top with a distributed cache with
an API to ease access into the data easier than direct file access. Running on
Linux, the kernel will take care of the large part of the automatic caching and
buffering as long as there is enough RAM on the box.</p>
<p>This can in theory be done without Hadoop in between and separating the
directory structures across multiple servers but that can have complications of
its own, especially with adding and removing boxes for scalability.</p>
<p>You are also likely to run into issues with the number of files /
sub-directories limits but they can be solved by &lsquo;archiving&rsquo; - multiple options
for that too&hellip;</p>
<p>Thinking about this problem brought me back to the good old days of working on
the search mechanism within megabus.com. We needed the site to deal with a large
number of searches on limited hardware when the project was still classified as
a pilot.</p>
<p>With some hard work and experimentation, we were able to reduce the search time
to a tenth of the original time.</p>
<p>I&rsquo;ll admit that I don&rsquo;t know the details or the intricacies of the requirements
that twitter has. I have probably over-simplified the problem but it was still
fun to think about. If you can think of problems with this - let me know; I
wanna turn them into opportunities ;-)</p>]]></content:encoded></item><item><title>Customisation</title><link>https://icle.es/2009/02/03/customisation/</link><pubDate>Tue, 03 Feb 2009 11:14:08 +0000</pubDate><guid>https://icle.es/2009/02/03/customisation/</guid><description>&lt;p>Being an avid Linux user for users, I am seriously spoilt in terms of being able
to customise everything / anything to be more the way I want it to be&amp;hellip;&lt;/p>
&lt;p>Two main reasons for this is that most software that comes on Linux is highly
customisable to start off with. The second reason is that if you don&amp;rsquo;t like
something, you can change it.&lt;/p>
&lt;p>There is also the nice thing that most things that you think would be cool or
useful in software is already available in some form since someone else thought
so too, but before you did and has had the chance to spend some time building
it.&lt;/p></description><content:encoded><![CDATA[<p>Being an avid Linux user for users, I am seriously spoilt in terms of being able
to customise everything / anything to be more the way I want it to be&hellip;</p>
<p>Two main reasons for this is that most software that comes on Linux is highly
customisable to start off with. The second reason is that if you don&rsquo;t like
something, you can change it.</p>
<p>There is also the nice thing that most things that you think would be cool or
useful in software is already available in some form since someone else thought
so too, but before you did and has had the chance to spend some time building
it.</p>
<p>I love this so much so that I have often put together a quick linux box for
doing things that one could easily replace with an embedded device like a
router. I have swayed between the two options based on how much I want
simplicity vs flexibility.</p>
<p>One of my favourite responses to someone telling me that we need something that
we don&rsquo;t have is - &ldquo;we&rsquo;ll build one&rdquo;&hellip; The software customisation / writing has
turned into a metaphor that I apply across more and more things. You need a new
table with custom bits - let&rsquo;s build it. You need a classic car with all the
modern gizmos - you know what - let&rsquo;s just build it.</p>
<p>This has its pro&rsquo;s and cons. For one, it feels like anything is possible. It
also becomes very frustrating to work with limited, limiting, or closed source
software (esp when you just want to fix a quick bug that really irks you). It
also eats up all your time as you try and do all the things you want&hellip; just
because you can&hellip;</p>
<p>Striking a balance is hard especially when a client asks if it is possible to do
something very specific. The answer is of course yes and there is a question
that goes with that response. At what value does it become cost effective and
provide a good Return On Investment(ROI)</p>
]]></content:encoded></item><item><title>Controversy</title><link>https://icle.es/2009/01/31/controversy/</link><pubDate>Sat, 31 Jan 2009 18:53:02 +0000</pubDate><guid>https://icle.es/2009/01/31/controversy/</guid><description>&lt;p>We have never been shy about voicing our opinions or being controversial. While
discussing some PR requirements recently with a potential agency, the question
was asked about whether we would be willing to be controversial.&lt;/p>
&lt;p>We are not necessarily controversial, just that we hold a view that is usually a
little different from the mainstream views. It could be said that we bring the
alternative to the mainstream.&lt;/p>
&lt;p>But then, so did some world governments, bringing open source software into
their work places, successfully or unsuccessfully in the last few years instead
of Microsoft.&lt;/p>
&lt;p>Someone recently suggested that we were anti-microsoft. I don&amp;rsquo;t think that is
case. Microsoft has its place in a technology infrastructure. It is simply that
its position is usually overrated or misplaced. As far as desktops for
technically shy users are concerned, there is really no alternative but
Microsoft Windows. I can hear the Mac users scream that Macs are also an
alternative. Theoretically, yes but the fact is that they are too expensive for
someone to dabble with it. This is precisely the reason that Microsoft Windows
dominates the desktop market.&lt;/p>
&lt;p>We support and use Linux. In fact, the majority of the desktops in the office
run Linux (Ubuntu as it happens) but people who have a non-technical role use
Windows. They could use Linux but Windows is better suited to their role.&lt;/p></description><content:encoded><![CDATA[<p>We have never been shy about voicing our opinions or being controversial. While
discussing some PR requirements recently with a potential agency, the question
was asked about whether we would be willing to be controversial.</p>
<p>We are not necessarily controversial, just that we hold a view that is usually a
little different from the mainstream views. It could be said that we bring the
alternative to the mainstream.</p>
<p>But then, so did some world governments, bringing open source software into
their work places, successfully or unsuccessfully in the last few years instead
of Microsoft.</p>
<p>Someone recently suggested that we were anti-microsoft. I don&rsquo;t think that is
case. Microsoft has its place in a technology infrastructure. It is simply that
its position is usually overrated or misplaced. As far as desktops for
technically shy users are concerned, there is really no alternative but
Microsoft Windows. I can hear the Mac users scream that Macs are also an
alternative. Theoretically, yes but the fact is that they are too expensive for
someone to dabble with it. This is precisely the reason that Microsoft Windows
dominates the desktop market.</p>
<p>We support and use Linux. In fact, the majority of the desktops in the office
run Linux (Ubuntu as it happens) but people who have a non-technical role use
Windows. They could use Linux but Windows is better suited to their role.</p>
<p>This is not necessarily a cost-saving decision. Sure, we have saved thousands of
pounds by sticking to Linux instead of using Windows but that is a co-incidence
more than anything. In some ways, it is a testament to the skillset of the
people who work at Kraya that they are comfortable with Linux. The mindset of
Linux is in alignment with the mindset of a developer.</p>
<p>I used to develop in Windows and I often found myself fighting with Windows,
whereas with Linux, it just fits. There are several reasons for this. One being
that Linux forces you to understand what you (trying to ) do to a bit more depth
instead of pretending its magically taken care of.</p>
<p>I am not, for one moment implying that developers who use or develop on the
Windows platform is inferior or not as skilled. Simply that my experience was
that the Windows platform made it easier to do things badly and more difficult
to do things well.</p>
<p>Microsoft has done wonders in bringing technology to the masses and making it
more accessible. However, there is still a massive barrier, even for people
specifically in the technology sector to appreciate and use technologies which
require a bit more experience or knowledge to use appropriately.</p>
<p>There are a couple of really good examples. PostgreSQL is a powerful outstanding
database server that can easily compete with Microsoft SQL Server and Oracle.
However, very few people know about it and even fewer use it.</p>
<p>MySQL on the other hand is also an open source database server but is much more
widely used and accepted.</p>
<p>It surprises me when MySQL is used when PostgreSQL is, from a technical
perspective better suited. MySQL is faster than PostgreSQL at the cost of poor
transaction managment (at best). For any system where data integrity is even
remotely important, PostgreSQL is a better choice. However, since there are
better GUI tools for MySQL and since it is easier to get the hang of, it gets
chosen.</p>
<p>This give technology and people in that sector a bad name. Every tool or
software has its place, and should be used in an environment where its strengths
are displayed, not its weaknesses. We have instances where we use multiple
database servers within one project. PostgreSQL for all the data integrity
sensitive areas and MySQL for the speed sensitive areas. Sometimes you want
integrity and speed. In these cases, you have to make a choice based on which is
more important or layer the databases to use the strengths of both.</p>
<p>Metaphorically speaking, MySQL is a hammer, and PostgreSQL is a sledgehammer.
Would you use a sledgehammer to crack a nut, or a hammer to crack a slab of
concrete?</p>
<p>Before someone jumps down my throat, I am not suggesting that PostgreSQL is
better than MySQL or vice versa - just that they both have different goals,
different strengths and weaknesses. They have spent a lot of effort to converge
and strengthen their weaknesses but not matter the amount of convergence, their
core goals are still different that they will never truly be able to remove
their weaknesses without giving up some of their strengths as well. One tool
cannot be both a hammer and a sledgehammer&hellip;</p>]]></content:encoded></item><item><title>On top of Tasktop</title><link>https://icle.es/2009/01/13/on-top-of-tasktop/</link><pubDate>Tue, 13 Jan 2009 13:43:56 +0000</pubDate><guid>https://icle.es/2009/01/13/on-top-of-tasktop/</guid><description>&lt;p>My post about
&lt;a href="http://drone-ah.com/2008/12/13/your-time/" title="Your Time [words on sand]">tracking time&lt;/a>
attracted the attention of &lt;a href="http://tasktop.com/" title="Tasktop">Tasktop&lt;/a>. While this
had been mentioned to me before, I was &lt;strong>mistakenly&lt;/strong> under the impression that
this was a windows only app.&lt;/p>
&lt;p>I was pleased to find out that this was also available for linux. Great... Lets
try it out.&lt;/p>
&lt;p>First stumbling block is the requirement to register on the website before I can
download a trial. I am a firm believer of try before you buy. I should be able
to register but it should be entirely my choice.&lt;/p>
&lt;p>I am more comfortable with registering before buying or for the use of a free
piece of software. However, registering for a trial always irritates me. This
was also the case when I wanted to trial InDesign / Illustrator the other day.&lt;/p></description><content:encoded><![CDATA[<p>My post about
<a href="http://drone-ah.com/2008/12/13/your-time/" title="Your Time [words on sand]">tracking time</a>
attracted the attention of <a href="http://tasktop.com/" title="Tasktop">Tasktop</a>. While this
had been mentioned to me before, I was <strong>mistakenly</strong> under the impression that
this was a windows only app.</p>
<p>I was pleased to find out that this was also available for linux. Great... Lets
try it out.</p>
<p>First stumbling block is the requirement to register on the website before I can
download a trial. I am a firm believer of try before you buy. I should be able
to register but it should be entirely my choice.</p>
<p>I am more comfortable with registering before buying or for the use of a free
piece of software. However, registering for a trial always irritates me. This
was also the case when I wanted to trial InDesign / Illustrator the other day.</p>
<p>After registering, there was the irritating wait for the email to arrive. Now,
this is irritating. When I want something, I want it <strong><em>NOW</em></strong>. I hate waiting.
Adobe did not make me wait for the confirmation email of registration before
downloading the trials. There are two good reasons as to why this irritates me.</p>
<ol>
<li>Email, as reliable as it is generally, can take time. In theory, this can be
anywhere from a few seconds to hours. How about if my mail server is
currently down. Or even more importantly, what if I have shut down my mail
client so that it does not keep distracting me from something that I am
trying to do. Opening up my mail client, I now want to find out about the
other emails that are in my inbox and whether any of them require an
action...</li>
<li>I have reluctantly provided details about myself. Confirming my email
address before I am allowed to download a trial suggests that Tasktop does
not trust me enough to just let me download the trial. The software has
started off on the wrong foot. How much of an issue is it really if someone
gave the wrong details before downloading a trial. Is it really that
important that you are able to keep bugging them via email to buy the
product?</li>
</ol>
<p>I was curious enough to jump through the hoops to download the product. The
first thing I noticed is that there is no 64bit for Linux :-(. More steps
involved in installing this on my 64bit machine. So instead, I installed it one
of my 32bit machines - save time.</p>
<p>Once the download completed, the steps on the website suggested that I needed to
configure it (with ./configureTasktop.sh) and then run Tasktop. The
configuration step required no input from the user and outputted nothing. I have
to ask:</p>
<ol>
<li>Why is the configuration step not integrated into Tasktop and configured to
run once? Alternatively,</li>
<li>Why does the configuration step, not start Tasktop right after.</li>
<li>Even better: Make Tasktop a symlink to configureTasktop.sh, which then
relinks that to the Tasktop Binary with the configureTasktop running Tasktop
right after. This means that from the users perspective, they are always
running the same command, and you save any cost associated with run once
checks.</li>
</ol>
<p>I finally got Tasktop to run and it asks me if I want to install the firefox
addon to integrate with Tasktop. I want to see how it integrates, so I do. Of
course, this is yet <strong>another</strong> step.</p>
<p>A restart later, I was ready to try out Tasktop - or was I? We use bugzilla to
track tasks and I wanted to integrate that in similar to how I do it in Eclipse.
This was also trickier than I expected.</p>
<p>I went into the partner connectors section which did not cover bugzilla, which I
assumed meant that it came with Bugzilla integration by default. This is true
but how the hell do I get there to configure it. It took me a little while to
find the configuration section (there are no menus). Once I was there, I wanted
to get back to the original layout which was tricky since the &quot;close
configuration&quot; button was nicely hidden away up at the top right.</p>
<p>Once I had this working, I tried out the active/deactive mechanisms and this
works just the same as in Eclipse. Except with the Firefox plugin, it adds in
the links that you browse as part of your context - GREAT!</p>
<p>Add in a task to blog about it and went through writing half the document, then
decided to de-activate it before I started working on something else. All the
firefox tabs were closed - again, great...</p>
<p>The problem is that when you re-activate the context, it just clears the tabs in
firefox and shows you the links you last had open. The page titles for the pages
that I had open were the same for a few, so going through them trial and error
to get to the blog post was tricky. More importantly, the cookie was already
gone and I had to re-login. This might be a timeout issue with Wordpress so wont
tag that against Tasktop.</p>
<p>I haven't tried linking folders / files yet but considering that with the above
process taking me more time than I expected due to the sheer number of steps
involved, I shall have to leave that to another day. In all honesty, it might
never happen.</p>
<p>I do like the time logging feature of Tasktop as it tells me which tasks I spent
my time on in different chart formats. This is great. However, I have a problem
in that this is on an individual basis. I see nothing on here about how a team
leader can link in Tasktop used by the team to calculate total time spent on a
project / task. This is a necessary feature for a tool like this in the team
environment.</p>
<p>It is possible that all of this is easier in a windows environment. Possibly
because it was built on there, but more likely because Windows users are used to
taking several steps to achieve something (what is it - 7 clicks to delete a
file in Vista?)</p>
<p>Having ranted on for a while, dont get me wrong. I think that Tasktop is a
fantastic concept and with a bunch of tweaking can be a very intuitive tool to
use. However, at the stage that it is in, it does not do what I need it to do.
It is actually more obtrusive than useful (e.g. by removing all my tabs from
firefox when switching out of a context and not re-instating them on going back
to the context).</p>
<p>Then, it is probably just because I simply expect too much... :-(</p>]]></content:encoded></item><item><title>X11 Remote Applications Responsiveness</title><link>https://icle.es/2008/12/30/x11-remote-applications-responsiveness/</link><pubDate>Tue, 30 Dec 2008 15:01:43 +0000</pubDate><guid>https://icle.es/2008/12/30/x11-remote-applications-responsiveness/</guid><description>&lt;p>As a developer, I use eclipse a lot&amp;hellip; We have a powerful server that off which
eclipse is run which allows us to keep the desktops at a much lower spec. In
general, this works well for us.&lt;/p>
&lt;p>However, recently, I have been niggled by the amount of time it takes to switch
perspectives on eclipse. It takes a good 4 seconds to switch between
perspectives.There is also a noticeable lag when performing some operations.&lt;/p></description><content:encoded><![CDATA[<p>As a developer, I use eclipse a lot&hellip; We have a powerful server that off which
eclipse is run which allows us to keep the desktops at a much lower spec. In
general, this works well for us.</p>
<p>However, recently, I have been niggled by the amount of time it takes to switch
perspectives on eclipse. It takes a good 4 seconds to switch between
perspectives.There is also a noticeable lag when performing some operations.</p>
<p>To resolve this, I spent a lot of time looking at the linux real-time and
low-latency patches. I had expected that running X11 applications remotely would
not cause a bottleneck over a gigabit link. Turns out that I was wrong.</p>
<p>To test this, I ran a vnc server on the application server and found that
switching perspectives on there was super fast.</p>
<p>To be able to resolve this, the first thing to do was to remove any latency put
on the X-&gt;X communication by ssh.</p>
<p>We use gdm, so I had to enable to TCP on there first. Do this using the
following config line in <code>/etc/gdm/gdm.conf</code></p>
```
DisallowTCP=false
```
<p>Restart gdm</p>
<p>on the remote host, export DISPLAY</p>
```
export DISPLAY=<yourhost>:0
```
<p>and run your application.</p>
<p>I found the application to be a lot more responsive after this. I didn&rsquo;t have to
worry about X auth since we have nfs mounted home. If you don&rsquo;t, check
<a href="http://www.xs4all.nl/~zweije/xauth.html" title="Remote X Apps Mini HowTo">this mini howto</a></p>
]]></content:encoded></item><item><title>Foxy Web</title><link>https://icle.es/2008/12/14/foxy-web/</link><pubDate>Sun, 14 Dec 2008 01:07:35 +0000</pubDate><guid>https://icle.es/2008/12/14/foxy-web/</guid><description>&lt;p>Since &lt;a href="http://www.mozilla.com/en-US/firefox/" title="Firefox">Firefox&lt;/a> 2.0, I have
never felt a desire to use
&lt;a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx" title="Internet Explorer">Internet Explorer&lt;/a>.
There have been times when I have used IE, either out of a need to test a
website on the browser or purely as the first step to downloading Firefox.&lt;/p>
&lt;p>&lt;a href="http://www.w3schools.com/browsers/browsers_stats.asp" title="IE vs Firefox adoption">According to W3C&lt;/a>,
as of November 2008, IE(6/7) dominate 46.6% of the market with Firefox at 44.2%.
Compare this to November 2007 when IE (5/6/7) dominated 56% of the market and
Firefox only had 36.3%&lt;/p>
&lt;p>It is interesting to
&lt;a href="http://www.w3schools.com/browsers/browsers_os.asp" title="OS Statistics">note&lt;/a> that
between Nov 2007 and Nov 2008, Linux adoption (as far as internet browsing is
concerned) went up a meagre .5% from 3.3% to 3.8%.&lt;/p></description><content:encoded><![CDATA[<p>Since <a href="http://www.mozilla.com/en-US/firefox/" title="Firefox">Firefox</a> 2.0, I have
never felt a desire to use
<a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx" title="Internet Explorer">Internet Explorer</a>.
There have been times when I have used IE, either out of a need to test a
website on the browser or purely as the first step to downloading Firefox.</p>
<p><a href="http://www.w3schools.com/browsers/browsers_stats.asp" title="IE vs Firefox adoption">According to W3C</a>,
as of November 2008, IE(6/7) dominate 46.6% of the market with Firefox at 44.2%.
Compare this to November 2007 when IE (5/6/7) dominated 56% of the market and
Firefox only had 36.3%</p>
<p>It is interesting to
<a href="http://www.w3schools.com/browsers/browsers_os.asp" title="OS Statistics">note</a> that
between Nov 2007 and Nov 2008, Linux adoption (as far as internet browsing is
concerned) went up a meagre .5% from 3.3% to 3.8%.</p>
<p>This means that a very large proportion of the firefox users are from the
Windows Platform. Why is this impressive? There is technically no reason for a
user on Windows to download Firefox. Windows comes with Internet Explorer, which
should be adequate for all the internet browsing needs.</p>
<p>If 44.2% of all windows users went to the effort to download, install and use
firefox instead of Internet Explorer which comes pre-installed, let me ask the
question - if Windows came pre-installed with Firefox instead of Internet
Explorer - how many would go to the effort of downloading and installing
Internet Explorer.</p>
<p>While it is possible to install Internet Explorer on Linux, it might be a little
unfair to answer this question based on the number of Internet Explorer's
running off linux. People who run linux have proven to be biased against
Microsoft anyway, so it would be a loaded statistic.</p>
<p>While I have no doubt in my mind that Firefox is better than Internet Explorer,
I still don't feel that Firefox is perfect. It still feels far too bulky, with
disproportionate memory usage and it is still not as fast as Safari in terms of
page display.</p>
<p>Sure, the addons and themes functionality is great and useful. However, it would
be nice if it was faster to load, faster to use and just felt more
lightweight... like Safari does.&hellip;</p>
<p>Having said that, I am <strong>not</strong> going to switch to safari. I like the browser but
it is still just <strong>not</strong> as good as firefox.</p>
<p>One of the points of open source software, should be to bring all the benefits
of all the competing pieces of software into one but it just doesnt work like
that. If Firefox had all the benefits of firefox as well as the benefits of
Safari, I am sure the adoption rate would be far higher...</p>
<p>Lets take it one step at a time... I vote for firefox feeling a lot quicker and
snappier for a wishlist... :-)</p>]]></content:encoded></item><item><title>Evil Linux</title><link>https://icle.es/2008/12/12/evil-linux/</link><pubDate>Fri, 12 Dec 2008 14:33:21 +0000</pubDate><guid>https://icle.es/2008/12/12/evil-linux/</guid><description>&lt;p>I received an
&lt;a href="http://www.theinquirer.net/inquirer/news/965/1049965/school-teacher-bans-linux" title="School Teacher Bans Linux">interesting link&lt;/a>
in my email this morning. The story (which thinks that sauce and source are the
same thing btw)  covers a school in the United States that has banned the use of
Linux because &amp;ldquo;anything that wasn&amp;rsquo;t Windows was illegal and immoral.&amp;rdquo;&lt;/p>
&lt;p>I could only ponder about the sheer stupidity of this teacher and wonder about
the next generation of students brought up under this ignorance.&lt;/p></description><content:encoded><![CDATA[<p>I received an
<a href="http://www.theinquirer.net/inquirer/news/965/1049965/school-teacher-bans-linux" title="School Teacher Bans Linux">interesting link</a>
in my email this morning. The story (which thinks that sauce and source are the
same thing btw)  covers a school in the United States that has banned the use of
Linux because &ldquo;anything that wasn&rsquo;t Windows was illegal and immoral.&rdquo;</p>
<p>I could only ponder about the sheer stupidity of this teacher and wonder about
the next generation of students brought up under this ignorance.</p>
<p>I grew up with Microsoft, with DOS 3 as my first Operating System and went
through DOS 5, 6, Windows 3.1, 95, NT, 98, &amp; ME.</p>
<p>I also played around with BeOS, and various versions of Mac.</p>
<p>I was then introduced to Linux turned into an open source zealot and wiped out
my Windows installation in anger. Since then, while my primary operating system
is Linux, I still have Windows running on my Laptop and have both Windows &amp;
Linux on my home computer.</p>
<p>I have since worked with Windows 2000, XP, 2003 &amp; Vista. I love what Microsoft
does with these products. They do innovative things, pick up features from other
products that are useful and <strong>try</strong> to simplify things.</p>
<p>My Laptop came pre-installed with Windows and I never went to the effort of
installing Linux and I use my home computer to play games, which (whether I like
it or not) just handles games so much better.</p>
<p>As per the old joke, It is the software engineers job to make software as idiot
proof as possible. It is the job of the universe to create bigger and bigger
idiots. So far the universe is winning.</p>
<p>Linux &amp; Open Source software (in general) takes a different approach to
software. It should be easy to use and manage software but it also expects you
to understand (or at least think about) what you are doing or trying to do.</p>
<p>Microsoft seems to be under the impression that this is not necessary. The user
does not need to know what they are doing - they just need to know what is to
happen. e.g.</p>
<p>Lets take a simple operation - deleting a file. Before Windows 95, this used to
be a simple, difficult to undo operation. Windows 95 brings in the concept of
the Recycle Bin (or Trash), a concept that was available on the Mac platform for
quite some time.</p>
<p>After this point, you no longer delete a file on Windows - you move it to the
Recycle Bin, which will delete them from the disk when the number of files in
there exceeds the set capacity.</p>
<p>Now, from a users perspective, what they are doing is deleting a file - in fact,
thats what the menu item says - Delete. But what happens is completely
different. The file disappears from their folder. What they aimed to do - &ldquo;make
this file disappear&rdquo; has happened. However, the file has <strong>not</strong> been deleted.</p>
<p>Windows has effectively lied to the user since it is &ldquo;smarter&rdquo;. If the user
later discovers that they deleted the wrong file, it can be recovered easier.
However, that is not the point.</p>
<p>Microsoft software, are in general rife with such miscommunications. I find this
fairly insulting and this was one of the main reasons that I started using
Linux.  If you ask it to delete a file - it deletes it. If you want to move
something to recycle bin, it can do that too.</p>
<p>To go back to the original point, the ignorance shown by the teacher in this
school is exactly the kind that Microsoft panders to. Microsoft allows (nay
encourages)  its users to be as &ldquo;simple&rdquo; as possible and let Microsoft worry
about the rest.</p>
<p>Don&rsquo;t get me wrong. I think that Microsoft do a fantastic job in making software
accessible and easy to use but it should also help educate it users on what they
are doing and help them think about what they are trying to do. Don&rsquo;t pretend or
try to do their thinking for them. Thats their job.</p>
<p>&ldquo;Give a <em>man</em> a <em>fish</em>; you have fed him for today. <em>Teach a man to fish</em> ; and
you have fed him for a lifetime&rdquo;</p>
]]></content:encoded></item></channel></rss>