ERROR OCURRED

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, February 21, 2013

NTOP Installation & Configuration Step by Step

Posted on 5:02 AM by Unknown
1) NOTE:- Make Sure Selinux Disabled.

2) [root@rk download]# yum install cairo-devel libxml2-devel pango-devel graphviz  libpng-devel freetype perl-ExtUtils-MakeMaker libart_lgpl-devel wget gcc make pango freetype-devel -y


3) Now time to install rrdtool

Download latest one,
[root@rk download]# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz

RRDTOOL:- A useful open source tool for storage and retrieval of time series data


Extract here.

[root@rk downloads]# tar -xvzf rrdtool-1.4.7.tar.gz

[root@rk downloads]# cd rrdtool-1.4.7

[root@rk rrdtool-1.4.7]# ./configure --prefix=/usr/local/rrdtool

----------------------------------------------------------------
Config is DONE!

Now run

[root@rk rrdtool-1.4.7]#  make && make install


4) Some more Dep need to install for GeoIP

[root@rk rrdtool-1.4.7]# yum install libpcap libpcap-devel gdbm gdbm-devel

[root@rk rrdtool-1.4.7]# yum install libevent libevent-devel -y

Download PKG.

[root@rk downloads]# wget wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.8.tar.gz

[root@rk downloads]# tar -xvzf GeoIP-1.4.8.tar.gz

[root@rk downloads]# cd GeoIP-1.4.8

[root@rk GeoIP-1.4.8]# ./configure

[root@rk GeoIP-1.4.8]# make && make install



5) Time to Download Latest Stable relase of NTOP.

[root@rk downloads]# wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-5.0.1.tar.gz/download

Extract PKG

[root@rk downloads]# tar xvzf ntop-5.0.1.tar.gz

[root@rk downloads]# cd ntop-5.0.1

[root@rk ntop-5.0.1]# ./autogen.sh --prefix=/usr/local/ntop

[root@rk ntop-5.0.1]# make && make install

Output Like Below

 Testing Required libraries and headers**

checking for required C headers... ok
checking for crypt... ok
checking for dynamic load module... ok

-------------------------------------------------------------------

   **Testing Optional libraries and headers**

checking for Multithreading... ok
checking for openSSL... ok
checking for zlib... ok

Done.



6) Time to Add user + Permission.

[root@rk downloads]# useradd -M -s /sbin/nologin -r ntop

[root@rk downloads]# chown ntop:root /usr/local/ntop
[root@rk downloads]# chown ntop:ntop /usr/local/ntop/share/ntop


7) Time to start & Browse.

[root@rk downloads]#cd /usr/local/ntop/bin/

ntop -A

ntop -d -L -u ntop -P /usr/local/ntop -w 3000 --interface none --skip-version-check yes


(tweak)

cd /usr/local/ntop/
rm ntop_pw.db
cd /usr/local/ntop/bin/
./ntop -u ntop -P /usr/local/ntop -A



Browse NTOP http://10.xx.161.xx:3000



Enjoy.

KEEP IT SIMPLE.
Read More
Posted in | No comments

How to view content of RPM package

Posted on 4:33 AM by Unknown
Example :- Use following command to view  rpm Content of NTOP PKG

[root@rk downloads]# rpm -qlp ntop5-5.0.2-2.el6.x86_64.rpm
/etc/ntop
/etc/ntop.conf
/usr/lib64/ntop
/usr/local
/usr/local/bin
/usr/local/bin/ntop
/usr/local/etc
/usr/local/etc/ntop
/usr/local/etc/ntop/GeoIPASNum.dat


Switch descp.

-l  = List
-q =query
-p =Package


Done
Read More
Posted in | No comments

perl-ExtUtils-MakeMaker for CentOS 5

Posted on 4:00 AM by Unknown
Follow the steps to install perl-ExtUtils-MakeMaker  Under centOS 5
 used 64bit machine


For 64bit machines.

[root@rk1 download]# wget http://flexbox.sourceforge.net/centos/5/x86_64/perl-ExtUtils-MakeMaker-6.56-5.el5.noarch.rpm

For 32bit Machines.
http://flexbox.sourceforge.net/centos/5/i386/perl-ExtUtils-MakeMaker-6.56-5.el5.noarch.rpm

[root@rk1 download]# rpm -Uvh perl-ExtUtils-MakeMaker-6.56-5.el5.noarch.rpm
warning: perl-ExtUtils-MakeMaker-6.56-5.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4027453f
Preparing...                ########################################### [100%]
   1:perl-ExtUtils-MakeMaker########################################### [100%]

Enjoy.

P.S :- Keep it Simple.
Read More
Posted in | No comments

Wednesday, February 20, 2013

Qmail Installation & Configuration step by step

Posted on 2:36 AM by Unknown
Tested under CentOS 5.8  64bit machine.

1)Packges which i installed for Qmail.

httpd-2.2.3-76
php-5.1.6-39
perl-5.8.8 -38
gcc-4.1.2
mysql-5.0.95-5
openssl-0.9.8
openssl-devel-0.9.8
wget-1.11.4-2
patch-2.5.4-31
patchutils-0.2.31-2.2.2

2) Following Perl Modules must installed.

Digest::SHA1
Digest::HMAC
Net::DNS
Time::HiRes
HTML::Tagset
HTML::Parser


like this:-

cpan> install Digest::SHA1
Running install for module 'Digest::SHA1'
Running make for G/GA/GAAS/Digest-SHA1-2.13.tar.gz
Fetching with LWP:

Installation Steps for Perl modules can be found here. cmd

http://raman-kumar.blogspot.in/2009/11/cant-locate-netsnmppm-in-inc-inc.html



3) Software Download.


