Thursday, April 30, 2009

Why not a decent NAS? (1)

There were a few things that I was reading/doing recently which led me think in this way.

1. http://tech.slashdot.org/article.pl?sid=09/04/27/2310234

MS researchers published a paper where they explains how a torrent session can be transferred from a Vista to a NIC on the same machine. This NIC runs Linux on ARM.

2. http://www.freenas.org/

A FreeBSD flavour that has only storage related functionalities. I downloaded the image for x86 and ran it under qemu. Checked the page on a browser. Except for a few, it was running almost the same functions that my laptop/TC was running.

3. EDMS

We currently provide support for EDMS in a few organisations. However, their requirements are simpler. Alfresco is really an overkill. This can be simplified.

4. The High power - Low power boards

Yes. There is a bunch of such boards which consume very low power yet have reasonably powerful processors and fast NICs. I recently setup an always on home server using a VIA board and cheap USB drives. The system is running for days together without any complaint. No cooling, no maintenance!

FreeNAS is a nice solution. But I am little too old to learn FreeBSD now (Might correct this statement in future :) ). I am planning to make a Linux NAS server. Got a call from someone. Rest later.

Sunday, April 26, 2009

webpage

Updated it...

http://sarin.net.in

Friday, April 24, 2009

mysql commands (2)

This is perhaps the most useful command in mysql that I have come across till now.

describe table_name;
This command will describe the contents of the table. Then it is very easy to insert the contents into the table.
insert into table_name ( var1,var2,var3) values (val1,val2,val3);
Next post after my current experiment :)

Saturday, March 28, 2009

2html.vim

Ever wanted to post your c code on your web page just as colorful as it looks in your vi editor? Well, I used to do this very often in the past. But then one fine day my (free) web hosting provider vanished and I lost all that. Then I stopped it for a long time. Recently I wanted to post some C codes that way, but could not remember how to do that. It took me 15-20 minutes of google search to get that command. Well its simple:

source $VIMRUNTIME/syntax/2html.vim
When you do this from vi, the window will split into two and one will show the corresponding html code generated (Ok, I hope its understood that this needs to be done when syntax highlighting is enabled). The new file generated will have the name . Save this new html file and you are ready to publish your code in its colorful glory.

Wednesday, March 25, 2009

Linux worms!

I was always with the group which argued that the Linux does not have worms and virus since it is not popular. Someone who is bent on paining the maximum number of people can easily do it on Windows OS family since it is the most widely used desktop OS. If tomorrow Linux replaces Windows, I feel, the same fate awaits Linux also.

http://dronebl.org/blog/8

I feel, it is a clear indication that if economy of volumes justifies, black hat hackers will find a way into your Linux system. All that talk about weak passwords etc is impractical since when you reach masses, a number of them will still have vulnerable passwords. In a way Linux has an advantage over windows since the people are more knowledgeable today than in the past as many of them have learned their lessons the hard way using Windows. Even today, I usually find many a edge device with default password. All I can say is, I see a good market for SELinux and related technologies.