2011 in review
The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.
Here’s an excerpt:
A New York City subway train holds 1,200 people. This blog was viewed about 7,500 times in 2011. If it were a NYC subway train, it would take about 6 trips to carry that many people.
GNU GPL License Version 3
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
Read the rest of this entry
Splitting Files in Linux.
Hi all
Today we are going to see how to split large files to equal parts and rejoin them in Linux Operating System.
We use the split program to split the files to parts.
$split [OPTION]... [INPUT [PREFIX]]
This is the syntax of the split command.
Now let us consider a file named Fedora_13_i386_DVD.iso and we want to split into equal parts containing 700MB each.So,
$split --bytes=700M Fedora_13_i386_DVD.iso This will create files with alphabetic suffix like xaa,xab,xac etc.. $split --bytes=700M Fedora_13_i386_DVD.iso -d This will create files with numerical suffix likd x00,x01,x02 etc.. $split --bytes=700M Fedora_13_i386_DVD.iso -d ./part This will create files with numerical suffix like part00 part01 etc..
Now to rejoin these splitted files copy all the files to a single folder and we can use the cat command to join these files.
cat part* > Fedora_13_i386_DVD.iso here replace part* with the pattern of file names. Now this will bring back the original file.![]()
Enjoy Splitting
Installing Virtualbox on Fedora 13
Today we are going to see how to install Oracle Virtualbox in Fedora 13 Goddard which is the latest release from the Fedora Community.
- To install virtualbox we should first go to http://www.virtualbox.org.
- In the downloads section we can see Virtualbox for Linux hosts and if we follow that link we can see the Virtualbox for Fedora 13′s link.
- Depending on the architecture of OS installed download either i386 or AMD64 version.
- Now before installing it let us install 2 important packages namely gcc and kernel-devel packages.
For installing gcc open terminal and give the following command
#yum install gcc
Now to install kernels development package first find out the current kernel you are using.
#uname -r
See whether there is anything like “PAE” in the output of the above command. if so install the PAE kernels devel version. else normal version.
#yum install kernel-devel or #yum install kernel-PAE-devel
Now import the public key of virtualbox package using the command
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | rpm --import -Now navigate to the folder which contains the virtualbox downloaded package and give the command.
#yum localinstall VirtualBox-3.2-3.2.6_63112_fedora13-1.i686.rpmThe above command will pull out the necessary dependencies if any and will compile the kernel module too
![]()
Happy Virtualisation.
Block Gmail Webchat !!
Hi all

