Linux Virtualization Richness

So Yesterday, I was finally confident enough to uninstall VMWare from my laptop.

Thanks to the richness of virtualization technologies which are present in Linux (2.6.22) now.

I’ve always liked to explore different operating systems (not distributions really) to see what interesting features they implement differently. BSDs being one, Solaris being the other. But sometimes it really was difficult for me to try them out.

Reason:

  • The current machine that I have apart from my laptop is a very old box with 64Mb of RAM and a 750 Mhz Intel Processor
  • This box is primarily used for building my cusotmized kernels to run on my laptop.
  • This box serves as a file server.
  • This box doesn’t have a head.

I also own a Dell XPS M1210 laptop with a pretty good configuration.

[Read More]

rm \- "-" ??

Does anyone know when really did coreutils get patched for this behavior ?

rrs@learner:~$ rm -foo
rm: invalid option – o
Try rm ./-foo' to remove the file -foo’.
Try `rm –help’ for more information.

This feature really wasn’t earlier and if you ever ended up with files starting with characters like “-”, it was not a straight task to remove it.

Earlier (when I wasn’t aware of this patch), the workaround was to write a small 1 liner and not use getopt at all. Something like:

[Read More]
Categories: Tools 

NetworkManager Firewall

Currently, there’s no simple framework in NetworkManager for Firewalling support.

Here’s one way you can provide a simple and minimal firewall setup for your box controlled by NM.

Create the following files:

rrs@learner:~$ cat /etc/network/if-up.d/firewall
#!/bin/bash

if [ $IFACE == “lo” ]; then
echo;
else
/sbin/iptables -A INPUT -i $IFACE -m state –state NEW,INVALID -j DROP;
fi
rrs@learner:~$ cat /etc/network/if-down.d/firewall
#!/bin/bash

if [ $IFACE == “lo” ]; then
echo;
else
/sbin/iptables -D INPUT -i $IFACE -m state –state NEW,INVALID -j DROP;
fi

[Read More]
Categories: Debian-Pages Tools 

NetworkManager Debian Network Interfaces

So many of you might be aware of NetworkManager. The big new tool from RedHat does simplify Network Configuration on your Linux box.

But there lies a small problem with NetworkManager. It is very picky about what it is going to touch and what not.

Here’s a paragraph from the README.Debian file:

Configuration of wireless and ethernet interfaces

Only devices that are *not* listed in /etc/network/interfaces or which have  
been configured "auto" and "dhcp" (with no other options) are managed by

NM.

[Read More]
Categories: Debian-Pages Tools 

My APT Repositoy

I’ve created an APT repository of my own for Debian because the package inclusion policy in Debian (for good reasons) is very stringent.

So this public apt repository is nothing but a placeholder for packages which I am not able to push to Debian.

Currently it only has fusecompress

Add the following lines to your /etc/apt/sources.list file for automatic installation/upgradation of packages.

# RESEARCHUT - APT Repository
deb http://www.researchut.com/packages/ sid main contrib non-free
deb-src http://www.researchut.com/packages/ sid main contrib non-free

Categories: Debian-Pages 

K Addressbook LDAP Bug

For those who are stuck up with using Kontact with an Exchange server should have experiences of how difficult it is to get everything properly working.

For instance, address book is an issue. Assuming that your exchange server holds more that 10,000 user records, it is going to be a challenging task to get your addressbook configurd to fetch those addresses.

A friend of mine figured out that this was rather a bug with either ldap or exchange (in that case a feature) which restricted the query response to 1000 replies. This bug is inherited in the ldap code of K Address Book also because it silently fetches 1000 records only.

[Read More]
Categories: Tools KDE 

FuseCompress

So recently I tried to look at what all projects I monitored using a RCS.

The list I ended up with was:

  • Open iSCSI

  • Beryl

  • Linux

  • LVM

  • Device Mapper

  • KDE

Wow!! That itself is huge. I then looked at the space consumption for these projects and that led to 4.1 GB. That’s too much of space taken away.

Now, since most of the contentt is text in these projects, I thought why not find out a way to use them with compression beneath. And that is where FuseCompress came to the rescue. Like many other excellent implementations (ntfs-3g, sshfs), fusecompress does exactly what I was looking for. It keeps the data compressed (gz, bz2, lzo) and provides a transparent interface for the applications (through FUSE). With this in place, I get full comprerssion, with saving disk space, while not breaking any of the applications. Now that is what I call full utilization of your CPU cycles (Most n00bs claim that full CPU cycle utilization is by using Gentoo which keeps compiling on n on n on….You often might have heard someone saying -mcpu=.., -fblah-makes-it-fast)

[Read More]
Categories: Tools 

Lost my piece

So Finally I got a haircut.

Before

Now

Categories: Fun