How to change VMware ESXi 4.x password

How to change VMware ESXi 4.x password

Login in to VMware vSphere Client

Click on Host Server    and click on Local users and group then Right click on “root” choose edit

Click on Check box “Change Password”

Insert the new password  and Confirm the password then click OK .

Now Logout from vShpare Client and login with new password

How to configure Gtalk on Trixbox

Configuring the gtalk account in Trixbox. This can really be your company DID for receiving and making gtalk to gtalk or gtalk to world calling.

Follow the below steps :-

1- Install start up modules
# yum update
# yum install gcc*
# yum install theo*
# yum install ikse*
# yum install gnutls*
# yum install xmlsec*
# yum install speex*

2- Gtalk’s jingle protocol runs over TLS hence we need to add TLS support in our server.
You can verify whether the TLS has been installed properly or not by writing following simple C program.


# cd /etc/asterisk/

# nano gtalk-tls.c


#include <stdlib.h>
#include <stdio.h>
#include <iksemel.h>
int main()
printf(“Checking server for TLS\n\r”);
printf(“Yes !! We have TLS.\n\r”);
printf(“Sorry !! I dont find it.\n\r”);
return 0;


Save the file and exit

3- Now compile the gtalk-tls.c

# gcc -l iksemel -o gtalk-tls gtalk-tls.c

4- Now run the  gtalk-tls.c

# ./gtalk-tls

Checking server for TLS
Yes !! We have TLS

5-  Now we will check the config file for gtalk and jabber

# nano  /etc/asterisk/gtalk.conf
bindaddr=LANIP ; If you are running on Public IP then
; bindaddr=PUBLICIP




# nano  /etc/asterisk/jabber.conf

statusmessage=”Your status message ”

6-   Now we need to configure gtalk audio conection protocol “Jingle”

# nano /etc/asterisk/jingle.conf
bindaddr=LANIP ; If you are running on Public IP then
; bindaddr=PUBLICIP




7-   You have to add custom context in order to integrate gtalk with asterisk, Trixbox for incoming and outgoing calls

For Incoming call to extension as Extension no 101  or replace with your extension no where you want to receive call.


# nano  /etc/asterisk/extension_custom.conf
exten => s,1,NoOp( Call from Gtalk )
exten => s,n,Set(CALLERID(name)=”From Google Talk”)
exten => s,n,Dial(SIP/1001) ; 1001 is the extension where I want to terminate the incoming call on my gtalk id.
For outgoing calls to your buddy list ,you will have to assign extension numbers to your friends . So when you will call that extension number Trix box will call your friends.


Go to extensions.conf and  under [from- internal]  add the extensions mapped to gtalk buddies



include => from-internal-xfer

include => bad-number