Today we are going to block Gmail’s webchat from the Linux Machine.
Now the trick here is that as soon as we login to the chat is enabled by connecting to one of the following servers.
- chatenabled.mail.google.com
- talkgadget.google.com
- talkx.1.google.com
Now the trick is in the hosts file we set the loopback address to this name.
To do that we first open the file /etc/hosts
#vim /etc/hosts
In that give the following entries.
127.0.0.1 chatenabled.mail.google.com 127.0.0.1 talkgadget.google.com 127.0.0.1 talkx.1.google.com
And its done ..Now the gmail webchat will be blocked.
In the same way you can block the gmail chat using IM’s for that just add the following line in the above file.
127.0.0.1 talk.google.com
Remember that this is the simplest method to block. There are more advanced methods using IPTables and Squid proxy which will be discussed later.
Installing LAMP Stack in Ubuntu
Hai friends. Lets Setup the LAMP-Linux Apache MySql and PHP in Ubuntu Linux
First of all Install Ubuntu Linux in the Machine you wish to Install the LAMP Stack.
Step1: Hey Step 1 in setting LAMP Stack is installing a Linux Distro and by now you might have completed the first step
Considering the installation as a fresh one.
First update the distro for that open a terminal and give the following commands :
$sudo apt-get update
The above command will fetch the softwares list from the Ubuntu repositories.
Next
$sudo apt-get upgrade
The above command will update your Ubuntu OS to date.
Step2:
The Second step is to install APACHE WEB SERVER. for that :
$sudo apt-get install apache2
this will install apache server on your machine
You can control apache using
$sudo service apache2 start/stop/restart
Step3:
The next step is MYSQL DATABASE SERVER for that:
$sudo apt-get install mysql-server mysql-client
while installing the server it will prompt for a password for mysql server. Enter is twice and continue.
You can control mysql server by
$sudo service mysql start/stop/restart
Here you can install mysql-gui-tools-common which will give you
1.mysql-query-browser
2.mysql-administrator
which will be of great help
step4:
Now the last step is to install php.
$sudo apt-get install php5
and everything is done.
Now goto /var/www and create a test.php
<?php
phpinfo();
?>
and open a browser and navigate to http://localhost/test.php
it shows the phpinfo page and the LAMP Stack is Ready
AtMail Open Webmail With Sendmail & Dovecot
Hai friends
Today we are going to see hom AtMail Open the opensource webmai which can be used to replace Squirrelmail. AtMail open is an Ajax based webmail and its very beautiful than Squirrelmail.
You can download AtMail Open from http://atmail.org/
1.Setting the Mail Server [Sendmail]
Here we are going to configure and setup the Sendmail Mail Server in RHEL5/Centos/Fedora. The following steps are just basic configurations and no case of security is considered in this configuration.
First of all install the sendmail-cf package(the sendmail server will be installed by defualt in most distributions). This package is necessary to reconfigure sendmail.
#yum install sendmail-cf
Now open the sendmail-mc file in a favorite text editor and make the following changes.
#vim /etc/mail/sendmail-mc
By default sendmail only listens on loopback address for LMTP(local mail transfer protocol) for listening on all interface just comment the “DEAMON_OPTIONS” in line 116.For that add “dnl” infront of the file.
Now uncomment the following lines to set the mail server domain like user@domain.com instead of user@stationx.domain.com.[This feature is called Masquerading]
[Confusing????]
here replace “mydomain.com” with your domains name.
after making these changes for bringing the changes in effect use the command:
#make -C /etc/mail
Done
2. Dovecot [IMAP Server]
Dovecot is an OpenSource IMAP/POP3 Server for Linux/Unix Like Systems.
First Install Dovecot:
#yum install dovecot
now edit the dovecot configuration file to enable IMAP support.
#vim /etc/dovecot.conf
find the line with “protocols” and uncomment it to enable imap support
Now to start dovecot and sendmail on reboots use:
#chkconfig dovecot on
#chkconfig sendmail on
Just restart the services to see whether they run properly.
#service sendmail restart
#service dovecot restart
3.Installing Webserver-httpd [APACHE]
Install httpd webserver using :
#yum install httpd
We should install php,php-mbstring,php-ldap(to enable ldap authentication-optioanl)php-mysql
#yum install php php-mbstring php-ldap php-mysql
now start the httpd service using:
#service httpd start
3.Setting up atmailopen.
Now Download atmailopen from http://atmail.org and extract it to the document root of your webserver.
#wget http://atmail.org/download/atmailopen.tgz
#tar -xzf atmailopen.tgz -C /var/www/html
Now change the permission of the folder :
#chown -R apache /var/www/html/atmailopen
Now openup your browser and navigate to http://localhost/atmailopen
Now you are at the installer of atmailopen.
You can also edit various parameters as shown in the installer in /etc/php.ini file.
Now Click next Continue>> Accept the Apache License agreement Continue>>Now provide the various sql parameters [those who dont know please request/comment] click Continue>> and finish the installer.
Now use the browser to http://<domain>/atmailopen
Now the Joke comes.
first create two accounts on your machine:
#useradd -s /sbin/nologin user1
#useradd -s /sbin/nologin user2
now the email id for user1 is user1@yourdomain.com and for user2 is user2@yourdomain.com.
Now herecomes a small editing to atmails file for succesffull login.
use:
#vim /var/www/html/atmailopen/lib/IMAP_Client.php
function login($user, $pass)
{
list($user, $crap) = split(“@”, $user, 2);
$this->user = $user;
add the lines shown bold in that file and save it
done:)
now http://<hostname>/atmailopen
user: user1 @ yourdomain.com
mailserver: mailservers hostname.
passwd: password of the user
Login and thats it
try sending mail to user2 and create any number of users







