Friday, August 26, 2011

Completed 8 joyous weeks in new organization...counting on more

Hello Folks,

I finally get to reach home on time and meet up with my loved and cared ones, now that I'm not associated with my past company [well even though i do get a call every now and then for some help :-) hehe ... well i don't mind as it really like to help the needed]


Here are the new organization the work seems to be sparse, but that helped me to look at other aspects about the work and my technology (I mean, develop new skills/ certification/ learn new language... darn I always wanted to learn Frence, may be should give a try) who know where it would land me ?

To cut it short, I started to like this new place and hope it brings as much joy in working as i really wanted. 

Here at least i got to have 2 days for relinquishing my mind and body and weekend has already started ... Need to check if any new movie release this time

Au revoir

Friday, August 12, 2011

SCDL - Assignment Project/Exam Project


Hello Folks,
I'm starting off a new post for my fellow colleagues pursuing Symbiosis Distance Learning PGDIT Program - 2007 Batch who are still left with completing their Project works (which includes C, Web and Java)

You may find the attached files like Source code, snapshots or the document representation of the Project.


NOTE: The material is only for your reference and would need some tweaking or changes and I only meant to be helpful


C Programming


Hello there,

I certainly hope that you have at least the C Programming Assignment/Exam questionnaires.

If not then no worries, you can download the same by Clicking Here

C Programming Assignment has 17 questions of which 10 needs to be answered with each carrying 10 marks each totaling to 100 marks

I have tried answering 10 of my favorite question not necessarily of your liking, but you may refer/change as per your understanding and tweaking.

You may find the Assignment Project by Clicking Here

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C Exam Project is a trouble maker as it involves only two questions to be answered from 4 hence these questions needs to be answered properly and abide to the Important Instructions in the start of the PDF.

I have tried answering the same as per my comfort and hence advise you to recheck the same before attempting to completely use it.

You may find the Exam Project by Clicking Here

I appreciate any comment/changes for my upload so that i may update the same which would be useful for folks just like you and me.

If you need Web Technologies and Java Assignment/Exam Projects then do let me know

Enjoi

Wednesday, July 20, 2011

Awstats Installation

Awstats Installation

Step: 1
i.         Login to the server you want to install awstats

ii.       Download awstats-6.95 from the below link.

iii.      Unpack the tar file.
#tar -xvzf awstats-6.95.tar.gz

iv.     The above command creates a directory as awstats-6.95.

v.       Copy this directory to the /usr/local
#cp -rp awstats-6.95 /usr/local

vi.     Change the directory.
#cd /usr/local

vii.    Rename the directory.
#mv awstats-6.95 awstats


Step: 2
i.         Change the directory to /usr/local/awstats/tools
#cd /usr/local/awstats/tools

ii.       Configure awstats.
#perl awstats_configure.pl

iii.      It’ll ask for the httpd.conf path. Don’t give any path because it’ll edit the httpd.conf file
>none

iv.     It’ll ask to create an awstats conf file (by default the file is created in /etc/awstats)
>demo
(it’ll copy the awstats.model.conf to awstats.demo.conf in the directory /etc/awstats
It is a demo conf file for awstats)

v.       Press enter to end the configuration.

Step: 3
i.         Change the directory to /usr/local/awstats/wwwroot/
#cd /usr/local/awstats/wwwroot

ii.       Copy all the contents of this directory to the Document Root of the Apache service(in our case the default path for http is used - /var/www/html)

