Amber Jain's weblog (OLD)

Visit my new weblog at

Archive for the ‘Linux’ Category

Using kqemu in debian

leave a comment »

kqemu is not available in any of official debian repos. (Google “kqemu” if you dont know what kqemu is. Also kqemu on wikipedia).

So, if your machine doesnot supports KVM (like mine), you’ll most probably feel the need of kqemu. To install kqemu on debian (confirmed on lenny), follow these:

NOTE: Run all commands below as root.

apt-get install module-assistant
m-a prepare
m-a update
m-a a-i kqemu

After this, open /etc/modules in you text editor and append kqemu after last line (mind you, there should be no other text in that line) i.e. append this line to /etc/modules:


Now, restart your system and launch an OS inside qemu *as root* (kqemu wont be loaded with qemu if you are not root).

That’s it πŸ™‚


Written by Amber Jain

July 1, 2010 at 11:20 PM

Error on debian lenny when updating Virtualbox 1.x to 3.x

with one comment

I’m running debian lenny that was setup from minimal netinst. I had installed virtualbox from lenny repos ( But then I thought of upgrading to newer version of virtualbox because virtualbox 1.x refused to capture my mouse pointer inside guest OS. So, I added lenny-backports repos ( to my /etc/apt/sources.list and did ‘sudo apt-get install -t lenny-backports virtualbox). Then when I started virtualbox 3.x, and tried starting (/booting) any guest OS, I got this error:
Virtualbox error

When I was installing Virtuabox from lenny-backports, the ‘apt-get install’ output was:
Lines number 90,91,92 and 108, 109, 110, 111, 112 are worth noting in that paste.
(Note: If you want to check out log of output from ‘apt-get install’ on debian, goto /var/log/apt/ and open term.log in your text editor as root)

I then tried finding some help on #debian at
User ‘qq-‘ there suggested that I try rebooting. When I rebooted, I got this message in debian boot messages scrollback:

Starting Virtualbox kernel modules. No suitable vboxnetflt module for running kernel found. Failed

After some discussion, users ‘qq-‘ and ‘jpinx-eeepc’ suggested that I try installing linux-image-2.6.32-bpo.5-686 (you can see mentions of this linux kernel version in the paste linked above). So, I did ‘sudo apt-get install -t lenny-backports linux-image-2.6.32-bpo.5-686’.
When I started Virtualbox this time……wooohooo NO ERRORS THIS TIME πŸ˜€

So, in short, install the latest/stable/recommended linux kernel version if you get a similar error.

Written by Amber Jain

June 21, 2010 at 3:47 PM

Kubuntu 9.10 and hp-910 printer

leave a comment »


I recently installed Kubuntu 9.10 and found out that my printer was not recognised. My printer model is hp-910. Previously, I had spent a day configuring this printer on OpenBSD (with success). I ran ‘hp-check’ on Kubuntu 9.10 and it said that I need to run following commands:

sudo aptitude install --assume-yes cupsddk cupsddk-drivers
sudo aptitude install --assume-yes libcupsys2-dev cupsys-bsd
sudo aptitude install --assume-yes libcupsimage2-dev
sudo aptitude install --assume-yes libdbus-1-dev
sudo aptitude install --assume-yes build-essential
sudo aptitude install --assume-yes openssl
sudo aptitude install --assume-yes libjpeg62-dev
sudo aptitude install --assume-yes libsnmp-dev
sudo aptitude install --assume-yes libtool
sudo aptitude install --assume-yes libusb-dev
sudo aptitude install --assume-yes policykit policykit-gnome
sudo aptitude install --assume-yes python-dev
sudo aptitude install --assume-yes python-notify
sudo aptitude install --assume-yes libsane-dev
sudo aptitude install --assume-yes xsaneamber

After this, I ran ‘hp-check’ again and it said: “Unsupported model: 910”. I then shot an arrow in the air [without caring about where it lands πŸ˜‰ ] i.e.:
sudo apt-get install cups

This installed CUPS and started cupsd (and all other stuff/settings were done automatically) and in KDE system tray it said:
“Printer hp910 is now ready to print your documents” (or something similar to this).

Then I printed a ODT document and printer was making that familiar noise πŸ˜‰


Written by Amber Jain

November 16, 2009 at 4:56 PM

Posted in Linux

Tagged with , , , , , , , ,

Recursively search sub-directories in a directory to delete a file with a specific name

leave a comment »


@Windows OS users: Sometimes when a malware simply installs itself recursively in all the sub-directories (starting from root i.e. C:) with the same name, you need to delete each file. Manual deletion is not usually possible when there are thousands of malware files. This could prove useful to you.
And yes, use some ‘better’ OS if you can.

On ##unix at, someone (justinko) asked a question that goes like:
Que: How to recursively search all sub-directories in a directory to delete a file with a specific name?

Answer: Rather than providing only the answer, I prefer putting the complete IRC log here (mind you, ‘justinko’ and ‘Riviera’ are the nicks of persons involved in this conversation):
justinko how do I delete a file in every sub directory?
justinko im in a directory that has directores, and inside those directories there is one file that needs to be deleted
Riviera with a particular name?
justinko yes
justinko I know the exact file name
Riviera okay
Riviera find directory/ -type f -name 'exact_filename' -exec rm -f -- {} +
justinko is find a command?
Riviera yes
justinko the sub-directories are all named differently
Riviera some finds (actually I only know about GNU find) even have the primary -delete
Riviera yes
Riviera i figured
Riviera The find command I gave you recusively checks all files in the "directory/" hierarchy for files with the name "exact_filename",
Riviera executing the command "rm -f --" with the found pathnames as parameters.
Riviera recursively*
Riviera If you want to learn more about find, read this:
Riviera note that some of the examples given there are related to the bash-shell.
justinko damn that worked
Riviera I'm glad :)
justinko what is - type f ?
justinko I know rm -f is "force remove"
Riviera restricts the filetype to "ordinary files"
justinko k
justinko what does {} mean?
Riviera so that even if you'd have directories with the same name as the files you wish to remove, would be left alone
Riviera when find starts the command given after the -exec primary
Riviera (which, in this case, was "rm")
Riviera it replaces the {} with the pathnames it found.
Riviera the + says to put many of them
justinko amazing
Riviera with a \; instead of a +, one rm would be started per file
justinko are you a system admin by job?
Riviera but since rm can remove more than one file at a time ... using "+" is more efficient
Riviera no, i'm not :)
Riviera i study humanities ,)
Riviera am sorry, need to leave now, quite late here :)
Riviera nite :)
justinko thank you for the help!
Riviera :)


Written by Amber Jain

November 12, 2009 at 5:13 AM

[Cross platform + Free] Voice and Video chat programs

with 8 comments

Version: 0.2 (includes update 1)
Changelog: Removed ratings, added other programs to this list (without description).
Last updated: October 18, 2009


I formatted my XP installation a few days ago (and I installed Kubuntu 9.04 that dual boots with OpenBSD 4.5). After some time when I wished to use voice chatting services (Free PC to PC voice calls), I found out that most popular voice/video chat services like Yahoo messenger, Google chat etc. were not available/supported by commercial vendors on Linuxes/BSDs/Unixes. 😦 I searched Google and found following voice/video chat program options:

[ Mind you, most services mentioned below are Free and supported on more than one platforms. Moreover, I tested only voice/text chat (and NOT video chat), so the ratings and reviews involve only text/voice chat. ]

1. Ekiga:
Description- Ekiga (formely known as GnomeMeeting) is an open source VoIP and video conferencing application for GNOME. Ekiga uses both the H.323 and SIP protocols. It supports many audio and video codecs, and is interoperable with other SIP compliant software and also with Microsoft NetMeeting. Free Your Speech!

Platforms supported- Atleast Linux/Unix/BSD, probably Mac OS X, Windows XP/Vista.

My views: Works great! I tested only Voice chat. Installed easily. Iirc, no configuration was needed.

2. WengoPhone (now called “Qutecom”):
Description- A single application to talk, chat and share for free with anyone.

Platforms supported- Atleast many versions of Linux, Mac OS X and Windows.

My views: I never installed this. But reviews about WengoPhone on internet point out that it should be easy to install and use.

3. Skype:
Description- Free calls, video calls and instant messaging over the internet.

Platforms supported- Versions exist for Linux, Linux-based Maemo, Mac OS X (Intel and PPC), iPhone OS (iPhone and iPod Touch), Microsoft Windows (2000, XP, Vista, Windows Mobile), and even Sony’s PSP. (Source: Wikipedia)

My views: Works great! I tested only Voice chat. Installed easily. Iirc, no configuration was needed.

4. Jabbin:
Description- Jabbin is an original mashup of Social Network, Instant messaging and VoIP developed entirely on the widely-used and open protocol, Jingle/XMPP, and open source software, including Asterisk, Openfire and Jobill, a billing system.
Jabbin is an Open Source instant messaging program that allows free PC to PC calls using the VoIP system over the Jabber network. The Release 2.0 use the libjingle protocol.

Platforms supported- It appears that this works on atleast recent Windows releases and many Linux/Unix/BSD distributions.

My views: I tried installing it only once and failed. So this may prove to be a useful program but don’t ask my opinion.

5. TokBox:
Description- Free video chat and video mail to anyone in the world without downloads or hassles. Video call your AIM, MSN, GMail and Yahoo buddies. Tokbox is a free service that lets you talk with your friends over live video. Here’s how it works: you sign up and we give you a link. When you want to talk with anyone, just give them the link – they click and you chat. Embeddable on all websites and social networks. No cost. No prepaid minutes. Really free.

Platforms supported- Talk through your browser. No chat client needed. There is no client required. This service from Meebo works from within a modern web browser (e.g. Mozilla Firefox).

My views- In my case, I could neither send nor receive any voice data. It appeared as if everything was working right, but I could not use this service.

That’s it…If I find some other free and useful services, then I will post them here as updates.

UPDATE-1: There are many other programs that are pretty nice to be added to this list. Mind you, I had not used most of these programs myself:
1. Empathy: Empathy is a messaging program which supports text, voice, and video chat and file transfers over many different protocols.
2. Tinychat: The web 2.0 site for making free, disposable chat rooms with live audio and video.
3. Gyachi: GyachE Improved supports almost all of the features found in the official Windows Yahoo! Messenger client: Voice chat, webcams, faders, ‘nicknames’, audibles, avatars, display images, and more. (Source: Wikipedia)
4. Pidgin: As of version 2.6 (released on August 18, 2009) Pidgin has a voice/video framework which uses Farsight2 and is based on Mike Ruprecht’s Google Summer of Code project from 2008. That release provides the ability to have voice/video conversations using the XMPP protocol (including Google Talk), though the implementation is not yet fully complete. The framework will also allow for voice/video conversations on other protocols, such as MSN and Yahoo, in the future (Source: Wikipedia)

Other possible options include Kopete, gaim-vv (many of these programs are limited/reduced support applications).
Another option requires you to install some supported OS for your choice of chat client inside a virtual machine.

Note: I’m not planning to update this article now (unless I find something really amazing) because you can retrieve all such information from Google. If you know of similar programs, post them in comments.

Have fun! πŸ™‚

Written by Amber Jain

August 13, 2009 at 6:22 PM