Archive for December 2009

Clear the bug in Existing tamil fonts.

December 21, 2009

By default ubuntu have Three Tamil font in a debian package(ttf-indic-font) the three fonts are TAMu_Maduram.ttf, TAMu_Kalyani.ttf,TAMu_Kadambari.ttf, but those three fonts are not mapped Unicode, it means we couldn’t type both Tamil and English in a document using this font because some Tamil characters are occupy in the places of English character.

Typing both English and Tamil(error)

TAMu_Kalyani.ttf,TAMu_Kadambari.ttf Those font are now cleared the bug in the name of Kalyani.ttf and Kadambari.ttf.

Bug image on TAMu_Kalyani.ttf

Now you can see the red box in  fontforge  Tamil glyphs  are occupy in  the places of
English glyphs and also ligature are not used.

image on Kalyani.ttf

In this image you can see the red underline in that the selected glyph Unicode name will display.  All the glyphs are properly matched in their Unicode place.

Typing both English and Tamil


Now you can type both English and Tamil.

Steps to Clear the bug

Fedora commands:

December 16, 2009

1.Which rpm package does a file belong to:

[root@localhost symbols]# pwd
/usr/share/X11/xkb/symbols

[root@localhost symbols]# rpm -qf in
xkeyboard-config-1.7-1.fc12.noarch

2.How to extract tar.bz2 file:

$tar -xvf filename.tar.bz2

3.How to extract tar.gz

$tar -xvzf filename.tar.gz

$cd filename

$./configure

$make

$make install

4.To know whether the package is install or not.

[root@localhost symbols]# rpm -q packagename

[root@localhost symbols]# rpm -q liferea
liferea-1.6.0-1.fc12.i686

5.save the commands in history:

#history | grep yum > exe.txt (to collect the commands which as  yum)

#history > exe.txt

6.kill the process

$ps ax | grep processname

$kill -9 processid

$ps ax | grep firefox

2577 ?        S      0:00 /bin/sh /usr/lib/firefox-3.5.5/run-mozilla.sh /usr/lib/firefox-3.5.5/firefox
2592 ?        Sl    37:38 /usr/lib/firefox-3.5.5/firefox
10221 pts/0    S+     0:00 grep firefox

$kill -9 2577

7.UPDATE:

$su -c ‘yum update’

8.To change the mode

$chmod -R 777 foldername/filename

9.unlock the locked file:

$chown  – R username:username filename

10.To install rpm packges:

$ rpm -ivh packagename.rpm

Installing Apache, PHP, PhpMyadmin and MySQL on Fedora Core

December 4, 2009
1. Install Apache (httpd), PHP, MySQL (server and client),
   and the component that allows php to talk to mysql. 

    #yum -y install httpd php mysql mysql-server php-mysql 

2. Configure the new services to start automatically 

   /sbin/chkconfig httpd on
   /sbin/chkconfig --add mysqld
   /sbin/chkconfig mysqld on
   /sbin/service httpd start
   /sbin/service mysqld start
  3.setup the mysql database root password.
    # mysqladmin -u root password 'new-password'    
  
  4.After set the password start the localhost
    # /etc/init.d/httpd start

open the browser and give this URL http://localhost/ the default
test page will display.

Test php:

The document root of the default web site is  /var/www/html.
We will now create a small PHP file (info.php) in that directory
create the php file in the name of info.php

#vim /var/www/html/info.php

<?php
    phpinfo();
 ?>

Now we call that file in a browser (e.g. http://localhost/info.php):

To get more MySQL support in PHP.

#yum install php-mysql php-gd php-imap php-ldap php-odbc
 php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand
 php-magpierss php-mapserver php-mbstring php-mcrypt
 php-mhash php-mssql php-shout php-snmp php-soap php-tidy


Now restart Apache2:

# /etc/init.d/httpd restart

Now reload http://localhost/info.php in your browser and scroll down to

the modules section again. You should now find lots of new modules there,

including the MySQL module:

phpMyAdmin:

phpMyAdmin is a web interface through which you can manage 

your MySQL databases.

#yum install phpmyadmin

Restart Apache:

# /etc/init.d/httpd restart

then go to browser give this on your URL 
http://localhost/phpmyadmin/