How to remove Mono from Ubuntu 9.10 Karmic Koala [Updated]

AkhenatenI’ve been mildly intrigued as to why the volume of background noise and character assassination that has surrounded Mono has been on the wane over the last few months. Consequently, I started wondering if there were any obvious reasons for this outbreak of pacifism in what has sometimes seemed like a debating chamber for differing groups of religious fundamentalists.

Some of it is surely to do with Microsoft’s Community Promise made back in July 2009, but I doubt that is really the only reason for the attenuation. I do wonder if Mono might just simply be losing some of its lustre. In August Blackduck reported how the amount of code being written for FOSS projects using C# was pretty negligible at just 1.33% and that growth in C# usage over a 12 month period was virtually zero.

There were also some rather nasty and personal attacks which did nothing to help our community at large nor the reputation of the individuals’ concerned so maybe people have consciously, or subconsciously, decided to just shut-up for a while?

Quite recently Microsoft, along with Intel, announced that they will ship Silverlight on Linux as opposed to using the Microsoft/Novell sponsored Mono project called Moonlight. OK, admittedly this announcement was only for Moblin Linux, but hey, since when has Microsoft ever been transparent about it’s long term objectives or plans? Perhaps, Mono and Moonlight were just too heavyweight for Moblin devices (netbooks and smart-phones typically), or maybe there is more to it. It could be a very good start to a typical Microsoft "Embrace, Extend & Extinguish" strategy. Who knows? But it certainly isn’t exactly a ringing endorsement of Mono and Moonlight is it?

The awkward question: If it’s that easy to port Microsoft Silverlight to Linux, why does the Moonlight project exist at all?

“I’m really clear about our commitment to Moonlight. I see the work we’re doing with Miguel and Moonlight as core to our strategy for delivering implementations for Linux,” says Goldfarb, protesting, perhaps, a little too much. ®

Anyhow, my personal opinion of Mono hasn’t changed much. There are no Mono applications in Ubuntu that make me go weak at the knees and get all excited; far from it in fact:

  • I’ve never really had any need for Tomboy at all and since discovering Getting Things Gnome my jotted notes and todos all go in this great little Python task keeping application anyway. If you have used, or ever wanted to use Tomboy in the past however there is now a clone written in C++ called Gnote. This is in the Karmic “universe” repository and can be installed either from Synaptic, the new Ubuntu Software Centre (now spelt correctly if you use an en_GB locale) or by typing sudo apt-get install gnote.
  • When I last used F-Spot, which was probably back in Gutsy or Hardy days I reckon, it annoyed me that the application wouldn’t automatically delete the pictures off my camera after importing. GThumb did and always has; so no big deal there then. There is also a new kid on the block called Solang that is in the Karmic repos too. I haven’t tried it in anger myself yet but I’ve heard good things from others.
  • Media Players/Managers? “Banshee!” I hear you cry. Well, I’ve never tried it because I don’t have Mono on my Ubuntu desktop or laptops so I can’t say if I like or not as an application. On my Ubuntu machines, the only music player I have tried and actually really liked, is Songbird. There are still a few features missing, but the forthcoming 1.4 release is looking like it will plug some of these gaps. Songbird looks, feels and works fine for my needs.

On the 15th October a very important figure in our community penned his own contribution to this discussion. Jeremy Allison, of Samba fame, wrote a well considered letter essentially calling on the major GNU/Linux distributions to move Mono outside of their default and core repositories. It’s something others, including myself, have discussed before, but likely with a lot less weight than Jeremy’s comments will surely carry.

… I think it is time for the Mono implementation and applications that use it to be moved into the “risky” category, until the patent situation around it is deemed to be truly safe to use by default in Free Software.

Microsoft isn’t playing games any more by merely threatening to assert patents. Real lawsuits have now occurred and the gloves are off against Free Software. Moving Mono and its applications to the “restricted” repositories is now just plain common sense.

Anyway, back to the reason for this post.

In the latest, shiniest, bestest, release of Ubuntu to date, and it really is a cracking release, the desktop version of Karmic Koala (version 9.10) contains two Mono dependent applications in the default install along with the Mono VM and associated libraries etc.

Now, this time, we have 3 ways to go Mono free:

  1. Visit Jo Shield’s blog and get Chicken Little Remix (CLR). Chicken Little Remix (CLR) provides a solution for users who wish to use Ubuntu but would prefer it to not contain any Mono-based software. This 2nd release of CLR, based on Ubuntu 9.10, comes as a livecd with it’s own unique desktop wallpaper and also features replacement applications where appropriate.
  2.  

  3. Use the KDE based Kubuntu instead of Ubuntu, which uses Gnome. (Thanks Mark for pointing out my omission in the comments below)
  4.  

  5. Install the regular Ubuntu distribution and then remove the applications and their supporting packages*. The simple command required goes like this [Update] Thanks to Jo who mentioned the 3 libraries that should also be removed [/Update]:

    sudo apt-get purge libmono* libgdiplus cli-common libsqlite0 libglitz-glx1 libglitz1

    Which should reply with something similar to:


    The following packages will be REMOVED
    cli-common* f-spot* libart2.0-cil* libflickrnet2.2-cil* libgconf2.0-cil*
    libgdiplus* libglade2.0-cil* libglib2.0-cil* libgmime2.2a-cil*
    libgnome-keyring1.0-cil* libgnome-vfs2.0-cil* libgnome2.24-cil*
    libgnomepanel2.24-cil* libgtk2.0-cil* libmono-addins-gui0.2-cil*
    libmono-addins0.2-cil* libmono-cairo2.0-cil* libmono-corlib2.0-cil*
    libmono-data-tds2.0-cil* libmono-i18n-west2.0-cil* libmono-posix2.0-cil*
    libmono-security2.0-cil* libmono-sharpzip2.84-cil* libmono-sqlite2.0-cil*
    libmono-system-data2.0-cil* libmono-system-web2.0-cil*
    libmono-system2.0-cil* libmono2.0-cil* libndesk-dbus-glib1.0-cil*
    libndesk-dbus1.0-cil* mono-2.0-gac* mono-gac* mono-runtime* tomboy*
    0 upgraded, 0 newly installed, 34 to remove and 0 not upgraded.
    After this operation, 47.8MB disk space will be freed.
    Do you want to continue [Y/n]?

NB: This command was tested on a default installation. The purge switch is designed to remove configuration data too. If you have any important information on your system that might be dependent on these applications, please do your research and backup or copy it first. I test the command in a clean Virtual Machine build before using it on a live system: YMMV.

* If you are aware of any other packages that can, or should be removed, please let me know and I will update the post.

Depending on your vigilance or need, you may wish to install the package called Mononono which will keep a look out for you and alert you if an application tries to install any Mono components.

For those of you who do not happen to be scholars of ancient Egyptian history, the picture at the top of this article is of the Egyptian Pharaoh Akhenaten regarded by some as the first Monotheist:

Akhenaten tried to bring about a departure from traditional religion that in the end would not be accepted. After his death, traditional religious practice was gradually restored, and when some dozen years later rulers without clear rights of succession from the Eighteenth Dynasty founded a new dynasty, they discredited Akhenaten and his immediate successors, referring to Akhenaten himself as ‘the enemy’ in archival records.

Image courtesy of Wikimedia under several free licences.

The Sourcerer’s 1st Apprentice?

I received an email the other day from a self-acclaimed apprentice. Rather than trying to comment or analyse Ben’s learnings to date, I’ll leave Ben to speak for himself and you to make up your own minds…

Greetings!  And thank you for a most entertaining and informative site.

I am rambling towards a serious point.  Children’s computing and affordable online security using Linux.  A  grandchild called Gabriel features,  with his ‘new’ sixth birthday ruggedised laptop.  More of this later on.

I cannot claim the title of sourcerer -  one day, maybe.

But even apprentices can get lucky, especially if they persevere.  This apprentice is an old Unix enthusiast from 1981, constrained to use MS in the name of conformity by employers and clients alike.  Retired now!

I even paid good money for the Mark Williams Company’s “Coherent” clone of UNIX, way back when.  Excellent, great fun, but it had to go when the then employer wanted their Compaq  back.  Then time rolled by, and the opportunity passed.  <sigh>

But….
……. for the last couple of years we have been free, yes, free I say!

It started with an AMD desktop  box with SuSE 10 that smoked XP when running X-Plane (we used this as a CAD tool for aircraft design verification).  35% faster on the same box.   Wow!  Meant we could save the money for a new box for another year, maybe two. That was a significant saving.

OK, it was ‘fun’ getting the drivers sorted for OpenGL, but we had help. That was one of the great revelations – the amazing amount of help one can find – often faster and better informed than mainstream OS support.

Then we discovered that far from needing to keep  SuSE 10 offline in order to protect our main earning tool from online nasties, it was more than capable of protecting itself, and updated itself smoothly and effectively when connected. No more Norton! No more AdAware!   It just works!  Wow.

By pure apprentice-style experimentation – we had found out that we could telnet into our cheapo  Actiontec ADSL WiFi router, and that once logged in this way we had a prompt that read:    root#_

Our router/firewall was a Linux engine running Busybox.  About the size of a pack of cigarillos, and not much more costly.  Amazing. The impact this had on me was immediate. Curiosity was ON.

After some careful study the vanilla SuSE 10 installation defences turned out to be even  harder than our firewall box!
This is obvious to many, but it was a big happy surprise for us. If there is one thing I hate it is the drudge of updating and running malware scanners and such.  Too cheap to go for the paid option, and had some nasty surprises from the big name vendors too.

A quick trawl around had me downloading ISOs and burning CDs and trying out live distros and then installing them pretty much at random.  Ubuntu really appealed – and Xubuntu was installed on the old Tosh laptop, still running today.  Fabulous forums.

I have got used to Evolution, and swear by Bogofilter – works better on our industrial quantities of spam than SpamAssassin.

My wife enjoys computer games – but guess what? after raiding the Ubuntu repositories and making sure that OpenGL was good to go, the variety and quality of the sort of games that she prefers was judged hugely superior to that on Windows. By her.

So she won the Toshiba, and we put Ubuntu 7.10 on her desktop too. She says repeatedly that the Linux desktop is far more user friendly because :  “…. it is easier to go back, and not get stuck”

So far, so ordinary.  Family discovers free software. Yawn. But there must be many parents faced with what follows….

More distant family members had a problem – young Gabriel had been increasingly monopolising his family computer for over a year, and he was approaching his sixth birthday.  Not a lot of money around, so choice was limited.  Given the size of his room a laptop was ideal, but the price? Laptops can be delicate, too.

A few keyboards had already been ‘disabled’ on his family desktop, and cheaply replaced, but laptop keyboards can be hard to obtain as well as pricey.  Good hardware was critical to a good result.

A used Itronix GoBook was the answer, found on eBay at around 55 quid depending on spec, fully ruggedised, water resistant keys, solid alloy case, and tough as old boots. We  bought a couple.

They work OK, and run surprisingly long on the ancient batteries, over 3 hours with light use.  Not bad for 2001 hardware.

The OS supplied was Windows 2000, a variant of Windows NT and the CPU fitted to these was panting under Norton 07;   AVG not a lot better.  So Windows web access was disabled, and
Xubuntu 8.04 installed in another partition.

Xubuntu’s  significantly lighter weight  XFCE desktop was just light enough for the Pentium III running 700 MHz (divided by 2 remember, that’s 350 MHz in real money), but it was still
a bit slow loading – well the HDD is slow, so fair enough. We can live with that.

Once tweaked up, we had Batman wallpaper and sound theme, with the compositor in XFCE giving a good imitation of Aeroglass ™ on less cpu than my Palm.  Amazing.  Gabriel was suitably stunned, and even his computer-savvy older brother was impressed.

More to the point he had a proven OS that is more immune to nasties than the best maintained Windows machine we have seen, and since all the software is from the Ubuntu repositories, no fiddly admin intervention is required to update weekly.

His mother need never worry about updating a raft of nagware; Firefox is as well-blocked against unsuitable sites as anything else available – and all in free software!  The total cost of ownership of this laptop is what we paid for it.  No annual Symantec tax, no long hours (add it up annually) updating things to protect Windows from its own inadequacies.

For a single mum, that time is priceless, not to mention the money.

With Gcompris and stacks of Linux  educational software on board, Gabriel has a machine that is (hopefully) good for the rest of his time at first school. He can learn/use Windows 2K if he wants to, but without the risk of connecting Windows to the internet.  The Win drivers have
been ‘got at’ .

And thanks to the Batman wallpaper/sounds, it has ultimate cred with his school-friends.  No problems there, then.  A rugged OS that has street cred, educational value and is hardened against attack at no ongoing cost in time or money – all at the popular price.

The last word should be Gabriel’s – whilst staring at the BSOD on a Win system he said with the gnomic aplomb of the young:-

“Mine doesn’t do that…. this computer is  bad.”

All the best, Ben Mullett

PS
We are big fans of Knoppix and DSL – they work so well at their intended tasks, and Puppy Linux is remarkable – VestaPup and MacPup are particularly good fun.

PPS
Gabriel will doubtless wish to update his wallpaper/theme eventually, and then we have the fun of showing him how…..

Many thanks for the great email Ben. You don’t sound like much of an apprentice to me; more like an “old hand”. I think you have passed with distinctions and may consider yourself a Sourcerer (there’s no formal exam or certificate – enthusiasm and passion are what really count)! And I’m certain Gabriel will be sure to follow in his Grandad’s footsteps 🙂

Your comment about Firefox,

… Firefox is as well-blocked against unsuitable sites as anything else available – and all in free software!

is amazingly poigniant at the moment as the debate rolls on as to just how “Free” Firefox really is. But the sentiment is sound.

Please point Gabriel to this post – I’m sure he will be delighted to read about his computing activities on-line… If you wish, send me a picture of the laptop (and/or Gabriel or yourself) and I’ll add it to this post so we can all see; a ruggedised and water-resistant PIII lappy running Xubuntu sounds cooler than Iceland!