#cp –rp cgi-bin/* /var/www/html/cgi-bin
(NOTE: This directory may be different according to your document root, don’t type the command as #cp -rp cgi-bin /var/www/html it will replace your original cgi-bin directory).


#cp –rp classes /var/www/html
(NOTE: This directory may be different according to your document root).

#cp –rp css /var/www/html
(NOTE: This directory may be different according to your document root).

#cp –rp js /var/www/html
(NOTE: This directory may be different according to your document root).

#cp –rp icon /var/www/html
(NOTE: This directory may be different according to your document root).

Step: 4
i.         Add the contents in the httpd.conf file.
#vi /etc/httpd/conf/httpd.conf
Press i
Type or copy the below contents at the end of the file

Alias /awstatsclasses "/var/www/html/classes/"
Alias /awstatscss "/var/www/html/css/"
Alias /awstatsicons "/var/www/html/icon/"

Save and quit from vi editor

ii.       Restart httpd service.
#/etc/init.d/httpd restart OR service httpd restart

Step: 5
i.         Copy the awstats conf file as your virtual domain
#cp /etc/awstats/awstats.demo.conf /etc/awstats.mydomain.com.conf

ii.       Edit the conf file
#vi /etc/awstats/awstats.mydomain.com.conf

Logfile=” path of access log file for your domain” (e.g /var/log/http/access.log)
Logtype=w (w=web, m=mail ..... which type of log you want to analyze)
LogFormat=1 (default is 1, may be your apache log format is different than default. You have to check and mention according)
Domain=”mydomain.com”
HostAlias=”mydomain.com www.mydomain.com

Save and quit from vi editor


iii.      Repeat the (i) and (ii) for each and every virtual host.

iv.     Create a directory for the awstats database.
#mkdir /var/lib/awstats
(If you want to update your analyze from wab page you must change the permission of this directory to writable for all #chmod +w /var/lib/awstats)

Step: 6
i.         Update the awstats for individual virtual host.
#perl /var/www/html/cgi-bin/awstats.pl –config=mydomain.com –update
OUTPUT OF THIS COMMAND
Update for config "/etc/awstats/awstats.mydomain.com.conf"
With data in log file "/pathtoyourlog/yourlog.log"...
Phase 1: First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2: Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 225730
 Found 122 dropped records,
 Found 87 corrupted records,
 Found 0 old records,
 Found 225521 new qualified records.

ii.       Create the static pages.
#perl /usr/local/awstats/tools/awstats_buildpages.pl –config=mydomain.com –output
–dir=”path of the directory inside the documentroot where you want to store the pages”

(NOTE: you must create the directory before this command)

iii.       Insert a cron job for updating the logs.

iv.     Creating a link for index page
#ln /path of the directory where you store the pages/awstats.mydomain.com.html
/path of the directory where you store the pages/index.html


CentOS installation

1.0           Purpose

The purpose of this guideline is to describe process followed for the Installation and Setup of Linux CentOS Operating System.

2.0           CentOS Installation

1)      Requirements
Download the iso image of centos 5.2 from the below link.
2)      Pre-requisites   
a) Fully Qualifed Domain name (FQDN)
b) IP Address
c) Netmask
d) Gateway
e) DNS Server.
3)      Preliminary Note:
In this document we use the hostname as “server1.example.com” with the IP address 192.168.0.100 and the gateway as 192.168.0.1
4)      Install the Base System
Boot from your first CentOS 5.2 CD (CD 1) or the CentOS 5.2 DVD. Press <ENTER> at the boot prompt:

           It can take a long time to test the installation media so we skip this test here:
Note : Please skip the media check
The welcome screen of the CentOS installer appears. Click on Next:






Choose your language next:


 Select your keyboard layout:
            Note : Select US Keyboard


I'm installing CentOS 5.2 on a fresh system, so I answer Yes to the question Would you like to initialize this drive, erasing ALL DATA?

Now we must select a partitioning scheme for our installation. For simplicity's select Remove linux partitions on selected drives and create default layout. This will result in a small /boot and a large / partition as well as a swap partition. Then  hit Next:


Answer the following question (Are you sure you want to do this?) with Yes:

On to the network settings. The default setting here is to configure the network interfaces with DHCP, but we are installing a server, so use static IP address. Click on the Edit button at the top right
In the window that pops up uncheck Use dynamic IP configuration (DHCP) and Enable IPv4 support and give your network card a static IP address and a suitable netmask

Set the hostname manually, e.g. server1.example.com, and enter a gateway (e.g. 192.168.0.1) and up to two DNS servers (e.g. 213.191.92.86 and 145.253.2.75):


Choose your time zone:
Note : Select Asia/ Calcutta


Give root a password:
Note: Use Password as “password”
Now we select the software we want to install. Select nothing but Server (uncheck everything else). Also don't check Packages from CentOS Extras. Then check Customize now, and click on Next:

Now we must select the package groups we want to install.

Required Packages:
1)      EditorsText-based Internet
2)      Development Libraries
3)      Development Tools
4)      DNS Name Server
5)      Mail Server  (Press F2 to see the sub-packages. Select only POSTFIX)
6)      MySQL Database
7)      Server Configuration Tools
8)      Web Server, Administration Tools
9)      Base and System Tools (unselect all other package groups) and click on Next:

The installer checks the dependencies of the selected packages:








Click on Next to start the installation:

The hard drive is being formatted:


The installation begins. This will take a few minutes:

Finally, the installation is complete, and you can remove your CD or DVD from the computer and reboot it:
After the reboot, you will see this screen. Select Firewall configuration and hit Run Tool:

Disable firewall and SElinux

Then leave the Setup Agent by selecting Exit:
Then log in as root and reboot the system so that your changes can be applied:
Reboot
 

3.0           Review

Installation of the Linux Operating System and Standard Package installed will be as per the above guideline.