Archive for January, 2010

Jan 28 2010

Open source responsibility?

Published by under thinking,Uncategorized

This may be a bit stream-of-consciousness, apologies…

I just read a post about a proposed addition to Ubuntu 10.04 – Ubuntu’s integrated music service. This sounds pretty good to me. Additionally, I can see that it might start to make people think about, at the very least, giving Linux a try. So far so just-what-it-says-in-the-link. My thought is really about the burden on a user such as myself when things like this happen. Why? Read on.

When I was a Mac user it didn’t really matter what I said about them as Apple’s marketing machine was quite capable of swaying opinion without my help. Ditto for Microsoft (the effectiveness or otherwise of the Jerry ‘n’ Bill ads notwithstanding). With Ubuntu I feel it does make a difference what I, and all other Linux users, say and do. If someone looks over my shoulder on the train and sees me using Gnome on Ubuntu they would probably be interested to find out what this non-Windows thing I was using was. If they see me using the Awesome WM under Arch Linux they will probably shake their head and look the other way at what a luddite I am. It doesn’t matter if I know that the command line is more pwerful, or that getting rid of distractions and unnecessary processes makes I and my laptop more productive. People will want a free alternative if it looks like something they already know.

At my old job I was running openbox. All was set up nicely except that I had to drop to the command line to connect to a Windows share. Someone came over and asked to see a document, I popped up a terminal to connect to the server and retireve the document and they said (in essence), “this is so much harder than using Windows, why bother”. Forget the fact that it was actually quicker to go from start to open document, forget the fact that all the software I was using was free, this was ‘harder to do’. Had I popped up Nautilus and clicked on the shared drive and browsed down to the file like I would have on Windows, I’m sure the impression I’d given would have been that it was at least as easy as Windows. And it’s free!? Sign me up.

Because of distros like Ubuntu, Linux is making ground. I’ve had quite a few people say, ‘oh yeah, I’ve been meaning to try that out’ when I’ve mentioned I use Linux. I’m pretty sure they meant Ubuntu, and I’ve always straight away arranged to get them a CD to try it out.

My overall question is – as a proponent of Linux, and someone who will happily bang on about it to others, what pressure is there on me to use a distro like Ubuntu? Is it something in the makeup of a Linux user that makes them try and make life hard for themselves or is that just me? Ubuntu does all I need and more so why don’t I be a good global citizen and use it, help to promote it, make it visible? I think its the ‘and more’ that puts me off (see last post about Arch), but I don’t think I could really say why I feel the need to economise on RAM, processor use and disk space when I have more than enough to spare.

I’m not really sure what I’m even saying here, but I think there is a sea-change in the offing, and Canonical may well be the ones to boot Linux into contention for once. I’m just not sure what my role in it should be, but I genuinely feel I can play a role in this, something I never felt with Apple or Microsoft. What’s a boy to do?

No responses yet

Jan 25 2010

Arch Linux

Published by under geekery

Well, I’ve been edging around it for a while – slowly trying to get a bit more independent of Ubuntu, trying not to settle for the default install and making Linux work for me. It has been largely unsatisfying though, mainly because there are a lot of things I don’t like about Ubuntu, but all tempered with the fact that it does a lot of stuff well; and it really does ‘just work’. However, I hanker after a distribution that lets me have the same DIY experience that made me love Linux in the first place. Getting Linux up and running really was a triumph when I first started messing around with Suse, Mandrake and Red Hat back in the day. I miss the challenge, but I still need a system that has the potential to do everything I need.

Enter Arch Linux.

I had tried a VM install of this a while ago but decided to go all the way and do a clean install of it at the weekend. As I am writing this on that system, all geared up to use for work, it obviously has worked. But is it what I had hoped for? Yes it is! The install was actually relatively painless, if time consuming. Ubuntu 9.10 took about an hour from finishing my backup to having a completely clean install running, with all the packages I wanted installed and configured. Arch took more like three or four hours, but I really feel like I’ve built the system I want and, more importantly, I feel like I know how it all fits together. For my money Ubuntu is getting increasingly large-OS-like in its approach — and I’m including Windows and Mac in that — hiding a lot of detail from the user and changing some configuration to be more user-friendly ( for ‘user-friendly’ read ‘hard to understand and different to the way everyone else does it’).

Arch values simplicity in its best form — not meaning ‘dumbed-down’ or ‘simplistic’ but meaning that everything works in a consistent way, and that your basic install is minimal but functional. You then add in the components you need to make the system you want to work with. It could be seen as a great distro for beginners, if that beginner is wanting to understand Linux and how to put a truly great and reliable system together, rather than beginning to use Linux because it is an OS that will let them ‘not use Windows’. No snobbery intended here — these are both equally legitimate paths into and through the Linux world. I think of it as being lord of the manor in both cases; with Arch you know where the wiring is, how the plumbing works, and more than a little about the structural stresses and strains of your manor. The Ubuntu manor is just as sturdy and impressive, its just you may need to call in an expert when you want to start making structural changes.

And with that almost supernatural straining of the art of simile, I’ll get back to my work…

No responses yet

Jan 14 2010

Markdown support for Gedit

Published by under geekery

Getting the code and installing

Grab the code from here and follow the instructions (they’re in French but pretty easy to follow if you’ve compiled your own software before). Out of the box it recognises .mdtxt files as Markdown files, but I like all my .txt files to be recognised as Markdown too, so I did a bit extra behind my scenes to get this to work.

Setting the association

First thing to do is add the “txt” extension to be recognised as markdown format. Open the file to edit:

gedit ~/.local/share/mime/packages/x-markdown.xml

then add in the glob pattern for txt files under the current pattern for files so that the file has two lines like this:

<glob pattern="*.mdtxt"/>
<glob pattern="*.txt"/>

Next, remove the txt extension association with plain text. Open the main mime types file (you will probably need to do this as root):

gedit /usr/share/mime/packages/freedesktop.org.xml

and search for the line

<glob pattern="*.txt"/>

This should only appear once and will be in the section for ‘plain/text’. Delete this line.

Once you’ve done these steps, run the following two lines of code (the second may need you to be root):

update-mime-database ~/.local/share/mime/
update-mime-database /usr/share/mime

then restart Gedit and you’ll be all set!

No responses yet