Install phpMyAdmin on CentOs 6

Install phpMyAdmin on CentOs 6 and had interesting walkthrough of the installation 1. Get the latest copy of phpMyAdmin from sourceforge wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.5.7/phpMyAdmin-3.5.7-english.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fphpmyadmin%2Ffiles%2FphpMyAdmin%2F3.5.7%2F&ts=1361966494&use_mirror=jaist 2. Extract the files tar -zxvf phpMyAdmin-3.5.7-english.tar.gz 3. move the extracted files to proper location mv phpMyAdmin-3.5.7-english.tar.gz /var/www/html/phpmyadmin 4. cd /var/www/html/phpmyadmin 5. Make a copy of configuration files cp config.sample.inc.php config.inc.php 6. Modify […]

Read more
Java Heap Dump and analyze

First get the Java Applications Process Id, one way to do this is with: jps jmap -dump:format=b,file=dump.bin <javaProcessIdHere> The size of the heap dump file will be same as the heap memory in use at the time the command is run. For large heap sizes this can take several minutes to run, and can stall (make […]

Read more
Traffic Calcuation for Tomcat and Apache

How many users can we handle? How many requests/second can we handle? How much bandwidth is needed to handle so many users or requests/second? How do i calculate these figures? How many (an application) servers do i need to handle this traffic? Lets begin with a small example to understand how we arrive at answers […]

Read more
Solaris Add Defualt Route

netstat -nr route delete default 192.168.1.251 ou can add default router temporarily by following command route add default 192.168.10.249 You can add default router permanently by following commands route -p add default 192.168.1.249 Or echo 192.168.1.249 > /etc/defaultrouter It will create /etc/defaultrouter file if not already available. Next time you restart you system 192.168.1.249 will […]

Read more
How to Install and Configure VNC Server

First you need to check for already installed VNC Server. You can check this by executing following command. rpm -q vnc-server If you found message like  “package vnc-server is not installe” then you need to install it first by executing following command from root user. yum install vnc-server Once VNC Server installed you need to […]

Read more
Starting the DB2 control center on Linux

To start the DB2 control center, perform the following steps: Login as root. At the command line, run the following command: xhost +localhost. Run the following command su – ctginst1. Run the following command db2cc.

Read more
Convert VirtualBox VDI to VMware VMDK disks

VBoxManage We have used VBoxManage to clone VirtualBox disks. The method here is identical, except that we will be converting to a different disk format. Let’s see how this is done. VBoxManage clonehd source.vdi target.vmdk –format VMDK Where source is your VirtualBox disk, target is your VMware disk and –format VMDK is the desired output format. Similarly, […]

Read more
Linux commands for Reference

find . -type f -exec grep ‘NMX_FXNG_AND_CONTRACT_DBF’ {} \; history  history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c|sort -r  history|tail -1000|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c|sort -r -daystart    This flag starts at the beginning of the day.-atime    The time the file was last accessed — in number of days.-ctime    The time the file’s […]

Read more
start/stop asterisk

To start asterisk server /usr/sbin/asterisk To stop asterisk server /usr/sbin/asterisk -r CLI>stop now To reload asterisk server CLI>reload To restart asterisk server CLI>restart now asterisk –rx “stop now” To show version asterisk -rx “core show version”   asterisk –rx “core show translation” asterisk –rx “core show codecs”  

Read more
YUM Server in CentOS 6.x / RHEL 6.x

Setup Local YUM Server in CentOS 6.x / RHEL 6.x (Yum) is a software package manager that installs, updates and removes packages on RPM-based Linux distributions. Yum makes it easier to maintain groups of machines without having to manually update each one using rpm. Features: Support for multiple repositories.Simple configuration.Automatic dependency calculation.Fast operation.RPM-consistent behavior.Package group […]

Read more

Hit Counter provided by dental implants orange county