Wednesday, April 20, 2011

Gadgets that makes your worktable manageable-In other words organized

Gadgets that makes your worktable manageable.
My work place is really a junkyard for the last two years due to many reasons and with slowly but surely with some memory lapses I decided to organize.
I am a good example of a Sri-Lankan who is generally least organized in daily chores and that includes my desktop (the table I work, not the computer).
Working with the computer made my life easier and from the time of starting to use I Linux have never had a corrupt file or lost file. That is nearly a decade now.
Often it is finding the misplaced file or photo that I take 2 to 3 days to find but never a corrupt file.
But as far as my gadgets are concerned they are all over the place. Many hard disks, Pendrives with Linux, CD/DVDs, RAM Cards, Graphic Cards removed with upgrading and CD/DVD ROMs, Keyboards of various dimensions are a few of the many that are all over the place. In fact I do not have a place to keep and work with my laptop and it is often on my bed I do any testing of new things with my laptop. It is not a workhorse unlike how many people use it as. It has no storage and when somebody comes and I need a quick internet access and post a email with attachments it comes out to the dinning table and internet cable is pulled out from somewhere and it goes back to its resting place for months.
I needed to find a work place for some useful work the laptop and to demonstrate Sinhala Linux capability, pendrive stunts and few amazing Linux games.
I may go for a tiny light weight netbook soon with high capacity but till then I to use it for coffee table demonstrations of Linux capabilities.
So this year I decided to throw away the unusable and organize and free my desktop table.
It took nearly three months with lot of books (Linux books I rarely read now except when I am stuck with a problem) around.
What really caught my imagination was how to get rid of so many monitors. I have got rid of all the cathode-ray monitors to cut down on the bulk and cost of electricity which is becoming beyond my purse.
Even the two LCD monitors (one big and one small) which I have come down to was also a headache cluttering space. I needed to get rid of the smaller one with eyesight bit failing. I was looking for a gadget that can be plugged in and with one monitor output like a switch of a router because one uses only one monitor at a time with our two eyes.
So I told a vendor who will somehow get what I want even from Singapore and credit goes to him and he got a 4 port switch that plugs into four computers (there is two port one too) with four purpose built (designed) cables for TV, Mouse and and the Keyboard.
It has a switch or button on top with red light signal to indicate which one is in use.
This is skin to the workplaces in Linux which you can have up to 20 but I usually have four but with two for regular work and two for spare work.
I work on one window on the workplace and say internet, k-torrents are in the inactive or background work mode and sometimes games in the 3rd to refresh when I am bored.
With this context one of my computer doing full time downloading is totally hidden and I only switch it to see whether the download is complete.

With this arrangement one can have as many activities as possible on with only one keyboard, one mouse and a LCD monitor and lot of space with a spare USB keyboard on upright mode and a USB mouse on plastic box for an emergency when Live CD I boot does not recognize the P2S gadgets.

I would been happy if this switch had some spare USB ports and if designers asked me before its manufacture I would have strongly recommended that facility (especially for the laptop) and when I shop around in two years I am pretty sure it will be in the market. when that happen my spare USB mouse and keyboards are also permanently plugged in even for an emergency.
So when you shop around look for these little little gadgets that make your workplace well arranged and multitasking capable like a Linux computer.

Before I wind up I must tell you about the FullMonty setup of PCLinux.
FullMonty arrange the workplaces into six (6) which is very good for a working arrangement.
I bet Microsoft is going to copy it soon.
They are as follows.
1. Internet
2. Office
3. Games
4. Multimedia
5. Graphics
6. System
This is one reason I use FullMonty which very well organized work place in Linux.
I of course have two more workplaces for unscheduled work.
No wonder I can beat a young guy who is ill organized to the post in any computer activity except perhaps games with eyesight and rapid reflexes failing.
Go and have a resolution to get your workplace organized this year.
There is a lady in USA who makes enormous amount of money by getting workplaces organized.
We Sri-Lankans are very poorly organized during New Year and right throughout the year and that is something I would do for a fee (never free) if government asks me, that favour.
Look at how poorly organized we were the day everybody was retuning to work except the politicians who languor (some of them abroad) in a den, lodge, nest (with birds), hole or a holt.
Everybody wanted to come for work but had to wait for hours in the hot sun.
No wonder many of them did not want to come and delayed it by 2 to 3 days.
This is the way we go forward and progress.

