Archive for the ‘Linux’ Category
-
SVN plugin inside Eclipse and Microsoft visual Studio
Friday, August 27th, 2010
SVN plugin inside a IDE ( Eclipse or Visual Studio ) is a great help for the developer. Installation of SVN plugin inside Eclipse , I will use subversive plugin here . 1. Go to Help->Software Updates. 2. Click on the “Available Software” tab. 3. Unfold the Ganymede->Collaboration Tools node, and , you will see [...]
-
Tomcat 6 installation on CentOS 5/RHEL
Wednesday, August 25th, 2010
We can add repository under /etc/yum.repos.d/ wget ‘http://www.jpackage.org/jpackage50.repo’ #rpm -Uvh ‘http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm #yum update # yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps # service tomcat6 start
-
Oracle 10g R2 installtion on CentOS 5.5/RHEL
Wednesday, August 25th, 2010
The main required packages for installing oracle are (installing on 32 bit architecture) binutils.i386 compat-gcc-7.3-2.96.128.i386 compat-gcc-c++-7.3-2.96.128.i386 compat-libstdc++-7.3-2.96.128.i386 compat-libstdc++-devel-7.3-2.96.128.i386 cpp.i386 gcc.i386 gcc-c++.i386 glibc.i386 glibc-common.i386 glibc-devel.i386 glibc-headers.i386 glibc-kernheaders.i386 libstdc++.i386 libstdc++-devel.i386 libaio libai-devel.i386 pdksh.i386 setarch.i386 sysstat.i386 Download the Oracle 10gR2 from , http://www.oracle.com/technology/software/products/database/oracle10g/index.html Preinstallation Steps: 1. Edit /etc/hosts file 2. Edit /etc/sysctl.conf #kernel.shmall = 2097152 #kernel.shmmax = 2147483648 [...]
-
Can’t read /sys/hypervisor/uuid which leads to high load average.
Saturday, August 14th, 2010
Description of problem: When the daemon of xend stops ,the cron task who is /etc/cron.hourly/mcelog.cron can’t read /sys/hypervisor/uuid.It leads to D status of “cat /sys/hypervisor/uuid ” which results in high load average Version-Release number of selected component (if applicable): In RHEL5.4 for 64 bits x86_64 xen kernel. How reproducible: In xen kernel,make the daemon of [...]
-
Upgrading MySQL from 4 to 5
Saturday, August 14th, 2010
MySQL upgradation is a simple process of removing old binaries and installing the new one. Following is a process of how to upgrade MySQL 4.1 to MySQL 5 on RHAS 4 Note: Before going to upgrade your database take a backup of your database and /etc/my.cnf file. Now find out the current packages Installed on [...]
-
How to Delete a Big Number of Files in a Folder
Friday, August 13th, 2010
If you’re using temporary files you should notice that after some time it is hard to delete them as their number is growing. If you have many files and try to delete them with a usual command rm -f you should receive something like this: [root@server html]# rm -f * -bash: /bin/rm: Argument list too [...]
-
SVN installation with Apache
Friday, August 13th, 2010
1. First of all, install apache/httpd * yum install httpd 2. Make sure you apache is running. You can also type ‘http://localhost’ at your browser and apache test page should appear if your apache is running * /etc/init.d/httpd status 3. Make it start by default on startup * chkconfig httpd on 4. Edit the apache [...]
-
SSH login expect shell script to supply username and password
Thursday, August 12th, 2010
#!/usr/bin/expect -f # Expect script to supply root/admin password for remote ssh server # and execute command. # This script needs three argument to(s) connect to remote server: # password = Password of remote UNIX server, for root user. # ipaddr = IP Addreess of remote UNIX server, no hostname # scriptname = Path to [...]
-
Backup an entire hard disk using dd command
Tuesday, August 10th, 2010
The ‘ dd ‘ command is one of the original Unix utilities and should be in everyone’s tool box. It can strip headers, extract parts of binary files and write into the middle of floppy disks; it is used by the Linux kernel Makefiles to make boot images. It can be used to copy and [...]
-
InnoDB: The InnoDB memory heap is disabled
Thursday, July 29th, 2010
I enabled the innodb_plugin-1.0.4 made the necessary changes into the my.cnf file to bring the innodb plugin into the effect . Restarted MySQL and got the log entry into the MySQL error log InnoDB: The InnoDB memory heap is disabled , on some checking I got in this page (http://www.innodb.com/doc/innodb_plugin-1.0-doc-single/innodb-plugin.html#innodb-performance-use_sys_malloc) that I need to set [...]
-
InnoDB: Fatal error: cannot allocate the memory for the buffer pool
Thursday, July 29th, 2010
I got this error while I was trying to setup a MySQLServer as Copy of another server I did not check the memory available in the system and I got the error “InnoDB: Fatal error: cannot allocate the memory for the buffer pool” I realized that the memory of the system is less then the [...]
-
Using ReiserFS and Linux
Tuesday, July 20th, 2010
Introduction In this article, I’ll show you how to get ReiserFS running under a typical Linux distribution. I’ll also share lots of technical information on a variety of topics, such as performance considerations and more. Since I’ll be covering installation first, I recommend that you read this article in its entirety before following the installation [...]
-
Accessing Remote Tables Data in MySQL
Friday, July 16th, 2010
We sometime need to access the data (tables ) which lies on another remote MySQL DB Server , MySQL provides an engine type federated which does exactly what we want . The FEDERATED storage engine enables data to be accessed from a remote MySQL database on a local server without using replication or cluster technology. [...]
-
htaccess to stop files listing & executing any file inside folder
Tuesday, July 13th, 2010
# htaccess to stop files listing on folder and stop executing any file inside folder like config.ini file etc which are not need to display in the browser IndexIgnore */* (It will stop files listing for specific folder) # deny access to all files of folder Order allow,deny Deny from all Satisfy All Forbidding a [...]
-
How to find per-process I/O statistics on Linux
Tuesday, July 13th, 2010
How to find per-process I/O statistics on Linux: Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible [...]




