Linux Commands:

Posted On July 14, 2010

Filed under Commands

Comments Dropped leave a response

1. To know the Version $ lsb_release -a

2.Last reboot $ last reboot

3.System temperature $ acpi -V

4.Multiple Terminal $sudo apt-get install terminator

$man terminator


Logo for Kanimozhi

கட்டற்ற (தமிழ்க்) கணிமை கூடுதல் பற்றிய விவரம் அடங்கிய தளத்திற்கான logo உருவக்கப்பட்டுள்ளது.



Uninstall KOHA

Posted On February 25, 2010

Filed under 1

Comments Dropped leave a response


Koha is the first open-source Integrated Library System (ILS).


1. Drop or delete the Koha database,
2. Delete the koha-httpd.conf (/etc/koha/koha-httpd.conf)
3. Delete the koha installation folder (/usr/share/koha)
and proceed for fresh installation.


Posted On February 23, 2010

Filed under 1

Comments Dropped leave a response

Redirect a page

header( ‘Location:; ) ;

Java Script

Posted On February 23, 2010

Filed under web application

Comments Dropped leave a response

Redirect a page using confirm :

<script type=”text/Javascript”>
var url=”;;
var redirect=confirm(“Do you want to be redirected to “+url);

Alert – “On Click”

You can place the JavaScript alert() function directly into a button element, then use the ‘onclick’ event to trigger it. Like this:

<input type=”button” value=”Click me…” onclick=”alert(‘Thanks… I feel much better now!’);” />

Alert – Before Page Loads

<div style=”text-align:center;padding:10px;”>
<h1>Amazing Web Page</h1>
<script type=”text/javascript”>
alert(‘But wait, there\’s more…’);
<p><a href=”JavaScript:self.close();”>Close This Page!</a></p>

Alert – After Page Loads

<script type=”text/javascript”>
function alertUser(msg) {
<body onload=”alertUser(‘Welcome to this AMAZING web page!’)”>
<div style=”text-align:center;padding:10px;”>
<h1>Amazing Web Page.</h1>
<p><a href=”JavaScript:self.close();”>Close</a></p>

Alert – Within Another Function

<script language=”javascript” type=”text/javascript” >
function jumpto(x){

if (document.form1.jumpmenu.value != “null”) {
if (document.form1.jumpmenu.value != “;) {
alert(‘Sorry to see you leaving Quackit. Hope to see you back soon!’);
document.location.href = x
<form name=”form1″>
<select name=”jumpmenu”
<option>Jump to…</option>
<option value=””>Quackit Homepage</option>
<option value=””>ZappyHost</option&gt;
<option value=””>Code Generator</option>
<option value=””>Natural Environment</option>
<option value=””>Great Workout</option>


Posted On February 22, 2010

Filed under web application

Comments Dropped leave a response

Button (onClick):

To open a file in a new window

<input type=”button” value=”Add” name=”cmdadd” onclick=”‘one.html”)” />

To open a file in the same window

<input type=”button” value=”Add” onclick=” location.href=’one.html’ ” name=”cmdadd” />

<input type=”button” value=”Add” onclick=”document. location.href=’one.html’ ” name=”cmdadd” />

How to install PostgreSQL Database Server on Fedora

Posted On February 10, 2010

Filed under 1

Comments Dropped leave a response

Install Django

Download the python: or add/remove software

Download the Django:
tar xzvf Django-1.1.tar.gz
cd Django-1.1.1
sudo python install

Install postgresql and postgresql-server packages:

$ yum install postgresql postgresql-server python-psycopg2

Configure PostgresSQL:

edit: /var/lib/pgsql/data/postgresql.conf

Uncomment this two line:

listen_addressses = ‘ ‘

port = 5432



Start  PostgreSQL Server:

service postgresql start  OR /etc/init.d/postgresql start

Configuring Postgresql

Setting up Postgres Users

Changing the postgres users database password:

su postgres

psql template1

template1=# ALTER USER postgres WITH PASSWORD ‘password’;


Where “password” is the new password.

Changing the postgres user OS password:

sudo passwd -d postgres

sudo su postgres -c passwd

Setting up Postgres Users

How to install fonts

Posted On February 9, 2010

Filed under 1

Comments Dropped leave a response


Copy the fonts to this directory /usr/share/fonts/truetype


Copy the fonts to this directory /usr/share/fonts/

For Both:

After copy the fonts to the directory then give this command in terminal

fc-cache -f -v


Posted On January 6, 2010

Filed under 1

Comments Dropped 6 responses

How to install latex on fedora :

$ sudo yum install texlive-latex


Way 1:

#latex hello                                      % hello is the filename,its gives the dvi file

#dvips hello.dvi -o           % converting to postscript

#dvipdf hello.dvi hello.pdf            % converting to PDF

way 2:

#pdflatex hello.tex                           %convert the tex file directly to pdf.

Simple document using latex:(save hello.tex)

hello world!

How to write letter using latex:


The Principal,\\
Little Flowers School,\\

\opening{Dear Madam}

Subject:Application for leave of absence from 16-20th January.

My daughter,Priya,a student of Little Flowers School will
unable to attend school from 12-16th of this month due to some familial
problems.I hope you would grant her leave of absence for those days only.

R. S. Shanmugam}


All latex command begin with a reverse  slash.


The document class belongs to letter.  It have some option like article,report,book etc.,12pt is the text size.

2.\address{ from address}

The from address will display in the right hand side default, with current date.

3. \\

To start new line

4.\date{9 July 2007}

If  you want put your own date give this command, or   you want current date \data{\today} it will display American style month date year..

5.\opening {   }

It represent the recipient

Dump and undump the database in mysql

Posted On December 27, 2009

Filed under General

Comments Dropped 2 responses


mysqldump -u root -p dbname > db.sql


mysql -u root -p dbname < db.sql

Next Page »