Thursday, September 27, 2007

Software Raid debian etch

Install Debian Etch on a Software Raid 1 with SATA Disks

New server, SATA disks, the hardware RAID controller is not really supported. So we decided to use a software RAID 1 for the two disks. Here are the steps to create the RAID:

1. Boot the Debian Etch installer.

2. If the installation comes to "Partition method", use "Manual".

3. In the following menu, scroll to your first disk and hit enter: the partitionier asks you, if you want to create an empty partition table. Say "yes". (Hint: this will erase your existing data, if any.)

  • The partitioner is back in the disk overview, scroll one line downwards over the line with "FREE SPACE" and hit enter.

  • Create a partition with the size you need, but remember the size and the logical type.

  • In the "Partition settings" menu, go to "Use as" and hit enter.

  • Change the type to "physical volume for RAID".

  • Finish this partition with "Done setting up the partition".

  • Create other partitions on the same disk, if you like.

  • Now repeat all the steps from the first disk for the second disk.

  • After this, you should have at least two disks with the same partition schema and all partitions (beside swap) should be marked for RAID use.

  • Now look at the first menu entry in the partitioner menu, there is a new line: "Configure software RAID". Go into this menu.

  • Answer the question, if you like to write the changes, with "Yes".

  • Now pick "Create MD device".

  • Use RAID1 and give the number of active and spare devices (2 and 0 in our case).

  • In the following menu, select the same device number on the first and second disk and Continue.

  • Repeat this step for every two devices until you are done. Then use "Finish" from the Multidisk configuration options.

  • You are back in the partitioner menu and now you see one ore more new partitions named as "Software RAID Device". You can use this partitions like any normal partition and continue installing your system.


HBS Campus selection

College of engineering Attingal

HBS Campus Selection on 28-09-2007

Wednesday, September 26, 2007

Serial Communication : Null modem connection

Connection and connector details

RS-232 Tutorial

Tuesday, September 25, 2007

pico bots

Thursday, September 20, 2007

seminar topics

File system EXT3
See this(good links)

Monday, August 20, 2007

Linux Kernel Details for

for use of

see links

Tuesday, August 14, 2007 (engineering college kerala)

College of engineering attingal ( Engineering college at attingal An engineering college in Kerala State IHRD)

Thursday, August 9, 2007

Java in debian (link)

It includes java installation, firefox java virtual machine cofiguration, firefox plugin installations

TTF fonts in debian etch

TTF font installation in etch is simple.

apt-get install xfstt

then copy ttf files to


now it is ok

restart xfs (ctrl+alt+backspace)

you can install malayalam fonts in this way.

Wednesday, August 8, 2007

Webmin in debian etch

install packages
  1. access wemin/usermin official website ( and get the latest debian packages, or simply run:
  2. first install their dependent packages:
    apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl
  3. therefore you can install webmin/usermin package without error message:
    dpkg -i webmin_1.350_all.deb usermin_1.280_all.deb
  4. also update your rc*.d and so webmin/usermin will startup correctly, and able to manage by using rcconf:
    rm -rvf /etc/rc*d/S*webmin*
    rm -rvf /etc/rc*d/K*webmin*
    rm -rvf /etc/rc*d/S*usermin*
    rm -rvf /etc/rc*d/K*usermin*
    update-rc.d -f webmin defaults 99 01
    update-rc.d -f usermin defaults 99 01
  5. you can now log into your webmin interface by for webmin, and for usermin
some follow up and tips
  1. remember to set auto-logout: the original debian's webmin package come with 15min auto-logout as default setting. this is a very good idea for increase the security level.

    go to "Webmin -> Webmin Configuration -> Authentication", active "Auto-logout after..." and set to 15min (case of webmin), or "Webmin -> Usermin Configuration -> Authentication", active "Auto-logout after..." and set to 15min (case of usermin)

  2. remember to set IP access control: as like as the case of above, original debian's webmin package come with only (localhost) restricted access to webmin as default setting.

    go to "Webmin -> Webmin Configuration -> IP Access Control", click "Only allow from listed addresses", set to and (optional, you should fill in your LAN network) (case of webmin), or "Webmin -> Usermin Configuration -> IP Access Control", click "Only allow from listed addresses", set to and (case of usermin)

more details

Block Internet Explorer in Squid

Blocking Internet Explorer with the Squid Web proxy

/etc/squid/squid.conf :

#We want to block IE, but some sites are only working under IE
# so we put up a list of URLs for Internet Explorer in the following file

acl allowed_url_IE url_regex -i "/etc/squid/allowed_url"

### The ACL for the IE user-agent
acl internet_explorer browser MSIE

### The world
acl all src

### Internal Network
acl lan src

### allowed machines in the network to use IE

acl ie_allowed_machine src

### First, we are allowing the IE-machine here
http_access allow ie_allowed_machine internet_explorer

### here, we are denying Internet Explorer,
### except for the "safe URL" list that is still allowed.
http_access deny internet_explorer !allowed_url_IE

### Now, after the restrictions, we are allowing our network.
http_access allow lan

### And finally blocking the rest of the world.
http_access deny all

The Allowed url ACL file (/etc/squid/safe_url) looks like this :



It is a small village located in South India-->Kerala state --> Trivandrum Dist --> Chemmaruthy panchayath.

College of engineering attingal(

College of Engineering Attingal, established by the Institute of Human Resources Development(IHRD), a Government of Kerala undertaking,is a premier technical institute having well flourished environment for moulding professionals.

College of Engineering Attingal, started functioning in the academic year 2003-2004.The Institution has gained the approval of the All India Council for Technical Education and is an affiliated institution under Cochin University of Science & Technology, offering under graduate courses in following deciplines

Computer Science and Engineering - 60 Intake/Year
Electronics and Communication - 60 Intake/Year

my work place

I am now working at College of Engineering Attingal(

My service started at Regional centre of IHRD, Calicut
after that Model Engineering college,
Regional centre of ihrde Trivandrum(RCTVM) ,
Kerala Legislature secreteriat ,
College of Engineering Adoor
from 14th August 2007 College of engineering Attingal(