Anuradha and Sinhala Linux

Below is a copy page from Anuradha's Web

See for yourself what a lot this gentleman and his team has done for Sinhala.
Now it is your responsibility to use it.

It is available (free of course) in Fedora 13, Debain 6 and probably in Sabayon Linux (you may have to download the module).


Sinhala is available in www.wordpress.com too for blogging.

Sayura Sinhala Input Scheme

By Anuradha Ratnaweera

Most up-to-date version of this document can always be found here.

Latest version of SCIM module is 0.3.3. Download it here.

If you are looking for a reference while typing with Sayura, download this brochure.

Introduction

Sayura is a quasi-transliteration scheme for Sinhala script. Unlike true tansliteration schemes, Sayura uses individual Latin characters to signify unmodified consonents, and not their "hal" form. For example, මම is entered as "mm", and not "mama".

History

I wrote the first implementation of Sayura transliterated scheme in mid 2004 to include in our first package (version 0.1 it was called) to enable Sinhala in GNU/Linux. It was only for GTK, and not properly named. For the GTK part of the implementation, I used some code from another im-module written by Chamath Keppitiyagama.

Sayura defines context dependant behaviour of keys. For example, "i" at the beginning of a word produced "ඉ", after another "i" it converted "ඉ" to "ඊ", after a consonant it added an ispilla, and after a consonant with an ispilla, it converted the ispilla to a diga ispilla. Multiple use of keys depending on the context allowed us to use fewer keys in very intuitive ways.

Sayura algorithm internally uses bytes, not UTF-8. Sinhala code page is mapped to characters 128-255, and ZWJ and ZWNJ are given 0x0d and 0x0c.

In September 2004, I announced an attempt to port the GTK im-module to QT. After first implementing surrounding text support, the QT port of the im-module was announced in late September 2004, and included in Sinhala GNU/Linux 0.2.

However, my patch to QT broke binary compatibility, so applying it also required a complete recompile of dependant apps. Therefore, it was unlikely to go upstream. Although Kazuki Otta's port made to QT4 upstream, QT3 apps were going to be there for a long time to come.

Typing in OpenOffice was yet to be solved.

In October 2005, there was a Codefest in Colombo as a part of the Asia OSS conference. Kazuki Otta ported the GTK module to SCIM. As SCIM stands below GTK, QT and OpenOffice and all other X apps, it provided a unified input mechanism.

The algorithm's dependency on surrounding text support was also removed. The package was called "scim-sinhala-trans".

For the next couple of years, scim-sinhala-trans became the primary input scheme on GNU/Linux systems, and was shipped with some distros including Fedora/Redhat. Debs were always available here.

In early 2008, S Pravin sent some patches to add preedit support and other improvements. I added several tweaks to the Sayura algorithm itself to preserve old semantics with the new preedit code, and also to improve in certain places. A key improvement is bringing back surrounding text support, but only to use it when available.

A development series 0.3.x was announced in May 2008 to continue and test the new set of developments, and the scheme was named "Sayura" to distinguish from other schemes such as Samanala and Sumihiri.

Key Allocation

Vowels

First, we assigned "a", "e", "i", "o" and "u" to their most obvious counterparts in Sinhala: "අ", "එ", "ඉ", "ඔ" and "උ". Remaining basic vowel "ඇ" was given he key "A" in Sayura version 0.2, but we decided to also allocate "q" to input "ඇ" in 0.3, because pressing shift to the common "ඇ" turned out to be counter-productive.

Long wovels are typed by pressing the same key twice. For example, "aa" produces "ආ".

"ඓ" and "ඖ" were allocated "I" and "O", and "U" produces long and short forms of "ඍ". "අං" and "අඃ" are given "x" and "hH", but from 0.3.1, we will allocate "Q" also to enter අඃ".

Modifiers

Modifiers are allocated the same keys as vowels, but effective when typed after a consonent. Only difference is that "a" corresponds to "ආ" instead of "අ".

For example, "kii" produces "කී", while "kU" gives us "කෘ".

Consonants