exten => 2000,1,Dial(gtalk/asterisk/

exten => 2001,1,Dial(gtalk/asterisk/



8- Configure RTP protocal

# nano  /etc/asterisk/rtp.conf

; RTP start and RTP end configure start and end addresses
rtpstart=10000 ; this is default range

rtpstart=1650 ; This is needed by gtalk

rtpstart=40000 ; This is the UDP port range from where the audio traffic will go.
rtpend=66000 ; This will also help you in debugging.


9- Now Restart the asterisk services


[Trixbox $] # asterisk -r
Trixbox CLI> reload

10 – Test the jabber
Trixbox CLI> jabber test


Resource: 1A945032
client: *******
version: ANYTHING
Jingle Capable: 1
Priority: 1
Status: 1
Message: Speeding up !!!

11- Now your are done


Try to call  your friend buddy using there mapped extension number .

Test receiving calls .

How to install ntop on CentOS

How to install ntop on CentOS

Follow the following steps
1-  Install rpmforge repository:
Choose your CentOS vesion and install rpmforge repository
2- # yum install ntop
3-  There is a bug in the /etc/init.d/ntop startscript we need to fix.
#  nano  /etc/init.d/ntop
change the line at start function from:
daemon $prog -d -L @/etc/ntop.conf         TO          daemon $prog @/etc/ntop.conf -d -L
4- Set the admin password for the ntop
#   ntop @/etc/ntop.conf
5- Start ntop services
# service ntop start
6- Configure the ntop service to start at boot time
#  chkconfig –levels 35 ntop on
7-   Open a web browser  point to the ntop server on port 3000

Note :- by default ntop capture all information from eth0

How to backup MS SQL Server 2005 database

How do I backup my MS SQL Server 2005 database using Management Studio?

The following article explains how to backup your MS SQL Server 2005 database using Management Studio. The backup can then be used at a later date to restore the database if information is lost. The backup file needs to have a .bak file extension.

Please follow these steps:

  1. Open SQL Server Management Studio.
  2. Connect to your MS SQL Server database.
  3. Right-click your database, expand All Tasks and select Back Up.
  4. Under Backup type, select Full.
  5. Under Destination, click Add.
  6. Enter the path and file name for the backup file.
  7. Click OK.
  8. Review the settings for the backup.
  9. Click OK to begin the backup.
  10. The instructions above will create a complete backup of your database. This is the recommended method to ensure that all data is backed up.

How to Bind Multiple IP Addresses to a Single Network Interface Card (NIC)

How to Bind Multiple IP Addresses to a Single Network Interface Card (NIC)

Network card information are located in /etc/sysconfig/network-scripts/.

Go into that directory.

cd /etc/sysconfig/network-scripts/

The file we’re interested in is ifcfg-eth0, the interface for the Ethernet device. Let’s assume we want to bind three additional IP’s (,, and to the NIC. We need to create three alias files while ifcfg-eth0 maintains the primary IP address. This is how we’ll set up the aliases to bind the IP addresses.

Adapter IP Address Type

eth0 Primary

eth0:0  Alias 1

eth0:1  Alias 2

The :X (where X is the interface number) is appended to the interface file name to create the alias. For each alias you create you assign a number sequentially. For this example we will create aliases for eth0. Make a copy of ifcfg-eth0 for the three aliases.

cp ifcfg-eth0 ifcfg-eth0:0
cp ifcfg-eth0 ifcfg-eth0:1
cp ifcfg-eth0 ifcfg-eth0:2

Take a look inside ifcfg-eth0 and review the contents.

more ifcfg-eth0

We’re interested in only two lines (DEVICE and IPADDR). We’ll rename the device in each file to its corresponding interface alias and change the IP’s. We’ll start with ifcfg-eth0:0. Open ifcfg-eth0:0 in vi and change the two lines so they have the new interface and IP address.

vi ifcfg-eth0:0



Save ifcfg-eth0:0 and edit the other two alias files (ifcfg-eth0:1 and ifcfg-eth0:2) so they have the new interfaces and IP addresses set (follow the table from above). Once you save all your changes you can restart the network for the changes to take effect.

service network restart

To verify all the aliases are up and running you can run ifconfig (depending on how many new IP’s you set up, you can use ifconfig | more to pause the output).


You can also test the IP’s by pinging them from a different machine. If everything is working then there should be a response back.


How to backup MySQL on Linux

How to backup MySQL on Linux

Connect to your Linux server via SSH

  1. Use the mysqldump utility to create your database backup. The command is run in the format “mysqldump –host server_name –user username –password db_name > backup_file_name.mysql”
    • Host: the hostname or IP Address of the MySQL server that hosts your database
    • User: your MySQL user name
    • Password: your MySQL password. You will be prompted to enter this when the command is executed.
    • DB Name: the name of your MySQL database
    • Backup File Name: this is the file that will contain the backup of your database.
  2. When prompted enter your database password.
  3. Your database is now being backed up to the specified file.
  4. Additional options can be found by running “mysqldump –help” .

How to install VOS3000 Server on CentOS 5.x

How to install VOS3000 Server on CentOS 5.x
Follow the below steps as tested on CentOS 5.x
Configure the Time Zone according to your Country Zone setup

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
# nano /etc/sysconfig/clock
#  date –set=”02 SEP 2011 20:50:00″              (ddMMYYYY HH:MM:SS)

To disable security firewall
# nano /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing – SELinux security policy is enforced.
#       permissive – SELinux prints warnings instead of enforcing.
#       disabled – SELinux is fully disabled.
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted – Only targeted network daemons are protected.
#       strict – Full SELinux protection.
# SETLOCALDEFS= Check local definition changes

Check the line      SELINUX=disabled
Desable the iptable firewall

# /etc/init.d/iptables status
# /etc/init.d/iptables save
#  /etc/init.d/iptables stop
#  chkconfig iptables off
#  /etc/init.d/ip6tables save
#  /etc/init.d/ip6tables stop
# chkconfig ip6tables off

Now reboot the server
# reboot

Check the Linux security status

12- sestatus   (should display as below )
[root@L122NGNRS01 ~]# sestatus
SELinux status:                 disabled

Copy the  apache-tomcat-5.5.15.tar.gz  file in to /usr/ folder

#cd  /usr
#  tar -xvf apache-tomcat-5.5.15.tar.gz
#    rpm -ivh perl-DBI-1.40-5.i386.rpm
#    rpm -ivh MySQL-server-community-5.0.51a-0.rhel4.i386.rpm
#    rpm -ivh MySQL-client-community-5.0.51a-0.rhel4.i386.rpm
#    rpm -ivh jdk-1_5_0_08-linux-i586.rpm
#    rpm -ivh emp-2.1.1-5.noarch.rpm
#    rpm -ivh mbx3000-2.1.1-5.i586.rpm
#    rpm -ivh vos3000-2.1.1-5.i586.rpm
#    rpm -ivh ivr-2.1.1-5.i586.rpm
#    /etc/init.d/vos3000d restart
#    /etc/init.d/vos3000dall restart
#    service mysql restart
#   cd /usr/kunshi
#    mkdir /usr/kunshi/license
#    cd /usr/kunshi/license
Now for Licence Registration  get the IP address and MAC address , Company Name , number of CC

To get the ip address and MAC address

#  ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:2C:B5:FE
inet addr:  Bcast:  Mask:

obtain the Licence FIle   as license.dat   and copy to /usr/kunshi/license/license.dat

Make licence file active

# chmod 755 /usr/kunshi/license/license.dat

Now restart all the required services
# service mysql restart
#   /etc/init.d/vos3000d  restart
#   /etc/init.d/vos3000d  restart
#   /etc/init.d/vos3000dall  restart
#   /etc/init.dmbx3000d restart
#   /etc/init.d/mbx3000d restart
#   /etc/init.d/mbx3000d restart
#   /etc/init.d/vos3000dall  restart
Now change the MySQL root password

#   /usr/bin/mysqladmin  -u root password yourpassword     (to change the mysql password)
Reboot the server

#  reboot

How to install VOS3000 on centos 

Best practices for Shared Folders on Windows Servers

Assign permissions to groups, not user accounts.

  • Assigning permissions to groups simplifies management of shared resources, because you can then add users to or remove them from the groups without having to reassign permissions. To deny all access to a shared resource, deny the Full Control permission.

Assign the most restrictive permissions that still allow users to perform required tasks.

  • For example, if users need only to read information in a folder, and they will never delete, create, or change files, assign the Read permission.

If users log on locally to access shared resources, such as on a terminal server, set permissions by using NTFS file system permissions or access control.

Organize resources so that objects with the same security requirements are located in the same folder.

  • For example, if users require the Read permission for several application folders, store the application folders in the same parent folder. Then, share the parent folder, rather than sharing each individual application folder. Note that if you need to change the location of an application, you may need to reinstall it.

When you share applications, organize all shared applications in one folder.

  • Organizing all applications in one shared folder simplifies administration, because there is only one location for installing and upgrading software.

To prevent problems with accessing network resources, do not deny permissions to the Everyone group.

Avoid explicitly denying permissions to a shared resource.

  • It is usually necessary to explicitly deny permissions only when you want to override specific permissions that are already assigned.

Limit membership in, and assign the Full Control permission to, the Administrators group.

  • This enables administrators to manage application software and to control user rights.

In most cases, do not change the default permission (Read) for the Everyone group.

  • The Everyone group includes anyone who has access to network resources, including the Guest account. In most cases, do not change this default unless you want users to be able to make changes to the files and objects in the shared resource. For more information about share permissions, see Share permissions.

Grant access to users by using domain user accounts.

  • On computers running Windows XP Professional that are connected to a domain, grant access to shared resources through domain user accounts, rather than through local user accounts. This centralizes the administration of share permissions.

Use centralized data folders.

  • With centralized data folders, you can manage resources and back up data easily.

Use intuitive, short labels for shared resources.

  • This ensures that the shared resources can be easily recognized and accessed by users and all client operating systems.

Step by Step Cacti installation for Monitoring on Cent OS

Step by Step Cacti installation for Monitoring on Cent OS

Login as root

Create the yum repository to install cacti through  yum

#cd /var
# mkdir download
# wget
# rpm –import
# rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
#yum update
Install required component for Cacti
# yum install mysql-server mysql php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp php-pear-Net-SMTP php-mysql httpd
Start MySQL service
# service mysqld start
# chkconfig mysqld on
Create root password for MySQL
# mysqladmin -u root password your password

Create a database for cacti, enter:
# mysql -u root -p -e ‘create database cacti’
Create a user for cacti as cacti with a password  , enter:
# mysql -u root -p

mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY ‘zYn95ph43zYtq’;

mysql> FLUSH privileges;

mysql> \q

Install SNMP utils
#  yum install net-snmp-utils php-snmp net-snmp-libs

Append / modify it as follows (see snmpd.conf man page for details):

com2sec local     localhost           public

group MyRWGroup v1         local

group MyRWGroup v2c        local

group MyRWGroup usm        local

view all    included  .1                               80

access MyRWGroup “”      any       noauth    exact  all    all    none

syslocation Unknown (edit /etc/snmp/snmpd.conf)

syscontact Root  (configure /etc/snmp/snmp.local.conf)

pass . /usr/bin/ucd5820stat

Start SNMP service
# /etc/init.d/snmpd start
# chkconfig snmpd on
Check SNMP is working Make sure you are getting information from snmpd:
# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
Sample ouptut:
IP-MIB::ipAdEntIfIndex. = INTEGER: 2
IP-MIB::ipAdEntIfIndex. = INTEGER: 1
Install Cacti
# yum install cacti
Type the following command to find out cacti.sql path:
# rpm -ql cacti | grep cacti.sql
Create Tables on cacti database
Type the following command to install cacti tables (you need to type the cacti user password):
# mysql -u cacti -p cacti < /var/www/cacti/cacti.sql
Configure cacti configuration file to access database
# nano /var/www/cacti/include/config.php
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “cacti”;
$database_password = “yourpassword“;
$database_port = “3306″;
$database_ssl = false;
Configure web server to allow cacti to be access on your network
# nano /etc/httpd/conf.d/cacti.conf
DirectoryIndex index.php
Options -Indexes
AllowOverride all
order deny,allow
deny from all
allow from all
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc on
php_flag track_vars on
Restart web server
# service httpd restart
# service httpd restart
Configure cron service to pull information
#  nano /etc/cron.d/cacti
*/5 * * * *     cacti   php /var/www/cacti/poller.php &>/dev/null# chkconfig httpd on
# chkconfig mysqld on
#chkconfig snmpd on
Now open your browser and point to http://your cactiserver ip/cacti/
it will begin the initial setup of cacti .the default password for cacti admin is admin it will will ask you to change the password change the password and login again.
For additional monitoring templates I got a good site
Download and install the XML templates .

How to install SNMP client on Cent OS / Linux

How to install SNMP client on Cent OS / Linux

Login as root

# yum install net-snmp-utils
Rename the snmpd.conf
# mv /etc/snmp/snmpd.conf /etc/snmp/
# nano /etc/snmp/snmpd.conf
copy and paste below line
rocommunity  public
syslocation  “Your Datacenter”
save the file and exit

Start the SNMP service on linux
# /etc/init.d/snmpd start
# chkconfig snmpd on
Check the SNMP service is working
# snmpwalk -v 1 -c public -O e

if your are getting output its working now