We need to compile the package even the binaray package is available for use in the distribution repositories, for instance you have got the binary package which as some special features have disabled so, ifyou need to enable those features, at this stage you need to download the source enable the required features, compile and install it into the system.

step1:Get the source from the distribution repositories, here I am using ubuntu 12.04 LTS so I will download the package from the ubuntu repositores
tulsi@surfer:~$ apt-get source gedit
Edit it’s configuration file as per your requirement, compile and install it

Powered by Blogilo


Comiling software from source is not so much difficult as you expect. In this tutorial we are going to look the two ways of compiling software in linux system

The first on is  use the Source code available in software repositories, repositories may be of (UBUNTU,DEBIAN,FEDORA or many other Linux distribution) and the second method is to use the source code provided by upstream developers, the second method is most useful for the project which source code are not available in the distribution repositories. for compiling the source code we need the three tools, This tutorials is based on ubuntu 12.04 LTS. To compile the software the 3 tools which are going to be needed are as follows;
  1. build essential=> need for compilation
  2. automake => Build Tools
  3. checkinstall=> Build Tools 
Compiling from the  Tarball:
Most of the source code that is not in the software repositories is available in the form of compressed source tarballs, the files which are compressed using gzip or bzip, to compile the software from the tarballs source code perform the following steps
Create the directory into the Home directory called source
tulsi@surfer:~$ sudo mkdir -p /home/source
uncompressed the downloaded tar file into the home directory using -C command
tulsi@surfer:~$ sudo tar -xvjf /home/tulsi/Downloads/git- -c /home/tulsi/source
and you will see the output like this in your screen

 In the above command we use the option -X for extract v for verbose to see the output in screen z for the tar.gz file f for output file

if your downloaded file is in the format of filename.tar.bz2 you need to provide the option -xvjf ie: z is replaced by j for tar.bz2 file extension
If you are not sure which file compression is used by the downloaded tarball you can check the compression methond by file command which is as follows
tulsi@surfer:~$ file /home/tulsi/Downloads/git- 

/home/tulsi/Downloads/git- gzip compressed data, was “git-”, from Unix, last modified: Fri Sep 27 05:34:38 2013, max compression 

Now it’s time to compile the source code and install it
root@surfer:/home/source/git- ./configure=> This command will check for the exact necessary dependencies
root@surfer:/home/source/git- make => This step will compile the software
root@surfer:/home/source/git- make install=> This will install the software finally in your machine

Note: There is not the same way to compile the software from the source code each code may have diffrent way to compile the software so it is better to check the  README FILE before compiling and installing the software from the source code

Working with command line in ubuntu:
Debian world renowned APT:Advance package tool It was the first tool to properly handle the package dependencies for instance if you need to install calibre in your machine it first install its dependencies and then install the Calibre It has the features of Installation resuming means, while installing the package you loose the internet connection, if you try
to install the package again where you get internet it will resume the installation of that package from where it was before
To upgrade first you need to check for the available update for packages which is done through
$ sudo apt-get update => This will bring you the update 
If you see any update for package using this command now, it’s time to install the updated packages to install the updated packages 
$ sudo apt-get upgrade => This command will install the availabe updates in your system and the output of command line look likes 
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
cabextract google-chrome-beta icedtea6-plugin language-pack-en
language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base
libfreetype6 libfreetype6-dev libsmbclient libwbclient0 openjdk-6-jre
openjdk-6-jre-headless openjdk-6-jre-lib samba-common samba-common-bin
smbclient upstart winbind xserver-common xserver-xorg-core
21 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Working on the Command Line
Need to get 84.8MB of archives.
After this operation, 623kB of additional disk space will be used.
Do you want to continue [Y/n]?
From the above description you see that 84.4 MB of packages are downloaded but only 623 of additional space will be use means the downloaded package are overwriting to the existing packages 
sometimes when you see 0 not upgraded means some thing is not upgrading to do the upgrade you need to do the distribution upgrade which is done by the following command
$ sudo apt-get dist-upgrade=> This command upgrade the distribution to latest version
on running this command it will upgrade the distribution to newer one, on issuing this command the system will remove the obsolete packages and install the newest one
This command will also ease you to move to latest version of debian without downloading the iso file
updating the system need to be done to fix the bugs appered in the software and  to cope with the security update
$ apt-get install package_name
to install the mysql package I just need to give the MYSQL package name so the system automatically find the packages on the repo and resolve its dependencies and install it into the system
$sudo apt-get install mysql-server => This command install the mysql package 
APT maintains the package cache where it stores DEB files it has downloaded and installed which is usally in /var/cache/apt/archives which take 100 of MB space on the system so we can clean out the package by running the command
$ sudo apt-get clean => This command delete all the cached files from /var/cache/apt/archives
$sudo apt-get autoclean=> This command delete all the aged-out package from /var/cache/apt/archives and provide the space for newer packages
To remove the installed packages form the command line you can just issue the command 
$sudo apt-get remove gedit => This command remove the gedit packages from your system, Removing packages can be dangerous because apt-get remove other dependencies packages which are associated with firefox, so be aware while using the apt-get remove command, for instance if you remove the package $ sudo apt-get remove libgtk2.0.0 which is the main graphical tookit for ubuntu when you issue this command probably the apt-get will remove more than 100 packages from your system, so the moral is  read the APT report carefully before pressing the Y to continue with uninstall.
A straight apt-get remove doesn’t remove the configuration files of the program, so when you later install the package when you remove it before, you don’t need to change the configuration file of the package mean’s that you don’t need to reconfigure the package 
To remove the package along with it’s configuration file issue the following command
$sudo apt-get remove –purge gedit => This will remove the gedit software from your system along with it’s configuration file which perfom the full unistall of the package,
It is hard to find the special package for the system as so many package are availabele with us, so APT provide us a handy tool called apt-cache
To search the package mysql just issue the command 
$ apt-cache search KDE => This will search the mysql package for you from the repository, you may see the result that package name even don’t have the kde name so how apt-cache search it, the simple answer the package description contained the name KDE so from the description parameter apt-cache search tool find the KDE packages
we can filter the output for apt-cache search in many ways 
$ apt-cache -n search kde => -n tells the command search the KDE package only by name not to look at the description, with issuing this command the search has reduced from 1000 to 100 results
$sudo apt-cache showpkg kde => This command display the package information just like below
tulsi@surfer:/var/cache/apt/archives$ apt-cache showpkg kde
Package: kde

Reverse Depends: 
Reverse Provides: 

Powered by Blogilo

doug --- off the record

I don’t always blog using Ubuntu and I don’t always blog using a blogging client instead of using the web or in a browser.  But, when I do, there are two tools that I use and really like.

But when I do, I use Blogilo and Shutter.

Shutter is a really handy full featured screen capture tool.  It’s got your typical options for what to grab with both simple and advanced interfaces.  

One of the features that I find particularly helpful is the ability to zoom in after you’ve selected an area.  Sure, you could and probably should before taking the shot but planning isn’t always in the books for me!  Another helpful feature is to be able to capture the cascading menu from a particular application.  Invaluable if you’re creating instructions for others.

Once you’ve grabbed an image, it’s always nice to be able to edit it…

View original post 254 more words

Calibre is a free is an open source project for e-book library management. It was developed by users of e-books around the globe for e-book management.It has many different features and it’s functionality which are categorized as below

  1. Library Management
  2. E-book Conversion
  3. Syncing to e-book reader device
  4. Downloading news from the web and converting it into ebook form
  5. comprehensive e-book viewer
  6. content server for on line access to owner book collection.

Calibre can provide you a complete e-library solution, It’s primary focus is on e-book collection, It

 is design with the concept of logical collection of e-book, It supports the conversion of e-books from different format to LRF and EPUB format. Some of the input formats to calibre are MOBI, LIT, PRB, EPUB, ODT, HTML, CBR, CBZ, RTF, TXT, PDF, and LRS

If a book has more than one input format calibre automatically choose the best format and upload it into it’s database.

here is the snapshot of calibre in my machine as I am running ubuntu 12.04



since, calibre is an open source software  it is available for windows (32 as well as 64 bit) osX and for LINUX

you can download this software from this link: http://calibre-ebook.com/download


CCNA 1 overview

CCNA-2 Overview








For webserver Configuration, we only need to setup LAMPP in linux system and edit the IP tables to access the server from the remote computer.To do this, follow the following Steps

1 INSTALLING MYSQL 5 To install MySQL, we do this:

#yum install mysql mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

#chkconfig –levels 235 mysqld on

#/etc/init.d/mysqld start

To Set passwords for the MySQL root account:

# mysql_secure_installation

2. Installing Apache2

#yum install httpd => This command install APache

Now configure your system to start Apache at boot time…

#chkconfig –levels 235 httpd on

#/etc/init.d/httpd start

Now direct your browser to, and you should see the Apache2 if your setup has been good you will see the following page

Webserver Configuration


Apache’s default document root is /var/www/html on CentOS, and the configuration file is /etc/httpd/conf/httpd.conf. Additional configurations are stored in the/etc/httpd/conf.d/ directory.

4 Installing PHP5

We can install PHP5 and the Apache PHP5 module as follows:

#yum install php

We must restart Apache afterwards:

#/etc/init.d/httpd restart

Apache wouldn’t work off the bat if you’re trying to see it from another computer…you have to add a firewall exception:
…first turn it off:

# service iptables stop

and edit the configuration files

# vi /etc/sysconfig/iptables

We need to add a rule

-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT

Start start firewall again

#service iptables start

…if you want to remotely access MySQL as well (I do) you also add:

-A INPUT -m state –state NEW -m tcp -p tcp –dport 3306 -j ACCEPT

5 Testing PHP5 / Getting Details About Your PHP5 Installation

 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 and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.
#vi /var/www/html/info.php
 we call that file in a browser (e.g.

PHP installation in LINUX

6 Getting MySQL Support In PHP5

To get MySQL support in PHP, we can install the php-mysql package. It’s a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:

#yum search php

Pick the ones you need and install them like this:

#yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc

APC is a free and open PHP opcode cacher for caching and optimizing PHP intermediate code. It’s similar to other PHP opcode cachers, such as eAccelerator and Xcache. It is strongly recommended to have one of these installed to speed up your PHP page.

APC can be installed as follows:

#yum install php-pecl-apc

Now restart Apache2:

#/etc/init.d/httpd restart

Now reload in your browser and scroll down to the modules section again. You should now find lots of new modules there, including the MySQL module:

7 phpMyAdmin

phpMyAdmin is a web interface through which you can manage your MySQL databases.

First we enable the RPMforge repository on our CentOS system as phpMyAdmin is not available in the official CentOS 6.3 repositories:

Import the RPMforge GPG key:

#rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

On x86_64 systems:

#yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

On i386 systems:

#yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

phpMyAdmin can now be installed as follows:

#yum install phpmyadmin

Now we configure phpMyAdmin. We change the Apache configuration so that phpMyAdmin allows connections not just from localhost (by commenting out the <Directory “/usr/share/phpmyadmin”> stanza):

#vi /etc/httpd/conf.d/phpmyadmin.conf

Web application to manage MySQL

#<Directory "/usr/share/phpmyadmin">
#  Order Deny,Allow
#  Deny from all
#  Allow from

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

Next we change the authentication in phpMyAdmin from cookie to http:

#vi /usr/share/phpmyadmin/config.inc.php

/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';

Restart Apache:

#/etc/init.d/httpd restart

Afterwards, you can access phpMyAdmin under


%d bloggers like this: