Techno Babble

cat karrams_thoughts >> this_blog

Archive for October, 2005

The train journery

Posted by karram on October 28, 2005

Prologue
———

The train was crowded. V and M just managed to find seats in the unreserved compartment. They kept their backpacks on the upper berth, took off the shoes and pushed them under the seat, and settled down in the seats. They looked around and noticed that all the seats were taken.
"Hmm.. looks like no one missed the train today. Seems pretty crowded", said V.
"Yup. True. Guess the journey may not be very comfy. Anyway, just a matter of 4 hours rite. Should be fine"
"Right. BTW, just keep a close eye on the backpacks, Ok ? Dont want to lose them. :) .".
"Will do. Thats right :) "
4 hours passed. Another 5 mins, and they would reach their station.
V put on his shoes. M looked under the seat.Instead of his favourite pair of Nike, he found a pair of old tattered slippers……..

The Present
————-

V and M catch the train by the skin of their teeth. The train starts to move as soon as they get in. They put the backpacks on the upper birth and get comfortable in the seats.
V removes his shoes, and pushes it under the seat, and looks at M.
"Hmm.. the train is crowded. Better watch the backpacks :) . Are you not taking your shoes off ?"
"What ? Take them off ? And lose them again ? No way."
"Ok. ;) ".

An hour passes by. V stretches his legs and enjoys the scenery. M is getting a little uncomfortable with the shoes on. He decides to take them off.
"Not comfortable. I will take them off. But, me planning not to push them under this time. I will keep my feet on them and ensure no one flicks them this time :D ", says M.
"Ok."

How long can someone sit in the same position ? Not long, right ? M feels a bit cramped in his legs, and says to V.

"Bah ! sitting like this is tough. I will just keep my eye on the shoes." And he does. He stares at the shoes, refusing to look anywhere else. Surprising that he did not get a crick in his neck.
Remaining journey is uneventful. Another 5 mins, and the train would reach the station. V puts on his shoes and tells M to do the same.
"Thank god ! This time no one flicked them. I have been staring at it for hours. After losing that pair, I feel very nervous every time I take my shoes off in a public place", says M.
"Yup. I can understand the feeling. Here comes our station, lets go", says V, takes his backpack, and walks out.
M stands up, looks for his backpack, and finds a tattered black bag instead……..

Update : Not a real life story… :)

Posted in Report Chronicles, The lighter side of life | 3 Comments »

Minix 3 in Qemu

Posted by karram on October 25, 2005

Saw a post in /. and in osnews about the release of Minix 3. Andy Tanenbaum first wrote Minix to teach Operating Systems to his students. Minix is a good example for a micro-kernel based OS where the nonessential components are removed from the OS and run as system-level and user-level programs. In simple terms, the drivers in the system behave like user written programs, and even if a driver crashes, the OS will not crash. (Read the slug-fest between Tanenbaum and Linus for more details on micro-kernels vs monolithic kernels).

Since I love trying different OSes (at one point of time, I had 3 different OSes in a 2.1 GB hdd, and no applications in any of those :) ), me decided to download this and give it a shot. But, instead of installing Minix in my pc, i decided to use qemu to try Minix. QEMU is a generic and open source processor emulator. Simply put, it lets you run a virtual pc in your pc.

First step was to install Qemu on my debian-sarge. This proved to be a little tricky. I tried to download and use the binaries of Qemu 0.7.2 directly, but that did not work (some crib about missing lib-sdl. Installing lib-sdl did not solve it :( ). Tried
   apt-get install qemu
and installed qemu. Surprisingly, by 0.7.2 binaries started working after this.

Second step was to download and test the Minix live cd distribution. Grabbed the compressed archive from this link (a 10 MB file), and extracted the iso image from the archive. After this, I got a file named IDE-3.1.1.iso . Renamed this file to MINIX-3.1.1.iso. To test this boot cd, I issued the command
  qemu -m 64 -boot d -cdrom MINIX-3.1.1.iso
to boot from the cdrom image. This went fine, and I was presented with the minix login screen.

Boot screen 1


Boot Screen 2

Third step was to create a hdd mage to install Minix to. Qemu provides a command to create a virtual hdd. The minix website suggested a minimum hdd partition size of 100 MB. I decided to create a 150 MB hdd image. After issuing the command
  qemu-img create minix_hdd.img 150M
I had the virtual hdd ready. (minix_hdd.img is a file which will “store” the contents of the hdd).

Step 4 was to boot into Minix with a HDD and a CDROM, and to install Minix to the virtual hdd. This proved to be a simple thing. The command
  qemu -m 64 -hda minix_hdd.img -boot d -cdrom MINIX-3.1.1.iso
booted me into Minix from the CDROM, with a raw unformatted hdd also present. This done, installing Minix was a trivial process, merely pressing the “Enter” key a lot, and answering the odd multiple-choice-question. All done, the installer gave me the instruction to reboot once. Issued the
   shutdown
command to halt Minix.

Last step, to boot from the virtual hdd into Minix. The command
  qemu -m 64 -hda minix_hdd.img -boot c
booted my Minix install from the “hdd”. Neat, huh ?

Need to do some more experimentation with Minix later. Right now, gotta crash to bed.

Posted in Technobabble | 1 Comment »

Audio up in Debian

Posted by karram on October 13, 2005

Got audio working in Debian. It was a simple process, really.

Googling threw up a command to configure Audio. alsaconf .

ALSA is an acronym for Advanced Linux Sound Architecture. Simply put, audio drivers for Linux, something that helps to generate noise out of the speakers. Without these in place, the speakers wont even generate noise.

Installation of Alsa was pretty simple. Open up a root shell, and issued the command
    apt-get install alsaconf

The name of the correct package was alsa-utils, not alsaconf as I had typed in. Apt figured this out automatically, downloaded and installed the packages alsa-base, alsa-utils and lsof.
After these packages were installed, I ran alsaconf from the root shell. My sound card was detected and configured properly. Adjusted the volume using Kmixer, and voila, my speakers came to life :) .

Enjoying Spirited Away right now. A masterpiece by Hayao Miyazaki.

Posted in Technobabble | Leave a Comment »

Back to tech

Posted by karram on October 12, 2005

Think its been a while since I wrote anything abt technology. Have to do some justice to the blog name, and hence a post about comps, software etc.

Moved over to Debian Sarge linux distro at home. Most of the things (including network, X) etc work. But no sound yet :( . Must be something minor, and plan to get it working by the end of this week. I am a n00b as far as Debian goes (me used RH distro a lot earlier). Learning quite a few things now……

First things first. Debian is “the” GNU Operating system, it’s full name being Debian GNU/Linux. The main idea of Debian is to create a completely free Operating System. Right now, Debian uses the Linux kernel, but work is on to provide other kernels (like GNU Hurd). Complete Debian distro is spread over 14 cds or 2 DVDs.   :-O !!. For installing Debian, its enough to download just the first CD. :) .

Now onto my rants.

Apt is the package manager in Debian. If you want to install/uninstall/update packages, you will be using apt. Aptitude is a menu driven front-end for apt, and is a lot easier to use.

Apt has to know where to get packages from before installing them, right ? This info is stored in the file /etc/apt/sources.list. I installed Debian from a CD-ROM, hence, my original sources.list file looked like


#deb file:///cdrom/ sarge main     deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)]/ unstable contrib main

After installing Debian, I wanted to install security updates and packages not present in my Debian CD. So, i edited this file, changed it to

#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)]/ unstable contrib maindeb http://security.debian.org/ stable/updates main contrib
deb http://http.us.debian.org/debian stable main contrib non-free

After doing this, I used the command
     apt-get update
and to tell apt about the new locations to get packages from.

Then, in case there were some broken packages on my pc, I issued the command
     apt-get install -f
to let apt fix them automatically.

To install new packages, just use the command
     apt-get install package_name

For example, I wanted to install yahoo messenger. One of the dependencies for yahoo messenger is the ssl library. Installing ssl was a piece of cake. Just had to issue the command
     apt-get install libssl0.9.6
and it was done ! So simple….

More later…

Posted in Technobabble | Leave a Comment »