[root@rk tmp]# mkdir /downloads
[root@rk tmp]# cd /downloads/
[root@rk downloads]# ls
[root@rk downloads]# wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz
--2013-02-20 11:58:56--  http://www.qmailrocks.org/downloads/qmailrocks.tar.gz
Resolving www.qmailrocks.org... 173.230.140.101
Connecting to www.qmailrocks.org|173.230.140.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26425994 (25M) [application/x-gzip]
Saving to: `qmailrocks.tar.gz'


Extract Pkg.

[root@rk downloads]# tar -xvzf qmailrocks.tar.gz



4) Installing Qmail- Run Linux script.


Path [root@rk install]# pwd
/downloads/qmailrocks/scripts/install

[root@rk install]# ./qmr_install_linux-s1.script


Output like below.

Done!

And set up the supervise script directories...

Setting conf-split and conf-spawn

All steps completed!


After that install Patches.

[root@rk util]# pwd
/downloads/qmailrocks/scripts/util

[root@rk util]# ./qmail_big_patches.script

OutPut Like

Applying Ryan Schlesinger's forcetls patch
patching file qmail-smtpd.c
All done!


Now time to Build Qmail.

[root@rk qmail-1.03]# pwd
/usr/src/qmail/qmail-1.03

[root@rk qmail-1.03]# make man && make setup check


[root@rk qmail-1.03]# hostname
rk

[root@rk qmail-1.03]# ./config-fast rk
Your fully qualified host name is rk.
Putting rk into control/me...
Putting rk into control/defaultdomain...
Putting rk into control/plusdomain...
Putting rk into control/locals...
Putting rk into control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to rk.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!


[root@rk qmail-1.03]# make cert

openssl req -new -x509 -nodes \
    -out /var/qmail/control/servercert.pem -days 366 \
    -keyout /var/qmail/control/servercert.pem
Generating a 1024 bit RSA private key
...................++++++
......++++++
writing new private key to '/var/qmail/control/servercert.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:IN
State or Province Name (full name) [Berkshire]:Delhi
Locality Name (eg, city) [Newbury]:Delhi
Organization Name (eg, company) [My Company Ltd]:Pearl Pvt Ltd
Organizational Unit Name (eg, section) []:mail
Common Name (eg, your name or your server's hostname) []:mail.rk
Email Address []:rk@rk.com
chmod 640 /var/qmail/control/servercert.pem
chown qmaild.qmail /var/qmail/control/servercert.pem
ln -s /var/qmail/control/servercert.pem /var/qmail/control/clientcert.pem


Now Set the correct ownership for Cert.

[root@rk qmail-1.03]# chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem


Now Build UCSPI-TCP

[root@rk ucspi-tcp-0.88]# pwd
/usr/src/qmail/ucspi-tcp-0.88

[root@rk ucspi-tcp-0.88]# patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
patching file error.h
Reversed (or previously applied) patch detected!  Assume -R? [n]

[root@rk ucspi-tcp-0.88]# make && make setup check


Now Build Daemontool

[root@rk src]# pwd
/package/admin/daemontools-0.76/src

[root@rk src]# patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch

[root@rk src]# cd /package/admin/daemontools-0.76/

[root@rk daemontools-0.76]# package/install

Done.


[root@rk daemontools-0.76]# ps -aux

root     30412  0.0  0.0  10816  1172 ?        Ss   13:50   0:00 /bin/sh /command/svscanboot

Shows we r in right track.


5) Time to Install EZmlm.


EZmlm :- is an easy-to-use, high-speed mailing list manager for qmail.

[root@rk qmailrocks]# pwd
/downloads/qmailrocks

[root@rk qmailrocks]# tar -xvzf ezmlm-0.53-idx-0.41.tar.gz

# cd ezmlm-0.53-idx-0.41

[root@rk ezmlm-0.53-idx-0.41]# make && make setup

Done.


6) Time to Install Autoresponder

This is a simple program to automatically respond to emails.

[root@rk qmailrocks]# pwd
/downloads/qmailrocks

[root@rk qmailrocks]# tar -xvzf autorespond-2.0.5.tar.gz

[root@rk qmailrocks]# cd autorespond-2.0.5

[root@rk autorespond-2.0.5]# make && make setup


7) Time to Install Vpopmail  (without Mysql)

[root@rk qmailrocks]# pwd
/downloads/qmailrocks

[root@rk qmailrocks]# tar xvzf vpopmail-5.4.13.tar.gz

[root@rk qmailrocks]# cd vpopmail-5.4.13

For help use = /configure --help

Going to Use with --enable-logging=p - logs errors with passwords

[root@rk vpopmail-5.4.13]#./configure --enable-logging=p

   vpopmail 5.4.13          
            Current settings
---------------------------------------

vpopmail directory = /home/vpopmail
               uid = 510
               gid = 505

So on....


[root@rk vpopmail-5.4.13]# make && make install-strip

NO Error..Good to Go.


8) Time to Install Vqadmin


Vqadmin :- vqadmin is a web based control panel that allows system administrators to perform actions which require root access — for example, adding and deleting domains.Through the interface we can create new domains, new users, net quotas, enable services and so on.

[root@rk qmailrocks]# pwd
/downloads/qmailrocks

[root@rk qmailrocks]# tar xvzf vqadmin-2.3.6.tar.gz

[root@rk qmailrocks]# cd vqadmin-2.3.6

[root@rk vqadmin-2.3.6]# ./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html

           Current settings
---------------------------------------
vpopmail directory = /home/vpopmail
               uid = 510
               gid = 505
       cgi-bin dir = /var/www/cgi-bin
       vqadmin dir = /var/www/cgi-bin/vqadmin
    mysql features = disabled


[root@rk vqadmin-2.3.6]# make && make install-strip


 i) After that add following line in httpd.conf.


deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow


And

AllowOverride All

ii) Password Protect for Vqadmin  with .htaccess.

[root@rk conf]# cd /var/www/cgi-bin/vqadmin/

[root@rk vqadmin]#

[root@rk httpd]# htpasswd -bc /etc/httpd/.htpasswd admin admin
Adding password for user admin

[root@rk vqadmin]# cat .htaccess
AuthType Basic
AuthUserFile /etc/httpd/.htpasswd
AuthName vQadmin
require valid-user
satisfy any


[root@rk vqadmin]# chown apache .htaccess

[root@rk vqadmin]# /etc/init.d/httpd restart

Time to browse.

http://10.****.161.***/cgi-bin/vqadmin/vqadmin.cgi


9) Time to Install MailDrop


MailDrop:- mail filtering agent which can be used to filter messages as they arrive on the server.

[root@rk qmailrocks]# pwd
/downloads/qmailrocks

[root@rk qmailrocks]# tax xvzf maildrop-1.6.3.tar.gz

[root@rk maildrop-1.6.3]# cd maildrop-1.6.3

[root@rk maildrop-1.6.3]# ./configure --prefix=/usr/local --exec-prefix=/usr/local --enable-maildrop-uid=root --enable-maildrop-gid=vchkpw --enable-maildirquota

[root@rk maildrop-1.6.3]# make && make install-strip && make install-man

No error. Gr8..Goahead.


10) Time to Install Qmailadmin

QmailAdmin is a web interface for managing email addresses in virtual domains created by Vpopmail/Vqadmin.

[root@rk qmailrocks]# tar xvzf qmailadmin-1.2.9.tar.gz

[root@rk qmailrocks]# cd qmailadmin-1.2.9

[root@rk qmailadmin-1.2.9]# ./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html --enable-autoresponder-path=/downloads/qmailrocks/autorespond-2.0.5/autorespond

  qmailadmin 1.2.9
            Current settings
---------------------------------------
       cgi-bin dir = /var/www/cgi-bin
          html dir = /var/www/html
         image dir = /var/www/html/images/qmailadmin
         image URL = /images/qmailadmin
      template dir = /usr/local/share/qmailadmin
         qmail dir = /var/qmail
      vpopmail dir = /home/vpopmail
   autorespond dir = /downloads/qmailrocks/autorespond-2.0.5/autorespond
         ezmlm dir = /usr/local/bin/ezmlm
         ezmlm idx = yes

[root@rk qmailadmin-1.2.9]# make && make install-strip

Time to Browse.

http://10.***.161.***/cgi-bin/qmailadmin

Some Tweak Here. In my setup nowhere i define domain & postmaster user password. To do this go under followind dir.

[root@rk bin]# pwd
/home/vpopmail/bin

Add Domian like this with Set Postmaster password.

[root@rk bin]# ./vadddomain rk.com

Please enter password for postmaster:
enter password again:

Done.

Now login with Postmaster user, User rk.com as Domain & Password which you just set.



11) Time to Finalize Qmail.

[root@rk linux]# pwd
/downloads/qmailrocks/scripts/finalize/linux

[root@rk linux]# ./finalize_linux.script
This scripts will perform 3 functions:\n

1. Copy all supervise scripts to their proper locations.\n

2. Copy the qmail rc and qmailctl scripts to their proper locations and create needed symlinks.\n

3. Set all needed permisions on all supervise scripts.\n

Press ENTER to proceeed

Copying supervise scripts to their correct locations...
Done!

Copying rc and qmailctl scripts to proper locations...
Done!

Setting needed permisions...
Done!

Script Complete!


After that change server hostname from following files.

[root@rk linux]# vi /var/qmail/supervise/qmail-pop3d/run

[root@rk linux]# vi /var/qmail/supervise/qmail-smtpd/run

Find mail.example.com and change it to your server's hostname


Next kill all running qmail Process for final touch.

[root@rk linux]# qmailctl stop
Stopping qmail...

 qmail-smtpd
 qmail-send
 qmail-pop3d


[root@rk linux]# echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp

[root@rk linux]# qmailctl cdb
Reloaded /etc/tcp.smtp.

Create Some system aliases for server genrated Mails.

[root@rk linux]# echo rk@rk.com > /var/qmail/alias/.qmail-root

[root@rk linux]# echo rk@rk.com > /var/qmail/alias/.qmail-postmaster

[root@rk linux]# echo rk@rk.com > /var/qmail/alias/.qmail-mailer-daemon

[root@rk linux]# ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
     
[root@rk linux]# chmod 644 /var/qmail/alias/.qmail*

12) Time to Uninstall Sendmail.

[root@rk linux]# rpm -qa | grep sendmail
sendmail-8.13.8-8.1.el5_7

[root@rk linux]# rpm -e --nodeps sendmail
warning: /var/log/mail/statistics saved as /var/log/mail/statistics.rpmsave


Create artifical symbolic link for sendmail.

[root@rk linux]# ln -s /var/qmail/bin/sendmail /usr/lib/sendmail

[root@rk linux]# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail


13) Start QMAIL.


Before start servcie, run following script to check all file/folder/permission/ownership etc.

[root@rk util]# pwd
/downloads/qmailrocks/scripts/util

[root@rk util]# ./qmr_inst_check
Congratulations, your Qmail installation looks good!

Time to Start

[root@rk util]# qmailctl start
Starting qmail...

Starting qmail-send
Starting qmail-smtpd
Starting qmail-pop3d

Status Can be check through like this.

[root@rk util]# qmailctl stat
/service/qmail-send: up (pid 27443) 30 seconds
/service/qmail-send/log: up (pid 27448) 30 seconds
/service/qmail-smtpd: up (pid 27457) 30 seconds
/service/qmail-smtpd/log: up (pid 27451) 30 seconds
/service/qmail-pop3d: up (pid 27454) 30 seconds
/service/qmail-pop3d/log: up (pid 27455) 30 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0

Enjoy,Qmail is up and running and you should be able to send and receive mail on the server.




Read More
Posted in | No comments

configure: error: /bin/sh ./config.sub x86_64-unknown-linuxoldld failed

Posted on 12:55 AM by Unknown
Error while Configure VQadmin.

Ver :- Vqadmin-2.3.6

[root@rk vqadmin-2.3.6]# ./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html
checking for a bsd-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/downloads/qmailrocks/vqadmin-2.3.6/missing: Unknown `--run' option
Try `/downloads/qmailrocks/vqadmin-2.3.6/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... Invalid configuration `x86_64-unknown-linuxoldld': machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linuxoldld failed

Resolution:-

[root@rk vqadmin-2.3.6]# cp ../vpopmail-5.4.13/config.sub ./
cp: overwrite `./config.sub'? y

Run Again.

[root@rk vqadmin-2.3.6]#
./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane.....YES
/downloads/qmailrocks/vqadmin-2.3.6/missing: Unknown `--run' option
Try `/downloads/qmailrocks/vqadmin-2.3.6/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnuoldld
checking host system type... x86_64-unknown-linux-gnuoldld
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ranlib... ranlib
checking for strerror in -lcposix... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for crypt in -lcrypt... yes
checking for floor in -lm... yes
checking for compress in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

            Current settings
---------------------------------------
vpopmail directory = /home/vpopmail
               uid = 510
               gid = 505
       cgi-bin dir = /var/www/cgi-bin
       vqadmin dir = /var/www/cgi-bin/vqadmin
    mysql features = disabled
Read More
Posted in | No comments

Tuesday, February 19, 2013

Asterisk Installation on CentOS

Posted on 5:52 AM by Unknown
kindly make sure System is Fully updated.

#yum update  

After update reboot the machine

For 64bit follow this tweak.

#yum remove *.i386

#yum update

reboot Machine.


Before Install make sure all dependencies installed.


For 64bit System.

[root@rk tmp]# yum install gcc.x86_64 gcc-c++.x86_64 make.x86_64 wget.x86_64 subversion.x86_64 libxml2-devel.x86_64 ncurses-devel.x86_64 openssl-devel.x86_64 vim-enhanced.x86_64

For 32bit

[root@rk tmp]#
yum install gcc gcc-c++ make wget subversion libxml2-devel ncurses-devel openssl-devel vim-enhanced



Download Latest Asterisk from offical Site

[root@rk tmp]# wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz

Extract Bundle

[root@rk src]# tar -xvzf asterisk-1.8-current.tar.gz

Now time to run install_prereq this will install allrequired dependecies/PKG

This script can be found under below dir.

/usr/src/asterisk-1.8.20.1/contrib/scripts


[root@rk scripts]# ./install_prereq
./install_prereq: a script to install distribution-specific prerequirement

Revision: $Id: install_prereq 360138 2012-03-21 14:51:14Z jrose $

Usage: ./install_prereq:                    Shows this message.
Usage: ./install_prereq test                Prints commands it is about to run.
Usage: ./install_prereq install             Really install.
Usage: ./install_prereq install-unpackaged  Really install unpackaged requirements.
[root@rk scripts]# ./install_prereq test
#############################################
## test: test mode.
## Use the commands here to install your system.
#############################################
yum install -y pkg list

[root@rk scripts]# ./install_prereq install
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile

Will take time..Enjoy ur coffee.

Complete!
#############################################
## install completed successfully
#############################################

Time to Build & Install Astersik.

Change Dir to
/usr/src/asterisk-1.8.20.1

[root@rk asterisk-1.8.20.1]#
./configure
checking build system type... x86_64-unknown-linux-gnu
config.status: creating config.h
configure: Menuselect build configuration successfully completed

[root@rk asterisk-1.8.20.1]#make
+--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+


[root@rk asterisk-1.8.20.1]#make install


+---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 +                make samples               +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+


[root@rk asterisk-1.8.20.1]#make  sample

Note :- make samples created sample configuration files in the default directory i.e /etc/asterisk/


Done




P.S :- KEEP IT SIMPLE.
Read More
Posted in | No comments

Tuesday, February 12, 2013

Steps to Configure Syslog-ng

Posted on 3:57 AM by Unknown
Installation Steps of syslog-NG In Centos 5.8

 stable Version which i used i.e syslog-ng 3.3.8


Download latest version from offical Site.

[root@rk download]# wget http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.3.8/source/eventlog_0.2.12.tar.gz

[root@rk syslog-ng-3.3.8]#wget http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.3.8/source/syslog-ng_3.3.8.tar.gz


Event log must install before syslog-ng setup.

[root@rk tmp]# tar -xvzf eventlog_0.2.12.tar.gz

[root@rk eventlog-0.2.12]# ./configure

[root@rk eventlog-0.2.12]# make

[root@rk eventlog-0.2.12]# make install

After installation you can find info under following dir.

[root@rk pkgconfig]# pwd
/usr/local/lib/pkgconfig
[root@indfumarket pkgconfig]# cat eventlog.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/eventlog

Name: eventlog
Description: General system logging format library
Version: 0.2.12
Cflags: -I${includedir}
Libs: -L${libdir} -levtlog


IMP
Now export the path & configure Syslog-ng Otherwise it will through following error.


configure: error: Package requirements (eventlog >= 0.2.12) were not met:
No package 'eventlog' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables EVTLOG_CFLAGS
and EVTLOG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Solution:-
[root@rk syslog-ng-3.3.8]# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig


Now Time to run syslog-ng Setup

After extract & change dir, run configure

[root@rk syslog-ng-3.3.8]# ./configure

[root@rk syslog-ng-3.3.8]# make

[root@rk syslog-ng-3.3.8]# make install



Version Info:
[root@rk syslog-ng-3.3.8]# syslog-ng -V
syslog-ng 3.3.8
Installer-Version: 3.3.8
Revision: ssh+git://algernon@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.3#master#d47d71f1fcdcd2befaa6393c95a0ad9856f99f1a
Compile-Date: Feb 13 2013 02:38:38
Default-Modules: affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat
Available-Modules: dbparser,basicfuncs,dummy,afuser,afprog,afsocket,confgen,syslogformat,affile,afsocket-tls,afsocket-notls,afmongodb,csvparser,convertfuncs
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: off
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: off

Done..Enjoy


P.S :- Keep it Simple
Read More
Posted in | No comments

Thursday, February 7, 2013

Dell MD3200 SAS Cabling With Diagram

Posted on 12:39 AM by Unknown
I have 2 MD3200 with SAS Ports + 2 Power Edge720.

Task to connect Both DAS with Both server and make sure Both server showing  all DAS Partitions.

Below is the Diagram  for refrence which i used and Work Perfectly.



Now both my machines showing correct Partition.


PowerEdge01

Disk /dev/sdd: 449.5 GB, 449559595520 bytes
Disk /dev/sdf: 443.4 GB, 443455373312 bytes
Disk /dev/sdh: 5368 MB, 5368709120 bytes
Disk /dev/sdj: 449.5 GB, 449559595520 bytes
Disk /dev/sdl: 443.4 GB, 443455373312 bytes
Disk /dev/sdn: 5368 MB, 5368709120 bytes
Disk /dev/sdq: 449.5 GB, 449559595520 bytes
Disk /dev/sdt: 449.5 GB, 449559595520 bytes
Disk /dev/sdu: 5368 MB, 5368709120 bytes
Disk /dev/sdx: 449.5 GB, 449559595520 bytes
Disk /dev/sdy: 444.1 GB, 444190886400 bytes


PowerEdge0102

Disk /dev/sdd: 449.5 GB, 449559595520 bytes
Disk /dev/sdf: 443.4 GB, 443455373312 bytes
Disk /dev/sdh: 5368 MB, 5368709120 bytes
Disk /dev/sdj: 449.5 GB, 449559595520 bytes
Disk /dev/sdl: 443.4 GB, 443455373312 bytes
Disk /dev/sdn: 5368 MB, 5368709120 bytes
Disk /dev/sdq: 449.5 GB, 449559595520 bytes
Disk /dev/sdt: 449.5 GB, 449559595520 bytes
Disk /dev/sdu: 5368 MB, 5368709120 bytes
Disk /dev/sdx: 449.5 GB, 449559595520 bytes
Disk /dev/sdy: 444.1 GB, 444190886400 bytes 


P.S :- keep it Simple
Read More
Posted in | No comments

SquirrelMail Installation Steps

Posted on 12:27 AM by Unknown
Tested Under CentOS 6.3 64bit machine.

Before Instllation make sure following Packages must installed.

tmpwatch
php
php-mbstring
httpd  
hunspell  
hunspell-en  
perl  
rpmlib

After install above package time to donwload Squirremail latest PKG.

#wget ftp://ftp.muug.mb.ca/mirror/fedora/epel/6/x86_64/squirrelmail-1.4.22-3.el6.noarch.rpm


 Steps for  installation

[root@rkwebmail01 tmp]# rpm -ivh squirrelmail-1.4.22-3.el6.noarch.rpm
warning: squirrelmail-1.4.22-3.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:squirrelmail           ########################################### [100%]

---------------------------------------------------------

This will Installed under  /usr/share/squirrelmail.

Some dir for queuing & attachments found under /var/lib.

Configuration  files under /etc/squirrelmail

A config file for httpd is added to /etc/http/conf.d. with aliases /webmail to the SquirrelMail install directory.


Run Config Script

#/usr/share/squirrelmail/config/conf.pl

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color off
S   Save data
Q   Quit

Command >> 1

Just follow the insturction and set it accordigly.


 Main thing like:-  org name, Server type, Port number, Domain,Folder Pref.

After save all setting it messgae appear like this.


Command >> q


Exiting conf.pl.
You might want to test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy SquirrelMailing!


IF you want to do setting through Command/files then open Config.php from Configuration dir.

Below i just past my config.php for ref.  This work for me.


# cat config.php

/**
 * SquirrelMail Configuration File
 * Created using the configure script, conf.pl
 */

global $version;
$config_version = '1.4.0';
$config_use_color = 1;

$org_name      = "RK India";
$org_logo      = SM_PATH . 'images/DocLogo.png';
$org_logo_width  = '308';
$org_logo_height = '111';
$org_title     = "SquirrelMail $version";
$signout_page  = '';
$frame_top     = '_top';

$provider_uri     = 'http://www.squirrelmail.org/';

$provider_name     = 'SquirrelMail';

$motd = "";

$squirrelmail_default_language = 'en_US';
$default_charset       = 'iso-8859-1';
$lossy_encoding        = false;

$domain                 = '*****.com';
$imapServerAddress      = '10.221.****.154';
$imapPort               = 993;
$useSendmail            = false;
$smtpServerAddress      = '10.221.****.54';
$smtpPort               = 465;
$sendmail_path          = '/usr/sbin/sendmail';
$sendmail_args          = '-i -t';
$pop_before_smtp        = false;
$pop_before_smtp_host   = '';
$imap_server_type       = 'cyrus';
$invert_time            = false;
$optional_delimiter     = 'detect';
$encode_header_key      = '';

$default_folder_prefix          = 'INBOX';
$trash_folder                   = 'INBOX/Trash';
$sent_folder                    = 'INBOX/Sent';
$draft_folder                   = 'INBOX/Drafts';
$default_move_to_trash          = true;
$default_move_to_sent           = true;
$default_save_as_draft          = true;
$show_prefix_option             = true;
$list_special_folders_first     = true;
$use_special_folder_color       = true;
$auto_expunge                   = true;
$default_sub_of_inbox           = false;
$show_contain_subfolders_option = true;
$default_unseen_notify          = 2;
$default_unseen_type            = 1;
$auto_create_special            = true;
$delete_folder                  = false;
$noselect_fix_enable            = false;







Read More
Posted in | No comments

Sunday, February 3, 2013

Managing Mailboxes with cyradm

Posted on 10:48 PM by Unknown
In three Steps you can create/delete mail with cyradm.

Login on IMAP server, in my example it running on local system

1) [root@imap01 tmp]# cyradm -user raman localhost
Password:

 lm : listmailbox : Lists the names of all mailboxes that match a given pattern.

No mail apper.

2) Now time to create new mailbox e.g abc

hit this command

localhost> cm user.abc

cm : createmailbox : Creates a new top-level mailbox.

Now run lm command to to list.

localhost> lm
user.abc (\HasNoChildren)


or lm user.abc

3) Time to delete mail box.

localhost> dm user.abc
deletemailbox: Permission denied



dm : deletemailbox : Deletes a mailbox and all mailboxes below it in its hierarchy
 
Reason :- Admin does not have this permission by default. to fix this give the admin user 'create' permissions on the mailbox.

Now run like this.

localhost> sam user.abc raman c
localhost> dm user.abc
localhost> lm



Done.

P.S :- Keep it Simple.


Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Popular Posts

  • No package 'lua5.1' found
    hecking for LUA51... no checking for LUA51... configure: error: Package requirements (lua5.1 >= 5.1) were not met: No package 'lua5.1...
  • response to SOA query was unsuccessful: solved
    check your zone file [root@inf1sysadm1 data]# pwd /var/named/data # cat ind.raman.com.zone $ORIGIN . $TTL 3600 ; 1 hour ind.raman.com IN SO...
  • can't locate your x11 installation Fedora
    While install Conky, system through this error. Solution:- You need to install X11 Software Dev Package. Login on system with root user ...
  • Qmail Installation & Configuration step by step
    Tested under CentOS 5.8  64bit machine. 1)Packges which i installed for Qmail. httpd-2.2.3-76 php-5.1.6-39 perl-5.8.8 -38 gcc-4.1.2 mysql-5....
  • Dell MD3200 SAS Cabling With Diagram
    I have 2 MD3200 with SAS Ports + 2 Power Edge720. Task to connect Both DAS with Both server and make sure Both server showing  all DAS Parti...
  • It is safe to clean windows prefetch folder and registry folder ?
     It is safe to clean windows prefetch folder and registry folder ? Will this boost Windows operating system capabilities ? Many of you hav...
  • Windows 7 & Windows 8 fail to start
    Windows 7 fail to boot, what should I do? Is Windows 7 failing to boot after you installed the loader or after you just installed a fresh ne...
  • Steps how to change VolStatus in Bacula through bonsole.
    In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged. *list volumes Pool: Default +---------+------------+-----------+--...
  • Adobe Photoshop CS5 Error 16 , Adobe Photoshop CS5 Error 7
    When you install Adobe Photoshop CS5 you might get some errors. In case you get one you will see a code and a little description. Is very im...
  • X connection to localhost:10.0 broken (explicit kill or server shutdown).
    Solution:- With Xhost, you can solve this issue.

Categories

  • Adobe
  • Players
  • Reviews
  • Windows

Blog Archive

  • ▼  2013 (27)
    • ►  October (3)
    • ►  August (1)
    • ►  June (1)
    • ►  April (3)
    • ▼  February (10)
      • NTOP Installation & Configuration Step by Step
      • How to view content of RPM package
      • perl-ExtUtils-MakeMaker for CentOS 5
      • Qmail Installation & Configuration step by step
      • configure: error: /bin/sh ./config.sub x86_64-unkn...
      • Asterisk Installation on CentOS
      • Steps to Configure Syslog-ng
      • Dell MD3200 SAS Cabling With Diagram
      • SquirrelMail Installation Steps
      • Managing Mailboxes with cyradm
    • ►  January (9)
  • ►  2012 (29)
    • ►  December (2)
    • ►  November (7)
    • ►  October (10)
    • ►  September (4)
    • ►  August (1)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2011 (36)
    • ►  December (3)
    • ►  November (3)
    • ►  October (1)
    • ►  September (5)
    • ►  August (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (5)
    • ►  February (2)
    • ►  January (7)
  • ►  2010 (24)
    • ►  December (1)
    • ►  November (1)
    • ►  October (4)
    • ►  August (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ►  February (5)
    • ►  January (8)
  • ►  2009 (18)
    • ►  December (6)
    • ►  November (3)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (5)
    • ►  April (2)
    • ►  February (1)
    • ►  January (5)
  • ►  2007 (4)
    • ►  July (3)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile