Wednesday, July 30, 2008

How to Explain to Gramps What a Kernel Is

This Linux thing is a good thing. Good enough to share with our family and friends. In a country rife with piracy I would say that Linux and Open Source Software is a perfect fit. Free, as in free lunch, and free, as in freedom.

The question kept floating. How do I explain to gramps what a kernel is? I went over to Debian forums to ask the gentlemen and ladies over there and surprisingly got humored:


The kernel is the software manager of any operating system! Its tasks include: process scheduling, hardware management, communication between programs, filesystem management...



I think, by using analogies one can help non-technical people understand what a kernel is.
These are some analogies:

  • the principal manager
  • the crankshaft of the software engine
  • the thing that makes a computer behaves like many at the same time
  • the chief of all software running on the same computer: it gives orders and organizes everything to run smoothly
  • the coordinator of all programs
  • the top chef of the software "kitchen"



it's a program that manages computer resources: disks, memory, keyboard, mouse, and tells other programs how and when to use them.





it's like life support




The person leading the soldiers of the software army. Ehm, the "kernel".


Hehehe.





the Kernel is the software that gets information about your hardware. Then makes that information available for the other applications you use.





There is nothing extraordinary about the kernel. The kernel is what makes a computer multitask. It can be seen as the coordinator of all running processes. Its most important component is the thread scheduler. There are other important components which include interprocess communication, virtual file system, network management and memory manager.





The kernel is the operating system. In fact, a kernel plus a shell make a computer usable.


Though the last one has been questioned.

So gramps, wanna know what a Kernel is? No, no, no it's not like the KFC guy with the white hair.

I'd say that a kernel is like this  

Tuesday, July 15, 2008

A Viable Open Source Alternative to Firefox 3

Firefox 3 still too slow on your low end machine?

I know how you feel. After all this hype about the most downloaded software 'browser' in the world, I suddenly felt that I needed a fresh and alternative perspective.

Swiftweasel is the most suitable and capable candidate I've come across so far.



Swiftfox project is an optimized build of Mozilla Firefox. Swiftfox has builds for both AMD and Intel processors. The 2.0.0.1 release is based on Firefox 2.0.0.1.

The trunk is the most cutting edge of all the builds and is where Firefox 3 is being developed.

Branch builds are built from a code base that has been tested much more than the trunk and therefore should be considered to be more stable.

Existing Firefox plugins should work with no additional configuration if you use the installer or deb file.

How To Install

You can find installation instructions for Ubuntu and Debian over at Debian Admin.

Tuesday, July 08, 2008

Debian Project News

Check it out here.

HowTo: Install and Run Microsoft Money 2004 on Wine 1.1/Ubuntu Hardy 8.04

[UPDATE 08/09/08] Also works on Sidux! I am now using Sidux. Make sure to export WINEPREFIX.

Yes I did it. I will try my best to replicate what I have done, but it was mostly dumb luck as most of the time I didn't know exactly what I was doing. Take that as a word of caution and my explicit waiver.

1. First off, install the latest wine version by following Ubuntu-Unleashed's instructions:

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list

sudo apt-get update ; sudo apt-get install wine

2. Then install cabextract

$ sudo aptitude install cabextract

3. Then install ies4linux. NOTE: A lot of people are saying that ies4linux is bad for wine and linux. If you have other programs on wine - STOP. Do this on a clean install of wine and figure out whether the following steps would be good for you. YOU HAVE BEEN WARNED IN BOLD LETTERS.

$ wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
$ tar zxvf ies4linux-latest.tar.gz
 
$ cd ies4linux-*
 
$ ./ies4linux




4. Make a separate folder named .winebottles under /home/yourusername

$ cd ~

$ mkdir .winebottles

$ mv ~/.ies4linux/ie6 ~/.winebottles/money2004

$ export WINEPREFIX="/home/yourusername/.winebottles/money2004"

5. Go to your CDROM directory and install MS Money 2004. Mine was /media/MONEY

$ cd /media/yourcddrive

$ wine setup.exe

$ wineboot wine install / postreboot / pkg: mnypack


6. If you are lucky you should have gotten MS Money 2004 to install successfully.

$ cd ~/.winebottles/money2004/drive_c/Program Files/Microsoft Money/System

Change directory to your new installation and run

$ wine msmoney.exe

7. You will get some errors,I just got rid of them by ignoring and cancelling. You may ask if I did this originally. The simple and frank answer is no. I got it from a couple of French guys in an ubuntu forum. Find the original post here.

































Saturday, July 05, 2008

Richard Stallman's Take on Bill Gates Retirement

A reproduction of the farewell rant by Richard Stallman to Bill Gates. It was published online in BBC's website and was reproduced under a Creative Commons Noderivs license.

To pay so much attention to Bill Gates' retirement is missing the point. What really matters is not Gates, nor Microsoft, but the unethical system of restrictions that Microsoft, like many other software companies, imposes on its customers.

That statement may surprise you, since most people interested in computers have strong feelings about Microsoft. Businessmen and their tame politicians admire its success in building an empire over so many computer users.

Many outside the computer field credit Microsoft for advances which it only took advantage of, such as making computers cheap and fast, and convenient graphical user interfaces.

Gates' philanthropy for health care for poor countries has won some people's good opinion. The LA Times reported that his foundation spends five to 10% of its money annually and invests the rest, sometimes in companies it suggests cause environmental degradation and illness in the same poor countries.

Many computerists specially hate Gates and Microsoft. They have plenty of reasons.

'Solicit funds'

Microsoft persistently engages in anti-competitive behaviour, and has been convicted three times. George W Bush, who let Microsoft off the hook for the second US conviction, was invited to Microsoft headquarters to solicit funds for the 2000 election.

Many users hate the "Microsoft tax", the retail contracts that make you pay for Windows on your computer even if you won't use it.

In some countries you can get a refund, but the effort required is daunting.

There's also the Digital Restrictions Management: software features designed to "stop" you from accessing your files freely. Increased restriction of users seems to be the main advance of Vista.

'Gratuitous incompatibilities'

Then there are the gratuitous incompatibilities and obstacles to interoperation with other software. This is why the EU required Microsoft to publish interface specifications.

Microsoft would have us believe that helping your neighbour is the moral equivalent of attacking a ship

This year Microsoft packed standards committees with its supporters to procure ISO approval of its unwieldy, unimplementable and patented "open standard" for documents. The EU is now investigating this.

These actions are intolerable, of course, but they are not isolated events. They are systematic symptoms of a deeper wrong which most people don't recognise: proprietary software.

Microsoft's software is distributed under licenses that keep users divided and helpless. The users are divided because they are forbidden to share copies with anyone else. The users are helpless because they don't have the source code that programmers can read and change.

If you're a programmer and you want to change the software, for yourself or for someone else, you can't.

If you're a business and you want to pay a programmer to make the software suit your needs better, you can't. If you copy it to share with your friend, which is simple good-neighbourliness, they call you a "pirate".

'Unjust system'

Microsoft would have us believe that helping your neighbour is the moral equivalent of attacking a ship.

The most important thing that Microsoft has done is to promote this unjust social system.

Gates is personally identified with it, due to his infamous open letter which rebuked microcomputer users for sharing copies of his software.

Gates may be gone, but the walls and bars of proprietary software he helped create remain, for now

It said, in effect, "If you don't let me keep you divided and helpless, I won't write the software and you won't have any. Surrender to me, or you're lost!"

'Change system'

But Gates didn't invent proprietary software, and thousands of other companies do the same thing. It's wrong, no matter who does it.

Microsoft, Apple, Adobe, and the rest, offer you software that gives them power over you. A change in executives or companies is not important. What we need to change is this system.

That's what the free software movement is all about. "Free" refers to freedom: we write and publish software that users are free to share and modify.

We do this systematically, for freedom's sake; some of us paid, many as volunteers. We already have complete free operating systems, including GNU/Linux.

Our aim is to deliver a complete range of useful free software, so that no computer user will be tempted to cede her freedom to get software.

In 1984, when I started the free software movement, I was hardly aware of Gates' letter. But I'd heard similar demands from others, and I had a response: "If your software would keep us divided and helpless, please don't write it. We are better off without it. We will find other ways to use our computers, and preserve our freedom."

In 1992, when the GNU operating system was completed by the kernel, Linux, you had to be a wizard to run it. Today GNU/Linux is user-friendly: in parts of Spain and India, it's standard in schools. Tens of millions use it, around the world. You can use it too.

Gates may be gone, but the walls and bars of proprietary software he helped create remain, for now.

Dismantling them is up to us.

Richard Stallman is the founder of the Free Software Foundation. You can copy and redistribute this article under the Creative Commons Noderivs license.

RMS has a lot of valid points, but I guess his aim is not to boost public relations but to fight for a cause. The trouble with "causes" or ideologies are that they are hard to inculcate to mostly indifferent and apathetic populations. Furthermore, the attack on Gates and proprietary systems come at a very distasteful time.

This reminded me of a scene in Jet Lee's "Fearless". In the movie, Jet Lee is a renown local kung fu hero who has a school. His arch nemesis, also a kung fu master who also has a school, kicked the butt of one of JL's students and Jet Lee was so enraged he had to barge in on the birthday party of his arch nemesis and consequently killed him. He found out later on that his student was at fault...

Lesson learned, though you may be right, the way you say it and the timing affects its "rightness".

For me, just an ordinary non-insider Linux user, it came across as bitter. It's like losing a fist fight and then asking for more when the enemy has already mercifully walked away.

It's denial.

In stepping down, Bill Gates has deprived RMS of an arch nemesis. Ballmer can never be a substitute arch nemesis. Nobody can be. The statement made by RMS,

"But Gates didn't invent proprietary software, and thousands of other companies do the same thing. It's wrong, no matter who does it."


is a bitter diversion to the fact that though Bill Gates didn't invent the reason for the conflict - he was the one who was able to masterfully wield it - enough to piss of RMS.

I have nothing against RMS and the FSF in principle, but this sort of political attacks and adolescent ranting is precisely what turns off ordinary folks to staying with the status quo. In these day and age a lot of people willingly accept slavery and the curtailment of freedoms in exchange for security - not in terms of software security, but in terms of the familiar status quo.

If by a very slim chance you read this, Richard, I am for you and software freedom. However, if you really want to win - you can't win just by winning people's minds. You have to win their hearts.

Tuesday, July 01, 2008

$ aptitude install opera

To install the Opera web browser do the following:

On the CLI:

$ sudo nano /etc/apt/sources.list

Add this to the end:

deb http://deb.opera.com/opera/ testing non-free

CTRL X

Y

ENTER/RETURN

$ sudo aptitude update

$ sudo aptitude install opera

EventId's in Nostr - from CGPT4

The mathematical operation used to derive the event.id in your getSignedEvent function is the SHA-256 hash function, applied to a string rep...