First we allocated lower case keys to consonents in the most obvious form: "r", "t", "y", "p", "s", "d", "f", "g", "h", "j", "k", "l", "c", "v", "b", "n" and "m" to "ර", "ත", "ය", "ප", "ස", "ද", "ෆ", "ග", "හ", "ජ", "ක", "ල", "ච", "ව", "බ", "න" and "ම" respectively.

The only arguable allocatoins are "t" and "d". We think "ත" and "ද" is more common than "ට" and "ඩ", so decided to risk a few initial surprises for the sake of long term efficiency.

Upper case letters are used for other consonant forms (e.g.: ඵ, ළ, ණ) whenever possible. We also introduced some shortcuts such as "M" for "ඹ". As we use "x" for "අං", upper case "X" was assigned "ඞ".

A consonant is converted to mahaprana and sagngnaka by typing upper case "H" and "G". But there are shortcuts such as "P" for "ඵ", "G" for "ඟ" and "M" for "ඹ".

Al Akuru

We allocated "w", the only unallocated and easy-to-type character, for al-kireema, and upper case "W" to add a ZWJ to create a joiner. So, typing "kwsH" creates "ක්ෂ", while "kWsH" produces joint "ක්‍ෂ".

We also have shortcuts "R" and "Y" to produce "rakaransaya" and "yansaya". E.g.: "SRii" produces "ශ්‍රී".

Installing

Latest version of SCIM module is 0.3.3. Download it here.

If you want to try out the present stable version of Sayura SCIM module (which is called scim-sinhala-trans), follow the instructions at sinhala.sourceforge.net. However, we encourage you to test 0.3 series, which brings out "preedit" support and improvements to the scheme itself.

DEB based systems

On Debian based systems, make a DEB package:

% tar -xzvf scim-sayura-0.3.3.tar.gz
% cd scim-sayura-0.3.3
% dpkg-buildpackage -b

If you get a "command not found" error, install the "dpkg-dev" package, and preferably "build-essential" package as well.

If dpkg-buildpackage complains about missing packages, install them and try again.

RPM based systems

Locate your RPM directory, usually in /usr/src/. Following examples assume /usr/src/rpm. You also need the 'rpmbuild' tool.

First unpack the tarball to a temporary location, and copy the rpm/scim-sayura.spec file to the SPECS subdirectory in RPM directory. Copy the tarball into SOURCES subdirectory.

# cd /tmp
# tar -xzvf /wherever/is/scim-sayura-0.3.3.tar.gz
# cp scim-sayura-0.3.3/rpm/scim-sayura.spec /usr/src/rpm/SPECS/
# cp /wherever/is/scim-sayura-0.3.3.tar.gz /usr/src/rpm/SOURCES/

Now run the rpmbuild command with the -bb options to build a binary RPM inside RPMS subdirectory.

# cd /usr/src/rpm/SPECS/
# rpmbuild -bb scim-sayura.spec

UNnetBootIn-How I did it?

If you have an old computer which does not boot from USB Flash Drive I have a solution for you.
This applies to the third world and perhaps to the guys and girls of the developed world who are going through rough times and cannot afford a USB booting netbook or laptop or desktop.

If you have a device which boots with USB, most of what of I state below may not apply to you except the principles.
If you are buying anything new do not buy ones without USB booting.

I of course use old gadgets and my 233 speed with 128 RAM and 4 MB graphic is still working but painfully slow.

Also for the guys and girls of the developing world who have gone abroad looking for better pastures with all your parents' saving and the parent no longer can support you on the second or third years.

All what you need is a Flash Drive and if you cannot afford that it is better you start looking for a menial job and rough out till times get better or they chase you out without extending the visa.

Once those universities sap all your money they have no use of you and start recruiting new batch for their own survival.

Education is money and money is education now in the developed world.

However world has not got better but worse with plenty of geeky gadgets around you, even I cannot afford them in my retirement age.

That is why I am turning to bare bones of computing and Linux utilities are there to get expensive work done with minimum of expenditure but lot of learning to do.

One must get out of the Microsoft plug and play mentality (i.e. even monkeys and dogs can be trained).

And nothing is plug and play even for Microsoft with so many new gadgets hitting the market and D.I.Y is one of the best ways to put your neck and nose ahead in the game of computing world.

Lot of time is necessary and risk taking is essential and above all experimenting. At worse you may ruin the partition table of the Flash drive which I have done.

Linux guys and girls are not there to spoon feed you and they are mostly doing it as a hobby with lot of work and midnight oil burning for their own survival.
But there are few professionals not many of course who are out there willing to help.
I am not a GuRu but an ardent supporter of Linux and a daily user of few outstanding Linux utilities.

UnetBootIn in one of them even though it has lot of teething problems.

For two years I have not looked at my Flash Drives with Live Linux distributions which were booting with my laptop but with none of my computers without USB booting facility.
Since my old IBM is ready for junkyard and power pack and mother board needing a rest period before the junkyard experience I went and bought a secondhand IBM in good working order with little amount of USB support but SATA hard disks.

As the testing period was over and it is doing my daily work and downloading at night, with the extended New year holidays I decided to go for the Acid Test of USB booting while doing lot of other things around the household.

This is my Final Report on UnetBootIn, may not be comprehensive but how I got it to do my work and used all my Flash drives for USB booting with or without USB booting facility of the other computers I have.

Ignore the top preamble and concentrate now.

I have no idea of how it works but this is how I figured it out with some basic idea about Linux booting practice with GRUB.

How I did it.
1. Its kernel is less than one MiB
2. Its init file is the biggest which is less than fifty MiB
3. It has ID file
4. It has GRUB Menu (slash.msg for Pendrive Linux)
5. System configuration file
6. Two text files names ubnfilel and ubpathl
These seven files are necessary for its booting.

Rest of the files are distribution specific out of which livecd.sqfs file is the heaviest and the most important that boots up after initial GRUB sequence.

It has a boot folder and isolinux folder which are basic essentials for Linux booting.

Process has 3 essential steps.
1. Downloading
2, Extraction
3, Booting (grub) sequence.


Most painful part is the downloading which can break at any moment because of the poor downloading here.
So I choose DSL my yesteryear favorite (50 MiB), Puppy 4.2 my very first USB Linux and parted Magic (158 MiB). Unfortunately gnome's gParted one of my favorite utility is not there in the listed distributions. I hope gnome will come out with gparted enhanced with UnetBotIn in it's 128 MiB distribution in the next revision.

Knoppix is not there but it is a different kettle of fish altogether
with nearly 4 GiB of compressed files and the best heavy weight category and I am here with the light weight category, for now.

All three worked in the first instance but not PCLinux and Mepis.
Then I wanted to try PCLinux (could not get it because all iso files are now torrents at Linuxtracker) and Mepis (broke at once at 200 and the second time at 850 MiB out of 925 MiB).
Tried PCLinux from my hard drive but some important boot files were missing.

Failures on several occasions, I went into the experimental mode.


Prepare DSL for booting as usual or copy the files listed above to the intended Flash Drive.

Then go to the graphic item and distribution source and give the path for the file in my hard disk and click OK.
Before that one should delete the sqfs file of DSL or Puppy (or overwrite only this file when prompted).

Then say NO to overwrite for all the files except the sqfs file.

Before booting it is better to see whether all the files I mentioned above are copied correctly to the Pendrive.

If so shutdown the computer and reboot and the live CD is now in your Pendrive and you do not need to have a CD or DVD to boot your favorite Linux distribution onto the RAM. With this Pendrive you can install Linux to any worthwhile computer without a CD or DVD you may have.

In my case I did install PCLinux-2010 from the Pendrive I prepared on my laptop which I formatted to install Knoppix and record World Cup Cricket (quality of the USB TV card was poor).

Now I am looking for a netbook (my daughter would not oblige) to try my wizardry like wizard of OZ.

Only downside was that one cannot boot the DSL (you have overwritten or deleted in the process).

If you have brains you may even install another sqfs file and edit the boot menu and boot the second one too.
I have no time to try it but I hope UnetBootIn will add that facility in future and access to iso files in my hard disk so that I can bypass the downloading bit and boot any of the 100 odd Linux live CD /DVDs I have.

PCLinux USB creator was hopeless to say the least and it does not do the job properly like UnetBootIn and also needs Linux partition and not fat partitions.

Go and enjoy Pendrive freedom that come from Linux Developers of repute.

I must say special thanks to MCN (Mandriva) group which started the ball rolling in 2007 with the first Penndrive Version I got to work on a Pendrive in Singapore in 2009.

However Singaporeans have no clue about Pendrive Linux or Linux in general.

This is something Indians would have invested (prepare LIVE PENDRIVES for sale) during World Cup but missed it in toto and now doing IPL cricket instead.
Anybody can come to me but I charge for the time especially the download time which is painfully slow and I value my free time which is devoted for rants like this.

Edited on the 20th
How to get new Puppy into your Pendrive (It is easy as eating cheese cake and dogs love cheese)

Easiest method is to
is to boot the Live CD and used it as a base to make a Live Pendrive. This was how I made my first Live USB long before Pendrive Linux and at a time when I did not have a computer with USB booting facility.

Puppy was my entry into Light Weight Distribution Version and I have not looked back on that experience.

Then I went into PCLinux and its many versions including PCLinux Mini Me. I am not impressed with the record of USB booting with PCLinux even now and that was the one that took the longest time and method (Thanks to UnetBootIn) how to figure out making a USB drive. It failed miserably with my USB hard drive in spite of me getting it into a Linux partition and I finally gave up because I do not fancy carrying a heavy SATA disk in my front pocket.

I prefer a Pendrive around my neck instead of a hard drive.
Mind you I use the hard drive to carry all my favorite iso images some of which are 4.4 GiB and Supreme Games Linux is almost 8 GiB.

Getting Puppy into a Pendrive was the easiest with UNetbootIn but with a problem.
It only downloads the 4.2 version (the first version I used before Dingo-most number of Live CD I have is with Puppy) from the internet.


So I set about to get a copy of Puppy lupu from my hard disk to Pendrive.

1. Plug in the Pendrive with Puppy 4.2
2. Start UnetBootIn and selected Puppy for install rather copy
3. From dialog box gave the path to my lupu already downloaded and click OK
4. Said NO to all overwrite messages
5. Check the Flash Drive to see production OK. Both Puppy 4.2 and and lupu 525 sqfs files were there with only 250 of the 14oo Mib used.
6. Booted the Flash drive to see it only boots the 4.2. Could not get F2 to change boot option since it configures the keyboard in later stages (Puppy bypasses even the BIOS) of booting.
7. Mounted Flash on my desktop and changed the 420 to 422 and lupu 525 to 420.
8. Booted again and got the kernel panic message (in early days when I get this message I go into panic mode, almost a heart attack but now wait for a few seconds and switch off the computer making sure RAM is not in freeze mode and fully flushed like toilet bowl after a wee, wee.
(I get a message from South Africa where water scarcity is a serious problem and asking me to put bricks on the cistern to reduce the capacity and fill it with waste or used water. I think they way we are chopping trees and the Coal Power Plant functioning at full speed we will be near that fate before India. Please excuse me on this diversion if I blog this separately nobody will read it and hence the inclusion here)
9. Booted again but again kernel panic mode
10. UnetBootIn again and and copied lupu 525 and this time said yes to all overwrite messages including uninit and unkernel.
11. Booted again presto the lupu was running.

Summary in 4 steps

1. Format the Pendrive with FAT 32 partition
2. Install Puppy 4.2 using UNetBootIn and check booting of the Pendrive.
3. Download any of the latest Puppy, lupu, quirky or wary (you can rename the iso image with your dog's name if you are a dog lover. I believe Barry Kauler an Australian is a Dog Lover. Note, unlike cricketers Australian are nice and normal guys).
4. Repeat Step 2 to with overwrite mode on (manually) and boot it up.

I think I have said enough of UnetBootIn.
I hope the Developers got the message and in its next update of UnetBootIn it is sweet as honey.
Thanks Guys and Girls you are doing some excellent work, you should make sure that you have some rest in between and play some Linux Games like me .

Postscript
I get a message from WiN 7 guys that they also have developed a Pendrive utility but it is painfully slow and need a huge Flash Drive with all the viruses included in the processing.
So before any one using it do a virus scan first using a Linux Utility called Medi Linux!