Tuesday, December 18, 2007

Device Driver Programming

Device Driver Programming Some useful Links

LINK 1

LINK 2

Kernel Re compilation techs

$apt-get install kernel-package
$apt-get install linux-source-2.6.18 (will save the source on /usr/src)

untar this source
$tar -xjvf linux-source-2.6.18.tar.bz2

copy the config file to new one
$cp /boot/config-2.6.18-4-686 /usr/src/linux-source-2.6.18/.config

create a link to the folder
$ln -s linux-source-2.6.18 linux

change to linux dir
$cd /usr/src/linux

confirm the copied config file
$make menuconfig

Make the kernel
$make

THAT'S IT.............

Compile the program using a makefile
change the directory to /usr/src/linux

$gcc -c

inserting the module
$insmod ./

To display the messages generated by module
$dmesg

removing the module
$rmmod ./

Thursday, September 20, 2007

java in debian

JAVA ON DEBAIN ETCH

Follow the Link to install java plugins in etch os

https://jdk-distros.dev.java.net/debian.html

for installing java in the machine
# apt-get -t unstable install sun-java5-jdk

/etc/apt/sources.list
....
....
....
# Debian Etch
deb http://ftp.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.debian.org/debian/ etch main contrib non-free

# Debian Etch Security Updates
deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates main

# for sun-java5 packages in unstable
deb http://ftp.debian.org/debian/ unstable non-free
deb-src http://ftp.debian.org/debian/ unstable non-free
....
....
....

Wednesday, August 29, 2007

Ethereal-A Packet Sniffer Tool

Ethereal is really good packet sniffer tool used in Linux/Windows environment.
This software can be downloaded from the following site

www.ethereal.com/download.html

Monday, August 27, 2007

Configuring Evolution for Gmail account

Select
Edit->Preferences->Mail Account->Add New Account

In Identity Tab give necessary details like mail id,name etc

In Receiving Email Tab
Server Type : POP
Server : pop.gmail.com
Username : username of gmail
Security : SSL encryption (Select from drop down list)
Authentication type : Password (select from drop down list) check for supported types

In Sending Email Tab
Server Type : SMTP
Server : smtp.gmail.com (Tick the Server requires authentication radio button)
Use Secure Connection : SSL Encryption
Authentication : PLAIN(Select from dropdown menu) check for supported types
Username : username of gmail

Click OK,...thats it

Thursday, August 23, 2007

to converting latex to pdf file

There are mainly two ways for conversion

1) type the following commands after coding your TeX file
latex first.tex
dvipdf first


2) type the following commands after coding your TeX file (using pdflatex)
pdflatex file.tex
pdflatex can't include eps-graphics. Convert all eps Files to pdf with the command
epstopdf file.eps

To convert a landscape dvi file to landscape pdf file
1) Switch to landscape in your TeX file:
\documentclass[12pt,landscape]{article}

2) Compile with 'latex' as usual
latex

3) If you like to check with 'xdvi':
xdvi -paper a4r

4) Create Postscript/pdf:
dvips -t landscape
or dvipdf -t landscape

LaTeX command for changing margins

Here are the latex command for changing the default value of margin
for this you have to use the "geometry package"

add the comand at beginning

\usepackage[hmargin=3cm,vmargin=3.5cm]{geometry}

Wednesday, August 15, 2007

http://www.ceattingal.ac.in

Visit our college site

http://www.ceattingal.ac.in College of Engineering attingal

Thursday, August 9, 2007

Latex 2e

About LaTeX2e. one of the best typesetting tools i have ever seen. Developed by the legendary scientist/engineer Donald E Knuth to typeset his own series of book -"The Art of Computer Programming". Use it and enjoy it.